@arcgis/core 4.23.0-next.20220131 → 4.23.0-next.20220205
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/TimeExtent.js +1 -1
- package/assets/components/assets/calcite-date-picker/nls/pt-BR.json +31 -0
- package/assets/components/assets/calcite-date-picker/nls/pt-PT.json +3 -3
- package/assets/components/assets/calcite-icon/clipboard16.json +1 -0
- package/assets/components/assets/calcite-icon/clipboard24.json +1 -0
- package/assets/components/assets/calcite-icon/clipboard32.json +1 -0
- package/assets/components/assets/calcite-icon/folders16.json +1 -0
- package/assets/components/assets/calcite-icon/folders24.json +1 -0
- package/assets/components/assets/calcite-icon/folders32.json +1 -0
- package/assets/components/assets/calcite-icon/initiative16.json +1 -0
- package/assets/components/assets/calcite-icon/initiative24.json +1 -0
- package/assets/components/assets/calcite-icon/initiative32.json +1 -0
- package/assets/components/assets/calcite-icon/initiativeTemplate16.json +1 -0
- package/assets/components/assets/calcite-icon/initiativeTemplate24.json +1 -0
- package/assets/components/assets/calcite-icon/initiativeTemplate32.json +1 -0
- package/assets/components/assets/calcite-icon/multipleVariables16.json +1 -0
- package/assets/components/assets/calcite-icon/multipleVariables24.json +1 -0
- package/assets/components/assets/calcite-icon/multipleVariables32.json +1 -0
- package/assets/components/assets/calcite-icon/paletteCheck16.json +1 -0
- package/assets/components/assets/calcite-icon/paletteCheck24.json +1 -0
- package/assets/components/assets/calcite-icon/paletteCheck32.json +1 -0
- package/assets/components/assets/calcite-icon/pentagon16.json +1 -0
- package/assets/components/assets/calcite-icon/pentagon24.json +1 -0
- package/assets/components/assets/calcite-icon/pentagon32.json +1 -0
- package/assets/components/assets/calcite-icon/puzzlePiece16.json +1 -0
- package/assets/components/assets/calcite-icon/puzzlePiece24.json +1 -0
- package/assets/components/assets/calcite-icon/puzzlePiece32.json +1 -0
- package/assets/components/assets/calcite-icon/ribbonRosette16.json +1 -0
- package/assets/components/assets/calcite-icon/ribbonRosette24.json +1 -0
- package/assets/components/assets/calcite-icon/ribbonRosette32.json +1 -0
- package/assets/components/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
- package/assets/components/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
- package/assets/components/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
- package/assets/components/assets/calcite-icon/survey16.json +1 -0
- package/assets/components/assets/calcite-icon/survey24.json +1 -0
- package/assets/components/assets/calcite-icon/survey32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{7a5f5acfbd4ca1a5c1f3.js → 06116433eb6e669f146b.js} +1 -1
- package/assets/esri/core/workers/chunks/0a4401a148c3cb73d6ff.js +1 -0
- package/assets/esri/core/workers/chunks/{83d00afae4406ec78bc9.js → 0c6be307709523eb8a05.js} +1 -1
- package/assets/esri/core/workers/chunks/{e0c8d61c7a85ce15499a.js → 0d9adefd00c44585be2e.js} +1 -1
- package/assets/esri/core/workers/chunks/{44f0c3663b293afbd172.js → 0e09691edb44641de5f0.js} +1 -1
- package/assets/esri/core/workers/chunks/0e215fa28a0448169132.js +1 -0
- package/assets/esri/core/workers/chunks/{391e96192d1ec4e55ce2.js → 101b4f02f0572afb666f.js} +1 -1
- package/assets/esri/core/workers/chunks/{db3c729ce0c0b2690dc9.js → 1180ffd523c6292bc04e.js} +1 -1
- package/assets/esri/core/workers/chunks/{826c983100569586b61f.js → 1571e8213feb518ff100.js} +1 -1
- package/assets/esri/core/workers/chunks/{929c9b7cdab7c4ca3d87.js → 17c51f5a13f471e6656a.js} +1 -1
- package/assets/esri/core/workers/chunks/{37c03cfc19086ce631c6.js → 18a8b9e2f6bd89827189.js} +1 -1
- package/assets/esri/core/workers/chunks/{ed0bcc66fb1e0ee75a4b.js → 1f34957ef42e5b5977d0.js} +1 -1
- package/assets/esri/core/workers/chunks/236de5f0476f6080ee62.js +1 -0
- package/assets/esri/core/workers/chunks/288ca064cd0472439276.js +1 -0
- package/assets/esri/core/workers/chunks/29aa6046534a43d7ce19.js +1 -0
- package/assets/esri/core/workers/chunks/2e1291cd831592216446.js +1 -0
- package/assets/esri/core/workers/chunks/{68a59ce98177d8513337.js → 3403cb53e4e60923c5fc.js} +1 -1
- package/assets/esri/core/workers/chunks/34bed896b68993cabaa1.js +1 -0
- package/assets/esri/core/workers/chunks/{99619fcb772807c74f3b.js → 444829a840b8ded16fd7.js} +1 -1
- package/assets/esri/core/workers/chunks/467b5faa1c90d9821609.js +1 -0
- package/assets/esri/core/workers/chunks/49353182a16218a84251.js +1 -0
- package/assets/esri/core/workers/chunks/{fc046a15466c25d081ff.js → 4a2e93b12d60e8d92491.js} +1 -1
- package/assets/esri/core/workers/chunks/4de996ebc432f5e149bc.js +1 -0
- package/assets/esri/core/workers/chunks/50976921acf7bd636123.js +1 -0
- package/assets/esri/core/workers/chunks/5144ef135e0deb48c7bf.js +1 -0
- package/assets/esri/core/workers/chunks/584bbb675ed225f68171.js +1 -0
- package/assets/esri/core/workers/chunks/5a90d121ba79613cc2aa.js +1 -0
- package/assets/esri/core/workers/chunks/5b286f3f3deea10bdd91.js +1 -0
- package/assets/esri/core/workers/chunks/{0463ba46df855a92b9c0.js → 65ccd204ec3053687a77.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f8c6a179e39fd4c5e6f.js → 6a2b8d6a9bada45ab66d.js} +1 -1
- package/assets/esri/core/workers/chunks/6be326edd9829781d926.js +1 -0
- package/assets/esri/core/workers/chunks/6ea99a6e21b09674f6b3.js +1 -0
- package/assets/esri/core/workers/chunks/{5bcb3240b3c005e5fe72.js → 7215af7810d15e89aa5a.js} +1 -1
- package/assets/esri/core/workers/chunks/7509c1693ffedc0fa018.js +1 -0
- package/assets/esri/core/workers/chunks/7b0b75878370b3475fe5.js +1 -0
- package/assets/esri/core/workers/chunks/{bfedd6ebff817c9b31c0.js → 7b618c449d793aacd874.js} +1 -1
- package/assets/esri/core/workers/chunks/{2460f3b6ada6ae900dec.js → 7c0ff01f081c7e9050d2.js} +1 -1
- package/assets/esri/core/workers/chunks/806a7db0084214a53c79.js +1 -0
- package/assets/esri/core/workers/chunks/{8fa0a14165d43ffe87a5.js → 8325b577f52936f86cff.js} +1 -1
- package/assets/esri/core/workers/chunks/84d8e77d78d0d5134083.js +1 -0
- package/assets/esri/core/workers/chunks/{dd13772a5e2eccc6a2bc.js → 8598f762f15ca68d52b7.js} +1 -1
- package/assets/esri/core/workers/chunks/85b1ae51da3689bccf92.js +1 -0
- package/assets/esri/core/workers/chunks/873b0cbd343dc71755ed.js +1 -0
- package/assets/esri/core/workers/chunks/8804b8489eeab888275b.js +1 -0
- package/assets/esri/core/workers/chunks/{5ec98f4ddac707d0fbd1.js → 88815d533808aabb1fa9.js} +1 -1
- package/assets/esri/core/workers/chunks/8c8c0ecdf44fdbb56000.js +1 -0
- package/assets/esri/core/workers/chunks/{f2124f4d0f2b8a91f0ea.js → 90c5edcd8a609224ce55.js} +1 -1
- package/assets/esri/core/workers/chunks/{bac9fc90e6756e211160.js → 94d9951509c0db09547a.js} +1 -1
- package/assets/esri/core/workers/chunks/996d6ae7f2e2273f9bce.js +1 -0
- package/assets/esri/core/workers/chunks/{c1135cb02ec46c491459.js → 9ce961bc390202c87941.js} +1 -1
- package/assets/esri/core/workers/chunks/9fbc7d2e0326be41b382.js +1 -0
- package/assets/esri/core/workers/chunks/a363fb40096679b011f6.js +1 -0
- package/assets/esri/core/workers/chunks/a41522b0a853b85c8269.js +1 -0
- package/assets/esri/core/workers/chunks/a763c11d2b02b3ec36ad.js +1 -0
- package/assets/esri/core/workers/chunks/{aeaa1667c2d9f1b3366b.js → a85ed251d3d3668e474f.js} +1 -1
- package/assets/esri/core/workers/chunks/{69fd99b7c76e9992ccf3.js → b32bf9808cb4be3a6bd0.js} +1 -1
- package/assets/esri/core/workers/chunks/b33a6fbbc8de2969b1ca.js +1 -0
- package/assets/esri/core/workers/chunks/b548e6b3add4154ac4e6.js +1 -0
- package/assets/esri/core/workers/chunks/b6c55bdd8c957b062bc1.js +1 -0
- package/assets/esri/core/workers/chunks/b90509b2088fd444fc39.js +1 -0
- package/assets/esri/core/workers/chunks/{b9e9cb354822c6d995a4.js → bea473dba8e57617a71d.js} +1 -1
- package/assets/esri/core/workers/chunks/{0d02c6ad1f4688bfa374.js → bf7c44644fe7b0aa60cf.js} +1 -1
- package/assets/esri/core/workers/chunks/c1a70f025e90d97fac6d.js +1 -0
- package/assets/esri/core/workers/chunks/{d72488db62fcf39447b6.js → c23d965a55215168a1a2.js} +1 -1
- package/assets/esri/core/workers/chunks/c3192cfe115ce354ffbc.js +1 -0
- package/assets/esri/core/workers/chunks/c3d768801f2f6cb9d5d0.js +1 -0
- package/assets/esri/core/workers/chunks/d09a0b2dc3a6fc10fa41.js +1 -0
- package/assets/esri/core/workers/chunks/d21526570300597aa6ae.js +1 -0
- package/assets/esri/core/workers/chunks/d2ffb0f21363c0d3d2a9.js +1 -0
- package/assets/esri/core/workers/chunks/{ec10151a2a95e95a0bb5.js → d304fe0ac836afd46e3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{37a7bd30352b1309b8f8.js → d3f05b8e4bd53eb1eb9d.js} +1 -1
- package/assets/esri/core/workers/chunks/{17de7a324dfa7f57ad5d.js → d780e946149b1c3d1246.js} +1 -1
- package/assets/esri/core/workers/chunks/dc037f1496bb4aa40d10.js +1 -0
- package/assets/esri/core/workers/chunks/{8cbb04a9065aa3756638.js → dc04a8ba6c770bdc2bd4.js} +1 -1
- package/assets/esri/core/workers/chunks/dd5a71818a989a6edb00.js +1 -0
- package/assets/esri/core/workers/chunks/{89820b200ee44e678af5.js → dd891a98105904f8a06b.js} +1 -1
- package/assets/esri/core/workers/chunks/e17edd48179d41ddf1e7.js +1 -0
- package/assets/esri/core/workers/chunks/e323086de328a164f7f0.js +1 -0
- package/assets/esri/core/workers/chunks/ea50a6a994e5ee578d97.js +1 -0
- package/assets/esri/core/workers/chunks/{655b55ac0cd533d7e9d7.js → ecf074743183c1749581.js} +1 -1
- package/assets/esri/core/workers/chunks/f067b4fc65b835437afd.js +1 -0
- package/assets/esri/core/workers/chunks/f0e5c82e9c4fbe3c9d0a.js +1 -0
- package/assets/esri/core/workers/chunks/f96b24c075771d028e20.js +1 -0
- package/assets/esri/core/workers/chunks/{5790d171072b3c7d108f.js → f9a6de00c628538f07f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{2c607d30ff8ca1b61286.js → fe0c3b7c9b428d9c3f25.js} +1 -1
- package/assets/esri/core/workers/chunks/{49a1a633bb0d93764aae.js → fffea9587ec14c6d34e8.js} +1 -1
- package/assets/esri/themes/base/_mixins.scss +1 -1
- package/assets/esri/themes/base/widgets/_Directions.scss +0 -6
- package/assets/esri/themes/base/widgets/_Legend.scss +8 -7
- 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/Directions/t9n/Directions.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_en.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_nb.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
- package/chunks/Fog.glsl.js +12 -24
- package/chunks/Heatmap.glsl.js +10 -0
- package/chunks/HeatmapDensity.glsl.js +21 -0
- package/chunks/Precipitation.glsl.js +2 -2
- package/core/maybe.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/interfaces.d.ts +2432 -231
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/support/imageryRendererUtils.js +1 -1
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/layers/support/rasterFunctions/vectorFieldUtils.js +1 -1
- package/package.json +2 -2
- package/rasterRenderers.js +1 -1
- package/renderers/DictionaryRenderer.js +1 -1
- package/renderers/FlowRenderer.d.ts +4 -0
- package/renderers/FlowRenderer.js +5 -0
- package/renderers/support/DictionaryLoader.js +5 -0
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/renderers/support/rasterRendererHelper.js +1 -1
- package/renderers/support/rendererConversion.js +1 -1
- package/rest/geoprocessor/GPOptions.js +1 -1
- package/rest/print.js +1 -1
- package/rest/support/DirectionLine.js +1 -1
- package/rest/support/DirectionPoint.js +1 -1
- package/rest/support/FeatureSet.js +1 -1
- package/rest/support/LegendLayer.js +1 -1
- package/rest/support/LinearUnit.js +1 -1
- package/rest/support/PointBarrier.js +1 -1
- package/rest/support/PolygonBarrier.js +1 -1
- package/rest/support/PolylineBarrier.js +1 -1
- package/rest/support/RasterData.js +1 -1
- package/smartMapping/raster/renderers/flow.js +5 -0
- package/smartMapping/raster/support/utils.js +1 -1
- package/support/basemapUtils.js +1 -1
- package/support/featureFlags.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/TextSymbol3DLayer.js +1 -1
- package/symbols/cim/effects/EffectArrow.js +1 -1
- package/symbols/support/Symbol3DHalo.js +1 -1
- package/symbols/support/Symbol3DTextBackground.js +5 -0
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/tasks/Geoprocessor.js +1 -1
- package/views/2d/FrameTask.js +1 -1
- package/views/2d/ViewState.js +1 -1
- package/views/2d/constraints/GeometryConstraint.js +1 -1
- package/views/2d/engine/BitmapTileContainer.js +1 -1
- package/views/2d/engine/DisplayObject.js +1 -1
- package/views/2d/engine/RasterTileContainer.js +1 -1
- package/views/2d/engine/RasterVFContainer.js +5 -0
- package/views/2d/engine/RasterVFDisplayObject.js +1 -1
- package/views/2d/engine/RasterVFTileContainer.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/flow/BrushFlow.js +1 -1
- package/views/2d/engine/flow/FlowDisplayData.js +1 -1
- package/views/2d/engine/flow/FlowGLResources.js +1 -1
- package/views/2d/engine/flow/FlowStyle.js +1 -1
- package/views/2d/engine/flow/FlowView2D.js +5 -0
- package/views/2d/engine/flow/dataUtils.js +1 -1
- package/views/2d/engine/flow/flowRendererUtils.js +5 -0
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/brushes/raster/BrushVectorField.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLBaseTextTemplate.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/util/Matcher.js +1 -1
- package/views/2d/input/handlers/DragPan.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/KMLLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/WMSLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/views/2d/layers/features/Pipeline.js +1 -1
- package/views/2d/layers/features/createSymbolSchema.js +5 -0
- package/views/2d/layers/features/processors/HeatmapProcessor.js +1 -1
- package/views/2d/layers/features/processors/SymbolProcessor.js +1 -1
- package/views/2d/layers/features/schemaUtils.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/ClusterStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
- package/views/2d/layers/features/tileRenderers/SymbolTileRenderer.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryVFStrategy.js +5 -0
- package/views/2d/layers/imagery/ImageryView2D.js +1 -1
- package/views/2d/layers/imagery/VectorFieldTileView2D.js +1 -1
- package/views/2d/layers/imagery/VectorFieldView2D.js +5 -0
- package/views/2d/layers/support/FeatureCommandQueue.js +1 -1
- package/views/2d/navigation/MapViewNavigation.js +1 -1
- package/views/2d/navigation/actions/Pan.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/Precipitation.js +1 -1
- package/views/3d/environment/PrecipitationTechnique.js +1 -1
- package/views/3d/environment/SceneViewEnvironment.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.js +1 -1
- package/views/3d/environment/weather.js +1 -1
- package/views/3d/interactive/analysisTools/lineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/IRouteLayerView3D.js +4 -0
- package/views/3d/layers/RouteLayerView3D.js +5 -0
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/graphics/labelPlacement.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +5 -0
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextTexture.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +5 -0
- package/views/3d/webgl-engine/shaders/Heatmap.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +5 -0
- package/views/MapView.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/View.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/draw/support/HighlightHelper.js +5 -0
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/layerUtils.js +1 -1
- package/views/interactive/InteractiveToolBase.js +1 -1
- package/views/support/WatchUpdatingTracking.js +1 -1
- package/views/support/projectionUtils.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/enums.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
- package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
- package/widgets/BasemapToggle.js +1 -1
- package/widgets/Directions/support/resources.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Legend/styles/Card.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Weather.js +1 -1
- package/widgets/Widget.js +1 -1
- package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
- package/widgets/support/vnodeCache.js +5 -0
- package/widgets/support/widgetUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +0 -1
- package/assets/esri/core/workers/chunks/0c15d77d8e817cf45a9a.js +0 -1
- package/assets/esri/core/workers/chunks/0cd0a6eef51fc5b9ea61.js +0 -1
- package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +0 -1
- package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +0 -1
- package/assets/esri/core/workers/chunks/1877ab1b6a115dbba1c5.js +0 -1
- package/assets/esri/core/workers/chunks/197ec52641aed20029c6.js +0 -1
- package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +0 -1
- package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +0 -1
- package/assets/esri/core/workers/chunks/1c733b7db092a2a88ef3.js +0 -1
- package/assets/esri/core/workers/chunks/2629adf79e7fd9f25f07.js +0 -1
- package/assets/esri/core/workers/chunks/27474b007988855bea9d.js +0 -1
- package/assets/esri/core/workers/chunks/2b25fc7945a187c2bb9d.js +0 -1
- package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +0 -1
- package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +0 -1
- package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +0 -1
- package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +0 -1
- package/assets/esri/core/workers/chunks/4be35af7d6babbfe9d84.js +0 -1
- package/assets/esri/core/workers/chunks/5457962a70bd3c557a75.js +0 -1
- package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +0 -1
- package/assets/esri/core/workers/chunks/57b349d1dbc0bed75b79.js +0 -1
- package/assets/esri/core/workers/chunks/5d11b97b667921d67ae7.js +0 -1
- package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +0 -1
- package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +0 -1
- package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +0 -1
- package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +0 -1
- package/assets/esri/core/workers/chunks/952980635afc7ec81804.js +0 -1
- package/assets/esri/core/workers/chunks/96f148a556a2418038de.js +0 -1
- package/assets/esri/core/workers/chunks/9876a1bae350795fab36.js +0 -1
- package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +0 -1
- package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +0 -1
- package/assets/esri/core/workers/chunks/b3f5e91116112b0b612a.js +0 -1
- package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +0 -1
- package/assets/esri/core/workers/chunks/be588873c16770ceb9ef.js +0 -1
- package/assets/esri/core/workers/chunks/bf6dda4a2af14c4b7716.js +0 -1
- package/assets/esri/core/workers/chunks/c2253a9f29c1aabb2b75.js +0 -1
- package/assets/esri/core/workers/chunks/c984b3040e120e502b11.js +0 -1
- package/assets/esri/core/workers/chunks/cdbc005eebec1503b99d.js +0 -1
- package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +0 -1
- package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +0 -1
- package/assets/esri/core/workers/chunks/d98dab12b71912fa397b.js +0 -1
- package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +0 -1
- package/assets/esri/core/workers/chunks/e218bde41ffbcc5194f5.js +0 -1
- package/assets/esri/core/workers/chunks/e287f49184d076af17e2.js +0 -1
- package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +0 -1
- package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +0 -1
- package/assets/esri/core/workers/chunks/eb82ff10cef2bde6e57f.js +0 -1
- package/assets/esri/core/workers/chunks/ee6e0db58dc64410e687.js +0 -1
- package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +0 -1
- package/renderers/AnimatedFlowRenderer.d.ts +0 -4
- package/renderers/AnimatedFlowRenderer.js +0 -5
- package/views/2d/engine/flow/AnimatedFlowView2D.js +0 -5
- package/views/2d/engine/flow/animatedFlowRendererUtils.js +0 -5
- package/views/2d/layers/imagery/ImageryGraphicsView2D.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4464,3172],{99880:(e,t,r)=>{r.d(t,{V:()=>l});var n=r(68773),i=(r(3172),r(20102)),s=r(92604),o=r(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!n.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new i.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(n.Z.assetsPath,e)}},80539:(e,t,r)=>{r.d(t,{Z:()=>P});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,p=r(1654),h=r(5600),d=r(75215),m=r(52421),f=r(52011),y=r(58971),g=r(39020);class v{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 b=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 F?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function R(e){if(e&&e.length)return e[0]}function x(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 C(e,t,r,n){t&&t.forEach(((t,i,s)=>{e.push(t),C(e,r.call(n,t,i,s),r,n)}))}const I=new Set,S=new Set,O=new Set,T=new Map;let N=0,F=c=class extends o.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new v,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:N++})}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 C(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=R(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=R(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+x(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=R(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,p.Os)((()=>this._dispatchChange()))),t){if(o=n.splice(e,t),this.hasEventListener("before-remove")){const t=b.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);b.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b.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);b.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=b.acquire();i.target=this,i.cancellable=!0;const a=b.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));b.release(a),b.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=b.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,b.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b.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;I.clear(),S.clear(),O.clear();for(const{added:t,removed:r}of e){if(t)if(0===O.size&&0===S.size)for(const e of t)I.add(e);else for(const e of t)S.has(e)?(O.add(e),S.delete(e)):O.has(e)||I.add(e);if(r)if(0===O.size&&0===I.size)for(const e of r)S.add(e);else for(const e of r)I.has(e)?I.delete(e):(O.delete(e),S.add(e))}const r=s.Z.acquire();I.forEach((e=>{r.push(e)}));const n=s.Z.acquire();S.forEach((e=>{n.push(e)}));const i=this._items,o=t.items,a=s.Z.acquire();if(O.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)}I.clear(),S.clear(),O.clear()}};F.ofType=e=>{if(!e)return c;if(T.has(e))return T.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,m.c)({Type:e,ensureType:"function"==typeof e?(0,d.se)(e):(0,d.N7)(e)})],r.prototype,"itemType",void 0),r=(0,i._)([(0,f.j)(`esri.core.Collection<${t}>`)],r),T.set(e,r),r},(0,i._)([(0,h.Cb)()],F.prototype,"length",void 0),(0,i._)([(0,h.Cb)()],F.prototype,"items",null),F=c=(0,i._)([(0,f.j)("esri.core.Collection")],F);const P=F},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},52421:(e,t,r)=>{function n(e){return(t,r)=>{t[r]=e}}r.d(t,{c:()=>n})},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:()=>S,$6:()=>l,Ue:()=>u,zE:()=>c,dD:()=>w,hh:()=>F,vr:()=>P,Ds:()=>N,as:()=>R,WW:()=>x,R8:()=>_,D_:()=>b,Hc:()=>d,y8:()=>O,fu:()=>y,$F:()=>g,d1:()=>C,DB:()=>I,r9:()=>m,k_:()=>p,H9:()=>f,Yn:()=>E,gx:()=>T,Hl:()=>v});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 p(e,t="Aborted"){if(d(e))throw c(t)}function h(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function d(e){const t=h(e);return(0,a.pC)(t)&&t.aborted}function m(e){if(b(e))throw e}function f(e){if(!b(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 p(r),(0,o.IH)(r,"abort",(()=>t(c())))}function v(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 b(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!b(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 R(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return R(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return u((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const i={promise:t||Promise.resolve(t)};r.push(i),i.promise.then((e=>{i.value=e})).catch((e=>{i.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function x(e){return R(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function C(e){return Promise.reject(e)}function I(e){return Promise.resolve(e)}function S(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 O(e){return e&&"function"==typeof e.then}function T(e){return O(e)?e:Promise.resolve(e)}function N(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=T(e(...u,n.signal));const i=r;S(t).then((()=>{r===i&&(s?n.abort():o=n)}))}else r=1,r=T(e(...u));const p=()=>{const e=n;n=i=r=o=null,null!=e&&l(...e)},h=r,d=i;return h.then(p,p),h.then(d.resolve,d.reject),(0,a.j0)(d.promise)};return l}function F(){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 P(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 E(e){return Promise.resolve().then((()=>{p(e)}))}},17452:(e,t,r)=>{r.d(t,{R9:()=>v,qg:()=>N,tD:()=>M,ZN:()=>he,fl:()=>de,Ie:()=>ue,sJ:()=>Y,AH:()=>Q,io:()=>K,L:()=>x,TI:()=>R,vt:()=>ae,oh:()=>q,P$:()=>$,Ml:()=>me,ed:()=>A,b7:()=>T,D6:()=>L,tm:()=>j,YP:()=>G,jc:()=>B,HK:()=>H,$U:()=>re,oC:()=>ee,kl:()=>V,v_:()=>z,hF:()=>J,_l:()=>X,PF:()=>k,Fv:()=>U,B7:()=>O,u0:()=>I,Yd:()=>oe,Hu:()=>pe,Qj:()=>le,hO:()=>ne,mN:()=>C});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,p=/^\s*http:/i,h=/^\s*https:/i,d=/^\s*file:/i,m=/:\d+$/,f=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{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 b={};let _=new v(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 R=()=>_,x=()=>w;function C(e){const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=I(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 I(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 S(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function O(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=>S(e)?i+encodeURIComponent(JSON.stringify(e)):i+encodeURIComponent(e))).join("&"):S(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function T(e=!1){let t,r=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)),C(r)}function N(e){const t=A(e);let r,n;if(t){const e=P(t.proxyUrl);r=e.path,n=e.query?I(e.query):null}if(r){const t=C(e);e=r+"?"+t.path;const i=O({...n,...t.query});i&&(e=`${e}?${i}`)}return e}const F={path:"",query:""};function P(e){const t=e.indexOf("?");return-1!==t?(F.path=e.slice(0,t),F.query=e.slice(t+1)):(F.path=e,F.query=null),F}function E(e){return(e=se(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=P(e).path),!0)).toLowerCase()}function M(e){const t={proxyUrl:e.proxyUrl,urlPrefix:E(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=E(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function j(e,t){return e=D(e),t=D(t),se(e)===se(t)}function D(e){const t=(e=U(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function q(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 L(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 V(e){if("string"==typeof e){if(!G(e))return!0;e=ce(e)}if(L(e,_))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=Z(t[r]);for(let t=0;t<n.length;t++)if(L(e,n[t]))return!0}return!1}function Z(e){return b[e]||(te(e)||ee(e)?b[e]=[new v(J(e))]:b[e]=[new v(`http://${e}`),new v(`https://${e}`)]),b[e]}function J(e,t=w,r){return ee(e)?r&&r.preserveProtocolRelative?e:"http"===_.scheme&&_.authority===$(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)(z("/"===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 k(e,t=w,r){if(!G(e))return e;const n=U(e),i=n.toLowerCase(),s=U(t).toLowerCase().replace(/\/+$/,""),o=r?U(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 U(e){return function(e){const t=l.httpsDomains;if(!function(e){return p.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),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===_.scheme&&n===_.authority&&!f.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=P(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function z(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(G(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return d.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function $(e,t=!1){if(B(e)||H(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 G(e){return ee(e)||te(e)}function B(e){return null!=e&&"blob:"===e.slice(0,5)}function H(e){return"data:"===e.slice(0,5)}function Q(e){const t=Y(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const W=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(W);if(!t)return null;const[,r,n,i]=t;return{mediaType:r,isBase64:!!n,data:i}}function X(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(p,"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(G(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=C(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const i=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(i,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&G(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 v(J(e)):(e.scheme||(e.scheme=_.scheme),e)}function pe(e,t){const r=C(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function he(e,t,r){const n=C(e),i=n.query||{};return i[t]=String(r),`${n.path}?${O(i)}`}function de(e,t){const r=C(e),n=r.query||{};for(const e in t)n[e]=t[e];const i=O(n);return i?`${r.path}?${i}`:r.path}function me(e){if((0,o.Wi)(e))return null;const t=e.match(fe);return t?t[1]:null}const fe=/.*?\.([^\/]*)$/},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)},33955:(e,t,r)=>{r.d(t,{im:()=>f,q9:()=>v,Ji:()=>y,YX:()=>c,aW:()=>p,wp:()=>h,oU:()=>m,l9:()=>d});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 p(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function m(e){return void 0!==e.rings}function f(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:h(e)?a.Z.fromJSON(e):d(e)?u.Z.fromJSON(e):m(e)?l.Z.fromJSON(e):p(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function y(e){return e?h(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":p(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function v(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.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.w)()({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")},66984:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_t});var n,i,s=r(43697),o=r(51773),a=r(70586),l=r(16453),u=r(95330),c=r(5600),p=(r(67676),r(80442),r(75215)),h=r(52011),d=r(30556),m=r(29600),f=r(66577),y=r(38171),g=r(30030),v=r(3172),b=r(20102),_=r(35454),w=r(22974),R=r(92604),x=r(17452),C=r(44422),I=r(71715),S=r(21506),O=r(35956),T=r(96674),N=r(36030);!function(e){e[e.Mosaic=0]="Mosaic",e[e.Item=1]="Item",e[e.ItemGroup=2]="ItemGroup"}(i||(i={}));const F=new Set(["raster","raster2","dem","fillraster"]),P=new Set(["rasters"]),E=e=>e&&e.rasterFunction?D.fromJSON(e):e,M=e=>e&&e instanceof D?e.toJSON():e,A=e=>(null==e?void 0:e.functionName)&&!e.declaredClass,j=e=>A(e)?new D(e):e;let D=n=class extends T.wq{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.rasterFunctionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some((t=>F.has(t.toLowerCase())&&A(e[t])))||t.some((t=>P.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some((e=>A(e)))))){e=(0,w.d9)(e);for(const r of t)F.has(r.toLowerCase())?e[r]=j(e[r]):P.has(r.toLowerCase())&&Array.isArray(e[r])&&(e[r]=e[r].map((e=>j(e))))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,w.d9)(e);const t={};for(const r of Object.keys(e))F.has(r.toLowerCase())?t[r]=E(e[r]):P.has(r.toLowerCase())&&Array.isArray(e[r])?t[r]=e[r].map(E):t[r]=e[r];return t})(e)}writeFunctionArguments(e,t,r){const n={};for(const t of Object.keys(e))F.has(t.toLowerCase())?n[t]=M(e[t]):P.has(t.toLowerCase())&&Array.isArray(e[t])?n[t]=e[t].map(M):n[t]=M(e[t]);t[r]=n}readFunctionName(e,t){const r=t.rasterFunctionInfos;return t.name||(r&&r.length&&"None"!==r[0].name?r[0].name:t.rasterFunctionDefinition?t.rasterFunctionDefinition.name:t.rasterFunction)}clone(){return new n({functionName:this.functionName,functionArguments:(0,w.d9)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,w.d9)(this.rasterFunctionDefinition)})}};(0,s._)([(0,c.Cb)({json:{type:Object,name:"rasterFunctionArguments"}})],D.prototype,"functionArguments",null),(0,s._)([(0,I.r)("functionArguments")],D.prototype,"readFunctionArguments",null),(0,s._)([(0,d.c)("functionArguments")],D.prototype,"writeFunctionArguments",null),(0,s._)([(0,c.Cb)({json:{type:String,write:{target:"rasterFunction"}}})],D.prototype,"functionName",void 0),(0,s._)([(0,I.r)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],D.prototype,"readFunctionName",null),(0,s._)([(0,N.J)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),(0,c.Cb)({json:{default:"unknown"}})],D.prototype,"outputPixelType",void 0),(0,s._)([(0,c.Cb)({type:String,json:{read:!0,write:!0}})],D.prototype,"variableName",void 0),(0,s._)([(0,c.Cb)({type:Object,json:{name:"rasterFunctionDefinition"}})],D.prototype,"rasterFunctionDefinition",void 0),D=n=(0,s._)([(0,h.j)("esri.layers.support.RasterFunction")],D);const q=D;var L=r(93010),V=r(75509),Z=r(27922);const J={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767]},k={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},U=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function z(e){return U.has(e.type)}function $(e,t){if(!e||!t)return(0,w.d9)(e||t);const r=(0,w.d9)(e);return"none"!==t.functionName.toLowerCase()&&(G(r.functionArguments).Raster=t),r}function G(e){const t=e.Raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?G(t.functionArguments):e}const B={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function H(e,t){const r=J[String(t).toLowerCase()];return r&&e.push([Math.floor(r[0]-1),0,0,0],[Math.ceil(r[1]+1),0,0,0]),e}function Q(e){if(!e)return;const{fields:t}=e,r=t&&t.find((e=>e&&e.name&&"value"===e.name.toLowerCase()));return r&&r.name}function W(e){const t=[];return e.forEach((e=>{const r=e;if(Array.isArray(r))t.push(r);else{if(null==r.min||null==r.max)return;const e=[r.min,r.max,r.avg||0,r.stddev||0];t.push(e)}})),t}var Y,X=r(90578),K=r(13473);const ee=(0,_.w)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),te=(0,_.w)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let re=Y=class extends T.wq{constructor(e){super(e),this.ascending=!0,this.itemRenderingRule=null,this.lockRasterIds=null,this.method=null,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=null,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return te.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}readOperation(e,t){const r=t.mosaicOperation,n=t.mosaicOperator&&t.mosaicOperator.toLowerCase(),i=r||(n?ee.toJSON(n):null);return ee.fromJSON(i)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new Y({ascending:this.ascending,itemRenderingRule:(0,w.d9)(this.itemRenderingRule),lockRasterIds:(0,w.d9)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,w.d9)(this.multidimensionalDefinition),objectIds:(0,w.d9)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,w.d9)(this.viewpoint),where:this.where})}};(0,s._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],re.prototype,"ascending",void 0),(0,s._)([(0,I.r)("ascending",["ascending","sortAscending"])],re.prototype,"readAscending",null),(0,s._)([(0,c.Cb)({type:q,json:{write:!0}})],re.prototype,"itemRenderingRule",void 0),(0,s._)([(0,c.Cb)({type:[p.z8],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],re.prototype,"lockRasterIds",void 0),(0,s._)([(0,c.Cb)({type:String,json:{type:te.jsonValues,write:{target:"mosaicMethod",writer:te.write}}})],re.prototype,"method",void 0),(0,s._)([(0,I.r)("method",["mosaicMethod","defaultMosaicMethod"])],re.prototype,"readMethod",null),(0,s._)([(0,c.Cb)({type:[O.Z],json:{write:!0}})],re.prototype,"multidimensionalDefinition",void 0),(0,s._)([(0,c.Cb)({type:[p.z8],json:{name:"fids",write:!0}})],re.prototype,"objectIds",void 0),(0,s._)([(0,c.Cb)({json:{type:ee.jsonValues,read:{reader:ee.read},write:{target:"mosaicOperation",writer:ee.write}}})],re.prototype,"operation",void 0),(0,s._)([(0,I.r)("operation",["mosaicOperation","mosaicOperator"])],re.prototype,"readOperation",null),(0,s._)([(0,c.Cb)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],re.prototype,"sortField",void 0),(0,s._)([(0,c.Cb)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],re.prototype,"sortValue",void 0),(0,s._)([(0,X.p)("sortValue")],re.prototype,"castSortValue",null),(0,s._)([(0,c.Cb)({type:K.Z,json:{write:!0}})],re.prototype,"viewpoint",void 0),(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],re.prototype,"where",void 0),re=Y=(0,s._)([(0,h.j)("esri.layers.support.MosaicRule")],re);const ne=re;var ie=r(69608);let se=class extends T.wq{constructor(){super(...arguments),this.layer=null,this.adjustAspectRatio=void 0,this.bandIds=void 0,this.compression=void 0,this.compressionQuality=void 0,this.compressionTolerance=.01,this.format=null,this.interpolation=null,this.noData=null,this.noDataInterpretation=void 0,this.pixelType=void 0,this.lercVersion=2}writeAdjustAspectRatio(e,t,r){this.layer.version<10.3||(t[r]=e)}writeCompressionQuality(e,t,r){this.format&&this.format.toLowerCase().indexOf("jpg")>-1&&null!=e&&(t[r]=e)}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}writeLercVersion(e,t,r){"lerc"===this.format&&this.layer.version>=10.5&&(t[r]=e)}get version(){const e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("renderingRule"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("renderer"),e.commitProperty("definitionExpression"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const r=e.definitionExpression;return t?r&&r!==t.where&&(t=t.clone(),t.where=r):r&&(t=new ne({where:r})),t}get renderingRule(){const e=this.layer;let t=e.renderingRule;const r=e.pixelFilter,n=!e.format||e.format.indexOf("jpg")>-1||e.format.indexOf("png")>-1;return t=this._addResampleRasterFunction(t),n&&!r&&(t=this.combineRendererWithRenderingRule()),t}combineRendererWithRenderingRule(){var e;const t=this.layer,{rasterInfo:r,renderingRule:n,renderer:i}=t;return i&&z(i)?$(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const r=new q;r.functionName="Stretch";const n=B[V.v.toJSON(e.stretchType)],i="u8",s={StretchType:n,Statistics:W(e.statistics),DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(s.Min=e.outputMin),null!=e.outputMax&&(s.Max=e.outputMax),n===B.standardDeviation?(s.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType=i):n===B.percentClip?(s.MinPercent=e.minPercent,s.MaxPercent=e.maxPercent,r.outputPixelType=i):n===B.minMax?r.outputPixelType=i:n===B.sigmoid&&(s.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=s,r.variableName="Raster",e.colorRamp){const n=e.colorRamp,i=new q,s=(0,L.Uh)(n);return s?i.functionArguments={colorRamp:s}:!t.convertColorRampToColormap||"algorithmic"!==n.type&&"multipart"!==n.type?i.functionArguments={colorRamp:e.colorRamp.toJSON()}:i.functionArguments={Colormap:(0,L.Jw)(n,256)},i.variableName="Raster",i.functionName="Colormap",i.functionArguments.Raster=r,i}return r}(e,t);case"class-breaks":return function(e,t){const r=[],n=[],i=[],s=[],o=1e-6,{pixelType:a,rasterAttributeTable:l}=t,u=l&&l.features,c=Q(l);if(u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach(((t,r)=>{const n=t.symbol.color;let i;n.a&&u.forEach((o=>{i=o.attributes[e.field],(i>=t.minValue&&i<t.maxValue||r===e.classBreakInfos.length-1&&i>=t.minValue)&&s.push([o.attributes[c],n.r,n.g,n.b])}))}));const t=a?H(s,a):s,r=new q;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=t,r.variableName="Raster",r}e.classBreakInfos.forEach(((e,t)=>{const a=e.symbol&&e.symbol.color;a.a?(0===t?r.push(e.minValue,e.maxValue+o):r.push(e.minValue+o,e.maxValue+o),n.push(t),s.push([t,a.r,a.g,a.b])):i.push(e.minValue,e.maxValue)}));const p=a?H(s,a):s,h=new q;h.functionName="Remap",h.functionArguments={InputRanges:r,OutputValues:n,NoDataRanges:i},h.variableName="Raster";const d=new q;return d.functionName="Colormap",d.functionArguments={Colormap:p,Raster:h},d}(e,t);case"unique-value":return function(e,t){var r;const n=[],{pixelType:i,rasterAttributeTable:s}=t,o=s&&s.features,a=Q(s),l=null==(r=e.defaultSymbol)?void 0:r.color;let u=!1;if(e.uniqueValueInfos&&(o?o.forEach((t=>{var r;const i=null==(r=e.uniqueValueInfos.find((r=>String(t.attributes[e.field])===String(r.value))))?void 0:r.symbol.color;i?n.push([t.attributes[a],i.r,i.g,i.b]):l&&n.push([t.attributes[a],l.r,l.g,l.b])})):e.uniqueValueInfos.forEach((e=>{var t;if(null==(t=e.symbol.color)||!t.a)return;const r=e.symbol.color;isNaN(+e.value)?u=!0:n.push([+e.value,r.r,r.g,r.b])}))),u)return null;const c=i&&n.length>0?H(n,i):n,p=new q;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=c,p.variableName="Raster",p}(e,t);case"raster-colormap":return function(e,t){const r=e.extractColormap();if(!r||0===r.length)return;const{pixelType:n}=t,i=n?H(r,n):r,s=new q;return s.functionName="Colormap",s.functionArguments={},s.functionArguments.Colormap=i,s}(e,t);case"vector-field":return function(e,t){const r=new q;r.functionName="VectorFieldRenderer";const{dataType:n,bandProperties:i}=t,s="vector-uv"===n;let o,a;i&&2===i.length&&(o=i.map((e=>e.BandName.toLowerCase())).indexOf("magnitude"),a=i.map((e=>e.BandName.toLowerCase())).indexOf("direction")),-1!==o&&null!==o||(o=0,a=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,c=e.visualVariables?e.visualVariables.filter((e=>"Magnitude"===e.field))[0]:new Z.Z,p={magnitudeBandID:o,directionBandID:a,isUVComponents:s,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:k[e.style.toLowerCase().replace("-","_")],minimumMagnitude:c.minDataValue,maximumMagnitude:c.maxDataValue,minimumSymbolSize:c.minSize,maximumSymbolSize:c.maxSize};return r.functionArguments=p,r}(e,t);case"raster-shaded-relief":return function(e,t){if("elevation"!==t.dataType)return new q;const r=new q;r.functionName="Hillshade";const n="traditional"===e.hillshadeType?0:1,i="none"===e.scalingType?1:3,s={HillshadeType:n,SlopeType:i,ZFactor:e.zFactor};return 0===n&&(s.Azimuth=e.azimuth,s.Altitude=e.altitude),3===i&&(s.PSPower=e.pixelSizePower,s.PSZFactor=e.pixelSizeFactor),r.functionArguments=s,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",s.Colormap=(0,L.Jw)(e.colorRamp,256)),r}(e,t);case"flow":throw new Error("Unsupported rendering rule.")}}(i,{rasterAttributeTable:r.attributeTable,pixelType:r.pixelType,dataType:r.dataType,bandProperties:null==(e=r.keyProperties)?void 0:e.BandProperties,convertColorRampToColormap:t.version<10.6}),n):n}_addResampleRasterFunction(e){var t;if("vector-field"!==(null==(t=this.layer.renderer)?void 0:t.type)||"Resample"===(null==e?void 0:e.functionName))return e;const r="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10;return $(new q({functionName:"Resample",functionArguments:{ResamplingType:r,InputCellSize:{x:this.layer.pixelSizeX,y:this.layer.pixelSizeY}}}),e)}};(0,s._)([(0,c.Cb)()],se.prototype,"layer",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],se.prototype,"adjustAspectRatio",void 0),(0,s._)([(0,d.c)("adjustAspectRatio")],se.prototype,"writeAdjustAspectRatio",null),(0,s._)([(0,c.Cb)({json:{write:!0}}),(0,C.B)("layer.bandIds")],se.prototype,"bandIds",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],se.prototype,"compression",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}}),(0,C.B)("layer.compressionQuality")],se.prototype,"compressionQuality",void 0),(0,s._)([(0,d.c)("compressionQuality")],se.prototype,"writeCompressionQuality",null),(0,s._)([(0,c.Cb)({json:{write:!0}}),(0,C.B)("layer.compressionTolerance")],se.prototype,"compressionTolerance",void 0),(0,s._)([(0,d.c)("compressionTolerance")],se.prototype,"writeCompressionTolerance",null),(0,s._)([(0,c.Cb)({json:{write:!0}}),(0,C.B)("layer.format")],se.prototype,"format",void 0),(0,s._)([(0,c.Cb)({type:String,json:{read:{reader:ie.c.read},write:{writer:ie.c.write}}}),(0,C.B)("layer.interpolation")],se.prototype,"interpolation",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}}),(0,C.B)("layer.noData")],se.prototype,"noData",void 0),(0,s._)([(0,c.Cb)({type:String,json:{read:{reader:ie.k.read},write:{writer:ie.k.write}}}),(0,C.B)("layer.noDataInterpretation")],se.prototype,"noDataInterpretation",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],se.prototype,"pixelType",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],se.prototype,"lercVersion",void 0),(0,s._)([(0,d.c)("lercVersion")],se.prototype,"writeLercVersion",null),(0,s._)([(0,c.Cb)({type:Number})],se.prototype,"version",null),(0,s._)([(0,c.Cb)({json:{write:!0}})],se.prototype,"mosaicRule",null),(0,s._)([(0,c.Cb)({json:{write:!0}})],se.prototype,"renderingRule",null),se=(0,s._)([(0,h.j)("esri.layers.mixins.ExportImageServiceParameters")],se);var oe=r(1231),ae=r(99514),le=r(54163),ue=r(48526),ce=r(88281),pe=r(75993),he=r(80676),de=r(67058),me=r(91219),fe=r(70132),ye=r(11282),ge=r(82971);let ve=class extends T.wq{constructor(){super(...arguments),this.north=null,this.up=null,this.spatialReference=null}};(0,s._)([(0,c.Cb)({type:Number,json:{write:!0}})],ve.prototype,"north",void 0),(0,s._)([(0,c.Cb)({type:Number,json:{write:!0}})],ve.prototype,"up",void 0),(0,s._)([(0,c.Cb)({type:ge.Z,json:{write:!0}})],ve.prototype,"spatialReference",void 0),ve=(0,s._)([(0,h.j)("esri.rest.support.ImageAngleResult")],ve);const be=ve;var _e=r(74889);let we=class extends T.wq{constructor(){super(...arguments),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};(0,s._)([(0,c.Cb)({json:{write:!0}})],we.prototype,"catalogItemVisibilities",void 0),(0,s._)([(0,c.Cb)({type:_e.default,json:{write:!0}})],we.prototype,"catalogItems",void 0),(0,s._)([(0,c.Cb)({type:K.Z,json:{write:!0}})],we.prototype,"location",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],we.prototype,"name",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],we.prototype,"objectId",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],we.prototype,"processedValues",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],we.prototype,"properties",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],we.prototype,"value",void 0),we=(0,s._)([(0,h.j)("esri.rest.support.ImageIdentifyResult")],we);const Re=we;let xe=class extends T.wq{constructor(){super(...arguments),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};(0,s._)([(0,c.Cb)({json:{write:!0}})],xe.prototype,"attributes",void 0),(0,s._)([(0,c.Cb)({type:K.Z,json:{write:!0}})],xe.prototype,"location",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],xe.prototype,"locationId",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],xe.prototype,"rasterId",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],xe.prototype,"resolution",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],xe.prototype,"pixelValue",void 0),xe=(0,s._)([(0,h.j)("esri.rest.support.ImageSample")],xe);const Ce=xe;let Ie=class extends T.wq{constructor(){super(...arguments),this.samples=null}};(0,s._)([(0,c.Cb)({type:[Ce],json:{write:!0}})],Ie.prototype,"samples",void 0),Ie=(0,s._)([(0,h.j)("esri.rest.support.ImageSampleResult")],Ie);const Se=Ie;let Oe=class extends T.wq{constructor(){super(...arguments),this.geometries=null}};(0,s._)([(0,c.Cb)({json:{write:!0}})],Oe.prototype,"geometries",void 0),Oe=(0,s._)([(0,h.j)("esri.rest.support.ImagePixelLocationResult")],Oe);const Te=Oe;function Ne(e){const t=null==e?void 0:e.time;if(t&&(null!=t.start||null!=t.end)){const r=[];null!=t.start&&r.push(t.start),null!=t.end&&-1===r.indexOf(t.end)&&r.push(t.end),e.time=r.join(",")}}async function Fe(e,t,r){const n=(0,ye.en)(e),i=t.geometry?[t.geometry]:[],s=await(0,fe.aX)(i),o=t.toJSON();Ne(o);const l=s&&s[0];(0,a.pC)(l)&&(o.geometry=l.toJSON());const u=(0,ye.cv)({...n.query,f:"json",...o});return(0,ye.lA)(u,r)}async function Pe(e,t,r){const n=(0,ye.en)(e),i=t.geometry?[t.geometry]:[];return(0,fe.aX)(i).then((e=>{const i=t.toJSON(),s=e&&e[0];(0,a.pC)(s)&&(i.geometry=JSON.stringify(s.toJSON()));const o=(0,ye.cv)({...n.query,f:"json",...i}),l=(0,ye.lA)(o,r);return(0,v.default)(n.path+"/identify",l)})).then((e=>Re.fromJSON(e.data)))}function Ee(e){const{imageCoordinateSystem:t}=e;if(t){const{id:e,referenceServiceName:r}=t;return null!=e?r?{icsid:e,icsns:r}:{icsid:e}:{ics:t}}return e.toJSON()}function Me(e,t){const r=Ee(e),{icsid:n,icsns:i,wkid:s}=r;return null!=n?null==i||null!=t&&t.toLowerCase().includes("/"+i.toLowerCase()+"/")?`0:${n}`:JSON.stringify(r):s?s.toString():JSON.stringify(r)}r(67900),r(40330),r(98326),r(56545);var Ae,je=r(41818),De=r(6570),qe=(r(9361),r(65091)),Le=r(17332),Ve=(r(58901),r(66677),r(45091),r(8744),r(57444)),Ze=r(5396),Je=r(4967);r(98732),r(75935),r(28141);let ke=Ae=class extends T.wq{constructor(){super(...arguments),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new Ae((0,w.d9)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s._)([(0,c.Cb)({type:[String],json:{name:"angleName",write:!0}})],ke.prototype,"angleNames",void 0),(0,s._)([(0,c.Cb)({type:K.Z,json:{write:!0}})],ke.prototype,"point",void 0),(0,s._)([(0,c.Cb)({type:ge.Z,json:{write:!0}})],ke.prototype,"spatialReference",void 0),(0,s._)([(0,c.Cb)({type:p.z8,json:{write:!0}})],ke.prototype,"rasterId",void 0),ke=Ae=(0,s._)([(0,h.j)("esri.rest.support.ImageAngleParameters")],ke);const Ue=ke;var ze,$e=r(92835),Ge=r(33955);let Be=ze=class extends T.wq{constructor(){super(...arguments),this.geometry=null,this.mosaicRule=null,this.renderingRule=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ge.Ji)(e),t[r]=e.toJSON())}clone(){return new ze((0,w.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,s._)([(0,c.Cb)({types:f.qM,json:{read:Ge.im}})],Be.prototype,"geometry",void 0),(0,s._)([(0,d.c)("geometry")],Be.prototype,"writeGeometry",null),(0,s._)([(0,c.Cb)({type:ne,json:{write:!0}})],Be.prototype,"mosaicRule",void 0),(0,s._)([(0,c.Cb)({type:q,json:{write:!0}})],Be.prototype,"renderingRule",void 0),(0,s._)([(0,c.Cb)({type:K.Z,json:{write:!0}})],Be.prototype,"pixelSize",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],Be.prototype,"raster",void 0),(0,s._)([(0,c.Cb)({type:$e.Z,json:{read:{source:"time"},write:{target:"time"}}})],Be.prototype,"timeExtent",void 0),Be=ze=(0,s._)([(0,h.j)("esri.rest.support.ImageHistogramParameters")],Be);const He=Be;var Qe;let We=Qe=class extends T.wq{constructor(){super(...arguments),this.geometry=null,this.renderingRules=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ge.Ji)(e),t[r]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t&&t.mosaicMethod&&(t=ne.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))}set renderingRule(e){let t=e;t&&t.rasterFunction&&(t=q.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("renderingRule",t)}writeRenderingRule(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[r]=JSON.stringify(e.rasterFunctionDefinition))}writeRenderingRules(e,t,r){null!=e&&(t[r]=JSON.stringify(e.map((e=>e.rasterFunctionDefinition||e.toJSON()))))}writePixelSize(e,t,r){null!=e&&(t[r]=JSON.stringify(e))}writeTimeExtent(e,t,r){if(null!=e){const n=(0,a.pC)(e.start)?e.start.getTime():null,i=(0,a.pC)(e.end)?e.end.getTime():null;t[r]=null!=n?null!=i?`${n},${i}`:`${n}`:null}}clone(){return new Qe((0,w.d9)({geometry:this.geometry,mosaicRule:this.mosaicRule,renderingRule:this.renderingRule,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s._)([(0,c.Cb)({json:{write:!0}})],We.prototype,"geometry",void 0),(0,s._)([(0,d.c)("geometry")],We.prototype,"writeGeometry",null),(0,s._)([(0,c.Cb)({type:ne,json:{write:!0}})],We.prototype,"mosaicRule",null),(0,s._)([(0,d.c)("mosaicRule")],We.prototype,"writeMosaicRule",null),(0,s._)([(0,c.Cb)({type:q,json:{write:!0}})],We.prototype,"renderingRule",null),(0,s._)([(0,d.c)("renderingRule")],We.prototype,"writeRenderingRule",null),(0,s._)([(0,c.Cb)({type:[q],json:{write:!0}})],We.prototype,"renderingRules",void 0),(0,s._)([(0,d.c)("renderingRules")],We.prototype,"writeRenderingRules",null),(0,s._)([(0,c.Cb)({type:K.Z,json:{write:!0}})],We.prototype,"pixelSize",void 0),(0,s._)([(0,d.c)("pixelSize")],We.prototype,"writePixelSize",null),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],We.prototype,"returnGeometry",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],We.prototype,"returnCatalogItems",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],We.prototype,"returnPixelValues",void 0),(0,s._)([(0,c.Cb)({type:Number,json:{write:!0}})],We.prototype,"maxItemCount",void 0),(0,s._)([(0,c.Cb)({type:$e.Z,json:{write:{target:"time"}}})],We.prototype,"timeExtent",void 0),(0,s._)([(0,d.c)("timeExtent")],We.prototype,"writeTimeExtent",null),(0,s._)([(0,c.Cb)({json:{write:!0}})],We.prototype,"raster",void 0),(0,s._)([(0,c.Cb)({json:{write:!0}})],We.prototype,"viewId",void 0),We=Qe=(0,s._)([(0,h.j)("esri.rest.support.ImageIdentifyParameters")],We);const Ye=We;var Xe;let Ke=Xe=class extends T.wq{constructor(){super(...arguments),this.geometries=null,this.rasterId=null}writeGeometry(e,t,r){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map((e=>e.toJSON()))}}clone(){return new Xe({geometries:this.geometries.map((e=>e.clone())),rasterId:this.rasterId})}};(0,s._)([(0,c.Cb)({type:[K.Z],json:{write:!0}})],Ke.prototype,"geometries",void 0),(0,s._)([(0,d.c)("geometries")],Ke.prototype,"writeGeometry",null),(0,s._)([(0,c.Cb)({type:p.z8,json:{write:!0}})],Ke.prototype,"rasterId",void 0),Ke=Xe=(0,s._)([(0,h.j)("esri.rest.support.ImagePixelLocationParameters")],Ke);const et=Ke;var tt;let rt=tt=class extends T.wq{constructor(){super(...arguments),this.geometry=null,this.interpolation="nearest",this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,r){null!=e&&(t.geometryType=(0,Ge.Ji)(e),t[r]=e.toJSON())}set locations(e){if(null!=e&&e.length){const t=new qe.Z({spatialReference:e[0].spatialReference});t.points=e.map((e=>[e.x,e.y])),this._set("locations",e),this.geometry=t}}clone(){return new tt((0,w.d9)({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};(0,s._)([(0,c.Cb)({types:f.qM,json:{read:Ge.im}})],rt.prototype,"geometry",void 0),(0,s._)([(0,d.c)("geometry")],rt.prototype,"writeGeometry",null),(0,s._)([(0,c.Cb)()],rt.prototype,"locations",null),(0,s._)([(0,c.Cb)({type:String,json:{type:ie.c.jsonValues,read:ie.c.read,write:ie.c.write}})],rt.prototype,"interpolation",void 0),(0,s._)([(0,c.Cb)({type:ne,json:{write:!0}})],rt.prototype,"mosaicRule",void 0),(0,s._)([(0,c.Cb)({type:[String],json:{write:!0}})],rt.prototype,"outFields",void 0),(0,s._)([(0,c.Cb)({type:K.Z,json:{write:!0}})],rt.prototype,"pixelSize",void 0),(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],rt.prototype,"raster",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],rt.prototype,"returnFirstValueOnly",void 0),(0,s._)([(0,c.Cb)({type:Number,json:{write:!0}})],rt.prototype,"sampleDistance",void 0),(0,s._)([(0,c.Cb)({type:Number,json:{write:!0}})],rt.prototype,"sampleCount",void 0),(0,s._)([(0,c.Cb)({type:Number,json:{write:!0}})],rt.prototype,"sliceId",void 0),(0,s._)([(0,c.Cb)({type:$e.Z,json:{read:{source:"time"},write:{target:"time"}}})],rt.prototype,"timeExtent",void 0),rt=tt=(0,s._)([(0,h.j)("esri.rest.support.ImageSampleParameters")],rt);const nt=rt;var it=r(23808);const st=R.Z.getLogger("esri.layers.mixins.ArcGISImageService"),ot=(0,_.w)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"}),at=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),lt=(0,c.Eg)(p.q9,{min:0,max:255}),ut=e=>{let t=class extends e{constructor(){super(...arguments),this._functionRasterInfos={},this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this._defaultServiceMosaicRule=null,this._serviceSourceType=null,this._serviceSupportsMosaicRule=null,this.rasterAttributeTableFieldPrefix="Raster.",this.adjustAspectRatio=null,this.bandCount=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelSizeX=null,this.pixelSizeY=null,this.pixelFilter=null,this.raster=void 0,this.viewId=void 0,this.renderer=null,this.symbolizer=null,this.rasterAttributeTable=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=null}initialize(){this._set("exportImageServiceParameters",new se({layer:this}))}readDefaultServiceMosaicRule(e,t){return this._serviceSupportsMosaicRule?ne.fromJSON(t):null}readServiceSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||(0,a.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.length<1||(0,a.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.forEach((t=>{e.set(t.name.toLowerCase().replace(/ /gi,"_"),t.name)})),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every((e=>"number"==typeof e)))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,r){null!=e&&"lerc"!==this.format&&(t[r]=e)}writeCompressionTolerance(e,t,r){"lerc"===this.format&&null!=e&&(t[r]=e)}get fieldsIndex(){return this.fields?new ae.Z(this.fields):null}set format(e){e&&at.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t&&t.mosaicMethod&&(t=ne.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const r=e||t.mosaicRule;return r?ne.fromJSON(r):this._isMosaicRuleSupported(t)?ne.fromJSON(t):null}writeMosaicRule(e,t,r){let n=this.mosaicRule;const i=this.definitionExpression;n?i&&i!==n.where&&(n=n.clone(),n.where=i):i&&(n=new ne({where:i})),this._isValidCustomizedMosaicRule(n)&&(t[r]=n.toJSON())}writeNoData(e,t,r){null!=e&&"number"==typeof e&&(t[r]=lt(e))}readObjectIdField(e,t){if(!e){const r=t.fields.filter((e=>"esriFieldTypeOID"===e.type||"oid"===e.type));e=r&&r[0]&&r[0].name}return e}get parsedUrl(){return this.url?(0,x.mN)(this.url):null}readRenderer(e,t,r){var n,i;const s=null==t||null==(n=t.layerDefinition)||null==(i=n.drawingInfo)?void 0:i.renderer,o=(0,g.ij)(s,r);return null==o?null:("vector-field"===o.type&&t.symbolTileSize&&!s.symbolTileSize&&(o.symbolTileSize=t.symbolTileSize),z(o)||st.warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),o)}writeRenderer(e,t,r){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){const e=this.rasterAttributeTableFieldPrefix||"Raster.",t=new oe.Z({name:"Raster.ItemPixelValue",alias:"Item Pixel Value",domain:null,editable:!1,length:50,type:"string"}),r=new oe.Z({name:"Raster.ServicePixelValue",alias:"Service Pixel Value",domain:null,editable:!1,length:50,type:"string"}),n=new oe.Z({name:"Raster.ServicePixelValue.Raw",alias:"Raw Service Pixel Value",domain:null,editable:!1,length:50,type:"string"});let i=this.fields?(0,w.d9)(this.fields):[];i.push(r),this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0&&i.push(t),this.version>=10.4&&(0,a.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.some((e=>"none"===e.name.toLowerCase()))&&i.push(n),(0,a.pC)(this.rasterFunctionInfos)&&this.rasterFunctionInfos.filter((e=>"none"!==e.name.toLowerCase())).forEach((e=>{i.push(new oe.Z({name:"Raster.ServicePixelValue."+e.name,alias:e.name,domain:null,editable:!1,length:50,type:"string"}))})),null==this.pixelFilter||"esriImageServiceDataTypeVector-UV"!==this.serviceDataType&&"esriImageServiceDataTypeVector-MagDir"!==this.serviceDataType||(i.push(new oe.Z({name:"Raster.Magnitude",alias:"Magnitude",domain:null,editable:!1,type:"double"})),i.push(new oe.Z({name:"Raster.Direction",alias:"Direction",domain:null,editable:!1,type:"double"})));const s=this.rasterInfo.attributeTable&&this.rasterInfo.attributeTable.fields||null;if(s&&s.length>0){const t=s.filter((e=>"esriFieldTypeOID"!==e.type&&"value"!==e.name.toLowerCase())).map((t=>{const r=(0,w.d9)(t);return r.name=e+t.name,r}));i=i.concat(t)}return i}set renderingRule(e){let t=e;t&&t.rasterFunction&&(t=q.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("renderingRule",t)}readRenderingRule(e,t){const r=t.rasterFunctionInfos;return t.renderingRule||r&&r.length&&"None"!==r[0].name?this._isRFTJson(t.renderingRule)?q.fromJSON({rasterFunctionDefinition:t.renderingRule}):q.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}writeRenderingRule(e,t,r){const n=e.toJSON();n.rasterFunctionDefinition?t[r]=n.rasterFunctionDefinition:t[r]=n}readSpatialReference(e,t){const r=e||t.extent.spatialReference;return r?ge.Z.fromJSON(r):null}readPixelType(e){return ot.fromJSON(e)||e}writePixelType(e,t,r){((0,a.Wi)(this.serviceRasterInfo)||this.pixelType!==this.serviceRasterInfo.pixelType)&&(t[r]=ot.toJSON(e))}readVersion(e,t){let r=t.currentVersion;return r||(r=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),r}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let r=e;if(!this._isPicture()&&this.renderer&&this.symbolizer&&!this.pixelFilter){const n=JSON.stringify(this._cachedRendererJson)!==JSON.stringify(this.renderer.toJSON()),i=this._rasterJobHandler.instance,{bandIds:s}=this;if(i){n&&(this.symbolizer.bind(),await i.updateSymbolizer(this.symbolizer,t),this._cachedRendererJson=this.renderer.toJSON());const o=await i.symbolize({bandIds:s,...e},t);r={extent:e.extent,pixelBlock:o}}else r={extent:e.extent,pixelBlock:this.symbolizer.symbolize({bandIds:s,...e})}}return r}destroy(){this._shutdownJobHandler()}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}async computeAngles(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsComputeAngles)throw new b.Z("imagery-layer:compute-angles","this operation is not supported on the input image service");return e=(0,p.TJ)(Ue,e).clone(),async function(e,t,r){var n;const i=t.toJSON();(0,a.pC)(i.angleName)&&(i.angleName=i.angleName.join(",")),(0,a.pC)(t.point)&&null!=(n=t.point.spatialReference)&&n.imageCoordinateSystem&&(i.point.spatialReference=Ee(t.point.spatialReference)),(0,a.pC)(t.spatialReference)&&t.spatialReference.imageCoordinateSystem&&(i.spatialReference=Me(t.spatialReference));const s=(0,ye.en)(e),o=(0,ye.cv)({...s.query,f:"json",...i}),l=(0,ye.lA)(o,r),{data:u}=await(0,v.default)(`${s.path}/computeAngles`,l);return u.spatialReference=u.spatialReference?null!=u.spatialReference.geodataXform?new ge.Z({wkid:0,imageCoordinateSystem:u.spatialReference}):ge.Z.fromJSON(u.spatialReference):null,"NaN"===u.north&&(u.north=null),"NaN"===u.up&&(u.up=null),new be(u)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsComputePixelLocation)throw new b.Z("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,p.TJ)(et,e).clone(),async function(e,t,r){const n=t.toJSON(),{geometries:i}=t;for(let e=0;e<i.length;e++){var s;null!=(s=i[e].spatialReference)&&s.imageCoordinateSystem&&(n.geometries.geometries[e].spatialReference=Ee(i[e].spatialReference))}const o=(0,ye.en)(e),a=(0,ye.cv)({...o.query,f:"json",...n}),l=(0,ye.lA)(a,r),{data:u}=await(0,v.default)(`${o.path}/computePixelLocation`,l);return Te.fromJSON(u)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsComputeHistograms)throw new b.Z("imagery-layer:compute-histograms","this operation is not supported on the input image service");e=(0,p.TJ)(He,e).clone();const{raster:r,mosaicRule:n,renderingRule:i}=this;return i&&null==e.renderingRule&&(e.renderingRule=i),n&&null==e.mosaicRule&&(e.mosaicRule=n),r&&null==e.raster&&(e.raster=r),async function(e,t,r){const n=await Fe(e,t,r),i=(0,ye.en)(e),{data:s}=await(0,v.default)(`${i.path}/computeHistograms`,n);return{histograms:s.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsComputeStatisticsHistograms)throw new b.Z("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");e=(0,p.TJ)(He,e).clone();const{raster:r,mosaicRule:n,renderingRule:i}=this;return i&&null==e.renderingRule&&(e.renderingRule=i),n&&null==e.mosaicRule&&(e.mosaicRule=n),r&&null==e.raster&&(e.raster=r),async function(e,t,r){const n=await Fe(e,t,r),i=(0,ye.en)(e),{data:s}=await(0,v.default)(`${i.path}/computeStatisticsHistograms`,n),{statistics:o}=s;return null!=o&&o.length&&o.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:o,histograms:s.histograms}}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return(0,a.pC)(t)?t.get(e):void 0}getFieldDomain(e,t){const r=this.getField(e);return r?r.domain:null}fetchImage(e,t,r,n={}){if(null==e||null==t||null==r)return Promise.reject(new b.Z("imagery-layer:fetch-image","Insufficient parameters for requesting an image. A valid extent, width and height values are required."));const i=this.renderer||this.symbolizer?this.generateRasterInfo(this.renderingRule,{signal:n.signal}):null;return(0,u.gx)(i).then((i=>{i&&(this.rasterInfo=i);const s={imageServiceParameters:this.getExportImageServiceParameters(e,t,r,n.timeExtent),imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:n.requestAsImageElement&&!this.pixelFilter||!1,signal:n.signal};return this._requestArrayBuffer(s)}))}fetchKeyProperties(e){return(0,v.default)(this.parsedUrl.path+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?null==e?void 0:e.renderingRule:null})}).then((e=>e.data))}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new b.Z("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,v.default)(this.parsedUrl.path+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?null==e?void 0:e.renderingRule:null})}).then((e=>_e.default.fromJSON(e.data)))}async getCatalogItemRasterInfo(e,t){const r=(0,v.default)(this.parsedUrl.path+"/"+e+"/info",{query:this._getQueryParams(),...t}).then((e=>e.data)),n=(0,v.default)(this.parsedUrl.path+"/"+e+"/info/keyProperties",{query:this._getQueryParams(),...t}).then((e=>e.data)).catch((()=>{})),i=await Promise.all([r,n]);if(!i[0])return;const s=De.Z.fromJSON(i[0].extent),o=i[0].statistics?i[0].statistics.map((e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))):null;return new ue.Z({bandCount:i[0].bandCount,extent:s,spatialReference:s.sr,pixelSize:new K.Z({x:i[0].pixelSizeX,y:i[0].pixelSizeY,spatialReference:s.sr}),pixelType:i[0].pixelType.toLowerCase(),statistics:o,histograms:i[0].histograms,keyProperties:i[1]||{}})}async getCatalogItemICSInfo(e,t){const{data:r}=await(0,v.default)(this.parsedUrl.path+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),n=r&&r.ics;if(!n)return;let i=null;try{i=(await(0,v.default)(this.parsedUrl.path+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!i||!i.spatialReference)return{ics:n,icsToPixelTransform:null,icsExtent:null,northDirection:null};const s=this.version>=10.7?(0,v.default)(this.parsedUrl.path+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then((e=>e.data)).catch((()=>({}))):{},o=i.spatialReference,a={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[i]}),inSR:o.wkid||JSON.stringify(o),outSR:"0:"+e},l=(0,v.default)(this.parsedUrl.path+"/project",{query:this._getQueryParams(a),...t}).then((e=>e.data)).catch((()=>({}))),u=(i.xmin+i.xmax)/2,c=(i.ymax-i.ymin)/6,p=i.ymin+c,h=[];for(let e=0;e<5;e++)h.push({x:u,y:p+c*e});const d={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:h}),inSR:o.wkid||JSON.stringify(o),outSR:"0:"+e},m=(0,v.default)(this.parsedUrl.path+"/project",{query:this._getQueryParams(d),...t}).then((e=>e.data)).catch((()=>({}))),f=await Promise.all([s,l,m]);let y=f[0].ipxf;if(null==y){var g,b,_;const e=null==(g=n.geodataXform)?void 0:g.xf_0;"topup"===(null==e||null==(b=e.name)?void 0:b.toLowerCase())&&6===(null==e||null==(_=e.coefficients)?void 0:_.length)&&(y={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const w=De.Z.fromJSON(f[1]&&f[1].geometries&&f[1].geometries[0]);w&&(w.spatialReference=new ge.Z({wkid:0,imageCoordinateSystem:n}));const R=f[2].geometries?f[2].geometries.filter((e=>null!=e&&null!=e.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y)):[],x=R.length;if(x<3)return{ics:n,icsToPixelTransform:y,icsExtent:w,northDirection:null};let C=0,I=0,S=0,O=0;for(let e=0;e<x;e++)C+=R[e].x,I+=R[e].y,S+=R[e].x*R[e].x,O+=R[e].x*R[e].y;const T=(x*O-C*I)/(x*S-C*C);let N=0;const F=R[4].x>R[0].x,P=R[4].y>R[0].y;return T===1/0?N=P?90:270:0===T?N=F?0:180:T>0?N=F?180*Math.atan(T)/Math.PI:180*Math.atan(T)/Math.PI+180:T<0&&(N=P?180+180*Math.atan(T)/Math.PI:360+180*Math.atan(T)/Math.PI),{ics:n,icsToPixelTransform:y,icsExtent:w,northDirection:N}}async generateRasterInfo(e,t){var r;if((!e||"none"===(null==e||null==(r=e.functionName)?void 0:r.toLowerCase())||this._isVectorFieldResampleFunction(e))&&(0,a.pC)(this.serviceRasterInfo))return this.serviceRasterInfo;const n=function(e){if(!e)return null;const t=JSON.stringify(e).match(/"rasterFunction":"(.*?")/gi),r=null==t?void 0:t.map((e=>e.replace('"rasterFunction":"',"").replace('"',"")));return r?r.join("/"):null}(e);if(this._functionRasterInfos[n])return this._functionRasterInfos[n];const i=this._generateRasterInfo(e,t);this._functionRasterInfos[n]=i;try{return await i}catch{return this._functionRasterInfos[n]=null,null}}getExportImageServiceParameters(e,t,r,n){var i;const s=Me((e=e.clone().shiftCentralMeridian()).spatialReference,this.parsedUrl.path);(0,a.pC)(this.serviceRasterInfo)&&this.pixelType!==this.serviceRasterInfo.pixelType&&(this.exportImageServiceParameters.pixelType=this.pixelType);const o=this.exportImageServiceParameters.toJSON(),{bandIds:l,noData:u}=o;let{renderingRule:c}=o;const p=!this.renderer||"raster-stretch"===this.renderer.type;if(null!=l&&l.length&&this._hasRenderingRule(this.renderingRule)&&p){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===c.rasterFunction)e.rasterFunctionArguments.Raster=c.rasterFunctionArguments.Raster,c.rasterFunctionArguments.Raster=e;else if("Colormap"===c.rasterFunction){const t=c.rasterFunctionArguments.Raster;"Stretch"===(null==t?void 0:t.rasterFunction)?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,c.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=c,c=e;o.bandIds=void 0}else o.bandIds=null==l?void 0:l.join(",");u instanceof Array&&u.length>0&&(o.noData=u.join(","));const h=this._serviceSupportsMosaicRule?this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,n):null;o.mosaicRule=h&&JSON.stringify(h),o.renderingRule=c&&null!=(i=c)&&i.rasterFunctionDefinition?JSON.stringify(c.rasterFunctionDefinition):JSON.stringify(c);const d={};if(n){const{start:e,end:t}=n.toJSON();e&&t&&e===t?d.time=""+e:null==e&&null==t||(d.time=`${null==e?"null":e},${null==t?"null":t}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:s,imageSR:s,size:t+","+r,...o,...d}}async getSamples(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsGetSamples)throw new b.Z("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,p.TJ)(nt,e).clone();const{raster:r}=this;return r&&null==e.raster&&(e.raster=r),async function(e,t,r){var n,i;const s=t.toJSON();Ne(s),null!=(n=s.outFields)&&n.length&&(s.outFields=s.outFields.join(","));const o=await(0,fe.aX)(t.geometry),l=null==o?void 0:o[0];(0,a.pC)(l)&&(s.geometry=l.toJSON());const u=(0,ye.en)(e),c=(0,ye.cv)({...u.query,f:"json",...s}),p=(0,ye.lA)(c,r),{data:h}=await(0,v.default)(`${u.path}/getSamples`,p),d=null==h||null==(i=h.samples)?void 0:i.map((e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map((e=>Number(e)));return{...e,pixelValue:t}}));return Se.fromJSON({samples:d})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(await this._fetchCapabilities(null==t?void 0:t.signal),!this.capabilities.operations.supportsIdentify)throw new b.Z("imagery-layer:query-rasters","query operation is not supported on the input image service");e=(0,p.TJ)(Ye,e).clone();const{raster:r,mosaicRule:n,renderingRule:i}=this;if(i&&null==e.renderingRule&&(e.renderingRule=i),n&&null==e.mosaicRule){const t=this._combineMosaicRuleWithTimeExtent(n,e.timeExtent);e.mosaicRule=(0,a.Wg)(t)}return r&&null==e.raster&&(e.raster=r),Pe(this.url,e,this._getRequestOptions(t))}createQuery(){const e=new Ve.Z;return e.outFields=["*"],e.returnGeometry=!0,e.where=this.definitionExpression||"1=1",e}async queryRasters(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Je.e)(this.url,e,t)}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Ze.G)(this.url,e,t)}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,je.P)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new b.Z("imagery-layer: query-visible-rasters","missing query parameter");const{pixelSize:r,returnDomainValues:n,returnTopmostRaster:i,showNoDataRecords:s}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let o=!1,l=null,u=null;const c="raster.servicepixelvalue",p=this.rasterFunctionNamesIndex;if((0,a.pC)(e.outFields)&&(o=e.outFields.some((e=>-1===e.toLowerCase().indexOf(c))),this.version>=10.4)){const t=e.outFields.filter((e=>e.toLowerCase().indexOf(c)>-1&&e.length>c.length)).map((e=>{const t=e.slice(c.length+1);return[this._updateRenderingRulesFunctionName(t,p),t]}));l=t.map((e=>new q({functionName:e[0]}))),u=t.map((e=>e[1])),0===l.length?this.renderingRule?(l.push(this.renderingRule),u.push(this.renderingRule.functionName)):l=null:this.renderingRule&&!l.some((e=>e.functionName===this.renderingRule.functionName))&&(l.push(this.renderingRule),u.push(this.renderingRule.functionName))}const h=(0,a.Wi)(e.outSpatialReference)||e.outSpatialReference.equals(this.spatialReference),d=e.timeExtent||this.timeExtent,m=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,d),f=this._getQueryParams({geometry:e.geometry,timeExtent:d,mosaicRule:m,renderingRule:this.version<10.4?this.renderingRule:null,renderingRules:l,pixelSize:r,returnCatalogItems:o,returnGeometry:h,raster:this.raster,maxItemCount:i?1:null});delete f.f;const y=new Ye(f);try{var g,v;await this.generateRasterInfo(this.renderingRule);const r=await Pe(this.url,y,{signal:null==t?void 0:t.signal,query:{...this.customParameters}}),i=e.outFields,l=r.value.toLowerCase().indexOf("nodata")>-1;if(!o||h||!(null==r||null==(g=r.catalogItems)?void 0:g.features.length)||!s&&l)return this._processVisibleRastersResponse(r,{returnDomainValues:n,templateRRFunctionNames:u,showNoDataRecords:s,templateFields:i});const c=this.objectIdField||"ObjectId",p=r.catalogItems.features,d=p.map((e=>{var t;return null==(t=e.attributes)?void 0:t[c]})),m=new Ve.Z({objectIds:d,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),f=await this.queryRasters(m);return null!=f&&null!=(v=f.features)&&v.length&&f.features.forEach((t=>{p.forEach((r=>{r.attributes[c]===t.attributes[c]&&(r.geometry=new Le.Z(t.geometry),(0,a.pC)(e.outSpatialReference)&&(r.geometry.spatialReference=e.outSpatialReference))}))})),this._processVisibleRastersResponse(r,{returnDomainValues:n,templateRRFunctionNames:u,showNoDataRecords:s,templateFields:i})}catch{throw new b.Z("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){const r=(0,v.default)(this.parsedUrl.path+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>{var t;return null==(t=e.data)?void 0:t.statistics})),n=(0,v.default)(this.parsedUrl.path+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>{var t;return null==(t=e.data)?void 0:t.histograms})),i=await Promise.all([r,n]);return i[0]&&i[0].forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:i[0]||null,histograms:i[1]||null}}async createStreamlinesMesh(e,t){const r=this._rasterJobHandler.instance;return r?r.createStreamlinesMesh(e,t):(0,it.z_)(e.rendererSettings,e.flowData,(0,a.pC)(t.signal)?t.signal:(new AbortController).signal)}async _fetchService(e){await this._fetchServiceInfo(e),(0,a.pC)(this.serviceRasterInfo)&&!this.rasterInfo&&(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,r=(0,a.pC)(this.serviceRasterInfo)?Promise.resolve(this.serviceRasterInfo):this._fetchAuxiliaryRasterInfo({serviceInfo:t,signal:e}).then((e=>(this._set("serviceRasterInfo",e),e))),n=this._hasRenderingRule(this.renderingRule)?this.generateRasterInfo(this.renderingRule,{signal:e}):null,i=this._getRasterFunctionInfos();return Promise.all([r,n,i]).then((e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.renderer&&!this._isSupportedRenderer(this.renderer)&&(this.renderer=null,st.warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._configDefaultRenderer(),this.watch("renderer",(()=>this._configDefaultRenderer())),this.watch("renderingRule",(e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this.generateRasterInfo(e).then((e=>{e&&(this.rasterInfo=e)}))}));const t=(0,a.pC)(this.serviceRasterInfo)&&this.serviceRasterInfo.multidimensionalInfo;t&&this._updateMultidimensionalDefinition(t)}))}_combineMosaicRuleWithTimeExtent(e,t){const r=this.timeInfo;if((0,a.Wi)(e)||(0,a.Wi)(this.multidimensionalInfo)||(0,a.Wi)(t)||(0,a.Wi)(null==r?void 0:r.startField))return e;const{startField:n}=r;var i;if(e=e.clone(),"mosaic-dataset"===this._serviceSourceType)return e.multidimensionalDefinition=null==(i=e.multidimensionalDefinition)?void 0:i.filter((e=>e.dimensionName!==n)),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const s=e.multidimensionalDefinition.filter((e=>e.dimensionName===n)),o=(0,a.pC)(t.start)?t.start.getTime():null,l=(0,a.pC)(t.end)?t.end.getTime():null,u=null==o||null==l||o===l,c=u?[o||l]:[[o,l]],p=this.version>=10.8;if(s.length)s.forEach((e=>{e.dimensionName===n&&(p?(e.dimensionName=null,e.isSlice=null,e.values=null):(e.isSlice=u,e.values=c))}));else if(!p){const t=e.multidimensionalDefinition.filter((e=>null!=e.variableName&&null==e.dimensionName));t.length?t.forEach((e=>{e.dimensionName=n,e.isSlice=u,e.values=c})):e.multidimensionalDefinition.push(new O.Z({variableName:"",dimensionName:n,isSlice:u,values:c}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return(0,a.Wi)(e)?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter((e=>!(!e.variableName&&!e.dimensionName))),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this._serviceSourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){var r;if(await this._fetchCapabilities(null==(r=t)?void 0:r.signal),!this.capabilities.operations.supportsQuery)throw new b.Z("imagery-layer:query-rasters","query operation is not supported on the input image service");return e=(0,a.pC)(e)?(0,p.TJ)(Ve.Z,e):this.createQuery(),t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:e,requestOptions:t}}async _initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;const e=new ce.Z;this._rasterJobHandler.connectionPromise=e.initialize().then((()=>{this._rasterJobHandler.instance=e}),(()=>null)),await this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0}_isSupportedRenderer(e){const{rasterInfo:t,renderingRule:r}=this;return"unique-value"===e.type&&this._hasRenderingRule(r)&&1===t.bandCount&&["u8","s8"].includes(t.pixelType)||(0,de.U0)(this.rasterInfo).includes(this.renderer.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){var t;let r=this.sourceJSON;if(!r){const{data:t,ssl:n}=await(0,v.default)(this.parsedUrl.path,{query:this._getQueryParams(),signal:e});r=t,this.sourceJSON=r,n&&(this.url=this.url.replace(/^http:/i,"https:"))}if((null==(t=r.capabilities)?void 0:t.toLowerCase().split(",").map((e=>e.trim())).indexOf("tilesonly"))>-1)throw new b.Z("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(r,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){var t;return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:(null==(t=e.fields)?void 0:t.length)>0}_isMosaicRuleSupported(e){var t;if(!e)return!1;const r=this._isMosaicDataset(e),n=e.currentVersion>=10.71&&e.hasMultidimensions&&e.timeInfo&&!(e.objectIdField&&(null==(t=e.fields)?void 0:t.length)>1);return r||n}_isVectorFieldResampleFunction(e){if(!(0,a.pC)(e))return!1;const{functionName:t,functionArguments:r}=e,n="resample"===(null==t?void 0:t.toLowerCase()),i=(null==r?void 0:r.ResampleType)||(null==r?void 0:r.resampleType);return n&&(7===i||10===i)}_isPicture(){return!this.format||this.format.indexOf("jpg")>-1||this.format.indexOf("png")>-1}_configDefaultRenderer(){if(!this._isPicture()&&!this.pixelFilter){if(!this.bandIds&&this.rasterInfo.bandCount>=3){const e=(0,de.YD)(this.rasterInfo);!e||3===this.rasterInfo.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}var e,t;this.renderer||(this.renderer=(0,de.Ob)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.renderingRule?null:null==(e=this.mosaicRule)||null==(t=e.multidimensionalDefinition)?void 0:t[0].variableName})),this.symbolizer?(this.symbolizer.rendererJSON=(0,de.ol)(this.renderer.toJSON()),this.symbolizer.rasterInfo=this.rasterInfo):this.symbolizer=new me.Z({rendererJSON:this.renderer.toJSON(),rasterInfo:this.rasterInfo}),this.symbolizer.bind().success||(this.symbolizer=null)}}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:(0,a.pC)(e.pixelBlock)&&e.pixelBlock.clone()}}_getQueryParams(e){(0,a.pC)(null==e?void 0:e.renderingRule)&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:r}=this;return{raster:t,viewId:r,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...null==e?void 0:e.query,...this.customParameters}}}_decodePixelBlock(e,t,r){return this._rasterJobHandler.instance?this._rasterJobHandler.instance.decode({data:e,options:t}):(0,pe.J)(e,t,r)}async _fetchMultidimensionalInfo(e){var t;const r=await(0,v.default)(this.parsedUrl.path+"/multidimensionalInfo",{query:this._getQueryParams(),signal:e}).then((e=>{var t;return null==(t=e.data)?void 0:t.multidimensionalInfo}));return null!=(t=r.variables)&&t.length&&r.variables.forEach((e=>{var t;null!=(t=e.statistics)&&t.length&&e.statistics.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation}))})),r}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;return this.serviceRasterInfo?t:t&&this.version>=10.3?1===t.length&&"none"===t[0].name.toLowerCase()?t:null==(r=(await(0,v.default)(this.parsedUrl.path+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e})).data)?void 0:r.rasterFunctionInfos:null;var r}async _fetchAuxiliaryRasterInfo(e){const t=e&&e.serviceInfo;if(!t)return Promise.reject(new b.Z("imagery-layer:fetch-metadata","valid serviceInfo is required"));const r=e.signal,n=!!(t.hasRasterAttributeTable&&this.version>=10.1)&&(0,v.default)(this.parsedUrl.path+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.1?null==e?void 0:e.renderingRule:null}),signal:r}).then((e=>_e.default.fromJSON(e.data))).catch((()=>null)),i=!!(t.hasColormap&&this.version>=10.1)&&(0,v.default)(this.parsedUrl.path+"/colormap",{query:this._getQueryParams({renderingRule:this.version>=10.6?null==e?void 0:e.renderingRule:null}),signal:r}).then((e=>{var t;return null==(t=e.data)?void 0:t.colormap})),s=!!(t.hasHistograms&&this.version>=10.1)&&(0,v.default)(this.parsedUrl.path+"/histograms",{query:this._getQueryParams({renderingRule:this.version>=10.1?null==e?void 0:e.renderingRule:null}),signal:r}).then((e=>{var t;return null==(t=e.data)?void 0:t.histograms})),o=this.version>=10.3&&(0,v.default)(this.parsedUrl.path+"/keyProperties",{query:this._getQueryParams({renderingRule:null==e?void 0:e.renderingRule}),signal:r}).then((e=>e.data)).catch((()=>{})),a=!!(t.hasMultidimensions&&this.version>=10.3)&&this._fetchMultidimensionalInfo(),l=await Promise.all([n,i,s,o,a]);let u=null;if(t.minValues&&t.minValues.length===t.bandCount){u=[];for(let e=0;e<t.minValues.length;e++)u.push({min:t.minValues[e],max:t.maxValues[e],avg:t.meanValues[e],stddev:t.stdvValues[e]})}const c=Math.ceil((t.extent.xmax-t.extent.xmin)/t.pixelSizeX-.1),p=Math.ceil((t.extent.ymax-t.extent.ymin)/t.pixelSizeY-.1),h=ge.Z.fromJSON(t.spatialReference||t.extent.spatialReference);return new ue.Z({width:c,height:p,bandCount:t.bandCount,extent:De.Z.fromJSON(t.extent),spatialReference:h,pixelSize:new K.Z({x:t.pixelSizeX,y:t.pixelSizeY,spatialReference:h}),pixelType:t.pixelType.toLowerCase(),statistics:u,attributeTable:l[0]||null,colormap:l[1]||null,histograms:l[2]||null,keyProperties:l[3]||{},multidimensionalInfo:l[4]||null})}async _requestArrayBuffer(e){var t;const{imageProps:r,requestAsImageElement:n,signal:i}=e;if(n&&!this.pixelFilter&&(null==(t=r.format)?void 0:t.indexOf("png"))>-1)return{imageElement:(await(0,v.default)(this.parsedUrl.path+"/exportImage",{responseType:"image",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:i})).data,params:r};const s=this._initJobHandler(),o=(0,v.default)(this.parsedUrl.path+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:i}),a=(await Promise.all([o,s]))[0].data,l=r.format||"jpgpng";let u=l;if("bsq"!==u&&"bip"!==u&&(u=(0,pe.y)(a)),!u)throw new b.Z("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(a)));const c={signal:i},p="gif"===l||"bmp"===l||l.indexOf("png")>-1&&("png"===u||"jpg"===u)?(0,pe.J)(a,{useCanvas:!0,...r},c):this._decodePixelBlock(a,{width:r.width,height:r.height,planes:null,pixelType:null,noDataValue:null,format:l},c);return{pixelData:{pixelBlock:await p,extent:r.extent},params:r}}async _generateRasterInfo(e,t){const{data:r}=await(0,v.default)(this.parsedUrl.path,{query:this._getQueryParams({renderingRule:e}),...t});return await this._fetchAuxiliaryRasterInfo({serviceInfo:r,renderingRule:e,...t})}_isValidCustomizedMosaicRule(e){var t;return e&&JSON.stringify(e.toJSON())!==JSON.stringify(null==(t=this._defaultServiceMosaicRule)?void 0:t.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;const t=e.variables[0].dimensions,r=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e],i=n.extent;let s=!0,o=[i[0]];n.hasRanges&&!0===n.hasRanges?(s=!1,o=[n.values[0]]):"stdz"===n.name.toLowerCase()&&Math.abs(i[1])<=Math.abs(i[0])&&(o=[i[1]]),r.push(new O.Z({variableName:"",dimensionName:t[e].name,isSlice:s,values:o}))}if(r.length>0){this.mosaicRule=this.mosaicRule||new ne;const e=this.mosaicRule.multidimensionalDefinition;(!e||e&&e.length<=0)&&(this.mosaicRule.multidimensionalDefinition=r)}}_formatAttributeValue(e,t){if("string"==typeof e){const r=this.popupTemplate&&this.popupTemplate.fieldInfos,n=this._getFieldInfo(r,t),i=n&&n.format;if(i){let t,r;return e.trim().indexOf(",")>-1?(t=",",r=t+" ",this._formatDelimitedString(e,t,r,i)):e.trim().indexOf(" ")>-1?(t=r=" ",this._formatDelimitedString(e,t,r,i)):this._formatNumberFromString(e,i)}}return e}_getFieldInfo(e,t){if(!e||!e.length||!t)return;const r=t.toLowerCase();let n;return e.some((e=>!(!e.fieldName||e.fieldName.toLowerCase()!==r&&e.fieldName.toLowerCase()!==r.replace(/ /g,"_")||(n=e,0)))),n}_formatDelimitedString(e,t,r,n){return e&&t&&r&&n?e.trim().split(t).map((e=>this._formatNumberFromString(e,n))).join(r):e}_formatNumberFromString(e,t){if(!e||!t)return e;const r=Number(e);return isNaN(r)?e:t.format(r)}_processVisibleRastersResponse(e,t){t=t||{};const r=e.value,{templateRRFunctionNames:n,showNoDataRecords:i,returnDomainValues:s,templateFields:o}=t,l=e.processedValues;let u=e.catalogItems&&e.catalogItems.features,c=e.properties&&e.properties.Values&&e.properties.Values.map((e=>e.replace(/ /gi,", ")))||[];const p=this.objectIdField||"ObjectId",h="string"==typeof r&&r.toLowerCase().indexOf("nodata")>-1,d=[];if(r&&!u&&!h){const e={};e[p]=0,c=[r],u=[new y.Z(this.fullExtent,null,e)]}if(!u)return[];let m,f,g;this._updateResponseFieldNames(u,o),h&&!i&&(u=[]);for(let e=0;e<u.length;e++){if(m=u[e],null!=r){if(f=c[e],g=this.renderingRule&&l&&l.length>0&&n&&n.length>0&&n.indexOf(this.renderingRule.functionName)>-1?l[n.indexOf(this.renderingRule.functionName)]:r,"nodata"===f.toLowerCase()&&!i)continue;const t="Raster.ItemPixelValue",s="Raster.ServicePixelValue";m.attributes[t]=this._formatAttributeValue(f,t),m.attributes[s]=this._formatAttributeValue(g,s),this._updateFeatureWithMagDirValues(m,f);const o=this.fields&&this.fields.length>0;let u=this.renderingRule&&(0,a.pC)(this.serviceRasterInfo)&&this.serviceRasterInfo.attributeTable?o?f:r:g;this.renderingRule||(u=o?f:r),this._updateFeatureWithRasterAttributeTableValues(m,u)}if(m.sourceLayer=m.layer=this,s&&this._updateFeatureWithDomainValues(m),n&&l&&n.length===l.length)for(let e=0;e<n.length;e++){const t="Raster.ServicePixelValue."+n[e];m.attributes[t]=this._formatAttributeValue(l[e],t)}d.push(u[e])}return d}_updateFeatureWithRasterAttributeTableValues(e,t){const r=this.rasterInfo&&this.rasterInfo.attributeTable||(0,a.pC)(this.serviceRasterInfo)&&this.serviceRasterInfo.attributeTable,n=r&&r.features;if(!n)return;const i=r.fields,s=i.map((e=>e.name)).filter((e=>"value"===e.toLowerCase())),o=s&&s[0];if(!o)return;const l=n.filter((e=>e.attributes[o]===(null!=t?parseInt(t,10):null)));l&&l[0]&&i.forEach((t=>{const r=this.rasterAttributeTableFieldPrefix+t.name;e.attributes[r]=this._formatAttributeValue(l[0].attributes[t.name],r)}))}_updateFeatureWithMagDirValues(e,t){if("esriImageServiceDataTypeVector-UV"!==this.serviceDataType&&"esriImageServiceDataTypeVector-MagDir"!==this.serviceDataType)return;const r=t.split(/,\s*/).map((e=>parseFloat(e))),n=r.map((e=>[e])),i=r.map((e=>({minValue:e,maxValue:e,noDataValue:null}))),s=new le.Z({height:1,width:1,pixelType:"f32",pixels:n,statistics:i});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:s,extent:new De.Z(0,0,0,0,this.spatialReference)});const o="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[s.pixels[0][0],s.pixels[1][0]]:(0,he.Tg)([s.pixels[0][0],s.pixels[1][0]]);e.attributes["Raster.Magnitude"]=o[0],e.attributes["Raster.Direction"]=o[1]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter((e=>e.domain&&"coded-value"===e.domain.type));null!=t&&t.forEach((t=>{const r=e.attributes[t.name];if(null!=r){const n=t.domain.codedValues.filter((e=>e.code===r))[0];n&&(e.attributes[t.name]=n.name)}}))}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const r=this.fieldsIndex;(0,a.pC)(r)&&e.forEach((e=>{if(e&&e.attributes)for(const n of t)if(r.has(n)){const t=r.get(n).name;t!==n&&(e.attributes[n]=e.attributes[t],delete e.attributes[t])}}))}_getRenderingRuleString(e){if(this._hasRenderingRule(e)){var t;let r=e.toJSON();return r=null!=(t=r.rasterFunctionDefinition)?t:r,(r.thumbnail||r.thumbnailEx)&&(r.thumbnail=r.thumbnailEx=null),JSON.stringify(r)}return null}_hasRenderingRule(e){return e&&e.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const r=e.toLowerCase().replace(/ /gi,"_");return t.has(r)?t.get(r):e}_isRFTJson(e){return e&&e.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map((e=>e.trim())):["image","catalog"],{currentVersion:r,advancedQueryCapabilities:n,maxRecordCount:i}=e,s=t.indexOf("image")>-1,o="esriImageServiceDataTypeElevation"===e.serviceDataType,a=!!(e.spatialReference||e.extent&&e.extent.spatialReference),l=t.includes("edit");return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsMeasure:t.indexOf("mensuration")>-1&&a,supportsDownload:t.indexOf("download")>-1,supportsQuery:t.indexOf("catalog")>-1&&e.fields&&e.fields.length>0,supportsGetSamples:r>=10.2&&s,supportsProject:r>=10.3&&s,supportsComputeStatisticsHistograms:r>=10.4&&s,supportsQueryBoundary:r>=10.6&&s,supportsCalculateVolume:r>=10.7&&o,supportsComputePixelLocation:r>=10.7&&t.indexOf("catalog")>-1,supportsComputeAngles:r>=10.91,supportsAdd:l,supportsDelete:l,supportsEditing:l,supportsUpdate:l,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1},query:{maxRecordCount:i,maxRecordCountFactor:void 0,supportsStatistics:!(null==n||!n.supportsStatistics),supportsOrderBy:!(null==n||!n.supportsOrderBy),supportsDistinct:!(null==n||!n.supportsDistinct),supportsPagination:!(null==n||!n.supportsPagination),supportsStandardizedQueriesOnly:!(null==n||!n.useStandardizedQueries),supportsPercentileStatistics:!(null==n||!n.supportsPercentileStatistics),supportsCentroid:!(null==n||!n.supportsReturningGeometryCentroid),supportsDistance:!(null==n||!n.supportsQueryWithDistance),supportsExtent:!(null==n||!n.supportsReturningQueryExtent),supportsGeometryProperties:!(null==n||!n.supportsReturningGeometryProperties),supportsHavingClause:!(null==n||!n.supportsHavingClause),supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:!1,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}}}};return(0,s._)([(0,c.Cb)()],t.prototype,"_functionRasterInfos",void 0),(0,s._)([(0,c.Cb)()],t.prototype,"_rasterJobHandler",void 0),(0,s._)([(0,c.Cb)({dependsOn:["_serviceSupportsMosaicRule"]})],t.prototype,"_defaultServiceMosaicRule",void 0),(0,s._)([(0,I.r)("_defaultServiceMosaicRule",["defaultMosaicMethod"])],t.prototype,"readDefaultServiceMosaicRule",null),(0,s._)([(0,c.Cb)()],t.prototype,"_cachedRendererJson",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],t.prototype,"_serviceSourceType",void 0),(0,s._)([(0,I.r)("_serviceSourceType",["serviceSourceType","fields"])],t.prototype,"readServiceSourceType",null),(0,s._)([(0,c.Cb)({readOnly:!0})],t.prototype,"_serviceSupportsMosaicRule",void 0),(0,s._)([(0,I.r)("_serviceSupportsMosaicRule",["currentVersion","fields"])],t.prototype,"readServiceSupportsMosaicRule",null),(0,s._)([(0,c.Cb)()],t.prototype,"rasterAttributeTableFieldPrefix",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],t.prototype,"rasterFunctionNamesIndex",null),(0,s._)([(0,c.Cb)()],t.prototype,"adjustAspectRatio",void 0),(0,s._)([(0,c.Cb)({readOnly:!0}),(0,C.B)("serviceRasterInfo.bandCount")],t.prototype,"bandCount",void 0),(0,s._)([(0,c.Cb)({type:[p.z8],json:{write:!0}})],t.prototype,"bandIds",void 0),(0,s._)([(0,I.r)("bandIds")],t.prototype,"readBandIds",null),(0,s._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],t.prototype,"capabilities",void 0),(0,s._)([(0,I.r)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],t.prototype,"readCapabilities",null),(0,s._)([(0,c.Cb)({type:Number})],t.prototype,"compressionQuality",void 0),(0,s._)([(0,d.c)("compressionQuality")],t.prototype,"writeCompressionQuality",null),(0,s._)([(0,c.Cb)({type:Number})],t.prototype,"compressionTolerance",void 0),(0,s._)([(0,d.c)("compressionTolerance")],t.prototype,"writeCompressionTolerance",null),(0,s._)([(0,c.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,s._)([(0,c.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,s._)([(0,c.Cb)({readOnly:!0,constructOnly:!0})],t.prototype,"exportImageServiceParameters",void 0),(0,s._)([(0,c.Cb)()],t.prototype,"rasterInfo",void 0),(0,s._)([(0,c.Cb)({readOnly:!0,type:[oe.Z]})],t.prototype,"fields",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],t.prototype,"fieldsIndex",null),(0,s._)([(0,c.Cb)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"],json:{write:!0}})],t.prototype,"format",null),(0,s._)([(0,I.r)("service","format",["serviceDataType"])],t.prototype,"readFormat",null),(0,s._)([(0,c.Cb)({type:De.Z})],t.prototype,"fullExtent",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],t.prototype,"hasMultidimensions",void 0),(0,s._)([(0,c.Cb)({json:{read:{source:"maxImageHeight"}}})],t.prototype,"imageMaxHeight",void 0),(0,s._)([(0,c.Cb)({json:{read:{source:"maxImageWidth"}}})],t.prototype,"imageMaxWidth",void 0),(0,s._)([(0,c.Cb)({type:String,json:{type:ie.c.jsonValues,read:ie.c.read,write:ie.c.write}})],t.prototype,"interpolation",void 0),(0,s._)([(0,c.Cb)()],t.prototype,"minScale",void 0),(0,s._)([(0,I.r)("service","minScale")],t.prototype,"readMinScale",null),(0,s._)([(0,c.Cb)()],t.prototype,"maxScale",void 0),(0,s._)([(0,I.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,s._)([(0,c.Cb)({type:ne})],t.prototype,"mosaicRule",null),(0,s._)([(0,I.r)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],t.prototype,"readMosaicRule",null),(0,s._)([(0,d.c)("mosaicRule")],t.prototype,"writeMosaicRule",null),(0,s._)([(0,c.Cb)({readOnly:!0}),(0,C.B)("serviceRasterInfo.multidimensionalInfo")],t.prototype,"multidimensionalInfo",void 0),(0,s._)([(0,c.Cb)({json:{type:p.z8}})],t.prototype,"noData",void 0),(0,s._)([(0,d.c)("noData")],t.prototype,"writeNoData",null),(0,s._)([(0,c.Cb)({type:String,json:{type:ie.k.jsonValues,read:ie.k.read,write:ie.k.write}})],t.prototype,"noDataInterpretation",void 0),(0,s._)([(0,c.Cb)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],t.prototype,"objectIdField",void 0),(0,s._)([(0,I.r)("objectIdField")],t.prototype,"readObjectIdField",null),(0,s._)([(0,c.Cb)({})],t.prototype,"geometryType",void 0),(0,s._)([(0,c.Cb)({})],t.prototype,"typeIdField",void 0),(0,s._)([(0,c.Cb)({})],t.prototype,"types",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],t.prototype,"parsedUrl",null),(0,s._)([(0,c.Cb)({readOnly:!0}),(0,C.B)("serviceRasterInfo.pixelSize.x")],t.prototype,"pixelSizeX",void 0),(0,s._)([(0,c.Cb)({readOnly:!0}),(0,C.B)("serviceRasterInfo.pixelSize.y")],t.prototype,"pixelSizeY",void 0),(0,s._)([(0,c.Cb)({type:Function})],t.prototype,"pixelFilter",void 0),(0,s._)([(0,c.Cb)()],t.prototype,"raster",void 0),(0,s._)([(0,c.Cb)()],t.prototype,"viewId",void 0),(0,s._)([(0,c.Cb)({types:g.dr,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:g.FK,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],t.prototype,"renderer",void 0),(0,s._)([(0,I.r)("renderer")],t.prototype,"readRenderer",null),(0,s._)([(0,d.c)("renderer")],t.prototype,"writeRenderer",null),(0,s._)([(0,c.Cb)()],t.prototype,"symbolizer",void 0),(0,s._)([(0,c.Cb)(S.Oh)],t.prototype,"opacity",void 0),(0,s._)([(0,c.Cb)({readOnly:!0}),(0,C.B)("serviceRasterInfo.attributeTable")],t.prototype,"rasterAttributeTable",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],t.prototype,"rasterFields",null),(0,s._)([(0,c.Cb)({constructOnly:!0})],t.prototype,"rasterFunctionInfos",void 0),(0,s._)([(0,c.Cb)({type:q})],t.prototype,"renderingRule",null),(0,s._)([(0,I.r)("renderingRule",["renderingRule","rasterFunctionInfos"])],t.prototype,"readRenderingRule",null),(0,s._)([(0,d.c)("renderingRule")],t.prototype,"writeRenderingRule",null),(0,s._)([(0,c.Cb)()],t.prototype,"serviceDataType",void 0),(0,s._)([(0,c.Cb)({readOnly:!0,type:ge.Z})],t.prototype,"spatialReference",void 0),(0,s._)([(0,I.r)("spatialReference",["spatialReference","extent"])],t.prototype,"readSpatialReference",null),(0,s._)([(0,c.Cb)({json:{type:ot.jsonValues}})],t.prototype,"pixelType",void 0),(0,s._)([(0,I.r)("pixelType")],t.prototype,"readPixelType",null),(0,s._)([(0,d.c)("pixelType")],t.prototype,"writePixelType",null),(0,s._)([(0,c.Cb)({constructOnly:!0,type:ue.Z})],t.prototype,"serviceRasterInfo",void 0),(0,s._)([(0,c.Cb)()],t.prototype,"sourceJSON",void 0),(0,s._)([(0,c.Cb)(S.HQ)],t.prototype,"url",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],t.prototype,"version",void 0),(0,s._)([(0,I.r)("version",["currentVersion","fields","timeInfo"])],t.prototype,"readVersion",null),t=(0,s._)([(0,h.j)("esri.layers.mixins.ArcGISImageService")],t),t};var ct=r(17287),pt=r(71612),ht=r(17017),dt=r(38009),mt=r(16859),ft=r(34760),yt=r(72965),gt=r(28294),vt=r(32163);let bt=class extends((0,pt.h)((0,gt.n)((0,ft.Q)((0,yt.M)((0,dt.q)((0,mt.I)(ut((0,ht.N)((0,ct.Y)((0,l.R)(m.Z))))))))))){constructor(...e){super(...e),this.legendEnabled=!0,this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,a.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(u.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}writeOperationalLayerType(e,t,r){var n;const i="vector-field"===(null==(n=this.renderer)?void 0:n.type);t[r]=i?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.rasterFields,r=this.title,n=new Set;let i=!1,s=!1;this.capabilities&&(i=this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0,s=i&&("esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType));const o=new Set;i&&(o.add("raster.itempixelvalue"),s&&o.add("raster.magnitude").add("raster.direction"));for(const e of t){const t=e.name.toLowerCase();o.has(t)||t.indexOf("raster.servicepixelvalue.")>-1||n.add(e.name)}return(0,vt.eZ)({fields:t,title:r},{...e,visibleFieldNames:n})}queryFeatures(e,t){return this.queryRasters(e,t).then((e=>{if(null!=e&&e.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}};(0,s._)([(0,c.Cb)(S.rn)],bt.prototype,"legendEnabled",void 0),(0,s._)([(0,c.Cb)({type:["show","hide"]})],bt.prototype,"listMode",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],bt.prototype,"isReference",void 0),(0,s._)([(0,c.Cb)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],bt.prototype,"operationalLayerType",void 0),(0,s._)([(0,d.c)("web-map","operationalLayerType")],bt.prototype,"writeOperationalLayerType",null),(0,s._)([(0,c.Cb)(S.C_)],bt.prototype,"popupEnabled",void 0),(0,s._)([(0,c.Cb)({type:o.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],bt.prototype,"popupTemplate",void 0),(0,s._)([(0,c.Cb)({readOnly:!0})],bt.prototype,"defaultPopupTemplate",null),(0,s._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],bt.prototype,"type",void 0),bt=(0,s._)([(0,h.j)("esri.layers.ImageryLayer")],bt);const _t=bt},70272:(e,t,r)=>{r.d(t,{nd:()=>o,ZP:()=>i,S6:()=>s});var n=r(70586);class i{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new i(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function s(e){return!((0,n.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class o extends i{}},44876:(e,t,r)=>{r.d(t,{Z:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,r)=>{r.d(t,{Z:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=r}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}clone(e){return e?(e.set(this.coords),new n(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new n(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},98732:(e,t,r)=>{r.d(t,{XA:()=>Z,h_:()=>B,Yn:()=>J,GH:()=>U,Uy:()=>q,EI:()=>k,cn:()=>G,di:()=>z,Iv:()=>E,fQ:()=>R,eG:()=>D,J6:()=>A,oB:()=>se,zj:()=>Y,$:()=>ee,lz:()=>ie,RZ:()=>Q,Nh:()=>W,Jd:()=>v,IN:()=>b,hY:()=>re,lM:()=>H,$g:()=>te});var n=r(20102),i=r(92604),s=r(70586),o=r(33955),a=r(70272),l=r(44876),u=r(5428);function c(e,t){return e?t?4:3:t?3:2}const p=i.Z.getLogger("esri.layers.graphics.featureConversionUtils"),h={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},d=(e,t,r,n,i,s)=>{e[r]=i,e[r+1]=s},m=(e,t,r,n,i,s)=>{e[r]=i,e[r+1]=s,e[r+2]=t[n+2]},f=(e,t,r,n,i,s)=>{e[r]=i,e[r+1]=s,e[r+2]=t[n+3]},y=(e,t,r,n,i,s)=>{e[r]=i,e[r+1]=s,e[r+2]=t[n+2],e[r+3]=t[n+3]};function g(e,t,r,n){if(e){if(r)return t&&n?y:m;if(t&&n)return f}else if(t&&n)return m;return d}function v({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function b({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function _({scale:e,translate:t},r){return r*e[0]+t[0]}function w({scale:e,translate:t},r){return t[1]-r*e[1]}function R(e,t,r){return e?t?r?N(e):I(e):r?O(e):x(e):null}function x(e){const t=e.coords;return{x:t[0],y:t[1]}}function C(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function I(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function O(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function T(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function N(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function F(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function P(e,t){return e&&t?F:e?S:t?T:C}function E(e,t,r){if((0,s.Wi)(e))return null;const n=c(t,r),i=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let i=0;i<n;i++)r.push(e.coords[t+i]);i.push(r)}return t?r?{points:i,hasZ:t,hasM:r}:{points:i,hasZ:t}:r?{points:i,hasM:r}:{points:i}}function M(e,t,r=c(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let i=0;for(const e of t.points)for(let t=0;t<r;t++)n[i++]=e[t];return e}function A(e,t,r){if(!e)return null;const n=c(t,r),{coords:i,lengths:s}=e,o=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(i[a++]);t.push(e)}o.push(t)}return t?r?{paths:o,hasZ:t,hasM:r}:{paths:o,hasZ:t}:r?{paths:o,hasM:r}:{paths:o}}function j(e,t,r=c(t.hasZ,t.hasM)){const{lengths:n,coords:i}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)i[s++]=t[e];n.push(e.length)}return e}function D(e,t,r){if(!e)return null;const n=c(t,r),{coords:i,lengths:s}=e,o=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(i[a++]);t.push(e)}o.push(t)}return t?r?{rings:o,hasZ:t,hasM:r}:{rings:o,hasZ:t}:r?{rings:o,hasM:r}:{rings:o}}function q(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const i=c(r,n),{lengths:s,coords:o}=e;let a=0;s.length=o.length=0;for(const e of t){for(const t of e)for(let e=0;e<i;e++)o[a++]=t[e];s.push(e.length)}}(e,t.rings,r,n),e}const L=[],V=[];function Z(e,t,r,n,i){L[0]=e;const[s]=J(V,L,t,r,n,i);return L.length=V.length=0,s}function J(e,t,r,i,o,l){if(e.length=0,!r){for(const r of t){const t=r.attributes[l];e.push(new a.ZP(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,i){const s=P(r,n);for(const r of t){const{geometry:t,attributes:n}=r;let o;t&&(o=s(new u.Z,t)),e.push(new a.ZP(o,n,null,n[i]))}return e}(e,t,i,o,l);case"esriGeometryMultipoint":return function(e,t,r,n,i){const s=c(r,n);for(const r of t){const t=r.geometry,n=r.attributes;let o;t&&(o=M(new u.Z,t,s)),e.push(new a.ZP(o,n,null,n[i]))}return e}(e,t,i,o,l);case"esriGeometryPolyline":return function(e,t,r,n,i){const s=c(r,n);for(const r of t){const t=r.geometry,n=r.attributes;let o;t&&(o=j(new u.Z,t,s)),e.push(new a.ZP(o,n,null,n[i]))}return e}(e,t,i,o,l);case"esriGeometryPolygon":return function(e,t,r,n,i){for(const o of t){const t=o.geometry,l=o.centroid,c=o.attributes;let p;t&&(p=q(new u.Z,t,r,n)),(0,s.pC)(l)?e.push(new a.ZP(p,c,C(new u.Z,l),c[i])):e.push(new a.ZP(p,c,null,c[i]))}return e}(e,t,i,o,l);default:p.error("convertToFeatureSet:unknown-geometry",new n.Z(`Unable to parse unknown geometry type '${r}'`)),e.length=0}return e}function k(e,t,r,n){V[0]=e,$(L,V,t,r,n);const i=L[0];return L.length=V.length=0,i}function U(e,t,r){if((0,s.Wi)(e))return null;const i=new u.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,o.wp)(e)?P(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(i,e):(0,o.oU)(e)?q(i,e,t,r):(0,o.l9)(e)?j(i,e,c(t,r)):(0,o.aW)(e)?M(i,e,c(t,r)):void p.error("convertFromGeometry:unknown-geometry",new n.Z(`Unable to parse unknown geometry type '${e}'`))}function z(e,t,r,i){const o=e&&("coords"in e?e:e.geometry);if((0,s.Wi)(o))return null;switch(t){case"esriGeometryPoint":{let e=x;return r&&i?e=N:r?e=I:i&&(e=O),e(o)}case"esriGeometryMultipoint":return E(o,r,i);case"esriGeometryPolyline":return A(o,r,i);case"esriGeometryPolygon":return D(o,r,i);default:return void p.error("convertToGeometry:unknown-geometry",new n.Z(`Unable to parse unknown geometry type '${t}'`))}}function $(e,t,r,i,o){if(e.length=0,(0,s.Wi)(r))return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let i=x;r&&n?i=N:r?i=I:n&&(i=O);for(const r of t){const{geometry:t,attributes:n}=r,o=(0,s.pC)(t)?i(t):null;e.push({attributes:n,geometry:o})}return e}(e,t,i,o);case"esriGeometryMultipoint":return function(e,t,r,n){for(const i of t){const{geometry:t,attributes:s}=i;let o;t&&(o=E(t,r,n)),e.push({attributes:s,geometry:o})}return e}(e,t,i,o);case"esriGeometryPolyline":return function(e,t,r,n){for(const i of t){const{geometry:t,attributes:o}=i;let a;(0,s.pC)(t)&&(a=A(t,r,n)),e.push({attributes:o,geometry:a})}return e}(e,t,i,o);case"esriGeometryPolygon":return function(e,t,r,n){for(const i of t){const{geometry:t,attributes:o,centroid:a}=i;let l;if((0,s.pC)(t)&&(l=D(t,r,n)),(0,s.pC)(a)){const t=x(a);e.push({attributes:o,centroid:t,geometry:l})}else e.push({attributes:o,geometry:l})}return e}(e,t,i,o);default:p.error("convertToFeatureSet:unknown-geometry",new n.Z(`Unable to parse unknown geometry type '${r}'`))}return e}function G(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:i,hasM:s,hasZ:o,features:a,geometryType:l,exceededTransferLimit:u,uniqueIdField:c,queryGeometry:p,queryGeometryType:h}=e,d={features:$([],a,l,o,s),fields:i,geometryType:l,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:z(p,h,!1,!1)};return n&&(d.transform=n),u&&(d.exceededTransferLimit=u),s&&(d.hasM=s),o&&(d.hasZ=o),d}function B(e,t){const r=new l.Z,{hasM:i,hasZ:s,features:o,objectIdFieldName:a,spatialReference:u,geometryType:c,exceededTransferLimit:h,transform:d,fields:m}=e;return m&&(r.fields=m),r.geometryType=c,r.objectIdFieldName=a||t,r.spatialReference=u,r.objectIdFieldName?(o&&J(r.features,o,c,s,i,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),i&&(r.hasM=i),s&&(r.hasZ=s),d&&(r.transform=d),r):(p.error(new n.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function H(e){const{transform:t,features:r,hasM:n,hasZ:i}=e;if(!t)return e;for(const e of r)(0,s.pC)(e.geometry)&&te(e.geometry,e.geometry,n,i,t),(0,s.pC)(e.centroid)&&te(e.centroid,e.centroid,n,i,t);return e.transform=null,e}function Q(e,t){const{geometryType:r,features:n,hasM:i,hasZ:s}=t;if(!e)return t;for(let t=0;t<n.length;t++){const o=n[t],a=o.weakClone();a.geometry=new u.Z,W(a.geometry,o.geometry,i,s,r,e),o.centroid&&(a.centroid=new u.Z,W(a.centroid,o.centroid,i,s,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function W(e,t,r,n,i,o,a=r,l=n){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,s.Wi)(t)||!t.coords.length)return null;const u=h[i],{coords:p,lengths:d}=t,m=c(r,n),f=c(r&&a,n&&l),y=g(r,n,a,l);if(!d.length)return y(e.coords,p,0,0,v(o,p[0]),b(o,p[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=m,e;let _,w,R,x,C=0,I=0,S=I;for(const t of d){if(t<u)continue;let r=0;I=S,R=_=v(o,p[C]),x=w=b(o,p[C+1]),y(e.coords,p,I,C,R,x),r++,C+=m,I+=f;for(let n=1;n<t;n++,C+=m)R=v(o,p[C]),x=b(o,p[C+1]),R===_&&x===w||(y(e.coords,p,I,C,R-_,x-w),I+=f,r++,_=R,w=x);r>=u&&(e.lengths.push(r),S=I)}return e.coords.length=S,e.coords.length?e:null}function Y(e,t,r,n,i,s,o=r,a=n){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const l=h[i],{coords:u,lengths:p}=t,d=c(r,n),m=c(r&&o,n&&a),f=g(r,n,o,a);if(!p.length)return f(e.coords,u,0,0,u[0],u[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=d,e;let y=0;const v=s*s;for(const t of p){if(t<l){y+=t*d;continue}const r=e.coords.length/m,n=y,i=y+(t-1)*d;f(e.coords,u,e.coords.length,n,u[n],u[n+1]),K(e.coords,u,d,v,f,n,i),f(e.coords,u,e.coords.length,i,u[i],u[i+1]);const s=e.coords.length/m-r;s>=l?e.lengths.push(s):e.coords.length=r*m,y+=t*d}return e.coords.length?e:null}function X(e,t,r,n){const i=e[t],s=e[t+1],o=e[r],a=e[r+1],l=e[n],u=e[n+1];let c=o,p=a,h=l-c,d=u-p;if(0!==h||0!==d){const e=((i-c)*h+(s-p)*d)/(h*h+d*d);e>1?(c=l,p=u):e>0&&(c+=h*e,p+=d*e)}return h=i-c,d=s-p,h*h+d*d}function K(e,t,r,n,i,s,o){let a,l=n,u=0;for(let e=s+r;e<o;e+=r)a=X(t,e,s,o),a>l&&(u=e,l=a);l>n&&(u-s>r&&K(e,t,r,n,i,s,u),i(e,t,e.length,u,t[u],t[u+1]),o-u>r&&K(e,t,r,n,i,u,o))}function ee(e,t,r,n){if((0,s.Wi)(t)||!t.coords||!t.coords.length)return null;const i=c(r,n);let o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=i){const r=e[t],n=e[t+1];o=Math.min(o,r),l=Math.max(l,r),a=Math.min(a,n),u=Math.max(u,n)}}return e[0]=o,e[1]=a,e[2]=l,e[3]=u,e}function te(e,t,r,n,i){const{coords:s,lengths:o}=t,a=r?n?y:m:n?m:d,l=c(r,n);if(!s.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!o.length)return a(e.coords,s,0,0,_(i,s[0]),w(i,s[1])),e!==t&&(e.lengths.length=0,e.coords.length=l),e;const[u,p]=i.scale;let h=0;for(let t=0;t<o.length;t++){const r=o[t];e.lengths[t]=r;let n=_(i,s[h]),c=w(i,s[h+1]);a(e.coords,s,h,h,n,c),h+=l;for(let t=1;t<r;t++,h+=l)n+=s[h]*u,c-=s[h+1]*p,a(e.coords,s,h,h,n,c)}return e!==t&&(e.lengths.length=o.length,e.coords.length=s.length),e}function re(e,t,r,n,i,s){const o=c(r,n),a=g(r,n,i,s),l=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<l.length;t+=o)a(e.coords,l,e.coords.length,t,l[t],l[t+1]);return e}function ne(e,t,r,n){let i=0,s=e[n*t],o=e[n*(t+1)];for(let a=1;a<r;a++){const r=s+e[n*(t+a)],l=o+e[n*(t+a)+1],u=(r-s)*(l+o);s=r,o=l,i+=u}return.5*i}function ie(e,t){const{coords:r,lengths:n}=e;let i=0,s=0;for(let e=0;e<n.length;e++)s+=ne(r,i,n[e],t),i+=e;return Math.abs(s)}function se(e,t){if((0,s.Wi)(e))return null;const r=e.clone(),n=e.coords,i=e.lengths;let o=0;for(let e=0;e<i.length;e++){const s=i[e];let a=n[t*o],l=n[t*o+1];for(let e=1;e<s;e++){const i=a+n[t*(o+e)],s=l+n[t*(o+e)+1];r.coords[t*(o+e)]=i,r.coords[t*(o+e)+1]=s,a=i,l=s}o+=s}return r}},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),p=r(17452),h=r(5600),d=(r(67676),r(80442),r(75215),r(71715)),m=r(52011),f=r(30556),y=r(65587),g=r(15235),v=r(86082);const b=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)||b.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==i.id?void 0:i.id.findCredential(this.url):null;if(!t)return!0;const r=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,p.Fv)(c.restUrl)===(0,p.Fv)(l))return c.user;const h=`${l}/community/self`,d=(0,u.pC)(e)?e.signal:null,m=await(0,o.q6)((0,s.default)(h,{authMode:"no-prompt",query:{f:"json"},signal:d}));return m.ok?v.default.fromJSON(m.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,p.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,d.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,f.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,m.j)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},35671:(e,t,r)=>{r.d(t,{io:()=>g,AB:()=>y,gd:()=>f,Mu:()=>_,Q0:()=>m,YN:()=>c,UF:()=>h,O5:()=>v,os:()=>w,H7:()=>P,qN:()=>E,Pz:()=>j,Qc:()=>D,vP:()=>k});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(p(l,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)p(u,e,t)}function p(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 d=new Set;function m(e,t){return e&&t?(d.clear(),f(d,e,t),Array.from(d).sort()):[]}function f(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 v({displayField:e,fields:t}){return e||(t&&t.length?b(t,"name-or-title")||b(t,"unique-identifier")||b(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 b(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");f(e,t,i.fieldNames)}}(e,t,o)}(e,i,t))))}function w(e){const t=e.defaultValue;return void 0!==t&&N(e,t)?t:e.nullable?null:void 0}function R(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function x(e){return null===e||R(e)}const C="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function I(e){return null===e||C(e)}function S(e){return null!=e&&"string"==typeof e}function O(e){return null===e||S(e)}function T(){return!0}function N(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?I:C;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?x:R;break;case"string":case"esriFieldTypeString":r=e.nullable?O:S;break;default:r=T}return 1===arguments.length?r:r(t)}const F=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function P(e){return null!=e&&F.has(e.type)}function E(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var M,A;function j(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function D(e,t){return e.nullable&&null===t?null:P(e)&&!function(e,t){const r="string"==typeof e?q(e):e;return!!r&&(r.isInteger?C(t)&&t>=r.min&&t<=r.max:t>=r.min&&t<=r.max)}(e.type,Number(t))?M.OUT_OF_RANGE:N(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 q(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return L;case"esriFieldTypeInteger":case"integer":return V;case"esriFieldTypeSingle":case"single":return Z;case"esriFieldTypeDouble":case"double":return J}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(M||(M={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(A||(A={}));const L={min:-32768,max:32767,isInteger:!0},V={min:-2147483648,max:2147483647,isInteger:!0},Z={min:-34e37,max:12e37,isInteger:!1},J={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function k(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 M.OUT_OF_RANGE:{const{min:e,max:n}=q(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)}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});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),p=r(71058),h=r(85958);async function d(e,t){var a;const h=(0,c.HK)(e),g=(0,c.jc)(e);g||h||(e=(0,c.Fv)(e));const v={url:e,requestOptions:{...(0,l.Wg)(t)}};let b=(0,c.oh)(e);if(b){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=x("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=x("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(b,v);if(null!=e)return{data:e,getHeader:_,requestOptions:v.requestOptions,url:v.url};b.after||b.error||(b=null)}if(e=v.url,"image"===(t=v.requestOptions).responseType){if((0,o.Z)("host-webworker")||(0,o.Z)("host-node"))throw x("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),v)}else if(h)throw x("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),v);if("head"===t.method){if(t.body)throw x("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),v);if(h||g)throw x("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),v)}if(await async function(){(0,o.Z)("host-webworker")?m||(m=await Promise.all([r.e(102),r.e(9884)]).then(r.bind(r,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const w=new AbortController;(0,u.fu)(t,(()=>w.abort()));const R={controller:w,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:b,params:v,redoRequest:!1,useIdentity:f.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},O=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&&!d._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,p.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!I(t)&&!(0,u.Hc)(s)){let n;"immediate"===r.authMode?(await C(),n=await i.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await C(),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 S(e)}while(!await T(e,s,o))}catch(t){const r=x("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&&f.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}}(R);return null==(a=b)||null==a.after||a.after(O),O}let m;const f=n.Z.request,y="FormData"in globalThis,g=[499,498,403,401],v=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],_=()=>null,w=Symbol();function R(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,c.kl)(t)}function x(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 C(){i.id||await Promise.all([r.e(280),r.e(2785),r.e(102),r.e(7913)]).then(r.bind(r,33107))}function I(e){return b.some((t=>t.test(e)))}async function S(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:f.timeout;let p=!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;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>f.maxUrlLength;const h=r.useProxy||!!(0,c.ed)(t);if(h){const e=(0,c.b7)(t);u=e.path,!p&&u.length+1+l>f.maxUrlLength&&(p=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(p||h)){if(p){if(l>f.maxUrlLength)throw x("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw x("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(h)throw x("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(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,m,g=0,v=!1;l>0&&(g=setTimeout((()=>{v=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)m=n,m.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&f.proxyUrl&&!R(t)){if(h=await d._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)m=h;else if("HEAD"!==n.method)if(h.ok){switch(a){case"array-buffer":m=await h.arrayBuffer();break;case"blob":case"image":m=await h.blob();break;default:m=await h.text()}if(g&&(clearTimeout(g),g=0),"json"===a||"xml"===a||"document"===a)if(m)switch(a){case"json":m=JSON.parse(m);break;case"xml":m=O(m,"application/xml");break;case"document":m=O(m,"text/html")}else m=null;if(m){if("array-buffer"===a||"blob"===a){const e=h.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&m["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(m).json();e.error&&(m=e)}catch{}}"image"===a&&m instanceof Blob&&(m=await N(URL.createObjectURL(m),e,!0))}}else m=await h.text()}else m=await N(t,e)}catch(n){if("AbortError"===n.name){if(v)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!h&&n instanceof TypeError&&f.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||R(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:f.proxyUrl,urlPrefix:(0,c.P$)(t)})}finally{g&&clearTimeout(g)}return[h,m]}function O(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 T(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)&&!I(e.params.url)&&(403!==o||-1===v.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await C();try{const t=await i.id.getCredential(e.params.url,{error:x("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 N(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)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},28694:(e,t,r)=>{r.d(t,{p:()=>s});var n=r(70586),i=r(69285);function s(e,t,r){if(!r||!r.features||!r.hasZ)return;const s=(0,i.k)(r.geometryType,t,e.outSpatialReference);if(!(0,n.Wi)(s))for(const e of r.features)s(e.geometry)}},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:p,Dictionary:h}=await o(),d=i.Z.fromJSON(t),m=u.parseScript(e,l),f=a.reduce(((e,t)=>({...e,[t]:null})),{});let y=null;(0,n.pC)(s)&&(y=new h(s),y.immutable=!0,f.$config=null);const g=u.scriptUsesGeometryEngine(m)&&u.enableGeometrySupport(),v=u.scriptUsesFeatureSet(m)&&u.enableFeatureSetSupport(),b=u.scriptIsAsync(m)&&u.enableAsyncSupport(),_={vars:f,spatialReference:d,useAsync:!!b},w=new h;w.immutable=!1,w.setField("scale",0);const R=u.compileScript(m,_);return await Promise.all([g,v,b]),new c(e,u,h,m,(e=>("$view"in e&&e.$view&&(w.setField("scale",e.$view.scale),e.$view=w),y&&(e.$config=y),R({vars:e,spatialReference:d}))),new p,r,d)}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=()=>{d(),u(new Error(`Unable to load ${t}`))},p=()=>{const t=e;d(),l(t)},h=()=>{if(!e)return;const t=e;d(),t.src="",u(a())};const d=()=>{(0,n.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",p)),c=null,p=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(p,c):(e.addEventListener("error",c),e.addEventListener("load",p))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
|