@arcgis/core 5.0.0-next.22 → 5.0.0-next.24

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.
Files changed (266) hide show
  1. package/analysis/DistanceMeasurementAnalysis.d.ts +4 -0
  2. package/applications/SceneViewer/sceneViewerUtils.d.ts +1 -0
  3. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/01b8e680befff83e7d3e.js +1 -0
  6. package/assets/esri/core/workers/chunks/024104997daea0d74b38.js +1 -0
  7. package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +1 -0
  8. package/assets/esri/core/workers/chunks/05b7720ab6bf0874f27c.js +1 -0
  9. package/assets/esri/core/workers/chunks/06d52a570d5d44f8c86e.js +1 -0
  10. package/assets/esri/core/workers/chunks/0ef9641069433fef3826.js +1 -0
  11. package/assets/esri/core/workers/chunks/155d74b9c0ef31dc2316.js +1 -0
  12. package/assets/esri/core/workers/chunks/19820cddba13a3585c0b.js +1 -0
  13. package/assets/esri/core/workers/chunks/219876879bc543568bcd.js +1 -0
  14. package/assets/esri/core/workers/chunks/231c0b583fa97f2ca675.js +1 -0
  15. package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +1 -0
  16. package/assets/esri/core/workers/chunks/{02cd03ffd024d3ac1aa7.js → 27ec791318e81285c222.js} +1 -1
  17. package/assets/esri/core/workers/chunks/2921f05a40fda12f9f81.js +1 -0
  18. package/assets/esri/core/workers/chunks/2a41283bba2361afa1fd.js +1 -0
  19. package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +1 -0
  20. package/assets/esri/core/workers/chunks/2c7038a7ffaf75344b02.js +1 -0
  21. package/assets/esri/core/workers/chunks/2de32649f8b0c6404d7c.js +1 -0
  22. package/assets/esri/core/workers/chunks/31b5747a254d13acc58e.js +1 -0
  23. package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js → 3266c3392c24ce6cdd83.js} +2 -2
  24. package/assets/esri/core/workers/chunks/3777b41b4fa2f1418402.js +1 -0
  25. package/assets/esri/core/workers/chunks/3bacd904cd93c8013f6a.js +1 -0
  26. package/assets/esri/core/workers/chunks/41a00c77e6f7ce61e476.js +1 -0
  27. package/assets/esri/core/workers/chunks/45729d006db6a569715f.js +1 -0
  28. package/assets/esri/core/workers/chunks/4ab89c990a82c745c0fd.js +1 -0
  29. package/assets/esri/core/workers/chunks/4b14ee37b5ac50a734f9.js +1 -0
  30. package/assets/esri/core/workers/chunks/4cda42b94e9cb58dd372.js +1 -0
  31. package/assets/esri/core/workers/chunks/4ce28c936eaffe57c448.js +1 -0
  32. package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +1 -0
  33. package/assets/esri/core/workers/chunks/58bbc8bc886c071b8ff3.js +1 -0
  34. package/assets/esri/core/workers/chunks/592afe1a41bed3b0cc31.js +1 -0
  35. package/assets/esri/core/workers/chunks/5aeda8a1f2ccabfdf40f.js +1 -0
  36. package/assets/esri/core/workers/chunks/5b290d18de61789417f9.js +1 -0
  37. package/assets/esri/core/workers/chunks/5b73c77587772120b209.js +1 -0
  38. package/assets/esri/core/workers/chunks/60eeeea671a523bb6b15.js +1 -0
  39. package/assets/esri/core/workers/chunks/6428e2f4fc0a6739cc9e.js +1 -0
  40. package/assets/esri/core/workers/chunks/69278d08a7d64917f826.js +2 -0
  41. package/assets/esri/core/workers/chunks/6e5d41f51572e3e7cf92.js +1 -0
  42. package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js → 6f3ffc04086bca30e55d.js} +2 -2
  43. package/assets/esri/core/workers/chunks/70e2804d3710c6af468e.js +2 -0
  44. package/assets/esri/core/workers/chunks/{1e5efacbbc8960f13472.js → 748ab87a25f23d94b662.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js → 78fc9a55e620602db1ff.js} +2 -2
  46. package/assets/esri/core/workers/chunks/7e6fae3660e7a6a0fa16.js +1 -0
  47. package/assets/esri/core/workers/chunks/7ffef8a19166f6b564d8.js +1 -0
  48. package/assets/esri/core/workers/chunks/{867a181969eeeb5f1856.js → 838b3ec88785ac7aa31b.js} +1 -1
  49. package/assets/esri/core/workers/chunks/83aa39fbb1fad3b9d143.js +1 -0
  50. package/assets/esri/core/workers/chunks/88aa71f02f43bb069345.js +1 -0
  51. package/assets/esri/core/workers/chunks/{74a251e7f5be72ca2a5a.js → 8b336a63737e917e50e2.js} +1 -1
  52. package/assets/esri/core/workers/chunks/8d4cc5f1d07b4aa3aea0.js +1 -0
  53. package/assets/esri/core/workers/chunks/8e9a5d38da40702def80.js +1 -0
  54. package/assets/esri/core/workers/chunks/{4f7b7587d7902355f2a1.js → 93fe46be3c7fe34b5361.js} +1 -1
  55. package/assets/esri/core/workers/chunks/9461cc37ab3397265270.js +1 -0
  56. package/assets/esri/core/workers/chunks/9527f1a611557a7af237.js +1 -0
  57. package/assets/esri/core/workers/chunks/97b01803d0c38541aa08.js +1 -0
  58. package/assets/esri/core/workers/chunks/9921c8d4487a0f580b93.js +1 -0
  59. package/assets/esri/core/workers/chunks/9d0f0d055ec25af037e0.js +1 -0
  60. package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +1 -0
  61. package/assets/esri/core/workers/chunks/a4f492aa5444e6381063.js +1 -0
  62. package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js → a67c3958d76d10c04fa6.js} +2 -2
  63. package/assets/esri/core/workers/chunks/aac313257a8b1ae75b75.js +1 -0
  64. package/assets/esri/core/workers/chunks/b48bb38e5d60fc7a9097.js +1 -0
  65. package/assets/esri/core/workers/chunks/b4c0a53c46ce4671d4c3.js +1 -0
  66. package/assets/esri/core/workers/chunks/bd58c027408dc858f23c.js +1 -0
  67. package/assets/esri/core/workers/chunks/be06c8a58c217a17451b.js +1 -0
  68. package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js → be631029691d9a320cb5.js} +2 -2
  69. package/assets/esri/core/workers/chunks/c5d6b416baf24e74b9ba.js +1 -0
  70. package/assets/esri/core/workers/chunks/cade149fa19b4d06dd24.js +1 -0
  71. package/assets/esri/core/workers/chunks/ccde4f65377228b017a8.js +1 -0
  72. package/assets/esri/core/workers/chunks/d21ae4980741be98f948.js +1 -0
  73. package/assets/esri/core/workers/chunks/d32aad968798948946e4.js +1 -0
  74. package/assets/esri/core/workers/chunks/d56548a994753b08403c.js +1 -0
  75. package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js → d9251c3c85c3ddd242c8.js} +2 -2
  76. package/assets/esri/core/workers/chunks/{6e9c88f66bcfc3476b44.js → db0f9267fbda893de043.js} +1 -1
  77. package/assets/esri/core/workers/chunks/e0369ce0d729c9656488.js +1 -0
  78. package/assets/esri/core/workers/chunks/e08a1934d98e7324776d.js +1 -0
  79. package/assets/esri/core/workers/chunks/e0b70652da4a7f672cfc.js +1 -0
  80. package/assets/esri/core/workers/chunks/{bfc171f630da9314d860.js → e5baa30944061418cb13.js} +1 -1
  81. package/assets/esri/core/workers/chunks/e689a4849f5af3f2f641.js +1 -0
  82. package/assets/esri/core/workers/chunks/e6df4327ac1d9b65b80d.js +1 -0
  83. package/assets/esri/core/workers/chunks/f4919950a9a3703d9da3.js +1 -0
  84. package/assets/esri/core/workers/chunks/f4eb5de69ad9b7763582.js +1 -0
  85. package/assets/esri/core/workers/chunks/f6ce485c082d0d640b01.js +1 -0
  86. package/assets/esri/core/workers/chunks/fd9ef4b8c969962cf72b.js +1 -0
  87. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  88. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  89. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  90. package/assets/esri/themes/base/widgets/_FeatureTable.scss +0 -1
  91. package/assets/esri/themes/dark/main.css +1 -1
  92. package/assets/esri/themes/light/main.css +1 -1
  93. package/assets/esri/themes/light/view.css +1 -1
  94. package/assets/esri/widgets/support/GridControls/t9n/GridControls.json +1 -1
  95. package/assets/esri/widgets/support/GridControls/t9n/GridControls_en.json +1 -1
  96. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  97. package/chunks/arcgis-knowledge-client-core.js +1 -1
  98. package/config.js +1 -1
  99. package/interfaces.d.ts +355 -73
  100. package/kernel.js +1 -1
  101. package/layers/BaseDynamicLayer.js +1 -1
  102. package/layers/BaseElevationLayer.js +1 -1
  103. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  104. package/layers/VideoLayer.js +1 -1
  105. package/layers/graphics/sources/support/QueryTask.js +1 -1
  106. package/layers/mixins/ArcGISImageService.js +1 -1
  107. package/layers/support/PublishingInfo.js +1 -1
  108. package/layers/support/RasterBandInfo.js +1 -1
  109. package/layers/support/RasterSensorInfo.js +1 -1
  110. package/layers/support/SubtypeSublayer.js +1 -1
  111. package/layers/support/vectorTileLayerLoader.js +1 -1
  112. package/layers/voxel/VoxelVariable.js +1 -1
  113. package/package.json +6 -6
  114. package/rest/support/FindImagesResult.js +1 -1
  115. package/rest/support/ImageAreaResult.js +1 -1
  116. package/rest/support/ImageBoundaryResult.js +1 -1
  117. package/rest/support/ImageDistanceResult.js +1 -1
  118. package/rest/support/ImageGPSInfoResult.js +1 -1
  119. package/rest/support/ImageHeightResult.js +1 -1
  120. package/rest/support/ImageIdentifyResult.js +1 -1
  121. package/rest/support/ImagePixelLocationResult.js +1 -1
  122. package/rest/support/ImagePointResult.js +1 -1
  123. package/rest/support/ImageSampleResult.js +1 -1
  124. package/rest/support/ImageUrlResult.js +1 -1
  125. package/rest/support/ImageVolumeResult.js +1 -1
  126. package/rest/support/MeasureAreaFromImageResult.js +1 -1
  127. package/rest/support/MeasureLengthFromImageResult.js +1 -1
  128. package/support/revision.js +1 -1
  129. package/symbols/cim/CIMEffects.js +1 -1
  130. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  131. package/symbols/cim/CIMSymbolHelper.js +1 -1
  132. package/symbols/cim/placements/PlacementAtMeasuredUnits.js +1 -1
  133. package/unionTypes.d.ts +0 -1
  134. package/views/2d/analysis/AreaMeasurement/AreaMeasurementAreaVisualization.js +1 -1
  135. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  136. package/views/2d/analysis/AreaMeasurement/utils.js +5 -0
  137. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -0
  138. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  139. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -0
  140. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  141. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  142. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  143. package/views/3d/analysis/Dimension/types.d.ts +3 -0
  144. package/views/3d/analysis/Dimension/types.js +5 -0
  145. package/views/3d/analysis/DirectLineMeasurement/types.d.ts +4 -0
  146. package/views/3d/analysis/DirectLineMeasurement/types.js +5 -0
  147. package/views/3d/analysis/LineOfSight/types.d.ts +3 -0
  148. package/views/3d/analysis/LineOfSight/types.js +5 -0
  149. package/views/3d/analysis/Slice/types.d.ts +3 -0
  150. package/views/3d/analysis/Slice/types.js +5 -0
  151. package/views/3d/analysis/Viewshed/types.d.ts +3 -0
  152. package/views/3d/analysis/Viewshed/types.js +5 -0
  153. package/views/3d/analysis/VolumeMeasurement/types.d.ts +3 -0
  154. package/views/3d/analysis/VolumeMeasurement/types.js +5 -0
  155. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  156. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  157. package/views/3d/support/popupHitTest.js +1 -1
  158. package/views/3d/terrain/TerrainSurface.js +1 -1
  159. package/views/3d/terrain/Tile.js +1 -1
  160. package/views/LinkChartView.js +1 -1
  161. package/views/VideoView.js +1 -1
  162. package/views/analysis/AreaMeasurement/types.d.ts +4 -0
  163. package/views/analysis/AreaMeasurement/types.js +5 -0
  164. package/views/analysis/DistanceMeasurement/types.d.ts +4 -0
  165. package/views/analysis/DistanceMeasurement/types.js +5 -0
  166. package/views/analysis/types.d.ts +3 -0
  167. package/views/analysis/types.js +5 -0
  168. package/views/draw/support/Reshape.js +1 -1
  169. package/views/input/Input.js +1 -1
  170. package/views/layers/BuildingComponentSublayerView.js +1 -1
  171. package/views/layers/SceneLayerView.js +1 -1
  172. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  173. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  174. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  175. package/widgets/Editor/workflowUtils.js +1 -1
  176. package/widgets/FeatureTable/FieldColumn.js +1 -1
  177. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  178. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  179. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  180. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  181. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  182. package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
  183. package/widgets/Sketch/SketchViewModel.js +1 -1
  184. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  185. package/widgets/Sketch.js +1 -1
  186. package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
  187. package/widgets/support/GridControls.js +1 -1
  188. package/widgets/support/SelectionToolbar.js +1 -1
  189. package/assets/esri/core/workers/chunks/038eba6d3a6bcf8ccd67.js +0 -1
  190. package/assets/esri/core/workers/chunks/03ed15ba64f1679b3d48.js +0 -1
  191. package/assets/esri/core/workers/chunks/04bac7bb3f794b33e2e4.js +0 -1
  192. package/assets/esri/core/workers/chunks/092d72caf3269e696d1c.js +0 -1
  193. package/assets/esri/core/workers/chunks/11fdcb8a74a80e9a47a3.js +0 -1
  194. package/assets/esri/core/workers/chunks/1466ab7bd500ba7a4025.js +0 -1
  195. package/assets/esri/core/workers/chunks/16f841f12b32d8a500a9.js +0 -1
  196. package/assets/esri/core/workers/chunks/1b9f93ab226232c5019a.js +0 -1
  197. package/assets/esri/core/workers/chunks/1beee2932154db83f79d.js +0 -1
  198. package/assets/esri/core/workers/chunks/1cae81089b50b7e43d70.js +0 -1
  199. package/assets/esri/core/workers/chunks/1fcd4d90a99e85d35dd2.js +0 -1
  200. package/assets/esri/core/workers/chunks/21d7f42c2033de987b97.js +0 -1
  201. package/assets/esri/core/workers/chunks/24ff9dad3fb64ab54970.js +0 -1
  202. package/assets/esri/core/workers/chunks/26282c67d2b066a76881.js +0 -1
  203. package/assets/esri/core/workers/chunks/2719865e28d577da7b2a.js +0 -1
  204. package/assets/esri/core/workers/chunks/2d3e7b41b225d905c7f4.js +0 -1
  205. package/assets/esri/core/workers/chunks/30a631c39c9372797b92.js +0 -1
  206. package/assets/esri/core/workers/chunks/388873be1dca91ccbc9d.js +0 -1
  207. package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js +0 -2
  208. package/assets/esri/core/workers/chunks/44e08b49898a8fcbe031.js +0 -1
  209. package/assets/esri/core/workers/chunks/4731f507149940dde534.js +0 -1
  210. package/assets/esri/core/workers/chunks/48ca09958c3d50de48dc.js +0 -1
  211. package/assets/esri/core/workers/chunks/4d0e099f34639cda3a9b.js +0 -1
  212. package/assets/esri/core/workers/chunks/5a6b487b70ca85a45f57.js +0 -1
  213. package/assets/esri/core/workers/chunks/5b5f1f22de985dc6bbc0.js +0 -1
  214. package/assets/esri/core/workers/chunks/5c82b17f9990e6cd7d0b.js +0 -1
  215. package/assets/esri/core/workers/chunks/5cc023e1066641f9f20c.js +0 -1
  216. package/assets/esri/core/workers/chunks/61bb39597ccf89f99a72.js +0 -1
  217. package/assets/esri/core/workers/chunks/67bc5b87fd61095689d4.js +0 -1
  218. package/assets/esri/core/workers/chunks/6bf5b3c7129aa14b4fc6.js +0 -1
  219. package/assets/esri/core/workers/chunks/755e2ecd20b6bd1909be.js +0 -1
  220. package/assets/esri/core/workers/chunks/768e1ad2f06fdc9d5ef8.js +0 -1
  221. package/assets/esri/core/workers/chunks/7a957f2bca1438732338.js +0 -1
  222. package/assets/esri/core/workers/chunks/7d9773c87650856f2d9e.js +0 -1
  223. package/assets/esri/core/workers/chunks/809a9055da28c8fa58b0.js +0 -1
  224. package/assets/esri/core/workers/chunks/8af47cc9cee2f3031162.js +0 -1
  225. package/assets/esri/core/workers/chunks/8bbae8ac586e5c0819d2.js +0 -1
  226. package/assets/esri/core/workers/chunks/8cd03b54b2859b52fb81.js +0 -1
  227. package/assets/esri/core/workers/chunks/8f85039d76f03fbdd27a.js +0 -1
  228. package/assets/esri/core/workers/chunks/93f706acaa812bb3ac70.js +0 -1
  229. package/assets/esri/core/workers/chunks/976dd80e318266ab4c2c.js +0 -1
  230. package/assets/esri/core/workers/chunks/9a20be3b02c9d6349b8d.js +0 -1
  231. package/assets/esri/core/workers/chunks/9dae3e4e34096b3d82d7.js +0 -1
  232. package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +0 -1
  233. package/assets/esri/core/workers/chunks/9f9e20321ee44675e107.js +0 -1
  234. package/assets/esri/core/workers/chunks/a02ffa7916cf9da55608.js +0 -1
  235. package/assets/esri/core/workers/chunks/a0b0fe0d99df20fa9076.js +0 -1
  236. package/assets/esri/core/workers/chunks/a987731d1b5449d8fb0c.js +0 -1
  237. package/assets/esri/core/workers/chunks/ad9606164c694af0c61f.js +0 -1
  238. package/assets/esri/core/workers/chunks/b0e52c3775f05aaf7ff6.js +0 -1
  239. package/assets/esri/core/workers/chunks/bfd3d81e8e148be99686.js +0 -1
  240. package/assets/esri/core/workers/chunks/c1e4e9ab4a543e8b350d.js +0 -1
  241. package/assets/esri/core/workers/chunks/cbc5131723cbe29cb88f.js +0 -1
  242. package/assets/esri/core/workers/chunks/ce00509970e7e6eacbdf.js +0 -1
  243. package/assets/esri/core/workers/chunks/cec95ed69c86758d95ec.js +0 -1
  244. package/assets/esri/core/workers/chunks/d391bfbaf0e790cd10d6.js +0 -2
  245. package/assets/esri/core/workers/chunks/d622fb553babd515a21f.js +0 -1
  246. package/assets/esri/core/workers/chunks/dcd6ee9e00ebd519c4a7.js +0 -1
  247. package/assets/esri/core/workers/chunks/ddb55435adeda1e2a1bf.js +0 -1
  248. package/assets/esri/core/workers/chunks/e5208898910c1222b7e6.js +0 -1
  249. package/assets/esri/core/workers/chunks/e5a9c37de44508e9733b.js +0 -1
  250. package/assets/esri/core/workers/chunks/e5b42ddec8e424602e03.js +0 -1
  251. package/assets/esri/core/workers/chunks/eaabb5b010b7bb850b0a.js +0 -1
  252. package/assets/esri/core/workers/chunks/eafc4da265469e9e5e0b.js +0 -1
  253. package/assets/esri/core/workers/chunks/eb1b582a73111c8556c1.js +0 -1
  254. package/assets/esri/core/workers/chunks/f594df2f5ce6ca41a254.js +0 -1
  255. package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +0 -1
  256. package/assets/esri/core/workers/chunks/f888849b0236cc0d6f50.js +0 -1
  257. package/assets/esri/core/workers/chunks/fbcc4cbb221c0fbb90d4.js +0 -1
  258. package/views/2d/analysis/AreaMeasurement/AreaMeasurementLabelVisualization.js +0 -5
  259. /package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js.LICENSE.txt → 3266c3392c24ce6cdd83.js.LICENSE.txt} +0 -0
  260. /package/assets/esri/core/workers/chunks/{d391bfbaf0e790cd10d6.js.LICENSE.txt → 69278d08a7d64917f826.js.LICENSE.txt} +0 -0
  261. /package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js.LICENSE.txt → 6f3ffc04086bca30e55d.js.LICENSE.txt} +0 -0
  262. /package/assets/esri/core/workers/chunks/{3a457e718a901a45902e.js.LICENSE.txt → 70e2804d3710c6af468e.js.LICENSE.txt} +0 -0
  263. /package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js.LICENSE.txt → 78fc9a55e620602db1ff.js.LICENSE.txt} +0 -0
  264. /package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js.LICENSE.txt → a67c3958d76d10c04fa6.js.LICENSE.txt} +0 -0
  265. /package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js.LICENSE.txt → be631029691d9a320cb5.js.LICENSE.txt} +0 -0
  266. /package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js.LICENSE.txt → d9251c3c85c3ddd242c8.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4971],{18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(31635),s=i(53966),n=i(91429),o=i(60694);const a=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}},20615:(e,t,i)=>{i.d(t,{I:()=>o});var r=i(2272),s=i(80893),n=i(61956);function o(e,t,i,o){return(0,s.gW)((0,r.Dl)(e),n.A.from(t),i,o)}},27647:(e,t,i)=>{i.d(t,{Q:()=>n});var r=i(92722);function s(e,t){return e?t?4:3:t?3:2}function n(e){if(null==e)return null;if(!e?.lengths.length)return null;const{lengths:t,coords:i,stride:s,hasZ:n,hasM:l}=e,u=new r.A([],[],n,!1),p=u.coords,c=[],m=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];let d=0;for(const e of t){const t=o(m,i,d,e,n,l);t&&c.push(t),d+=e*s}if(c.sort((e,t)=>{let i=e[2]-t[2];return 0===i&&n&&(i=e[4]-t[4]),i}),c.length){let e=6*c[0][2];p[0]=c[0][0]/e,p[1]=c[0][1]/e,n&&(e=6*c[0][4],p[2]=0!==e?c[0][3]/e:0),(p[0]<m[0]||p[0]>m[1]||p[1]<m[2]||p[1]>m[3]||n&&(p[2]<m[4]||p[2]>m[5]))&&(p.length=0)}if(!p.length){const r=e.lengths[0]?a(i,0,t[0],n,l):null;if(!r)return null;p[0]=r[0],p[1]=r[1],n&&(p[2]=r[2]??0)}return u}function o(e,t,i,r,n,o){const a=s(n,o);let l=i,u=i+a,p=0,c=0,m=0,d=0,h=0;for(let i=0,s=r-1;i<s;i++,l+=a,u+=a){const i=t[l],r=t[l+1],s=t[l+2],o=t[u],a=t[u+1],y=t[u+2];let g=i*a-o*r;d+=g,p+=(i+o)*g,c+=(r+a)*g,n&&(g=i*y-o*s,m+=(s+y)*g,h+=g),i<e[0]&&(e[0]=i),i>e[1]&&(e[1]=i),r<e[2]&&(e[2]=r),r>e[3]&&(e[3]=r),n&&(s<e[4]&&(e[4]=s),s>e[5]&&(e[5]=s))}if(d>0&&(d*=-1),h>0&&(h*=-1),!d)return null;const y=[p,c,.5*d];return n&&(y[3]=m,y[4]=.5*h),y}function a(e,t,i,r,n){const o=s(r,n);let a=t,m=t+o,d=0,h=0,y=0,g=0;for(let t=0,s=i-1;t<s;t++,a+=o,m+=o){const t=e[a],i=e[a+1],s=e[a+2],n=e[m],o=e[m+1],f=e[m+2],w=r?u(t,i,s,n,o,f):l(t,i,n,o);if(w)if(d+=w,r){const e=c(t,i,s,n,o,f);h+=w*e[0],y+=w*e[1],g+=w*e[2]}else{const e=p(t,i,n,o);h+=w*e[0],y+=w*e[1]}}return d>0?r?[h/d,y/d,g/d]:[h/d,y/d]:i>0?r?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function l(e,t,i,r){const s=i-e,n=r-t;return Math.sqrt(s*s+n*n)}function u(e,t,i,r,s,n){const o=r-e,a=s-t,l=n-i;return Math.sqrt(o*o+a*a+l*l)}function p(e,t,i,r){return[e+.5*(i-e),t+.5*(r-t)]}function c(e,t,i,r,s,n){return[e+.5*(r-e),t+.5*(s-t),i+.5*(n-i)]}},33446:(e,t,i)=>{i.d(t,{C:()=>o,m:()=>n});var r=i(49186),s=i(74887);async function n(e,t,i){let n;try{n=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(i),n}async function o(e,t,i,n,o){let a;try{a=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load tile ${t}/${i}/${n}`,{error:e,level:t,row:i,col:n})}return(0,s.Te)(o),a}},43334:(e,t,i)=>{i.d(t,{N3:()=>a,Om:()=>o});var r=i(69397),s=i(27647),n=i(92722);class o{constructor(e=null,t={},i,r,s=0){this.geometry=e,this.attributes=t,this.centroid=i,this.objectId=r,this.displayId=s}static fromJSON(e){const t=e.geometry?n.A.fromJSON(e.geometry):null,i=e.centroid?n.A.fromJSON(e.centroid):null,r=e.objectId;return new o(t,e.attributes,i,r)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t}ensureCentroid(e){return this.centroid??=(0,s.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,r.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function a(e){return!!e.geometry?.coords?.length}},56551:(e,t,i)=>{i.d(t,{H:()=>c});var r=i(31635),s=i(91429),n=i(69540),o=i(25482),a=i(56507),l=i(94359),u=i(93223);let p=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],p.prototype,"method",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)({type:[a.jz],json:{write:{isRequired:!0}}})],p.prototype,"bandIds",void 0),(0,r.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],p.prototype,"renderer",void 0),p=(0,r.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],p);const c=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],i.prototype,"activePresetRendererName",void 0),(0,r.Cg)([(0,s.MZ)({type:[p],json:{name:"layerDefinition.presetRenderers",write:!0}})],i.prototype,"presetRenderers",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],i),i}},58501:(e,t,i)=>{i.d(t,{q:()=>s});var r=i(62815);function s(e,t,i){if(!i?.features||!i.hasZ)return;const s=(0,r.N)(i.geometryType,t,e.outSpatialReference);if(s)for(const e of i.features)s(e.geometry)}},58512:(e,t,i)=>{i.d(t,{A:()=>r});class r{constructor(){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 r;return 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}}},69397:(e,t,i)=>{i.d(t,{$B:()=>s,Qf:()=>u,Qh:()=>a,RS:()=>n,ez:()=>m,lM:()=>o,qK:()=>c});var r=i(34275);function s(e){return 32+e.length}const n=16;function o(e){if(!e)return 0;let t=c;for(const i in e)e.hasOwnProperty(i)&&(t+=l(e[i],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return p(e,8);let i=m;for(let r=0;r<t;r++)i+=l(e[r]);return i}(e);let t=c;for(const i in e)e.hasOwnProperty(i)&&(t+=l(e[i]));return t}function l(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return s(e);case"number":return n;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+d:Array.isArray(t)?p(t,n):0:0),0)}function p(e,t){return m+e.length*t}const c=32,m=16,d=145},74379:(e,t,i)=>{i.d(t,{V:()=>r,t:()=>s});const r=Symbol("isImageryGraphicOrigin");function s(e){return!!e&&r in e}},78286:(e,t,i)=>{i.d(t,{V:()=>o});var r=i(2272),s=i(80893),n=i(61956);async function o(e,t,i,o){const a=(0,r.Dl)(e),l=await(0,s.Pk)(a,n.A.from(t),i,o);return l.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(l.uniqueIds)??[]}},82371:(e,t,i)=>{i.d(t,{E9:()=>h,Tw:()=>m,X6:()=>d});var r=i(11254),s=i(5443),n=i(86738),o=i(16930),a=i(87186),l=i(20223),u=i(2272),p=i(22671);async function c(e,t,i){const c=(0,u.Dl)(e),{rasterFunction:m,sourceJSON:d}=t||{},h=m?JSON.stringify(m.rasterFunctionDefinition||m):null,y=(0,u.lF)({...c.query,renderingRule:h,f:"json"}),g=(0,u.jV)(y,i);e=c.path;const f=d||await(0,r.A)(e,g).then(e=>e.data),w=f.hasRasterAttributeTable?(0,r.A)(`${e}/rasterAttributeTable`,g):null,v=f.hasColormap?(0,r.A)(`${e}/colormap`,g):null,R=f.hasHistograms?(0,r.A)(`${e}/histograms`,g):null,C=f.currentVersion>=10.3?(0,r.A)(`${e}/keyProperties`,g):null,b=f.hasMultidimensions?(0,r.A)(`${e}/multidimensionalInfo`,g):null,S=await Promise.allSettled([w,v,R,C,b]);let I=null;if(f.minValues&&f.minValues.length===f.bandCount){I=[];for(let e=0;e<f.minValues.length;e++)I.push({min:f.minValues[e],max:f.maxValues[e],avg:f.meanValues[e],stddev:f.stdvValues[e]})}const F=s.A.fromJSON(f.extent),M=Math.ceil(F.width/f.pixelSizeX-.1),x=Math.ceil(F.height/f.pixelSizeY-.1),A=o.A.fromJSON(f.spatialReference||f.extent.spatialReference),D="fulfilled"===S[0].status?S[0].value?.data:null,T=D?.features?.length?p.A.fromJSON(D):null,N="fulfilled"===S[1].status?S[1].value?.data.colormap:null,P=N?.length?N:null,O="fulfilled"===S[2].status?S[2].value?.data.histograms:null,Z=O?.[0]?.counts?.length?O:null,j="fulfilled"===S[3].status?S[3].value?.data??{}:{},_="fulfilled"===S[4].status?S[4].value?.data.multidimensionalInfo:null,V=_?.variables?.length?_:null;V&&V.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});const{defaultVariable:q,serviceDataType:E}=f;q&&q!==j.DefaultVariable&&(j.DefaultVariable=q),E?.includes("esriImageServiceDataTypeVector")&&!E.includes(j.DataType)&&(j.DataType=E.replace("esriImageServiceDataType",""));let J=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==J)&&(J=f.noDataValues);const G=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:A}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(M,x))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new a.A({width:M,height:x,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:A,pixelSize:new n.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:A}),pixelType:f.pixelType.toLowerCase(),statistics:I,attributeTable:T,colormap:P,histograms:Z,keyProperties:j,noDataValue:J,multidimensionalInfo:V,storageInfo:G})}function m(e,t,i){return c(e,{sourceJSON:t},i)}function d(e,t,i){return c(e,{rasterFunction:t},i)}function h(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},84123:(e,t,i)=>{i.r(t),i.d(t,{default:()=>ui});var r,s=i(31635),n=i(37838),o=i(69540),a=i(49186),l=i(53966),u=i(25728),p=i(74887),c=i(91429),m=i(89808),d=i(99959),h=i(74379);class y extends d.A{get[(r=h.V,m.Q)](){return this.layer}constructor(e){super(),this[r]=!0,this.type="imagery",this.layer=e}get id(){return this.layer.id}}var g=i(4146),f=i(52106),w=i(11254),v=i(51447),R=i(4718),C=i(36708),b=i(84952),S=i(56507),I=i(5443),F=i(39829),M=i(16930),x=i(21325),A=i(10873),D=i(45617),T=i(25482),N=i(22796),P=i(16019);const O={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var Z=i(67369),j=i(70274),_=i(48940);const V=new Set(["u1","u2","u4","u8","s8","u16","s16"]),q={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)"},E=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function J(e){return E.has(e.type)}function G(e,t){if(!e||!t)return(0,R.o8)(e||t);const i=(0,R.o8)(e);if(i.functionDefinition&&t.rasterFunctionDefinition){const e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),L(i.functionDefinition.arguments,t),i.rasterFunctionDefinition=i.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&($(i.functionArguments).Raster=t);return i}function L(e,t){for(const i in e)"raster"===i.toLowerCase()&&("RasterFunctionVariable"===e[i].type?(e[i]=t.rasterFunctionDefinition,e[i].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[i].type&&L(e[i].arguments,t))}function z(e){const t=(0,R.o8)(O[e.functionName+"Function"]),i=e.functionArguments;for(const e in i)"raster"===e.toLowerCase()?(t.arguments[e]=z(i[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=k(i[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=i[e];return t}function $(e){const t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?$(t.functionArguments):e}const U={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function B(e,t){const i=V.has(t)?(0,P.hP)(t):null;return i&&e.push([Math.floor(i[0]-1),0,0,0],[Math.ceil(i[1]+1),0,0,0]),e}function K(e){if(null==e)return;const{fields:t}=e,i=t?.find(e=>e?.name&&"value"===e.name.toLowerCase());return i?.name}function Q(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}function k(e){const t=[],i=[];return e.forEach(e=>{t.push(e[0]),i.push((0,Z.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:i}}var H=i(85675),W=i(13868),Y=i(43937);let X=class extends T.o{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,i){this.layer.version<10.3||(t[i]=e)}get bandIds(){return this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,i){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[i]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get format(){return this.requestRawData||"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){const{layer:e}=this;return e.pixelType!==e.serviceRasterInfo.pixelType?e.pixelType:void 0}writeLercVersion(e,t,i){"lerc"===this.format&&this.layer.version>=10.5&&(t[i]=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("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const i=e.definitionExpression;return t?i&&i!==t.where&&(t=t.clone(),t.where=i):i&&(t=new H.A({where:i})),t}get rasterFunction(){const e=this.layer;let{rasterFunction:t}=e;const i=e.pixelFilter,r=!e.format||e.format.includes("jpg")||e.format.includes("png");this.requestRawData||(t=this._addResampleRasterFunction(t));const s=e.multidimensionalSubset?.areaOfInterest;return s&&(t=function(e,t){return G(new N.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,s)),this.requestRawData||!r||i||"vector-field"===e.renderer?.type||(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){const t=this.layer,{rasterInfo:i,renderer:r}=t;return e=e||t.rasterFunction,r&&J(r)?G(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const i=t.convertToRFT,r=new N.A;r.functionName="Stretch";const s=U[j.u.toJSON(e.stretchType)],n="u8",o=e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),a={StretchType:s,Statistics:o,DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(a.Min=e.outputMin),null!=e.outputMax&&(a.Max=e.outputMax),s===U.standardDeviation?(a.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType=n):s===U.percentClip?(a.MinPercent=e.minPercent,a.MaxPercent=e.maxPercent,r.outputPixelType=n):s===U.minMax?r.outputPixelType=n:s===U.sigmoid&&(a.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=a,r.variableName="Raster",e.colorRamp){const s=e.colorRamp,n=new N.A;if(i)n.functionArguments={ColorRamp:(0,Z.hf)(s)};else{const i=(0,Z.hs)(s,!0);if(i)n.functionArguments={colorRampName:i};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){const t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,Z.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,i?new N.A({rasterFunctionDefinition:z(n)}):n}return i?new N.A({rasterFunctionDefinition:z(r)}):r}(e,t);case"class-breaks":return function(e,t){const i=[],r=[],s=[],n=[],o=1e-4,{pixelType:a,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=K(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach((t,i)=>{const r=t.symbol?.color;let s;r?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach(o=>{null!=t.minValue&&null!=t.maxValue&&(s=o.attributes[e.field],(s>=t.minValue&&s<t.maxValue||i===e.classBreakInfos.length-1&&s>=t.minValue)&&n.push([o.attributes[p],r.r,r.g,r.b]))})});const i=a?B(n,a):n,r=new N.A;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=i,r.variableName="Raster",t.convertToRFT?new N.A({rasterFunctionDefinition:z(r)}):r}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;const a=e.symbol&&e.symbol.color;a?.a?(0===t?i.push(e.minValue,e.maxValue+o):i.push(e.minValue+o,e.maxValue+o),r.push(t),n.push([t,a.r,a.g,a.b])):s.push(e.minValue,e.maxValue)});const c=a?B(n,a):n,m=new N.A;m.functionName="Remap",m.functionArguments={InputRanges:i,OutputValues:r,NoDataRanges:s},m.variableName="Raster";const d=new N.A;return d.functionName="Colormap",d.functionArguments={Colormap:c,Raster:m},t.convertToRFT?new N.A({rasterFunctionDefinition:z(d)}):d}(e,t);case"unique-value":return function(e,t){const i=[],{pixelType:r,rasterAttributeTable:s}=t,n=null==s?null:s.features,o=K(s),a=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(o){const t=new Map;l.forEach(e=>{const i=e.value,r=Q(e);null!=i&&r?.a&&t.set(String(i),r.toRgb())});const r=e.field;r&&n.forEach(({attributes:e})=>{const s=String(e[r]),n=e[o],l=t.get(s);l?i.push([n,...l]):a&&i.push([n,...a])})}}else for(let e=0;e<l.length;e++){const t=l[e],r=Q(t),s=+t.value;if(r?.a){if(isNaN(s))return null;i.push([s,r.r,r.g,r.b])}}const u=r?B(i,r):i,p=new N.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new N.A({rasterFunctionDefinition:z(p)}):p}(e,t);case"raster-colormap":return function(e,t){const i=e.extractColormap();if(!i||0===i.length)return null;const{pixelType:r}=t,s=r?B(i,r):i,n=new N.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new N.A({rasterFunctionDefinition:z(n)}):n}(e,t);case"vector-field":return function(e,t){const i=new N.A;i.functionName="VectorFieldRenderer";const{dataType:r,bandNames:s}=t,n="vector-uv"===r;let o,a;if(s&&2===s.length){const e=s.map(e=>e.toLowerCase());o=e.indexOf("magnitude"),a=e.indexOf("direction")}-1!==o&&null!==o||(o=0,a=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new _.A,c={magnitudeBandID:o,directionBandID:a,isUVComponents:n,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:q[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};i.functionArguments=c;const m=z(i);return t.convertToRFT?N.A.fromJSON({rasterFunctionDefinition:m}):i}(e,t);case"raster-shaded-relief":return function(e,t){const i=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new N.A;const r=new N.A;r.functionName="Hillshade";const s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,o={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(o.Azimuth=e.azimuth,o.Altitude=e.altitude),3===n&&(o.PSPower=e.pixelSizePower,o.PSZFactor=e.pixelSizeFactor),r.functionArguments=o,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",i?o.ColorRamp=(0,Z.hf)(e.colorRamp):o.Colormap=(0,Z.R8)(e.colorRamp)),i?new N.A({rasterFunctionDefinition:z(r)}):r}(e,t);case"flow":throw new Error("Unsupported rendering rule.")}}(r,{rasterAttributeTable:i.attributeTable,pixelType:i.pixelType,dataType:i.dataType,bandNames:i.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:i.bandCount}),e):e}_addResampleRasterFunction(e){if("vector-field"!==this.layer.renderer?.type||"Resample"===e?.functionName)return e;const t="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10,i=this.layer.serviceRasterInfo.pixelSize;let r=new N.A({functionName:"Resample",functionArguments:{ResamplingType:t,InputCellSize:i}});return r=e?.rasterFunctionDefinition?new N.A({rasterFunctionDefinition:z(r)}):r,G(r,e)}};(0,s.Cg)([(0,c.MZ)()],X.prototype,"layer",void 0),(0,s.Cg)([(0,c.MZ)()],X.prototype,"requestRawData",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],X.prototype,"adjustAspectRatio",null),(0,s.Cg)([(0,Y.K)("adjustAspectRatio")],X.prototype,"writeAdjustAspectRatio",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],X.prototype,"bandIds",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],X.prototype,"compression",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],X.prototype,"compressionQuality",null),(0,s.Cg)([(0,Y.K)("compressionQuality")],X.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],X.prototype,"compressionTolerance",null),(0,s.Cg)([(0,Y.K)("compressionTolerance")],X.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],X.prototype,"format",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:{reader:W.SZ.read},write:{writer:W.SZ.write}}})],X.prototype,"interpolation",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],X.prototype,"noData",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:{reader:W.hm.read},write:{writer:W.hm.write}}})],X.prototype,"noDataInterpretation",null),(0,s.Cg)([(0,c.MZ)({type:W.e8.apiValues,json:{read:W.e8.read,write:W.e8.write}})],X.prototype,"pixelType",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],X.prototype,"lercVersion",void 0),(0,s.Cg)([(0,Y.K)("lercVersion")],X.prototype,"writeLercVersion",null),(0,s.Cg)([(0,c.MZ)({type:Number})],X.prototype,"version",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],X.prototype,"mosaicRule",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0,name:"renderingRule"}})],X.prototype,"rasterFunction",null),X=(0,s.Cg)([(0,c.$K)("esri.layers.support.ExportImageServiceParameters")],X);var ee=i(20437),te=i(95466),ie=i(33446),re=i(43577),se=i(14140),ne=i(74797),oe=i(87186),ae=i(77301),le=i(77649),ue=i(28435),pe=i(14636),ce=i(12711),me=i(85676),de=i(94359),he=i(65864),ye=i(17136),ge=i(2272),fe=i(86738);let we=class extends((0,o.OU)(T.o)){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{read:!0}})],we.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{read:!0,write:!0}})],we.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],we.prototype,"objectIds",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],we.prototype,"where",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],we.prototype,"maxCount",void 0),we=(0,s.Cg)([(0,c.$K)("esri.rest.support.FindImagesParameters")],we);const ve=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"make",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"model",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"focalLength",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"rows",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],i.prototype,"cols",void 0),i=(0,s.Cg)([(0,c.$K)("esri.rest.support.CameraInfoMixin")],i),i};let Re=class extends(ve(T.o)){constructor(){super(...arguments),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Re.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"uri",write:!0}})],Re.prototype,"referenceUri",void 0),(0,s.Cg)([(0,c.MZ)({type:Date,json:{write:!0}})],Re.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,Y.K)("acquisitionDate")],Re.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Re.prototype,"cameraID",void 0),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{write:!0}})],Re.prototype,"center",void 0),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{write:!0}})],Re.prototype,"perspectiveCenter",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Re.prototype,"orientation",void 0),Re=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageInspectionInfo")],Re);const Ce=Re;let be=class extends T.o{constructor(){super(...arguments),this.images=null}};var Se;(0,s.Cg)([(0,c.MZ)({type:[Ce],json:{write:!0}})],be.prototype,"images",void 0),be=(0,s.Cg)([(0,c.$K)("esri.rest.support.FindImagesResult")],be);let Ie=Se=class extends T.o{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new Se((0,R.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s.Cg)([(0,c.MZ)({type:[String],json:{name:"angleName",write:!0}})],Ie.prototype,"angleNames",void 0),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{write:!0}})],Ie.prototype,"point",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{write:!0}})],Ie.prototype,"spatialReference",void 0),(0,s.Cg)([(0,c.MZ)({type:S.jz,json:{write:!0}})],Ie.prototype,"rasterId",void 0),Ie=Se=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAngleParameters")],Ie);let Fe=class extends T.o{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Fe.prototype,"north",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Fe.prototype,"up",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{write:!0}})],Fe.prototype,"spatialReference",void 0),Fe=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAngleResult")],Fe);var Me=i(86211),xe=i(50498),Ae=i(66552);const De=new Ae.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let Te=class extends T.o{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};var Ne;(0,s.Cg)([(0,c.MZ)()],Te.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{read:De.read,write:De.write}})],Te.prototype,"measureOperation",void 0),(0,s.Cg)([(0,c.MZ)({type:H.A,json:{write:!0}})],Te.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{write:!0}})],Te.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Te.prototype,"raster",void 0),Te=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureParameters")],Te);let Pe=Ne=class extends Te{constructor(e){super(e),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,he.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new Ne((0,R.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{name:"fromGeometry",read:!0,write:!0}})],Pe.prototype,"geometry",void 0),(0,s.Cg)([(0,Y.K)("geometry")],Pe.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{write:De.write}})],Pe.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],Pe.prototype,"is3D",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],Pe.prototype,"linearUnit",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.dk.read,write:Me.dk.write}})],Pe.prototype,"areaUnit",void 0),Pe=Ne=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAreaParameters")],Pe);let Oe=class extends T.o{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],Oe.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],Oe.prototype,"sensorName",void 0),Oe=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureResult")],Oe);var Ze=i(64108);let je=class extends T.o{constructor(){super(...arguments),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0}})],je.prototype,"value",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:!0,write:!0}})],je.prototype,"displayValue",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0}})],je.prototype,"uncertainty",void 0),je=(0,s.Cg)([(0,c.$K)("esri.rest.support.BaseImageMeasureResultValue")],je);let _e=class extends je{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.dk.read,write:Me.dk.write}})],_e.prototype,"unit",void 0),_e=(0,s.Cg)([(0,Ze.$)("esri.rest.support.ImageMeasureResultAreaValue")],_e);let Ve=class extends je{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],Ve.prototype,"unit",void 0),Ve=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageMeasureResultLengthValue")],Ve);let qe=class extends Oe{constructor(){super(...arguments),this.area=null,this.perimeter=null}};(0,s.Cg)([(0,c.MZ)({type:_e,json:{read:!0,write:!0}})],qe.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({type:Ve,json:{read:!0,write:!0}})],qe.prototype,"perimeter",void 0),qe=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageAreaResult")],qe);let Ee=class extends((0,o.OU)(T.o)){constructor(e){super(e),this.outSpatialReference=null}};(0,s.Cg)([(0,c.MZ)({type:M.A,json:{name:"outSR",write:!0}})],Ee.prototype,"outSpatialReference",void 0),Ee=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageBoundaryParameters")],Ee);var Je=i(36005);let Ge=class extends T.o{constructor(){super(...arguments),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?F.A.fromJSON(e):I.A.fromJSON(e)}};var Le;(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Ge.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{name:"shape",write:!0}})],Ge.prototype,"geometry",void 0),(0,s.Cg)([(0,Je.w)("geometry")],Ge.prototype,"readGeometry",null),Ge=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageBoundaryResult")],Ge);let ze=Le=class extends Te{constructor(e){super(e),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,he.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new Le((0,R.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{read:!0,write:!0}})],ze.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,Y.K)("fromGeometry")],ze.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{read:!0,write:!0}})],ze.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{write:De.write}})],ze.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],ze.prototype,"is3D",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],ze.prototype,"linearUnit",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.b$.read,write:Me.b$.write}})],ze.prototype,"angularUnit",void 0),ze=Le=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageDistanceParameters")],ze);let $e=class extends je{constructor(){super(...arguments),this.unit=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.b$.read,write:Me.b$.write}})],$e.prototype,"unit",void 0),$e=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageMeasureResultAngleValue")],$e);let Ue=class extends Oe{constructor(){super(...arguments),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,s.Cg)([(0,c.MZ)({type:Ve,json:{read:!0,write:!0}})],Ue.prototype,"distance",void 0),(0,s.Cg)([(0,c.MZ)({type:$e,json:{read:!0,write:!0}})],Ue.prototype,"azimuthAngle",void 0),(0,s.Cg)([(0,c.MZ)({type:$e,json:{read:!0,write:!0}})],Ue.prototype,"elevationAngle",void 0),Ue=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageDistanceResult")],Ue);var Be=i(58174),Ke=i(79677),Qe=i(93223);let ke=class extends((0,o.OU)(T.o)){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,he.$B)(e),t[i]=JSON.stringify(e.toJSON()))}};(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{read:he.rS,write:!0}})],ke.prototype,"geometry",void 0),(0,s.Cg)([(0,Y.K)("geometry")],ke.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ke.prototype,"objectIds",void 0),(0,s.Cg)([(0,Qe.e)(Be.x,{ignoreUnknown:!1,name:"spatialRel"})],ke.prototype,"spatialRelationship",void 0),(0,s.Cg)([(0,c.MZ)({type:Ke.A,json:{name:"time",write:!0}})],ke.prototype,"timeExtent",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ke.prototype,"where",void 0),ke=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfoParameters")],ke);let He=class extends(ve(T.o)){constructor(){super(...arguments),this.id=null}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],He.prototype,"id",void 0),He=(0,s.Cg)([(0,c.$K)("esri.rest.support.CameraInfo")],He);const We=He;let Ye=class extends T.o{constructor(){super(...arguments),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Ye.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Ye.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({type:Date,json:{write:!0}})],Ye.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,Y.K)("acquisitionDate")],Ye.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Ye.prototype,"cameraID",void 0),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{write:!0}})],Ye.prototype,"center",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Ye.prototype,"gps",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Ye.prototype,"orientation",void 0),Ye=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfo")],Ye);const Xe=Ye;let et=class extends T.o{constructor(){super(...arguments),this.images=null,this.cameras=null}};var tt;(0,s.Cg)([(0,c.MZ)({type:[Xe],json:{write:!0}})],et.prototype,"images",void 0),(0,s.Cg)([(0,c.MZ)({type:[We],json:{write:!0}})],et.prototype,"cameras",void 0),et=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageGPSInfoResult")],et);let it=tt=class extends Te{constructor(e){super(e),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,he.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new tt((0,R.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{read:!0}})],it.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,Y.K)("fromGeometry")],it.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{read:!0,write:!0}})],it.prototype,"toGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{write:De.write}})],it.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],it.prototype,"operationType",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{read:Me.Sk.read,write:Me.Sk.write}})],it.prototype,"linearUnit",void 0),it=tt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageHeightParameters")],it);let rt=class extends Oe{constructor(){super(...arguments),this.height=null}};(0,s.Cg)([(0,c.MZ)({type:Ve,json:{read:!0,write:!0}})],rt.prototype,"height",void 0),rt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageHeightResult")],rt);var st,nt=i(22048);let ot=st=class extends T.o{constructor(e){super(e),this.geometry=null,this.rasterFunctions=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,this.processAsMultidimensional=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,he.$B)(e),t[i]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=H.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=N.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[i]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,i){null!=e&&(t[i]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,i){null!=e&&(t[i]=JSON.stringify(e))}writeTimeExtent(e,t,i){if(null!=e){const r=null!=e.start?e.start.getTime():null,s=null!=e.end?e.end.getTime():null;t[i]=null!=r?null!=s?`${r},${s}`:`${r}`:null}}clone(){return new st((0,R.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{write:!0}})],ot.prototype,"geometry",void 0),(0,s.Cg)([(0,Y.K)("geometry")],ot.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:H.A,json:{write:!0}})],ot.prototype,"mosaicRule",null),(0,s.Cg)([(0,Y.K)("mosaicRule")],ot.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,c.MZ)({type:N.A,json:{write:!0,name:"renderingRule"}})],ot.prototype,"rasterFunction",null),(0,s.Cg)([(0,Y.K)("rasterFunction")],ot.prototype,"writeRasterFunction",null),(0,s.Cg)([(0,c.MZ)({type:[N.A],json:{write:!0,name:"renderingRules"}})],ot.prototype,"rasterFunctions",void 0),(0,s.Cg)([(0,Y.K)("rasterFunctions")],ot.prototype,"writeRasterFunctions",null),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{write:!0}})],ot.prototype,"pixelSize",void 0),(0,s.Cg)([(0,Y.K)("pixelSize")],ot.prototype,"writePixelSize",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],ot.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],ot.prototype,"returnCatalogItems",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],ot.prototype,"returnPixelValues",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ot.prototype,"maxItemCount",void 0),(0,s.Cg)([(0,c.MZ)({type:Ke.A,json:{write:{target:"time"}}})],ot.prototype,"timeExtent",void 0),(0,s.Cg)([(0,Y.K)("timeExtent")],ot.prototype,"writeTimeExtent",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ot.prototype,"raster",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ot.prototype,"viewId",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],ot.prototype,"processAsMultidimensional",void 0),ot=st=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageIdentifyParameters")],ot);var at=i(22671);let lt=class extends T.o{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}};var ut;(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],lt.prototype,"catalogItemVisibilities",void 0),(0,s.Cg)([(0,c.MZ)({type:at.A,json:{write:!0}})],lt.prototype,"catalogItems",void 0),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{write:!0}})],lt.prototype,"location",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],lt.prototype,"name",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],lt.prototype,"objectId",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],lt.prototype,"processedValues",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],lt.prototype,"properties",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],lt.prototype,"value",void 0),lt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageIdentifyResult")],lt);let pt=ut=class extends T.o{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,i){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new ut({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,s.Cg)([(0,c.MZ)({type:[fe.A],json:{write:!0}})],pt.prototype,"geometries",void 0),(0,s.Cg)([(0,Y.K)("geometries")],pt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:S.jz,json:{write:!0}})],pt.prototype,"rasterId",void 0),pt=ut=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePixelLocationParameters")],pt);let ct=class extends T.o{constructor(){super(...arguments),this.geometries=null}};var mt;(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],ct.prototype,"geometries",void 0),ct=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePixelLocationResult")],ct);let dt=mt=class extends Te{constructor(e){super(e),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,he.$B)(e),t[i]=e.toJSON())}get measureOperation(){const{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new mt((0,R.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{name:"fromGeometry",read:he.rS}})],dt.prototype,"geometry",void 0),(0,s.Cg)([(0,Y.K)("geometry")],dt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({type:De.apiValues,json:{read:De.read,write:De.write}})],dt.prototype,"measureOperation",null),(0,s.Cg)([(0,c.MZ)({json:{read:!0}})],dt.prototype,"is3D",void 0),dt=mt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePointParameters")],dt);let ht=class extends Oe{constructor(){super(...arguments),this.point=null}};(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{name:"point.value",read:!0,write:!0}})],ht.prototype,"point",void 0),ht=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImagePointResult")],ht);var yt=i(34606),gt=i(51508);let ft=class extends((0,o.OU)(T.o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,i){t.geometries=e?.length?{geometryType:(0,he.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,s.Cg)([(0,c.MZ)({types:[xe.yR]})],ft.prototype,"geometries",void 0),(0,s.Cg)([(0,Y.K)("geometries")],ft.prototype,"writeGeometries",null),(0,s.Cg)([(0,c.MZ)({type:[S.jz],json:{write:!0}})],ft.prototype,"rasterIds",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{name:"outSR",write:!0}})],ft.prototype,"outSpatialReference",void 0),ft=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageToMapMultirayParameters")],ft);let wt=class extends((0,o.OU)(T.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,he.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}};(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{read:he.rS,write:!0}})],wt.prototype,"geometry",void 0),(0,s.Cg)([(0,Y.K)("geometry")],wt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],wt.prototype,"rasterId",void 0),(0,s.Cg)([(0,c.MZ)({type:M.A,json:{name:"outSR",write:!0}})],wt.prototype,"outSpatialReference",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.DOff",write:!0}})],wt.prototype,"depthOffset",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.Adjust",write:!0}})],wt.prototype,"adjust",void 0),wt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageToMapParameters")],wt);let vt=class extends((0,o.OU)(T.o)){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{name:"uri",write:!0}})],vt.prototype,"referenceUri",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],vt.prototype,"rasterId",void 0),vt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageUrlParameters")],vt);let Rt=class extends T.o{constructor(){super(...arguments),this.url=null}};(0,s.Cg)([(0,c.MZ)({json:{name:"imageURL",write:!0}})],Rt.prototype,"url",void 0),Rt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageUrlResult")],Rt);const Ct=new Ae.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let bt=class extends((0,o.OU)(T.o)){constructor(){super(...arguments),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,i){e?.length&&(t.geometryType=(0,he.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,s.Cg)([(0,c.MZ)({types:[xe.yR]})],bt.prototype,"geometries",void 0),(0,s.Cg)([(0,Y.K)("geometries")],bt.prototype,"writeGeometries",null),(0,s.Cg)([(0,c.MZ)({type:H.A,json:{write:!0}})],bt.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{write:!0}})],bt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],bt.prototype,"constantZ",void 0),(0,s.Cg)([(0,c.MZ)({type:Ct.apiValues,json:{read:Ct.read,write:Ct.write}})],bt.prototype,"baseType",void 0),bt=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolumeParameters")],bt);let St=class extends T.o{constructor(){super(...arguments),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],St.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],St.prototype,"cut",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],St.prototype,"fill",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"maxz",write:!0}})],St.prototype,"maxZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"minz",write:!0}})],St.prototype,"minZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"meanz",write:!0}})],St.prototype,"meanZ",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],St.prototype,"cutCellCount",void 0),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],St.prototype,"fillCellCount",void 0),St=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolume")],St);const It=St;let Ft=class extends T.o{constructor(){super(...arguments),this.volumes=[]}};(0,s.Cg)([(0,c.MZ)({type:[It],json:{write:!0}})],Ft.prototype,"volumes",void 0),Ft=(0,s.Cg)([(0,c.$K)("esri.rest.support.ImageVolumeResult")],Ft);let Mt=class extends((0,o.OU)(T.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,he.$B)(e),t[i]=JSON.stringify(e))}};(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{read:he.rS,write:!0}})],Mt.prototype,"geometry",void 0),(0,s.Cg)([(0,Y.K)("geometry")],Mt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Mt.prototype,"rasterId",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"options.VisibleOnly",write:!0}})],Mt.prototype,"visibleOnly",void 0),Mt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MapToImageParameters")],Mt);let xt=class extends T.o{constructor(){super(...arguments),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),fe.A.fromJSON(e)}};var At;(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{name:"Shape",read:he.rS,write:!0}})],xt.prototype,"geometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Length",write:!0}})],xt.prototype,"length",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Area",write:!0}})],xt.prototype,"area",void 0),(0,s.Cg)([(0,c.MZ)({type:fe.A,json:{name:"Center",write:!0}})],xt.prototype,"center",void 0),(0,s.Cg)([(0,Je.w)("center")],xt.prototype,"readCenter",null),xt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureAreaFromImageResult")],xt);let Dt=At=class extends T.o{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,he.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}clone(){const e=(0,R.o8)({geometry:this.geometry,rasterId:this.rasterId});return new At(e)}};(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{name:"fromGeometry",read:he.rS,write:!0}})],Dt.prototype,"geometry",void 0),(0,s.Cg)([(0,Y.K)("geometry")],Dt.prototype,"writeGeometry",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0}})],Dt.prototype,"rasterId",void 0),Dt=At=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureFromImageParameters")],Dt);let Tt=class extends T.o{constructor(){super(...arguments),this.geometry=null,this.length=null}};function Nt(e){const t=e?.time;if(t&&(null!=t.start||null!=t.end)){const i=[];null!=t.start&&i.push(t.start),null==t.end||i.includes(t.end)||i.push(t.end),e.time=i.join(",")}}async function Pt(e,t,i){t=(0,S.PZ)(nt.A,t);const r=(0,ge.Dl)(e),s=t.geometry?[t.geometry]:[],n=await(0,ye.el)(s),o=t.toJSON();Nt(o);const a=n?.[0];null!=a&&(o.geometry=_t(a));const l=(0,ge.lF)({...r.query,f:"json",...o});return(0,ge.jV)(l,i)}async function Ot(e,t,i){t=(0,S.PZ)(ot,t);const r=(0,ge.Dl)(e),s=t.geometry?[t.geometry]:[];return(0,ye.el)(s).then(e=>{const s=t.toJSON(),n=e?.[0];null!=n&&(s.geometry=JSON.stringify(_t(n)));const o=(0,ge.lF)({...r.query,f:"json",...s}),a=(0,ge.jV)(o,i);return(0,w.A)(r.path+"/identify",a)}).then(e=>lt.fromJSON(e.data))}async function Zt(e,t,i,r){const s=(0,ge.Dl)(e),n=await(0,ye.el)(i),o=t.toJSON();null!=n[0]&&(o.fromGeometry=JSON.stringify(_t(n[0]))),null!=n[1]&&(o.toGeometry=JSON.stringify(_t(n[1])));const a=(0,ge.lF)({...s.query,f:"json",...o}),l=(0,ge.jV)(a,r),{data:u}=await(0,w.A)(s.path+"/measure",l);return u}async function jt(e,t,i){t=(0,S.PZ)(Dt,t);const r=(0,ge.Dl)(e),s=t.toJSON(),n=(0,ge.lF)({...r.query,f:"json",...s}),o=(0,ge.jV)(n,i),{data:a}=await(0,w.A)(r.path+"/measureFromImage",o);return a}function _t(e){const t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=Vt(e.spatialReference)),t}function Vt(e){const{imageCoordinateSystem:t}=e;if(t){const{id:e,referenceServiceName:i}=t;return null!=e?i?{icsid:e,icsns:i}:{icsid:e}:{ics:t}}return e.toJSON()}function qt(e,t){if(!e.imageCoordinateSystem)return(0,x.YX)(e);const i=Vt(e),{icsid:r,icsns:s}=i;return null==r||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(i):`0:${r}`}(0,s.Cg)([(0,c.MZ)({types:xe.yR,json:{name:"Shape",read:he.rS,write:!0}})],Tt.prototype,"geometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{name:"Length",write:!0}})],Tt.prototype,"length",void 0),Tt=(0,s.Cg)([(0,c.$K)("esri.rest.support.MeasureLengthFromImageResult")],Tt);var Et=i(82371),Jt=i(20223),Gt=i(20615),Lt=i(78286),zt=i(99199),$t=i(61956);const Ut=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),Bt=(0,S.Qp)(S.GB,{min:0,max:255}),Kt=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=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.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new X({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /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,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?H.A.fromJSON(t):null}get fieldsIndex(){return this.fields?new te.A(this.fields):null}set format(e){e&&Ut.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?.mosaicMethod&&(t=H.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const i=e||t.mosaicRule;return i?H.A.fromJSON(i):this._isMosaicRuleSupported(t)?H.A.fromJSON(t):null}writeMosaicRule(e,t,i){const{mosaicRule:r}=this;this._isValidCustomizedMosaicRule(r)&&(t[i]=r.toJSON())}writeNoData(e,t,i){null!=e&&"number"==typeof e&&(t[i]=Bt(e))}readObjectIdField(e,t){if(!e){const i=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type);e=i?.name}return e}get parsedUrl(){return(0,b.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const i=t?.find(({name:t})=>t===e);return i?.renderer.clone()}return this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,i){const r=t?.layerDefinition?.drawingInfo?.renderer,s=(0,de.LF)(r,i);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!r.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),J(s)||l.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,i){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.fields?.map(e=>e.clone())??[];e.push((0,ne.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,ne.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,ne.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,ne.nq)(t)));const{rasterInfo:t}=this;if(this._isVectorDataSet()){const i=t?.multidimensionalInfo?.variables[0].unit?.trim(),r=(0,ne.DV)(i),s=(0,ne.y6)();e.push(r,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){const i=(0,ne.AL)(t.multidimensionalInfo);e.push(...i)}const i=t?.attributeTable;if(null!=i){const t=(0,ne.jC)(i);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=N.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){const i=t.rasterFunctionInfos;return t.renderingRule||i?.length&&"None"!==i[0].name?this._isRFTJson(t.renderingRule)?N.A.fromJSON({rasterFunctionDefinition:t.renderingRule}):N.A.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}readSpatialReference(e,t){const i=e||t.extent.spatialReference;return i?M.A.fromJSON(i):null}writePixelType(e,t,i){null!=this.serviceRasterInfo&&this.pixelType===this.serviceRasterInfo.pixelType||(t[i]=W.e8.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||(i=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let i=e,{renderer:r,symbolizer:s,pixelFilter:n}=this;const{isRawData:o}=e;if(o&&"lerc"!==this.format&&(r??=(0,ce.PD)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.rasterFunction?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}),s||(this.symbolizer=new me.A({rendererJSON:r.toJSON(),rasterInfo:this.rasterInfo}),s=this.symbolizer)),(o||!this._isPicture())&&r&&s&&!n){await this._updateSymbolizer(s,r);const{bandIds:n}=this;i=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return i}async highlightPixels(e,t){const i=e.highlightOptions.map(e=>{const t={...e},{bandId:i}=t;if(null==i)t.bandId=0;else{const e=this.bandIds?.length?this.bandIds.indexOf(i):i;if(e<0||e>2)return;t.bandId=e}return t}).filter(e=>null!=e),r=this._rasterJobHandler;r?await r.highlightPixels({...e,highlightOptions:i},t):(0,ue._F)(e.pixelBlock,e.renderedPixelBlock,i)}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new a.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,R.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,i){const r=(t=(0,S.PZ)(bt,t)).toJSON();r.geometries=JSON.stringify(r.geometries);const s=(0,ge.Dl)(e),n=(0,ge.lF)({...s.query,f:"json",...r}),o=(0,ge.jV)(n,i),{data:a}=await(0,w.A)(`${s.path}/calculateVolume`,o);return Ft.fromJSON({volumes:a.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new a.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return async function(e,t,i){const r=(0,S.PZ)(Ie,t),s=r.toJSON();null!=s.angleName&&(s.angleName=s.angleName.join(",")),r?.point?.spatialReference?.imageCoordinateSystem&&(s.point.spatialReference=Vt(r.point.spatialReference)),r?.spatialReference?.imageCoordinateSystem&&(s.spatialReference=qt(r.spatialReference));const n=(0,ge.Dl)(e),o=(0,ge.lF)({...n.query,f:"json",...s}),a=(0,ge.jV)(o,i),{data:l}=await(0,w.A)(`${n.path}/computeAngles`,a);return l.spatialReference=l.spatialReference?null!=l.spatialReference.geodataXform?new M.A({wkid:0,imageCoordinateSystem:l.spatialReference}):M.A.fromJSON(l.spatialReference):null,"NaN"===l.north&&(l.north=null),"NaN"===l.up&&(l.up=null),new Fe(l)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new a.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,S.PZ)(pt,t)).toJSON(),{geometries:s}=t;if(s)for(let e=0;e<s.length;e++)s[e].spatialReference?.imageCoordinateSystem&&(r.geometries.geometries[e].spatialReference=Vt(s[e].spatialReference));const n=(0,ge.Dl)(e),o=(0,ge.lF)({...n.query,f:"json",...r}),a=(0,ge.jV)(o,i),{data:l}=await(0,w.A)(`${n.path}/computePixelLocation`,a);return ct.fromJSON(l)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new a.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,R.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){const r=await Pt(e,t,i),s=(0,ge.Dl)(e),{data:n}=await(0,w.A)(`${s.path}/computeHistograms`,r);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new a.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,R.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){const r=await Pt(e,t,i),s=(0,ge.Dl)(e),{data:n}=await(0,w.A)(`${s.path}/computeStatisticsHistograms`,r),{statistics:o}=n;return o?.length&&o.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:o,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){const i=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?i.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?i.mensuration.supportsHeightFromBaseAndTopShadow:i.mensuration.supportsHeightFromTopAndTopShadow))throw new a.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,R.o8)(e),this._applyMosaicRule(e),async function(e,t,i){const r=(0,S.PZ)(it,t),s=await Zt(e,r,[r.fromGeometry,r.toGeometry],i);return rt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsAreaAndPerimeter||e.is3D&&!i.mensuration.supports3D)throw new a.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,R.o8)(e),this._applyMosaicRule(e),async function(e,t,i){const r=(0,S.PZ)(Pe,t),s=await Zt(e,r,[r.geometry],i);return qe.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsDistanceAndAngle||e.is3D&&!i.mensuration.supports3D)throw new a.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,R.o8)(e),this._applyMosaicRule(e),async function(e,t,i){const r=(0,S.PZ)(ze,t),s=await Zt(e,r,[r.fromGeometry,r.toGeometry],i);return Ue.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsPointOrCentroid||e.is3D&&!i.mensuration.supports3D)throw new a.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,R.o8)(e),this._applyMosaicRule(e),async function(e,t,i){const r=(0,S.PZ)(dt,t),s=await Zt(e,r,[r.geometry],i);return ht.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new a.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new a.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,i){const r=await jt(e,t,i);return Tt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new a.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new a.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,i){const r=await jt(e,t,i);return xt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return null!=t?t.get(e):void 0}getFieldDomain(e,t){const i=this.getField(e);return i?i.domain:null}fetchImage(e,t,i,r={}){if((0,v.eO)(l.A.getLogger(this),"`ImageryLayer.fetchImage` is deprecated in favor of 'ImageryLayer.fetchPixels'.",{replacement:"ImageryLayer.fetchPixels",version:"4.33",warnOnce:!0}),null==e||null==t||null==i)throw new a.A("imagery-layer:fetch-image","Insufficient parameters for requesting an image. A valid extent, width and height values are required.");return this.internalFetchImage(e,t,i,r)}async internalFetchImage(e,t,i,s={}){await this._updateCurrentRasterInfo();const{exportImageServiceParameters:n}=this;let o=!1;s.requestRawData&&(await this._initJobHandler(),n.requestRawData||"lerc"===this.format||(o=!0,n.requestRawData=!0));const a=this.getExportImageServiceParameters(e,t,i,s.timeExtent);if(o&&(n.requestRawData=!1),null==a){if(s.requestAsImageElement&&this._canRequestImageElement(this.format)){const e=document.createElement("canvas");return e.width=t,e.height=i,s.returnImageBitmap?{imageBitmap:await(0,ie.m)(e,`${r(this.parsedUrl)}/exportImage`,s.signal)}:{imageOrCanvasElement:e}}const{bandIds:n,rasterInfo:o}=this,a=(n?.length||o.bandCount)??0,l=t*i,u=o.pixelType,p=[];for(let e=0;e<a;e++)p.push(se.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new se.A({width:t,height:i,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}const l=!!s.requestAsImageElement&&!this.pixelFilter,u=l&&!!s.returnImageBitmap,p={imageServiceParameters:a,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:l,returnImageBitmap:u,signal:s.signal};return this._requestArrayBuffer(p)}async fetchPixels(e,t,i,r={}){await this._initJobHandler(),r.applyRendering&&this._updateCurrentRasterInfo();const s=r.applyRendering?void 0:new X({layer:this,requestRawData:!0,interpolation:r.interpolation??"nearest",bandIds:r.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,i,r.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,r.bandIds||delete n.bandIds,delete n.compressionQuality;const o={imageServiceParameters:n,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:r.signal},{pixelData:a}=await this._requestArrayBuffer(o);return a??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,w.A)(r(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new a.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,w.A)(r(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>at.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){const i={...t,query:this._getQueryParams()};return async function(e,t,i){const r=(0,ge.Dl)(e),s=(0,ge.lF)({...r?.query,f:"json"}),n=(0,ge.jV)(s,i),o=`${r?.path}/${t}/info`,a=(0,w.A)(`${o}`,n),l=(0,w.A)(`${o}/keyProperties`,n),u=await Promise.allSettled([a,l]),p="fulfilled"===u[0].status?u[0].value.data:null,c="fulfilled"===u[1].status?u[1].value.data:null;let m=null;p.statistics?.length&&(m=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));const d=I.A.fromJSON(p.extent),h=Math.ceil(d.width/p.pixelSizeX-.1),y=Math.ceil(d.height/p.pixelSizeY-.1),g=d.spatialReference,f=new fe.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:g}),v=p.histograms?.length?p.histograms:null,R=new Jt.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new oe.A({width:h,height:y,bandCount:p.bandCount,extent:d,spatialReference:g,pixelSize:f,pixelType:p.pixelType.toLowerCase(),statistics:m,histograms:v,keyProperties:c,storageInfo:R})}(r(this.parsedUrl),e,i)}async getCatalogItemICSInfo(e,t){const{data:i}=await(0,w.A)(r(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),s=i?.ics;if(!s)return;let n=null;try{n=(await(0,w.A)(r(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!n?.spatialReference)return{ics:s,icsToPixelTransform:null,icsExtent:null,northDirection:null};const o=this.version>=10.7?(0,w.A)(r(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},a=n.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),inSR:(0,x.YX)(a),outSR:"0:"+e},u=(0,w.A)(r(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(n.xmin+n.xmax)/2,c=(n.ymax-n.ymin)/6,m=n.ymin+c,d=[];for(let e=0;e<5;e++)d.push({x:p,y:m+c*e});const h={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,x.YX)(a),outSR:"0:"+e},y=(0,w.A)(r(this.parsedUrl)+"/project",{query:this._getQueryParams(h),...t}).then(e=>e.data).catch(()=>({})),g=await Promise.all([o,u,y]);let f=g[0].ipxf;if(null==f){const e=s.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const v=I.A.fromJSON(g[1]?.geometries?.[0]);v&&(v.spatialReference=new M.A({wkid:0,imageCoordinateSystem:s}));const R=g[2].geometries?g[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],C=R.length;if(C<3)return{ics:s,icsToPixelTransform:f,icsExtent:v,northDirection:null};let b=0,S=0,F=0,A=0;for(let e=0;e<C;e++)b+=R[e].x,S+=R[e].y,F+=R[e].x*R[e].x,A+=R[e].x*R[e].y;const D=(C*A-b*S)/(C*F-b*b);let T=0;const N=R[4].x>R[0].x,P=R[4].y>R[0].y;return D===1/0?T=P?90:270:0===D?T=N?0:180:D>0?T=N?180*Math.atan(D)/Math.PI:180*Math.atan(D)/Math.PI+180:D<0&&(T=P?180+180*Math.atan(D)/Math.PI:360+180*Math.atan(D)/Math.PI),{ics:s,icsToPixelTransform:f,icsExtent:v,northDirection:T}}async generateRasterInfo(e,t){e=(0,S.PZ)(N.A,e);const i={...t,query:this._getQueryParams()};if(!e||"none"===e.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(e))return this.serviceRasterInfo??(0,Et.Tw)(r(this.parsedUrl),this.sourceJSON,i);const s=function(e){const t=JSON.stringify(e),i=t.includes('"rasterFunctionDefinition":{'),r=i?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi),s=r?.map(e=>i?e.slice(8,-18):e.slice(18,-1));return s?s.join("/"):null}(e);if(!s)throw new a.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[s])return this._functionRasterInfos[s];const n=(0,Et.X6)(r(this.parsedUrl),e,i);this._functionRasterInfos[s]=n;try{return await n}catch(e){throw this._functionRasterInfos[s]=null,e}}getExportImageServiceParameters(e,t,i,s,n){const o=qt((e=e.clone().shiftCentralMeridian()).spatialReference,r(this.parsedUrl));n??=this.exportImageServiceParameters;const a=n.toJSON(),{bandIds:l,noData:u}=a;let{renderingRule:p}=a;const c=this.rasterFunction?.rasterFunctionDefinition,m=this.renderer?.type,d=!m||"raster-stretch"===m||"raster-colormap"===m||"unique-value"===m||"class-breaks"===m||"raster-shaded-relief"===m;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!c&&d){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){const t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;a.bandIds=void 0}else a.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(a.noData=u.join(","));const h=this._processMultidimensionalIntersection(null,s,n.mosaicRule);if(h.isOutSide)return null;a.mosaicRule=null!=h.mosaicRule?JSON.stringify(h.mosaicRule):null,s=h.timeExtent,a.renderingRule=this._getRenderingRuleString(N.A.fromJSON(p));const y={};if(null!=s){const{start:e,end:t}=s.toJSON();e&&t&&e===t?y.time=""+e:null==e&&null==t||(y.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:o,imageSR:o,size:t+","+i,...a,...y}}async getSamples(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i?.operations.supportsGetSamples)throw new a.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,R.o8)(e);const{raster:r}=this;return r&&null==e.raster&&(e.raster=r),async function(e,t,i){const r=(t=(0,S.PZ)(yt.A,t)).toJSON();Nt(r),r.outFields?.length&&(r.outFields=r.outFields.join(","));const s=await(0,ye.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=_t(n));const o=(0,ge.Dl)(e),a=(0,ge.lF)({...o.query,f:"json",...r}),l=(0,ge.jV)(a,i),{data:u}=await(0,w.A)(`${o.path}/getSamples`,l),p=u.samples.map(e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return gt.A.fromJSON({samples:p})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new a.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,R.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=F.A.fromExtent(e.geometry));const i=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(i.isOutSide)throw new a.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=i.timeExtent,e.mosaicRule=i.mosaicRule;const{raster:r,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),r&&null==e.raster&&(e.raster=r),Ot(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new a.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,S.PZ)(wt,t)).toJSON();t.geometry.spatialReference.imageCoordinateSystem&&(r.geometry=_t(t.geometry)),t.depthOffset&&t.adjust||delete r.options;const s=(0,ge.Dl)(e),n=(0,ge.lF)({...s.query,f:"json",...r}),o=(0,ge.jV)(n,i),{data:a}=await(0,w.A)(`${s.path}/imageToMap`,o);return(0,he.rS)(a)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new a.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,S.PZ)(ft,t)).toJSON();t.rasterIds?.length&&(r.rasterIds=t.rasterIds.join(","));const s=(0,ge.Dl)(e),n=(0,ge.lF)({...s.query,f:"json",...r}),o=(0,ge.jV)(n,i),{data:a}=await(0,w.A)(`${s.path}/imageToMapMultiray`,o);return(0,he.rS)(a)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new a.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,S.PZ)(Mt,t)).toJSON(),s=await(0,ye.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=_t(n)),t.visibleOnly||delete r.options;const o=n?.spatialReference??t.geometry?.spatialReference;o&&(r.inSR=qt(o));const a=(0,ge.Dl)(e),l=(0,ge.lF)({...a.query,f:"json",...r}),u=(0,ge.jV)(l,i),{data:p}=await(0,w.A)(`${a.path}/mapToImage`,u);return(0,he.rS)(p)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new a.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,S.PZ)(we,t)).toJSON(),s=await(0,ye.el)([t.fromGeometry,t.toGeometry]);null!=s[0]&&(r.fromGeometry=_t(s[0]),s[0].spatialReference&&(r.inSR=qt(s[0].spatialReference))),null!=s[1]&&(r.toGeometry=_t(s[1])),t.objectIds?.length&&(r.objectIds=r.objectIds.join(","));const n=(0,ge.Dl)(e),o=(0,ge.lF)({...n.query,f:"json",...r}),a=(0,ge.jV)(o,i),{data:l}=await(0,w.A)(`${n.path}/find`,a);return be.fromJSON(l)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new a.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,S.PZ)(vt,t)).toJSON(),s=(0,ge.Dl)(e),n=(0,ge.lF)({...s.query,f:"json",...r}),o=(0,ge.jV)(n,i),{data:a}=await(0,w.A)(`${s.path}/getImageUrl`,o);return Rt.fromJSON(a)}(r(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new $t.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new a.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e=e??{outSpatialReference:this.spatialReference},async function(e,t,i){t=(0,S.PZ)(Ee,t);const r=(0,ge.Dl)(e),s=t.toJSON();t.outSpatialReference&&(s.outSR=qt(t.outSpatialReference));const n=(0,ge.lF)({...r.query,f:"json",...s}),o=(0,ge.jV)(n,i),{data:a}=await(0,w.A)(r.path+"/queryBoundary",o);return Ge.fromJSON(a)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasters(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));const i=await(0,zt.s)(this.url,e,t),r=this.graphicOrigin;return i.features.forEach(e=>{e.layer=this,e.origin=r}),i}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Lt.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new a.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e=e??{where:"1=1"},async function(e,t,i){const r=(t=(0,S.PZ)(ke,t)).toJSON();Nt(r),r.objectIds?.length&&(r.objectIds=r.objectIds.join(",")),r.geometry||r.objectIds||r.time||r.where||(r.where="1=1");const s=await(0,ye.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=_t(n));const o=n?.spatialReference??t.geometry?.spatialReference;o&&(r.inSR=qt(o));const a=(0,ge.Dl)(e),l=(0,ge.lF)({...a.query,f:"json",...r}),u=(0,ge.jV)(l,i),{data:p}=await(0,w.A)(`${a.path}/queryGPSInfo`,u);return et.fromJSON(p)}(r(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Gt.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new a.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();const{pixelSize:i,returnDomainValues:r,returnTopmostRaster:s,showNoDataRecords:n}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let o=!1,l=null,u=null;const p=ne.F_.servicePixelValue.toLowerCase(),c=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(o=e.outFields.some(e=>!e.toLowerCase().startsWith(p)),this.version>=10.4)){const t=e.outFields.filter(e=>e.toLowerCase().startsWith(p)&&e.length>p.length).map(e=>{const t=e.slice(p.length+1);return[this._updateRenderingRulesFunctionName(t,c),t]});l=t.map(e=>new N.A({functionName:e[0]})),u=t.map(e=>e[1]);const{rasterFunction:i}=this;0===l.length?i?.functionName?(l.push(i),u.push(i.functionName)):l=null:i?.functionName&&!l.some(e=>e.functionName===i.functionName)&&(l.push(i),u.push(i.functionName))}const m=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:d}=this;let h=e.timeExtent||this.timeExtent;if(d){const{isOutside:t,intersection:i}=(0,ae.Rp)(d,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new a.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=i?.timeExtent&&(h=i.timeExtent)}const y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,h);let g=e.geometry;this.version<10.91&&"extent"===g?.type&&(g=F.A.fromExtent(g));const f=this._getQueryParams({geometry:g,timeExtent:h,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:l,pixelSize:i,returnCatalogItems:o,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete f.f;const w=new ot(f);try{await this._generateRasterInfo(this.rasterFunction);const i=await Ot(this.url,w,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,a=null!=i.value&&i.value.toLowerCase().includes("nodata"),l=o&&!m&&i?.catalogItems?.features.length&&(n||!a),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,ae.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:h,multidimensionalSubset:this.multidimensionalSubset}):null;if(!l)return this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p});const c=this.objectIdField||"ObjectId",d=i.catalogItems?.features??[],g=d.map(e=>e.attributes?.[c]),f=new $t.A({objectIds:g,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),v=await this.queryRasters(f);return v?.features?.length&&v.features.forEach(t=>{d.forEach(i=>{i.attributes[c]===t.attributes[c]&&t.geometry&&(i.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(i.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new a.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){const i=(0,w.A)(r(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),s=(0,w.A)(r(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),n=await Promise.all([i,s]);return n[0]&&n[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:n[0]||null,histograms:n[1]||null}}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,ae.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e),this.rasterInfo||(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,i=null!=this.serviceRasterInfo?Promise.resolve(this.serviceRasterInfo):(0,Et.Tw)(r(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,Et.E9)(e,t),e)),s=this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):null,n=this._getRasterFunctionInfos();return Promise.all([i,s,n]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),l.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,C.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);const{serviceRasterInfo:t}=this;null!=t.multidimensionalInfo&&this._updateMultidimensionalDefinition(t)})}_combineMosaicRuleWithTimeExtent(e,t){const i=this.timeInfo,{multidimensionalInfo:r}=this.serviceRasterInfo;if(null==e||null==r||null==t||null==i?.startField)return e;const{startField:s}=i,n=r.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==n),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const o=e.multidimensionalDefinition.filter(e=>e.dimensionName===n),a=null!=t.start?t.start.getTime():null,l=null!=t.end?t.end.getTime():null,u=null==a||null==l||a===l,p=u?[a||l]:[[a,l]],c=this.version>=10.8;if(o.length)o.forEach(e=>{e.dimensionName===n&&(c?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!c){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=p}):e.multidimensionalDefinition.push(new D.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new a.A("imagery-layer:query-rasters","query operation is not supported on the input image service");const i=null!=e?(0,S.PZ)($t.A,e):this.createQuery();return t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:i,requestOptions:t}}_isSupportedRenderer(e){const{rasterInfo:t,rasterFunction:i}=this;return"unique-value"===e.type&&this._hasRasterFunction(i)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,ce.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){const{data:i,ssl:s}=await(0,w.A)(r(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=i,this.sourceJSON=t,s&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new a.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;const t=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||i}_isVectorFieldResampleFunction(e){if(null==e)return!1;const{functionName:t,functionArguments:i}=e,r="resample"===t?.toLowerCase(),s=i?.ResampleType||i?.resampleType;return r&&(7===s||10===s)}_isPicture(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}_configRenderer(e){const t=this._isPicture(),{rasterInfo:i}=this;if(!t&&!this.pixelFilter||this._isVectorDataSet()){const t=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,r=(0,ce.I8)({variableName:t,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&i.bandCount>=3){const e=r?.bandIds??(0,ce.ci)(i);!e||3===i.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}e||(e=r?.renderer??(0,ce.PD)(i,{bandIds:this.bandIds,variableName:this.rasterFunction?null:t}));const s=(0,ce.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=i):this.symbolizer=new me.A({rendererJSON:s,rasterInfo:i}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null!=e.pixelBlock?e.pixelBlock.clone():null}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,le.D)(e,t,i)}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;if(this.loaded)return t;if(t&&this.version>=10.3){if(1===t.length&&"none"===t[0].name.toLowerCase())return t;const i=await(0,w.A)(r(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e});return i.data?.rasterFunctionInfos}return null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:i,returnImageBitmap:s,signal:n}=e;if(i&&this._canRequestImageElement(t.format)){const i=`${r(this.parsedUrl)}/exportImage`,{data:o}=await(0,w.A)(i,{responseType:s?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:n});return o instanceof Blob?{imageBitmap:await(0,ie.m)(o,i,n),params:t}:{imageOrCanvasElement:o,params:t}}const o=this._initJobHandler(),l=(0,w.A)(r(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:n}),u=(await Promise.all([l,o]))[0].data,p=t.format||"jpgpng";let c=p;if("bsq"!==c&&"bip"!==c&&(c=(0,le.g)(u)),!c)throw new a.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(u)));const m={signal:n},d="gif"===p||"bmp"===p||p.includes("png")&&("png"===c||"jpg"===c)?(0,le.D)(u,{useCanvas:!0,...t},m):this._decodePixelBlock(u,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:p},m);return{pixelData:{pixelBlock:await d,extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,ae.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new H.A;const e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};const i=e.value,{templateRRFunctionNames:r,showNoDataRecords:s,returnDomainValues:n,templateFields:o}=t,a=e.processedValues;let l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[];const p=this.objectIdField||"ObjectId",c="string"==typeof i&&i.toLowerCase().includes("nodata"),m=[];if(i&&!l&&(!c||s)){const e={};e[p]=0,u=[i],l=[new f.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,ne.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,o),c&&!s&&(l=[]);const{itemPixelValue:d,servicePixelValue:h}=ne.F_,y=this.rasterFields.some(e=>e.name===d),g=this.graphicOrigin;for(let e=0;e<l.length;e++){const t=l[e];if(null!=i){const n=u[e],o=this.rasterFunction&&a&&a.length>0&&r&&r.length>0&&r.includes(this.rasterFunction.functionName)?a[r.indexOf(this.rasterFunction.functionName)]:i;if("nodata"===n.toLowerCase()&&!s)continue;y&&(t.attributes[d]=n),t.attributes[h]=o,this._updateFeatureWithMagDirValues(t,n);const l=this.fields&&this.fields.length>0;let p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:i:o;this.rasterFunction||(p=l?n:i),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,t.origin=g,n&&this._updateFeatureWithDomainValues(t),r&&a&&r.length===a.length)for(let e=0;e<r.length;e++){const i=`${ne.F_.servicePixelValue}.${r[e]}`;t.attributes[i]=a[e]}m.push(l[e])}return m}_processMultidimensionalIntersection(e,t,i){const{multidimensionalSubset:r}=this;if(!r)return{isOutSide:!1,timeExtent:t,mosaicRule:i=this._combineMosaicRuleWithTimeExtent(i,t)};if(r){const{isOutside:i,intersection:s}=(0,ae.Rp)(r,{geometry:e,timeExtent:t});if(i)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(i=this._combineMosaicRuleWithTimeExtent(i,t),i?.multidimensionalDefinition){const{isOutside:e}=(0,ae.Rp)(r,{multidimensionalDefinition:i.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:i}}_updateFeatureWithRasterAttributeTableValues(e,t){const i=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==i)return;const{features:r,fields:s}=i,n=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!n)return;const o=r.filter(e=>e.attributes[n]===(null!=t?parseInt(t,10):null));o&&o[0]&&s.forEach(t=>{const i=ne.ER+t.name;e.attributes[i]=o[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;const i=t.split(/,\s*/).map(e=>parseFloat(e)),r=i.map(e=>[e]),s=i.map(e=>({minValue:e,maxValue:e,noDataValue:null})),n=new se.A({height:1,width:1,pixelType:"f32",pixels:r,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new I.A(0,0,0,0,this.spatialReference)});const o="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,pe.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[ne.F_.magnitude]=o[0],e.attributes[ne.F_.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 i=e.attributes[t.name];if(null!=i){const r=t.domain.codedValues.find(e=>e.code===i);r&&(e.attributes[t.name]=r.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const i=this.fieldsIndex;null!=i&&e.forEach(e=>{if(e?.attributes)for(const r of t){const t=i.get(r)?.name;t&&t!==r&&(e.attributes[r]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const i=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){const{raster:t,mosaicRule:i,rasterFunction:r}=this;r&&null==e.rasterFunction&&(e.rasterFunction=r),i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){const t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){const{raster:t,mosaicRule:i}=this;i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:i,maxRecordCount:r}=e,s=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,o=!(!e.spatialReference&&!e.extent?.spatialReference),a=t.includes("edit"),l=t.includes("mensuration")&&o,u=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),p=l&&u.includes("basic"),c=this._isMosaicDataset(e)&&t.includes("catalog"),m=t.includes("download"),d=i>=10.7&&n||i>=11.4&&(n||l&&u.includes("3d")),h=c&&e.fields&&e.fields.length>0,y=h&&e.supportsAdvancedQueries?e.advancedQueryCapabilities:void 0;return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsImageToMap:i>=11.2&&c,supportsImageToMapMultiray:i>=11.2&&c,supportsMapToImage:i>=11.2&&c,supportsFindImages:i>=11.2&&c,supportsGetImageUrl:i>=11.3&&m,supportsMeasure:l,supportsMeasureFromImage:i>=11.2,supportsDownload:m,supportsQuery:h,supportsGetSamples:i>=10.2&&s,supportsProject:i>=10.3&&s,supportsComputeStatisticsHistograms:i>=10.4&&s,supportsQueryBoundary:i>=10.6&&s,supportsCalculateVolume:d,supportsComputePixelLocation:i>=10.7&&c,supportsComputeAngles:i>=10.91,supportsQueryGPSInfo:i>=11.2&&c,supportsAdd:a,supportsDelete:a,supportsEditing:a,supportsUpdate:a,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:r,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,supportsStatistics:!!y?.supportsStatistics,supportsOrderBy:!!y?.supportsOrderBy,supportsDistinct:!!y?.supportsDistinct,supportsPagination:!!y?.supportsPagination,supportsPaginationOnAggregatedQueries:!!y?.supportsPaginationOnAggregatedQueries,supportsStandardizedQueriesOnly:!!y?.useStandardizedQueries,supportsPercentileStatistics:!!y?.supportsPercentileStatistics,supportsCentroid:!!y?.supportsReturningGeometryCentroid,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!!y?.supportsQueryWithDistance,supportsExtent:!!y?.supportsReturningQueryExtent,supportsGeometryProperties:!!y?.supportsReturningGeometryProperties,supportsHavingClause:!!y?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:y?.supportsSqlExpression??!!y,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!y?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:p,supportsAreaAndPerimeter:p,supportsPointOrCentroid:p,supportsHeightFromBaseAndTop:l&&u.includes("base-top height"),supportsHeightFromBaseAndTopShadow:l&&u.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:l&&u.includes("top-top shadow height"),supports3D:l&&u.includes("3d")}}}};function r(e){return e?.path??""}return(0,s.Cg)([(0,c.MZ)({clonable:!1})],i.prototype,"_functionRasterInfos",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"_serviceSupportsMosaicRule",void 0),(0,s.Cg)([(0,Je.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],i.prototype,"readServiceSupportsMosaicRule",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"_rasterFunctionNamesIndex",null),(0,s.Cg)([(0,c.MZ)()],i.prototype,"adjustAspectRatio",void 0),(0,s.Cg)([(0,c.MZ)({type:[S.jz],json:{write:!0}})],i.prototype,"bandIds",void 0),(0,s.Cg)([(0,Je.w)("bandIds")],i.prototype,"readBandIds",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],i.prototype,"capabilities",void 0),(0,s.Cg)([(0,Je.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],i.prototype,"readCapabilities",null),(0,s.Cg)([(0,c.MZ)({type:Number})],i.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,Y.K)("compressionQuality")],i.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,c.MZ)({type:Number})],i.prototype,"compressionTolerance",void 0),(0,s.Cg)([(0,Y.K)("compressionTolerance")],i.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,dependsOn:["_serviceSupportsMosaicRule"]})],i.prototype,"defaultMosaicRule",void 0),(0,s.Cg)([(0,Je.w)("defaultMosaicRule",["defaultMosaicMethod"])],i.prototype,"readDefaultMosaicRule",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,constructOnly:!0})],i.prototype,"exportImageServiceParameters",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"rasterInfo",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:[ee.A]})],i.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"fieldsIndex",null),(0,s.Cg)([(0,c.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],i.prototype,"format",null),(0,s.Cg)([(0,Je.w)("service","format",["serviceDataType"])],i.prototype,"readFormat",null),(0,s.Cg)([(0,c.MZ)({type:I.A})],i.prototype,"fullExtent",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"hasMultidimensions",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"maxImageHeight"}}})],i.prototype,"imageMaxHeight",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"maxImageWidth"}}})],i.prototype,"imageMaxWidth",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{type:W.SZ.jsonValues,read:W.SZ.read,write:W.SZ.write}})],i.prototype,"interpolation",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"minScale",void 0),(0,s.Cg)([(0,Je.w)("service","minScale")],i.prototype,"readMinScale",null),(0,s.Cg)([(0,c.MZ)()],i.prototype,"maxScale",void 0),(0,s.Cg)([(0,Je.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,s.Cg)([(0,c.MZ)({type:H.A})],i.prototype,"mosaicRule",null),(0,s.Cg)([(0,Je.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],i.prototype,"readMosaicRule",null),(0,s.Cg)([(0,Y.K)("mosaicRule")],i.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,c.MZ)()],i.prototype,"multidimensionalInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:re.A,json:{write:!0}})],i.prototype,"multidimensionalSubset",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:S.jz}})],i.prototype,"noData",void 0),(0,s.Cg)([(0,Y.K)("noData")],i.prototype,"writeNoData",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{type:W.hm.jsonValues,read:W.hm.read,write:W.hm.write}})],i.prototype,"noDataInterpretation",void 0),(0,s.Cg)([(0,c.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],i.prototype,"objectIdField",void 0),(0,s.Cg)([(0,Je.w)("objectIdField")],i.prototype,"readObjectIdField",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"geometryType",void 0),(0,s.Cg)([(0,c.MZ)({})],i.prototype,"typeIdField",void 0),(0,s.Cg)([(0,c.MZ)({})],i.prototype,"types",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,s.Cg)([(0,c.MZ)({type:Function})],i.prototype,"pixelFilter",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"raster",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"sourceType",void 0),(0,s.Cg)([(0,Je.w)("sourceType",["serviceSourceType","fields"])],i.prototype,"readSourceType",null),(0,s.Cg)([(0,c.MZ)()],i.prototype,"viewId",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"renderer",null),(0,s.Cg)([(0,c.MZ)({types:de.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:de.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],i.prototype,"internalRenderer",null),(0,s.Cg)([(0,Je.w)("internalRenderer")],i.prototype,"readRenderer",null),(0,s.Cg)([(0,Y.K)("internalRenderer")],i.prototype,"writeRenderer",null),(0,s.Cg)([(0,c.MZ)({clonable:!1})],i.prototype,"symbolizer",void 0),(0,s.Cg)([(0,c.MZ)(A.ke)],i.prototype,"opacity",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"rasterFields",null),(0,s.Cg)([(0,c.MZ)({constructOnly:!0})],i.prototype,"rasterFunctionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:N.A,json:{name:"renderingRule"}})],i.prototype,"rasterFunction",null),(0,s.Cg)([(0,Je.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],i.prototype,"readRasterFunction",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"serviceDataType",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:M.A})],i.prototype,"spatialReference",void 0),(0,s.Cg)([(0,Je.w)("spatialReference",["spatialReference","extent"])],i.prototype,"readSpatialReference",null),(0,s.Cg)([(0,c.MZ)({type:W.e8.apiValues,json:{read:W.e8.read,type:W.e8.jsonValues}})],i.prototype,"pixelType",void 0),(0,s.Cg)([(0,Y.K)("pixelType")],i.prototype,"writePixelType",null),(0,s.Cg)([(0,c.MZ)({constructOnly:!0,type:oe.A})],i.prototype,"serviceRasterInfo",void 0),(0,s.Cg)([(0,c.MZ)()],i.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,c.MZ)(A.OZ)],i.prototype,"url",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],i.prototype,"version",void 0),(0,s.Cg)([(0,Je.w)("version",["currentVersion","fields","timeInfo"])],i.prototype,"readVersion",null),i=(0,s.Cg)([(0,c.$K)("esri.layers.mixins.ArcGISImageService")],i),i};var Qt=i(18768),kt=i(63074),Ht=i(69208),Wt=i(16131),Yt=i(8303),Xt=i(63660),ei=i(56551),ti=i(54310),ii=i(25036),ri=i(82935),si=i(91908),ni=i(56776),oi=i(30291),ai=i(88625);let li=class extends((0,kt.dM)((0,ri.e)((0,ii.j)((0,Wt.q)((0,Yt.A)((0,ei.H)(Kt((0,Xt.G)((0,ti.J)((0,Ht.d)((0,Qt.b)((0,u.P)((0,o.OU)(g.A)))))))))))))){constructor(...e){super(...e),this.graphicOrigin=new y(this),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.type="imagery",this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{const{save:s,saveAs:n}=await i.e(9838).then(i.bind(i,59838));switch(e){case 0:return s(this,t);case 1:return n(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(p.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,t,i){const r="vector-field"===this.renderer?.type;t[i]=r?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const{rasterFields:t}=this,i=new Set,r=ne.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=ne.Oo.toLowerCase(),o=`${ne.F_.servicePixelValue.toLowerCase()}.`;for(const e of t){const t=e.name.toLowerCase();t===r||t.startsWith(o)||s&&t.startsWith(n)||i.add(e.name)}const a=(0,oi.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:l}=this;return a?.fieldInfos&&l&&(0,ne.h4)(a.fieldInfos,l),a}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,si.D)(this,e)}write(e,t){if(!this._isPreviewLayer)return super.write(e,t);if(t?.messages){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new a.A("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}_validateElevationInfo(e){(0,ni.XF)(l.A.getLogger(this),(0,ni.$7)("Imagery layers","relative-to-scene",e)),(0,ni.XF)(l.A.getLogger(this),(0,ni.tW)("Imagery layers",e))}};(0,s.Cg)([(0,c.MZ)({type:ai.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],li.prototype,"elevationInfo",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1})],li.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,c.MZ)(A.fV)],li.prototype,"legendEnabled",null),(0,s.Cg)([(0,c.MZ)({type:["show","hide"]})],li.prototype,"listMode",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],li.prototype,"isReference",void 0),(0,s.Cg)([(0,c.MZ)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],li.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,Y.K)("web-map","operationalLayerType")],li.prototype,"writeOperationalLayerType",null),(0,s.Cg)([(0,c.MZ)(A.M6)],li.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,c.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],li.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],li.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,c.MZ)(A.PY)],li.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],li.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],li.prototype,"_isPreviewLayer",null),li=(0,s.Cg)([(0,c.$K)("esri.layers.ImageryLayer")],li);const ui=li},91908:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(60694);const s=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},92722:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(69397);class s{constructor(e=[],t=[],i=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=i,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:i,hasM:r}){return new s(e,t,i||!1,r||!1)}static fromRect([e,t,i,r]){const n=i-e,o=r-t;return new s([5],[e,t,n,0,0,o,-n,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const i of this.lengths){if(i<3)continue;const{stride:r}=this;let s=this.coords[r*t],n=this.coords[r*t+1];for(let o=1;o<i;o+=1){const i=r*(t+o),a=this.coords[i],l=this.coords[i+1];e+=-.5*(a-s)*(l+n),s=a,n=l}t+=i}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:i}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=i*(t+s);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:i}=e;let r=0;const{stride:s}=this;for(const e of i){for(let i=1;i<e;i++){const e=s*(r+i);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const{stride:t,size:i}=this,r=i*t,n=this.coords.slice(0,r);return e?(e.set(n),new s(this.lengths,e)):new s(Array.from(this.lengths),Array.from(n),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const i=new Array(t*e);for(let t=0,r=0;t<i.length;t+=e)i[r++]=this.coords[t],i[r++]=this.coords[t+1];return new s(this.lengths,i,!1,!1)}}},95466:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(49186),s=i(53966),n=i(91869),o=i(3330),a=i(12195),l=i(30524),u=i(98623),p=i(56400),c=i(28097);const m=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],f(e))}static fromLayerJSON(e){return new d(e.fields??[],f(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=y(t);if(t&&r){const s=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(r,e),i.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):g.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?c.mQ.utcInstance:(0,n.tE)(m,t,()=>c.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,a.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,l.rS)(e)?.toLowerCase()??""}const g=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:s}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.ZS)(e.dateFieldsTimeReference):null,l=s?function(e){return"timeZone"in e}(s)?s.timeZone??a:s.dateFieldsTimeReference?(0,p.ZS)(s.dateFieldsTimeReference):a??u.n$:null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??a:r.timeReference?(0,p.ZS)(r.timeReference):a:null,m=new Map([[h(s?.creationDateField??""),l],[h(s?.editDateField??""),l],[h(n),c],[h(o),c]]);for(const{name:r,type:s}of e.fields)if(g.has(s))t.set(r,u.L5);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(r,null);else if(i)t.set(r,u.L5);else{const e=m.get(h(r??""))??a;t.set(r,e)}return t}},99199:(e,t,i)=>{i.d(t,{e:()=>l,s:()=>a});var r=i(2272),s=i(80893),n=i(22671),o=i(61956);async function a(e,t,i,r){const s=await l(e,t,i,r);return n.A.fromJSON(s)}function l(e,t,i,n){const a=(0,r.Dl)(e),l={...i},u=o.A.from(t);return(0,s.eW)(a,u,u.sourceSpatialReference,l,n)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1273,7561],{11273:(t,e,r)=>{r.r(e),r.d(e,{executeTopFeaturesQuery:()=>l});var i=r(2272),o=r(24645),s=r(22671),n=r(57561);async function l(t,e,r,l){const u=(0,i.Dl)(t),p={...l},{data:a}=await(0,o.Yb)(u,n.default.from(e),r,p);return s.A.fromJSON(a)}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(11254),o=r(84952),s=r(65864),n=r(17136),l=r(21325),u=r(10536),p=r(58501);const a="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(a);if(e.hasOwnProperty("count"))throw new Error(a);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function g(t,e,r,s={},l={}){const p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(a,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const a=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...a,...s.query}})})}},57561:(t,e,r)=>{r.r(e),r.d(e,{default:()=>j});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(91429),p=r(56507),a=r(16930),d=r(65864),y=r(50498),c=r(77696);let h=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],h.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),h=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFilter")],h);const m=h;var g,w=r(79677),F=r(43937);const v=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),S=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let j=class extends((0,c.y)(n.o)){static{g=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new g((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],j.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],j.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],j.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],j.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],j.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],j.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],j.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:a.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],j.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],j.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],j.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],j.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],j.prototype,"start",void 0),(0,o.Cg)([(0,F.K)("start"),(0,F.K)("num")],j.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:v.read},write:{target:"spatialRel",writer:v.write}}})],j.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:w.A,json:{write:!0}})],j.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:m,json:{write:!0}})],j.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:S.read,write:{writer:S.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],j.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"where",void 0),j=g=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],j),j.from=(0,p.dp)(j)}}]);
@@ -1,5 +0,0 @@
1
- /*
2
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
- */
5
- import{__decorate as s}from"tslib";import e from"../../../../Graphic.js";import t from"../../../../core/Accessor.js";import{createTask as r}from"../../../../core/asyncUtils.js";import{multiplyOpacity as i,getContrast as a}from"../../../../core/colorUtils.js";import{formatArea as o}from"../../../../core/quantityFormatUtils.js";import{initial as l}from"../../../../core/reactiveUtils.js";import{property as m,subclass as n}from"../../../../core/accessorSupport/decorators.js";import{UpdatingHandles as p}from"../../../../core/support/UpdatingHandles.js";import{e as h}from"../../../../chunks/labelPointOperator.js";import{onLocaleChange as c}from"../../../../intl/locale.js";import{fetchMessageBundle as d}from"../../../../intl/messages.js";import g from"../../../../layers/GraphicsLayer.js";import u from"../../../../symbols/Font.js";import y from"../../../../symbols/TextSymbol.js";function _(s){return"text"===s?.type}let f=class extends t{get _messages(){return this._messagesTask?.value}constructor(s){super(s),this._font=new u({family:"sans-serif",size:14}),this._graphicsLayer=new g({listMode:"hide",internal:!0}),this._updatingHandles=new p,this._messagesTask=null}initialize(){this.view.map?.add(this._graphicsLayer),this.addHandles(c(()=>this._updateMessageBundle())),this._updatingHandles.add(()=>({area:this.measurementViewData.result?.area,color:this.view.effectiveTheme.textColor,geometry:this.measurementViewData.result?.display.fill,messages:this._messages,unit:this.measurementViewData.unit,visible:this.measurementViewData.visible}),({area:s,color:t,geometry:r,messages:l,unit:m,visible:n},p)=>{if(this._graphicsLayer.visible=n,!n)return;if(!s||!r||!l)return void this._graphicsLayer.graphics.destroyAll();const c=h(r),d=l&&s?o(l,s,m):null;if(this._graphicsLayer.graphics.length&&t.equals(p?.color)){const s=this._graphicsLayer.graphics.at(0);return s.geometry=c,void(_(s.symbol)&&(s.symbol.text=d??""))}const g=i(a(t,160),.5),u=new y({color:t,haloColor:g,haloSize:2,font:this._font,text:d});this._graphicsLayer.graphics.destroyAll(),this._graphicsLayer.add(new e({geometry:c,symbol:u}))},l),this._updateMessageBundle()}destroy(){this._font.destroy(),this._graphicsLayer.removeFromParent(),this._graphicsLayer.graphics.destroyAll(),this._graphicsLayer.destroy(),this._updatingHandles.destroy()}get updating(){return!this._graphicsLayer.loaded||!this._messagesTask?.finished||this._updatingHandles.updating}_updateMessageBundle(){return this._messagesTask?.abort(),this._messagesTask=r(()=>d("esri/core/t9n/Units")),this._messagesTask.promise}};s([m()],f.prototype,"_messages",null),s([m()],f.prototype,"_messagesTask",void 0),s([m()],f.prototype,"measurementViewData",void 0),s([m()],f.prototype,"updating",null),s([m()],f.prototype,"view",void 0),f=s([n("esri.views.2d.analysis.AreaMeasurement.AreaMeasurementLabelVisualization")],f);export{f as AreaMeasurementLabelVisualization};