@arcgis/core 4.27.0-next.20230521 → 4.27.0-next.20230523

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 (268) hide show
  1. package/Graphic.js +1 -1
  2. package/WebMap.js +1 -1
  3. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  4. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  5. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  6. package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
  7. package/arcade/functions/featuresetbase.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/030b43764f945cb1f8b0.js +1 -0
  10. package/assets/esri/core/workers/chunks/0d02856e55d20b99fc8b.js +1 -0
  11. package/assets/esri/core/workers/chunks/{69242c66492717c7388c.js → 0fcb8d408696075338e2.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{b91c155de9a89e4e6971.js → 187c3b971ed0fc4363ef.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{85c6ce93aa41e6b65997.js → 18db07d739a713cc0465.js} +1 -1
  14. package/assets/esri/core/workers/chunks/1b6177e23327be645c8c.js +1 -0
  15. package/assets/esri/core/workers/chunks/28286014a575042619ee.js +1 -0
  16. package/assets/esri/core/workers/chunks/{692dfeb2e255fdc0ade2.js → 39288fa69561d21f04f8.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{2b9d3e60977934a6d471.js → 3bc6b5f0643364749ef8.js} +1 -1
  18. package/assets/esri/core/workers/chunks/45e5ad704d18dd0857ce.js +1 -0
  19. package/assets/esri/core/workers/chunks/4d24efa01d1accc5a5f0.js +1 -0
  20. package/assets/esri/core/workers/chunks/{6312783626bacf52df7a.js → 55486c644e8b01326a0d.js} +1 -1
  21. package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +1 -0
  22. package/assets/esri/core/workers/chunks/{62d9d15f0d00a75da42c.js → 571dac507622948ac03e.js} +1 -1
  23. package/assets/esri/core/workers/chunks/59063d6abf70f6598425.js +1 -0
  24. package/assets/esri/core/workers/chunks/5a4c04bf4f57e74457c5.js +1 -0
  25. package/assets/esri/core/workers/chunks/5bf04c32e0ac89dcbf9f.js +1 -0
  26. package/assets/esri/core/workers/chunks/6a3d611e8842afbb50ab.js +2 -0
  27. package/assets/esri/core/workers/chunks/{55ca6ba8b40921025181.js.LICENSE.txt → 6a3d611e8842afbb50ab.js.LICENSE.txt} +1 -1
  28. package/assets/esri/core/workers/chunks/70d6e5edf05ef7079fa8.js +1 -0
  29. package/assets/esri/core/workers/chunks/71bdf8f10aee0077f681.js +1 -0
  30. package/assets/esri/core/workers/chunks/72b2c3c8e76da699690c.js +1 -0
  31. package/assets/esri/core/workers/chunks/78ce0b1af62435d8ebf4.js +1 -0
  32. package/assets/esri/core/workers/chunks/791f529e90135398b3d5.js +1 -0
  33. package/assets/esri/core/workers/chunks/8d3abfe6fdc5ac8d6cb7.js +1 -0
  34. package/assets/esri/core/workers/chunks/{1edc5c06874cb12c5478.js → 924e4a18d8403d1caea3.js} +1 -1
  35. package/assets/esri/core/workers/chunks/96d339abcd917f1f0ae1.js +1 -0
  36. package/assets/esri/core/workers/chunks/97cdbec7532cfcdf9ad2.js +1 -0
  37. package/assets/esri/core/workers/chunks/{f3f6035a17f7dcd19675.js → 9ab400a89dd701778d2c.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{1488b3d48232844b8bb4.js → 9fe349f43d5ff5a4ac2d.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{22396dd3717d17a5d235.js → a1c31bb8c12831539328.js} +1 -1
  40. package/assets/esri/core/workers/chunks/b0571b9e602218cdc7aa.js +1 -0
  41. package/assets/esri/core/workers/chunks/b1d88f8e528bf7092f35.js +1 -0
  42. package/assets/esri/core/workers/chunks/b4e2dc6b3d06b426e596.js +1 -0
  43. package/assets/esri/core/workers/chunks/{48abcb2d88f22e6e9fde.js → c2cb9fa18c77f0c5104e.js} +1 -1
  44. package/assets/esri/core/workers/chunks/cad7a2092ea7f51dbd8b.js +1 -0
  45. package/assets/esri/core/workers/chunks/d08800a30b1227591986.js +1 -0
  46. package/assets/esri/core/workers/chunks/d725dbbdeb05322e6d88.js +1 -0
  47. package/assets/esri/core/workers/chunks/df3e497d12ed77bae168.js +1 -0
  48. package/assets/esri/core/workers/chunks/fb080339bfaf32731ca6.js +1 -0
  49. package/assets/esri/core/workers/chunks/{56fc7924b4fb30239c19.js → fdf58386a67e54c09bfb.js} +1 -1
  50. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  51. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  52. package/assets/esri/themes/base/_core.scss +2 -0
  53. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +86 -96
  54. package/assets/esri/themes/base/widgets/_FloorFilter.scss +6 -0
  55. package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +40 -0
  56. package/assets/esri/themes/dark/main.css +1 -1
  57. package/assets/esri/themes/light/main.css +1 -1
  58. package/assets/esri/themes/light/view.css +1 -1
  59. package/assets/esri/views/interactive/tooltip/t9n/Tooltip.json +1 -1
  60. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_en.json +1 -1
  61. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  62. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  63. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  64. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  65. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  66. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  67. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  68. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  69. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  70. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  71. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  72. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  73. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  74. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  75. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  76. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  77. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  78. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  79. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  80. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  81. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  82. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  83. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  84. package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
  85. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  86. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  87. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  88. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  89. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  90. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  91. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  92. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  93. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  94. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  95. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  96. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  97. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  98. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  99. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  100. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  101. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  102. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology.json +1 -1
  103. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ar.json +1 -1
  104. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bg.json +1 -1
  105. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_bs.json +1 -1
  106. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ca.json +1 -1
  107. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_cs.json +1 -1
  108. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_da.json +1 -1
  109. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_de.json +1 -1
  110. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_el.json +1 -1
  111. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_en.json +1 -1
  112. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_es.json +1 -1
  113. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_et.json +1 -1
  114. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fi.json +1 -1
  115. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_fr.json +1 -1
  116. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_he.json +1 -1
  117. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hr.json +1 -1
  118. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_hu.json +1 -1
  119. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_id.json +1 -1
  120. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_it.json +1 -1
  121. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ja.json +1 -1
  122. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ko.json +1 -1
  123. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lt.json +1 -1
  124. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_lv.json +1 -1
  125. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_nb.json +1 -1
  126. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_nl.json +1 -1
  127. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pl.json +1 -1
  128. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-BR.json +1 -1
  129. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_pt-PT.json +1 -1
  130. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ro.json +1 -1
  131. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_ru.json +1 -1
  132. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sk.json +1 -1
  133. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sl.json +1 -1
  134. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sr.json +1 -1
  135. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_sv.json +1 -1
  136. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_th.json +1 -1
  137. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_tr.json +1 -1
  138. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_uk.json +1 -1
  139. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_vi.json +1 -1
  140. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-CN.json +1 -1
  141. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-HK.json +1 -1
  142. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_zh-TW.json +1 -1
  143. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  144. package/chunks/arcgis-knowledge-client-core.js +1 -1
  145. package/chunks/mat4.js +1 -1
  146. package/core/accessorSupport/write.js +1 -1
  147. package/core/fontUtils.js +1 -1
  148. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  149. package/geometry/Mesh.js +1 -1
  150. package/geometry/support/MeshGeoreferencedRelativeVertexSpace.d.ts +4 -0
  151. package/geometry/support/MeshGeoreferencedRelativeVertexSpace.js +5 -0
  152. package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +4 -0
  153. package/geometry/support/MeshGeoreferencedVertexSpace.js +5 -0
  154. package/geometry/support/MeshLocalVertexSpace.d.ts +4 -0
  155. package/geometry/support/MeshLocalVertexSpace.js +5 -0
  156. package/geometry/support/MeshTransform.d.ts +4 -0
  157. package/geometry/support/MeshTransform.js +1 -1
  158. package/geometry/support/meshUtils/ElevationSamplerWorker.js +1 -1
  159. package/geometry/support/meshUtils/centerAt.js +1 -1
  160. package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
  161. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  162. package/geometry/support/meshUtils/geographicUtils.js +1 -1
  163. package/geometry/support/meshUtils/georeference.js +1 -1
  164. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  165. package/geometry/support/meshUtils/merge.js +1 -1
  166. package/geometry/support/meshUtils/offset.js +1 -1
  167. package/geometry/support/meshUtils/primitives.js +1 -1
  168. package/geometry/support/meshUtils/rotate.js +1 -1
  169. package/geometry/support/meshUtils/scale.js +1 -1
  170. package/interfaces.d.ts +227 -25
  171. package/layers/LinkChartLayer.js +1 -1
  172. package/layers/VoxelWasmPerSceneView.js +1 -1
  173. package/layers/graphics/data/attributeSupport.js +1 -1
  174. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  175. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  176. package/layers/knowledgeGraph/SessionMemoryStorage.js +1 -1
  177. package/layers/support/SubtypeSublayer.js +1 -1
  178. package/layers/support/rasterFunctions/BandArithmeticFunction.js +1 -1
  179. package/layers/support/rasterFunctions/BaseRasterFunction.js +1 -1
  180. package/layers/support/rasterFunctions/CompositeBandFunction.js +1 -1
  181. package/layers/support/rasterFunctions/ExtractBandFunction.js +1 -1
  182. package/layers/support/rasterFunctions/ExtractBandFunctionArguments.js +1 -1
  183. package/layers/support/rasterFunctions/NDVIFunction.js +1 -1
  184. package/networks/support/TopologyValidationJobInfo.js +1 -1
  185. package/package.json +2 -2
  186. package/popup/FieldInfo.js +1 -1
  187. package/portal/Portal.js +1 -1
  188. package/rest/support/FeatureSet.js +1 -1
  189. package/rest/support/meshFeatureSet.js +1 -1
  190. package/smartMapping/symbology/color.js +1 -1
  191. package/smartMapping/symbology/support/colors.js +1 -1
  192. package/support/revision.js +1 -1
  193. package/symbols/cim/cimAnalyzer.js +1 -1
  194. package/symbols/support/utils.js +1 -1
  195. package/views/2d/layers/StreamLayerView2D.js +1 -1
  196. package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
  197. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  198. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  199. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  200. package/views/3d/interactive/editingTools/meshFastUpdateUtils.js +1 -1
  201. package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
  202. package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
  203. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  204. package/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +1 -1
  205. package/views/3d/layers/StreamLayerView3D.js +1 -1
  206. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  207. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  208. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  209. package/views/3d/layers/graphics/symbolComplexity.js +1 -1
  210. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  211. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  212. package/views/3d/state/utils/navigationUtils.js +1 -1
  213. package/views/3d/support/DisplayQualityProfile.js +1 -1
  214. package/views/3d/support/QualitySettings.js +1 -1
  215. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  216. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  217. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  218. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  219. package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
  220. package/views/draw/DrawOperation.js +1 -1
  221. package/views/draw/support/helpMessageUtils.js +1 -1
  222. package/views/interactive/dragEventPipeline.js +1 -1
  223. package/views/layers/StreamLayerView.js +1 -1
  224. package/widgets/BasemapGallery/css.js +1 -1
  225. package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
  226. package/widgets/BasemapGallery.js +1 -1
  227. package/widgets/CoordinateConversion.js +1 -1
  228. package/widgets/Editor/EditorViewModel.js +1 -1
  229. package/widgets/Editor/Edits.js +1 -1
  230. package/widgets/Editor/Upload.js +1 -1
  231. package/widgets/Editor/workflowUtils.js +1 -1
  232. package/widgets/Editor.js +1 -1
  233. package/widgets/Feature/support/featureUtils.js +1 -1
  234. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  235. package/widgets/FeatureTable/FieldColumn.js +1 -1
  236. package/widgets/LayerList.js +1 -1
  237. package/widgets/Locate.js +1 -1
  238. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  239. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +5 -0
  240. package/widgets/UtilityNetworkValidateTopology.js +5 -0
  241. package/widgets/support/widgetUtils.js +1 -1
  242. package/assets/esri/core/workers/chunks/163bf2e13abbdd298374.js +0 -1
  243. package/assets/esri/core/workers/chunks/23f73f81aea461c0c6e6.js +0 -1
  244. package/assets/esri/core/workers/chunks/2640204c4655aa535ccb.js +0 -1
  245. package/assets/esri/core/workers/chunks/2bf42d060f877566b989.js +0 -1
  246. package/assets/esri/core/workers/chunks/34ec9623a1bece86a82b.js +0 -1
  247. package/assets/esri/core/workers/chunks/3bf52139340827794c3b.js +0 -1
  248. package/assets/esri/core/workers/chunks/3cebdd77a8401495097f.js +0 -1
  249. package/assets/esri/core/workers/chunks/48cb634255e39711a720.js +0 -1
  250. package/assets/esri/core/workers/chunks/4d5f71d84c85f45c97ea.js +0 -1
  251. package/assets/esri/core/workers/chunks/52d02021e858820bc4fa.js +0 -1
  252. package/assets/esri/core/workers/chunks/55ca6ba8b40921025181.js +0 -2
  253. package/assets/esri/core/workers/chunks/64b8f65e2ef6cbf08380.js +0 -1
  254. package/assets/esri/core/workers/chunks/662e479c370c11bcb8a7.js +0 -1
  255. package/assets/esri/core/workers/chunks/78aede1e114deefacb54.js +0 -1
  256. package/assets/esri/core/workers/chunks/7ef100158ca28631fcaf.js +0 -1
  257. package/assets/esri/core/workers/chunks/93ad67930aa7d4a4b0ac.js +0 -1
  258. package/assets/esri/core/workers/chunks/964795dfb57f0d0635d0.js +0 -1
  259. package/assets/esri/core/workers/chunks/99ce0a202dcd3d7dc290.js +0 -1
  260. package/assets/esri/core/workers/chunks/abe6c99a1a719543dbe8.js +0 -1
  261. package/assets/esri/core/workers/chunks/c3bf44146fddfe8990f7.js +0 -1
  262. package/assets/esri/core/workers/chunks/cbe817e966b57599bafd.js +0 -1
  263. package/assets/esri/core/workers/chunks/e15b5d7e46a834eacc57.js +0 -1
  264. package/assets/esri/core/workers/chunks/e1e0b3580e2c3098c9f4.js +0 -1
  265. package/assets/esri/core/workers/chunks/e305d20e4424451cab5b.js +0 -1
  266. package/assets/esri/core/workers/chunks/e6836c84470fb6bd25bf.js +0 -1
  267. package/assets/esri/core/workers/chunks/f924732902703233655e.js +0 -1
  268. package/assets/esri/core/workers/chunks/ff1c005eede0cf964332.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9931],{39931:(n,t,e)=>{e.r(t),e.d(t,{a:()=>f});var r,a,i,o=e(5732),u={exports:{}};r=u,a="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,i=function(n){var t,e,r;n=n||{},t||(t=void 0!==n?n:{}),t.ready=new Promise((function(n,t){e=n,r=t}));var i=Object.assign({},t),u="./this.program",c="";"undefined"!=typeof document&&document.currentScript&&(c=document.currentScript.src),a&&(c=a),c=0!==c.indexOf("blob:")?c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var f,s=t.print||console.log.bind(console),l=t.printErr||console.warn.bind(console);Object.assign(t,i),i=null,t.thisProgram&&(u=t.thisProgram),t.wasmBinary&&(f=t.wasmBinary),t.noExitRuntime,"object"!=typeof WebAssembly&&I("no native wasm support detected");var h,d,p,v,m,y,g,b,w,A,T,_,P=!1,C="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function k(n,t,e){var r=t+e;for(e=t;n[e]&&!(e>=r);)++e;if(16<e-t&&n.buffer&&C)return C.decode(n.subarray(t,e));for(r="";t<e;){var a=n[t++];if(128&a){var i=63&n[t++];if(192==(224&a))r+=String.fromCharCode((31&a)<<6|i);else{var o=63&n[t++];65536>(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&n[t++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function $(){var n=h.buffer;d=n,t.HEAP8=p=new Int8Array(n),t.HEAP16=m=new Int16Array(n),t.HEAP32=g=new Int32Array(n),t.HEAPU8=v=new Uint8Array(n),t.HEAPU16=y=new Uint16Array(n),t.HEAPU32=b=new Uint32Array(n),t.HEAPF32=w=new Float32Array(n),t.HEAPF64=_=new Float64Array(n),t.HEAP64=A=new BigInt64Array(n),t.HEAPU64=T=new BigUint64Array(n)}var W,j=[],E=[],O=[];function S(){var n=t.preRun.shift();j.unshift(n)}var F,R=0,U=null;function I(n){throw t.onAbort&&t.onAbort(n),l(n="Aborted("+n+")"),P=!0,n=new WebAssembly.RuntimeError(n+". Build with -sASSERTIONS for more info."),r(n),n}function x(){return F.startsWith("data:application/octet-stream;base64,")}if(F="arcgis-knowledge-client-core.wasm",!x()){var V=F;F=t.locateFile?t.locateFile(V,c):c+V}function B(){var n=F;try{if(n==F&&f)return new Uint8Array(f);throw"both async and sync fetching of the wasm failed"}catch(n){I(n)}}function D(n){for(;0<n.length;)n.shift()(t)}function H(n){this.fa=n-24,this.Sa=function(n){b[this.fa+4>>2]=n},this.Ia=function(n){b[this.fa+8>>2]=n},this.Oa=function(){g[this.fa>>2]=0},this.Ga=function(){p[this.fa+12>>0]=0},this.Pa=function(){p[this.fa+13>>0]=0},this.Ca=function(n,t){this.Fa(),this.Sa(n),this.Ia(t),this.Oa(),this.Ga(),this.Pa()},this.Fa=function(){b[this.fa+16>>2]=0}}var z={};function M(n){for(;n.length;){var t=n.pop();n.pop()(t)}}function q(n){return this.fromWireType(g[n>>2])}var N={},L={},G={};function J(n){if(void 0===n)return"_unknown";var t=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_"+n:n}function Y(n,t){return n=J(n),function(){return t.apply(this,arguments)}}function Z(n){var t=Error,e=Y(n,(function(t){this.name=n,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},e}var K=void 0;function Q(n){throw new K(n)}function X(n,t,e){function r(t){(t=e(t)).length!==n.length&&Q("Mismatched type converter count");for(var r=0;r<n.length;++r)on(n[r],t[r])}n.forEach((function(n){G[n]=t}));var a=Array(t.length),i=[],o=0;t.forEach(((n,t)=>{L.hasOwnProperty(n)?a[t]=L[n]:(i.push(n),N.hasOwnProperty(n)||(N[n]=[]),N[n].push((()=>{a[t]=L[n],++o===i.length&&r(a)})))})),0===i.length&&r(a)}function nn(n){if(null===n)return"null";var t=typeof n;return"object"===t||"array"===t||"function"===t?n.toString():""+n}var tn=void 0;function en(n){for(var t="";v[n];)t+=tn[v[n++]];return t}var rn=void 0;function an(n){throw new rn(n)}function on(n,t,e={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var r=t.name;if(n||an('type "'+r+'" must have a positive integer typeid pointer'),L.hasOwnProperty(n)){if(e.Qa)return;an("Cannot register type '"+r+"' twice")}L[n]=t,delete G[n],N.hasOwnProperty(n)&&(t=N[n],delete N[n],t.forEach((n=>n())))}function un(n,t,e){switch(t){case 0:return e?function(n){return p[n]}:function(n){return v[n]};case 1:return e?function(n){return m[n>>1]}:function(n){return y[n>>1]};case 2:return e?function(n){return g[n>>2]}:function(n){return b[n>>2]};case 3:return e?function(n){return A[n>>3]}:function(n){return T[n>>3]};default:throw new TypeError("Unknown integer type: "+n)}}function cn(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}function fn(n){an(n.da.ga.ea.name+" instance already deleted")}var sn=!1;function ln(){}function hn(n){--n.count.value,0===n.count.value&&(n.ia?n.ka.ma(n.ia):n.ga.ea.ma(n.fa))}function dn(n,t,e){return t===e?n:void 0===e.la||null===(n=dn(n,t,e.la))?null:e.Ea(n)}var pn={},vn=[];function mn(){for(;vn.length;){var n=vn.pop();n.da.qa=!1,n.delete()}}var yn=void 0,gn={};function bn(n,t){return t.ga&&t.fa||Q("makeClassHandle requires ptr and ptrType"),!!t.ka!=!!t.ia&&Q("Both smartPtrType and smartPtr must be specified"),t.count={value:1},wn(Object.create(n,{da:{value:t}}))}function wn(n){return"undefined"==typeof FinalizationRegistry?(wn=n=>n,n):(sn=new FinalizationRegistry((n=>{hn(n.da)})),ln=n=>{sn.unregister(n)},(wn=n=>{var t=n.da;return t.ia&&sn.register(n,{da:t},n),n})(n))}function An(){}function Tn(n,t,e){if(void 0===n[t].ha){var r=n[t];n[t]=function(){return n[t].ha.hasOwnProperty(arguments.length)||an("Function '"+e+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+n[t].ha+")!"),n[t].ha[arguments.length].apply(this,arguments)},n[t].ha=[],n[t].ha[r.pa]=r}}function _n(n,e,r){t.hasOwnProperty(n)?((void 0===r||void 0!==t[n].ha&&void 0!==t[n].ha[r])&&an("Cannot register public name '"+n+"' twice"),Tn(t,n,n),t.hasOwnProperty(r)&&an("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),t[n].ha[r]=e):(t[n]=e,void 0!==r&&(t[n].$a=r))}function Pn(n,t,e,r,a,i,o,u){this.name=n,this.constructor=t,this.na=e,this.ma=r,this.la=a,this.Ja=i,this.sa=o,this.Ea=u,this.Ua=[]}function Cn(n,t,e){for(;t!==e;)t.sa||an("Expected null or instance of "+e.name+", got an instance of "+t.name),n=t.sa(n),t=t.la;return n}function kn(n,t){return null===t?(this.va&&an("null is not a valid "+this.name),0):(t.da||an('Cannot pass "'+nn(t)+'" as a '+this.name),t.da.fa||an("Cannot pass deleted object as a pointer of type "+this.name),Cn(t.da.fa,t.da.ga.ea,this.ea))}function $n(n,t){if(null===t){if(this.va&&an("null is not a valid "+this.name),this.ua){var e=this.wa();return null!==n&&n.push(this.ma,e),e}return 0}if(t.da||an('Cannot pass "'+nn(t)+'" as a '+this.name),t.da.fa||an("Cannot pass deleted object as a pointer of type "+this.name),!this.ta&&t.da.ga.ta&&an("Cannot convert argument of type "+(t.da.ka?t.da.ka.name:t.da.ga.name)+" to parameter type "+this.name),e=Cn(t.da.fa,t.da.ga.ea,this.ea),this.ua)switch(void 0===t.da.ia&&an("Passing raw pointer to smart pointer is illegal"),this.Za){case 0:t.da.ka===this?e=t.da.ia:an("Cannot convert argument of type "+(t.da.ka?t.da.ka.name:t.da.ga.name)+" to parameter type "+this.name);break;case 1:e=t.da.ia;break;case 2:if(t.da.ka===this)e=t.da.ia;else{var r=t.clone();e=this.Va(e,Mn((function(){r.delete()}))),null!==n&&n.push(this.ma,e)}break;default:an("Unsupporting sharing policy")}return e}function Wn(n,t){return null===t?(this.va&&an("null is not a valid "+this.name),0):(t.da||an('Cannot pass "'+nn(t)+'" as a '+this.name),t.da.fa||an("Cannot pass deleted object as a pointer of type "+this.name),t.da.ga.ta&&an("Cannot convert argument of type "+t.da.ga.name+" to parameter type "+this.name),Cn(t.da.fa,t.da.ga.ea,this.ea))}function jn(n,t,e,r,a,i,o,u,c,f,s){this.name=n,this.ea=t,this.va=e,this.ta=r,this.ua=a,this.Ta=i,this.Za=o,this.Aa=u,this.wa=c,this.Va=f,this.ma=s,a||void 0!==t.la?this.toWireType=$n:(this.toWireType=r?kn:Wn,this.ja=null)}function En(n,e,r){t.hasOwnProperty(n)||Q("Replacing nonexistant public symbol"),void 0!==t[n].ha&&void 0!==r?t[n].ha[r]=e:(t[n]=e,t[n].pa=r)}var On=[];function Sn(n,t){n=en(n);var e=On[t];return e||(t>=On.length&&(On.length=t+1),On[t]=e=W.get(t)),"function"!=typeof e&&an("unknown function pointer with signature "+n+": "+t),e}var Fn=void 0;function Rn(n){var t=en(n=yt(n));return mt(n),t}function Un(n,t){var e=[],r={};throw t.forEach((function n(t){r[t]||L[t]||(G[t]?G[t].forEach(n):(e.push(t),r[t]=!0))})),new Fn(n+": "+e.map(Rn).join([", "]))}function In(n,t,e,r,a){var i=t.length;2>i&&an("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=null!==t[1]&&null!==e,u=!1;for(e=1;e<t.length;++e)if(null!==t[e]&&void 0===t[e].ja){u=!0;break}var c="void"!==t[0].name,f=i-2,s=Array(f),l=[],h=[];return function(){if(arguments.length!==f&&an("function "+n+" called with "+arguments.length+" arguments, expected "+f+" args!"),h.length=0,l.length=o?2:1,l[0]=a,o){var e=t[1].toWireType(h,this);l[1]=e}for(var i=0;i<f;++i)s[i]=t[i+2].toWireType(h,arguments[i]),l.push(s[i]);if(i=r.apply(null,l),u)M(h);else for(var d=o?1:2;d<t.length;d++){var p=1===d?e:s[d-2];null!==t[d].ja&&t[d].ja(p)}return c?t[0].fromWireType(i):void 0}}function xn(n,t){for(var e=[],r=0;r<n;r++)e.push(b[t+4*r>>2]);return e}function Vn(n,t,e){return n instanceof Object||an(e+' with invalid "this": '+n),n instanceof t.ea.constructor||an(e+' incompatible with "this" of type '+n.constructor.name),n.da.fa||an("cannot call emscripten binding method "+e+" on deleted object"),Cn(n.da.fa,n.da.ga.ea,t.ea)}var Bn=[],Dn=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Hn(n){4<n&&0==--Dn[n].xa&&(Dn[n]=void 0,Bn.push(n))}var zn=n=>(n||an("Cannot use deleted val. handle = "+n),Dn[n].value),Mn=n=>{switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=Bn.length?Bn.pop():Dn.length;return Dn[t]={xa:1,value:n},t}};function qn(n,t,e){switch(t){case 0:return function(n){return this.fromWireType((e?p:v)[n])};case 1:return function(n){return this.fromWireType((e?m:y)[n>>1])};case 2:return function(n){return this.fromWireType((e?g:b)[n>>2])};default:throw new TypeError("Unknown integer type: "+n)}}function Nn(n,t){var e=L[n];return void 0===e&&an(t+" has unknown type "+Rn(n)),e}function Ln(n,t){switch(t){case 2:return function(n){return this.fromWireType(w[n>>2])};case 3:return function(n){return this.fromWireType(_[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}var Gn="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function Jn(n,t){for(var e=n>>1,r=e+t/2;!(e>=r)&&y[e];)++e;if(32<(e<<=1)-n&&Gn)return Gn.decode(v.subarray(n,e));for(e="",r=0;!(r>=t/2);++r){var a=m[n+2*r>>1];if(0==a)break;e+=String.fromCharCode(a)}return e}function Yn(n,t,e){if(void 0===e&&(e=2147483647),2>e)return 0;var r=t;e=(e-=2)<2*n.length?e/2:n.length;for(var a=0;a<e;++a)m[t>>1]=n.charCodeAt(a),t+=2;return m[t>>1]=0,t-r}function Zn(n){return 2*n.length}function Kn(n,t){for(var e=0,r="";!(e>=t/4);){var a=g[n+4*e>>2];if(0==a)break;++e,65536<=a?(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a)):r+=String.fromCharCode(a)}return r}function Qn(n,t,e){if(void 0===e&&(e=2147483647),4>e)return 0;var r=t;e=r+e-4;for(var a=0;a<n.length;++a){var i=n.charCodeAt(a);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&n.charCodeAt(++a)),g[t>>2]=i,(t+=4)+4>e)break}return g[t>>2]=0,t-r}function Xn(n){for(var t=0,e=0;e<n.length;++e){var r=n.charCodeAt(e);55296<=r&&57343>=r&&++e,t+=4}return t}function nt(n,t){for(var e=Array(n),r=0;r<n;++r)e[r]=Nn(b[t+4*r>>2],"parameter "+r);return e}var tt={};function et(n){var t=tt[n];return void 0===t?en(n):t}var rt=[];function at(){function n(n){n.$$$embind_global$$$=n;var t="object"==typeof $$$embind_global$$$&&n.$$$embind_global$$$==n;return t||delete n.$$$embind_global$$$,t}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof o.c&&n(o.c)?$$$embind_global$$$=o.c:"object"==typeof self&&n(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")}var it=[],ot={},ut={};function ct(){if(!ft){var n,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:u||"./this.program"};for(n in ut)void 0===ut[n]?delete t[n]:t[n]=ut[n];var e=[];for(n in t)e.push(n+"="+t[n]);ft=e}return ft}var ft,st=[null,[],[]];K=t.InternalError=Z("InternalError");for(var lt=Array(256),ht=0;256>ht;++ht)lt[ht]=String.fromCharCode(ht);tn=lt,rn=t.BindingError=Z("BindingError"),An.prototype.isAliasOf=function(n){if(!(this instanceof An&&n instanceof An))return!1;var t=this.da.ga.ea,e=this.da.fa,r=n.da.ga.ea;for(n=n.da.fa;t.la;)e=t.sa(e),t=t.la;for(;r.la;)n=r.sa(n),r=r.la;return t===r&&e===n},An.prototype.clone=function(){if(this.da.fa||fn(this),this.da.ra)return this.da.count.value+=1,this;var n=wn,t=Object,e=t.create,r=Object.getPrototypeOf(this),a=this.da;return(n=n(e.call(t,r,{da:{value:{count:a.count,qa:a.qa,ra:a.ra,fa:a.fa,ga:a.ga,ia:a.ia,ka:a.ka}}}))).da.count.value+=1,n.da.qa=!1,n},An.prototype.delete=function(){this.da.fa||fn(this),this.da.qa&&!this.da.ra&&an("Object already scheduled for deletion"),ln(this),hn(this.da),this.da.ra||(this.da.ia=void 0,this.da.fa=void 0)},An.prototype.isDeleted=function(){return!this.da.fa},An.prototype.deleteLater=function(){return this.da.fa||fn(this),this.da.qa&&!this.da.ra&&an("Object already scheduled for deletion"),vn.push(this),1===vn.length&&yn&&yn(mn),this.da.qa=!0,this},t.getInheritedInstanceCount=function(){return Object.keys(gn).length},t.getLiveInheritedInstances=function(){var n,t=[];for(n in gn)gn.hasOwnProperty(n)&&t.push(gn[n]);return t},t.flushPendingDeletes=mn,t.setDelayFunction=function(n){yn=n,vn.length&&yn&&yn(mn)},jn.prototype.Ka=function(n){return this.Aa&&(n=this.Aa(n)),n},jn.prototype.ya=function(n){this.ma&&this.ma(n)},jn.prototype.argPackAdvance=8,jn.prototype.readValueFromPointer=q,jn.prototype.deleteObject=function(n){null!==n&&n.delete()},jn.prototype.fromWireType=function(n){function t(){return this.ua?bn(this.ea.na,{ga:this.Ta,fa:e,ka:this,ia:n}):bn(this.ea.na,{ga:this,fa:n})}var e=this.Ka(n);if(!e)return this.ya(n),null;var r=function(n,t){for(void 0===t&&an("ptr should not be undefined");n.la;)t=n.sa(t),n=n.la;return gn[t]}(this.ea,e);if(void 0!==r)return 0===r.da.count.value?(r.da.fa=e,r.da.ia=n,r.clone()):(r=r.clone(),this.ya(n),r);if(r=this.ea.Ja(e),!(r=pn[r]))return t.call(this);r=this.ta?r.Ba:r.pointerType;var a=dn(e,this.ea,r.ea);return null===a?t.call(this):this.ua?bn(r.ea.na,{ga:r,fa:a,ka:this,ia:n}):bn(r.ea.na,{ga:r,fa:a})},Fn=t.UnboundTypeError=Z("UnboundTypeError"),t.count_emval_handles=function(){for(var n=0,t=5;t<Dn.length;++t)void 0!==Dn[t]&&++n;return n},t.get_first_emval=function(){for(var n=5;n<Dn.length;++n)if(void 0!==Dn[n])return Dn[n];return null};var dt={j:function(n){return vt(n+24)+24},i:function(n,t,e){throw new H(n).Ca(t,e),n},t:function(n){var t=z[n];delete z[n];var e=t.wa,r=t.ma,a=t.za;X([n],a.map((n=>n.Na)).concat(a.map((n=>n.Xa))),(n=>{var i={};return a.forEach(((t,e)=>{var r=n[e],o=t.La,u=t.Ma,c=n[e+a.length],f=t.Wa,s=t.Ya;i[t.Ha]={read:n=>r.fromWireType(o(u,n)),write:(n,t)=>{var e=[];f(s,n,c.toWireType(e,t)),M(e)}}})),[{name:t.name,fromWireType:function(n){var t,e={};for(t in i)e[t]=i[t].read(n);return r(n),e},toWireType:function(n,t){for(var a in i)if(!(a in t))throw new TypeError('Missing field: "'+a+'"');var o=e();for(a in i)i[a].write(o,t[a]);return null!==n&&n.push(r,o),o},argPackAdvance:8,readValueFromPointer:q,ja:r}]}))},A:function(n,t,e,r,a){t=en(t),e=cn(e);var i=-1!=t.indexOf("u");i&&(a=(1n<<64n)-1n),on(n,{name:t,fromWireType:function(n){return n},toWireType:function(n,e){if("bigint"!=typeof e&&"number"!=typeof e)throw new TypeError('Cannot convert "'+nn(e)+'" to '+this.name);if(e<r||e>a)throw new TypeError('Passing a number "'+nn(e)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+r+", "+a+"]!");return e},argPackAdvance:8,readValueFromPointer:un(t,e,!i),ja:null})},R:function(n,t,e,r,a){var i=cn(e);on(n,{name:t=en(t),fromWireType:function(n){return!!n},toWireType:function(n,t){return t?r:a},argPackAdvance:8,readValueFromPointer:function(n){if(1===e)var r=p;else if(2===e)r=m;else{if(4!==e)throw new TypeError("Unknown boolean type size: "+t);r=g}return this.fromWireType(r[n>>i])},ja:null})},f:function(n,t,e,r,a,i,o,u,c,f,s,l,h){s=en(s),i=Sn(a,i),u&&(u=Sn(o,u)),f&&(f=Sn(c,f)),h=Sn(l,h);var d=J(s);_n(d,(function(){Un("Cannot construct "+s+" due to unbound types",[r])})),X([n,t,e],r?[r]:[],(function(t){if(t=t[0],r)var e=t.ea,a=e.na;else a=An.prototype;t=Y(d,(function(){if(Object.getPrototypeOf(this)!==o)throw new rn("Use 'new' to construct "+s);if(void 0===c.oa)throw new rn(s+" has no accessible constructor");var n=c.oa[arguments.length];if(void 0===n)throw new rn("Tried to invoke ctor of "+s+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(c.oa).toString()+") parameters instead!");return n.apply(this,arguments)}));var o=Object.create(a,{constructor:{value:t}});t.prototype=o;var c=new Pn(s,t,o,h,e,i,u,f);e=new jn(s,c,!0,!1,!1),a=new jn(s+"*",c,!1,!1,!1);var l=new jn(s+" const*",c,!1,!0,!1);return pn[n]={pointerType:a,Ba:l},En(d,t),[e,a,l]}))},D:function(n,t,e,r,a,i,o){var u=xn(e,r);t=en(t),i=Sn(a,i),X([],[n],(function(n){function r(){Un("Cannot call "+a+" due to unbound types",u)}var a=(n=n[0]).name+"."+t;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var c=n.ea.constructor;return void 0===c[t]?(r.pa=e-1,c[t]=r):(Tn(c,t,a),c[t].ha[e-1]=r),X([],u,(function(n){return n=In(a,[n[0],null].concat(n.slice(1)),null,i,o),void 0===c[t].ha?(n.pa=e-1,c[t]=n):c[t].ha[e-1]=n,[]})),[]}))},o:function(n,t,e,r,a,i){0<t||I();var o=xn(t,e);a=Sn(r,a),X([],[n],(function(n){var e="constructor "+(n=n[0]).name;if(void 0===n.ea.oa&&(n.ea.oa=[]),void 0!==n.ea.oa[t-1])throw new rn("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+n.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return n.ea.oa[t-1]=()=>{Un("Cannot construct "+n.name+" due to unbound types",o)},X([],o,(function(r){return r.splice(1,0,null),n.ea.oa[t-1]=In(e,r,null,a,i),[]})),[]}))},b:function(n,t,e,r,a,i,o,u){var c=xn(e,r);t=en(t),i=Sn(a,i),X([],[n],(function(n){function r(){Un("Cannot call "+a+" due to unbound types",c)}var a=(n=n[0]).name+"."+t;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),u&&n.ea.Ua.push(t);var f=n.ea.na,s=f[t];return void 0===s||void 0===s.ha&&s.className!==n.name&&s.pa===e-2?(r.pa=e-2,r.className=n.name,f[t]=r):(Tn(f,t,a),f[t].ha[e-2]=r),X([],c,(function(r){return r=In(a,r,n,i,o),void 0===f[t].ha?(r.pa=e-2,f[t]=r):f[t].ha[e-2]=r,[]})),[]}))},c:function(n,t,e,r,a,i,o,u,c,f){t=en(t),a=Sn(r,a),X([],[n],(function(n){var r=(n=n[0]).name+"."+t,s={get:function(){Un("Cannot access "+r+" due to unbound types",[e,o])},enumerable:!0,configurable:!0};return s.set=c?()=>{Un("Cannot access "+r+" due to unbound types",[e,o])}:()=>{an(r+" is a read-only property")},Object.defineProperty(n.ea.na,t,s),X([],c?[e,o]:[e],(function(e){var o=e[0],s={get:function(){var t=Vn(this,n,r+" getter");return o.fromWireType(a(i,t))},enumerable:!0};if(c){c=Sn(u,c);var l=e[1];s.set=function(t){var e=Vn(this,n,r+" setter"),a=[];c(f,e,l.toWireType(a,t)),M(a)}}return Object.defineProperty(n.ea.na,t,s),[]})),[]}))},Q:function(n,t){on(n,{name:t=en(t),fromWireType:function(n){var t=zn(n);return Hn(n),t},toWireType:function(n,t){return Mn(t)},argPackAdvance:8,readValueFromPointer:q,ja:null})},q:function(n,t,e,r){function a(){}e=cn(e),t=en(t),a.values={},on(n,{name:t,constructor:a,fromWireType:function(n){return this.constructor.values[n]},toWireType:function(n,t){return t.value},argPackAdvance:8,readValueFromPointer:qn(t,e,r),ja:null}),_n(t,a)},e:function(n,t,e){var r=Nn(n,"enum");t=en(t),n=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:e},constructor:{value:Y(r.name+"_"+t,(function(){}))}}),n.values[e]=r,n[t]=r},z:function(n,t,e){e=cn(e),on(n,{name:t=en(t),fromWireType:function(n){return n},toWireType:function(n,t){return t},argPackAdvance:8,readValueFromPointer:Ln(t,e),ja:null})},V:function(n,t,e,r,a,i){var o=xn(t,e);n=en(n),a=Sn(r,a),_n(n,(function(){Un("Cannot call "+n+" due to unbound types",o)}),t-1),X([],o,(function(e){return En(n,In(n,[e[0],null].concat(e.slice(1)),null,a,i),t-1),[]}))},r:function(n,t,e,r,a){t=en(t),-1===a&&(a=4294967295),a=cn(e);var i=n=>n;if(0===r){var o=32-8*e;i=n=>n<<o>>>o}e=t.includes("unsigned")?function(n,t){return t>>>0}:function(n,t){return t},on(n,{name:t,fromWireType:i,toWireType:e,argPackAdvance:8,readValueFromPointer:un(t,a,0!==r),ja:null})},l:function(n,t,e){function r(n){var t=b;return new a(d,t[1+(n>>=2)],t[n])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][t];on(n,{name:e=en(e),fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{Qa:!0})},k:function(n,t,e,r,a,i,o,u,c,f,s,l){e=en(e),i=Sn(a,i),u=Sn(o,u),f=Sn(c,f),l=Sn(s,l),X([n],[t],(function(n){return n=n[0],[new jn(e,n.ea,!1,!1,!0,n,r,i,u,f,l)]}))},B:function(n,t){var e="std::string"===(t=en(t));on(n,{name:t,fromWireType:function(n){var t=b[n>>2],r=n+4;if(e)for(var a=r,i=0;i<=t;++i){var o=r+i;if(i==t||0==v[o]){if(a=a?k(v,a,o-a):"",void 0===u)var u=a;else u+=String.fromCharCode(0),u+=a;a=o+1}}else{for(u=Array(t),i=0;i<t;++i)u[i]=String.fromCharCode(v[r+i]);u=u.join("")}return mt(n),u},toWireType:function(n,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r,a,i="string"==typeof t;if(i||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||an("Cannot pass non-string to std::string"),e&&i)for(r=a=0;r<t.length;++r){var o=t.charCodeAt(r);127>=o?a++:2047>=o?a+=2:55296<=o&&57343>=o?(a+=4,++r):a+=3}else a=t.length;if(o=(a=vt(4+(r=a)+1))+4,b[a>>2]=r,e&&i){if(i=o,o=r+1,r=v,0<o){o=i+o-1;for(var u=0;u<t.length;++u){var c=t.charCodeAt(u);if(55296<=c&&57343>=c&&(c=65536+((1023&c)<<10)|1023&t.charCodeAt(++u)),127>=c){if(i>=o)break;r[i++]=c}else{if(2047>=c){if(i+1>=o)break;r[i++]=192|c>>6}else{if(65535>=c){if(i+2>=o)break;r[i++]=224|c>>12}else{if(i+3>=o)break;r[i++]=240|c>>18,r[i++]=128|c>>12&63}r[i++]=128|c>>6&63}r[i++]=128|63&c}}r[i]=0}}else if(i)for(i=0;i<r;++i)255<(u=t.charCodeAt(i))&&(mt(o),an("String has UTF-16 code units that do not fit in 8 bits")),v[o+i]=u;else for(i=0;i<r;++i)v[o+i]=t[i];return null!==n&&n.push(mt,a),a},argPackAdvance:8,readValueFromPointer:q,ja:function(n){mt(n)}})},w:function(n,t,e){if(e=en(e),2===t)var r=Jn,a=Yn,i=Zn,o=()=>y,u=1;else 4===t&&(r=Kn,a=Qn,i=Xn,o=()=>b,u=2);on(n,{name:e,fromWireType:function(n){for(var e,a=b[n>>2],i=o(),c=n+4,f=0;f<=a;++f){var s=n+4+f*t;f!=a&&0!=i[s>>u]||(c=r(c,s-c),void 0===e?e=c:(e+=String.fromCharCode(0),e+=c),c=s+t)}return mt(n),e},toWireType:function(n,r){"string"!=typeof r&&an("Cannot pass non-string to C++ string type "+e);var o=i(r),c=vt(4+o+t);return b[c>>2]=o>>u,a(r,c+4,o+t),null!==n&&n.push(mt,c),c},argPackAdvance:8,readValueFromPointer:q,ja:function(n){mt(n)}})},u:function(n,t,e,r,a,i){z[n]={name:en(t),wa:Sn(e,r),ma:Sn(a,i),za:[]}},h:function(n,t,e,r,a,i,o,u,c,f){z[n].za.push({Ha:en(t),Na:e,La:Sn(r,a),Ma:i,Xa:o,Wa:Sn(u,c),Ya:f})},S:function(n,t){on(n,{Ra:!0,name:t=en(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},n:function(n,t,e){n=zn(n),t=Nn(t,"emval::as");var r=[],a=Mn(r);return b[e>>2]=a,t.toWireType(r,n)},F:function(n,t){return n=zn(n),(t=Nn(t,"emval::as")).toWireType(null,n)},W:function(n,t,e,r){n=zn(n),e=nt(t,e);for(var a=Array(t),i=0;i<t;++i){var o=e[i];a[i]=o.readValueFromPointer(r),r+=o.argPackAdvance}return n=n.apply(void 0,a),Mn(n)},U:function(n,t,e,r,a){n=rt[n],t=zn(t),e=et(e);var i=[];return b[r>>2]=Mn(i),n(t,e,i,a)},C:function(n,t,e,r){(n=rt[n])(t=zn(t),e=et(e),null,r)},a:Hn,v:function(n){return 0===n?Mn(at()):(n=et(n),Mn(at()[n]))},x:function(n,t){var e=nt(n,t),r=e[0];t=r.name+"_$"+e.slice(1).map((function(n){return n.name})).join("_")+"$";var a=it[t];if(void 0!==a)return a;var i=Array(n-1);return a=function(n){var t=rt.length;return rt.push(n),t}(((t,a,o,u)=>{for(var c=0,f=0;f<n-1;++f)i[f]=e[f+1].readValueFromPointer(u+c),c+=e[f+1].argPackAdvance;for(t=t[a].apply(t,i),f=0;f<n-1;++f)e[f+1].Da&&e[f+1].Da(i[f]);if(!r.Ra)return r.toWireType(o,t)})),it[t]=a},s:function(n,t){return n=zn(n),t=zn(t),Mn(n[t])},g:function(n){4<n&&(Dn[n].xa+=1)},H:function(n,t){return(n=zn(n))instanceof zn(t)},P:function(n){return"number"==typeof(n=zn(n))},T:function(n){return"string"==typeof(n=zn(n))},E:function(n,t,e,r){n=zn(n);var a=ot[t];return a||(a=function(n){var t=Array(n+1);return function(e,r,a){t[0]=e;for(var i=0;i<n;++i){var o=Nn(b[r+4*i>>2],"parameter "+i);t[i+1]=o.readValueFromPointer(a),a+=o.argPackAdvance}return e=new(e.bind.apply(e,t)),Mn(e)}}(t),ot[t]=a),a(n,e,r)},p:function(n){return Mn(et(n))},m:function(n){M(zn(n)),Hn(n)},d:function(n,t){return n=(n=Nn(n,"_emval_take_value")).readValueFromPointer(t),Mn(n)},G:function(n){return n=zn(n),Mn(typeof n)},y:function(){I("")},L:function(n,t,e){v.copyWithin(n,t,t+e)},K:function(n){var t=v.length;if(2147483648<(n>>>=0))return!1;for(var e=1;4>=e;e*=2){var r=t*(1+.2/e);r=Math.min(r,n+100663296);var a=Math;r=Math.max(n,r),a=a.min.call(a,2147483648,r+(65536-r%65536)%65536);n:{try{h.grow(a-d.byteLength+65535>>>16),$();var i=1;break n}catch(n){}i=void 0}if(i)return!0}return!1},I:function(n,t){var e=0;return ct().forEach((function(r,a){var i=t+e;for(a=b[n+4*a>>2]=i,i=0;i<r.length;++i)p[a++>>0]=r.charCodeAt(i);p[a>>0]=0,e+=r.length+1})),0},J:function(n,t){var e=ct();b[n>>2]=e.length;var r=0;return e.forEach((function(n){r+=n.length+1})),b[t>>2]=r,0},O:function(){return 52},N:function(){return 70},M:function(n,t,e,r){for(var a=0,i=0;i<e;i++){var o=b[t>>2],u=b[t+4>>2];t+=8;for(var c=0;c<u;c++){var f=v[o+c],h=st[n];0===f||10===f?((1===n?s:l)(k(h,0)),h.length=0):h.push(f)}a+=u}return b[r>>2]=a,0}};!function(){function n(n){t.asm=n.exports,h=t.asm.X,$(),W=t.asm.ba,E.unshift(t.asm.Y),R--,t.monitorRunDependencies&&t.monitorRunDependencies(R),0==R&&U&&(n=U,U=null,n())}function e(t){n(t.instance)}function a(n){return(f||"function"!=typeof fetch?Promise.resolve().then((function(){return B()})):fetch(F,{credentials:"same-origin"}).then((function(n){if(!n.ok)throw"failed to load wasm binary file at '"+F+"'";return n.arrayBuffer()})).catch((function(){return B()}))).then((function(n){return WebAssembly.instantiate(n,i)})).then((function(n){return n})).then(n,(function(n){l("failed to asynchronously prepare wasm: "+n),I(n)}))}var i={a:dt};if(R++,t.monitorRunDependencies&&t.monitorRunDependencies(R),t.instantiateWasm)try{return t.instantiateWasm(i,n)}catch(n){l("Module.instantiateWasm callback failed with error: "+n),r(n)}(f||"function"!=typeof WebAssembly.instantiateStreaming||x()||"function"!=typeof fetch?a(e):fetch(F,{credentials:"same-origin"}).then((function(n){return WebAssembly.instantiateStreaming(n,i).then(e,(function(n){return l("wasm streaming compile failed: "+n),l("falling back to ArrayBuffer instantiation"),a(e)}))}))).catch(r)}(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.Y).apply(null,arguments)};var pt,vt=t._malloc=function(){return(vt=t._malloc=t.asm.Z).apply(null,arguments)},mt=t._free=function(){return(mt=t._free=t.asm._).apply(null,arguments)},yt=t.___getTypeName=function(){return(yt=t.___getTypeName=t.asm.$).apply(null,arguments)};function gt(){function n(){if(!pt&&(pt=!0,t.calledRun=!0,!P)){if(D(E),e(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var n=t.postRun.shift();O.unshift(n)}D(O)}}if(!(0<R)){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)S();D(j),0<R||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),n()}),1)):n())}}if(t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm.aa).apply(null,arguments)},t.___cxa_is_pointer_type=function(){return(t.___cxa_is_pointer_type=t.asm.ca).apply(null,arguments)},U=function n(){pt||gt(),pt||(U=n)},t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return gt(),n.ready},r.exports=i;var c=u.exports;const f=function(n,t){for(var e=0;e<t.length;e++){const r=t[e];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in n)){const e=Object.getOwnPropertyDescriptor(r,t);e&&Object.defineProperty(n,t,e.get?e:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,o.g)(c)},[c])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8681],{40932:(t,e,n)=>{n.d(e,{Ue:()=>Nn,G8:()=>Pn});var s=n(3892),r=n(20102),o=n(22974),i=n(43697),a=n(5600),u=(n(75215),n(67676),n(80442),n(52011)),l=(n(92604),n(96674));let c=class extends l.wq{constructor(){super(...arguments),this.raster=void 0}};(0,i._)([(0,a.Cb)({json:{write:!0}})],c.prototype,"raster",void 0),c=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.AspectFunctionArguments")],c);const p=c;var f;let h=f=class extends p{clone(){return new f({raster:this.raster})}};h=f=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.AspectFunctionArguments")],h);const m=h;var d=n(90578),g=n(5847),y=n(25972);const b=new Set(["slope","aspect","curvature","hillshade","shadedrelief"]);let x=class extends l.wq{constructor(){super(...arguments),this.functionArguments=null,this.readingBufferSize=0,this.id=-1,this.isNoopProcess=!1,this.rawInputBandIds=[],this.isInputBandIdsSwizzled=!1,this.swizzledBandSelection=[],this.isBranch=!1,this._bindingResult=null}get supportsGPU(){return this._bindingResult.supportsGPU}get flatWebGLFunctionChain(){const t=this.getWebGLProcessorDefinition();if(!t)return null;const e=[t],{parameters:n}=t;let s=n.rasters||n.raster&&[n.raster];for(;s?.length;){e.unshift(...s);const t=[];for(let e=0;e<s.length;e++){const{parameters:n}=s[e],r=n.rasters||n.raster&&[n.raster];r?.length&&t.push(...r)}s=t}for(let t=e.length-1;t>=0;t--)e[t].isNoopProcess&&e.splice(t,1);let r=!1;for(let t=0;t<e.length;t++){const n=e[t];n.id=e.length-t-1;const{rasters:s}=n.parameters;r=r||null!=s&&s.length>1}const o=e.some((({name:t})=>b.has(t.toLowerCase())));return{functions:e,hasBranches:r,hasSurfaceFunction:o}}bind(t,e=!1,n=-1){this.id=n+1;const s=this._getRasterValues();let r=!0;for(let n=0;n<s.length;n++){const o=s[n];if(null!=o&&this._isRasterFunctionValue(o)){const s=o.bind(t,e,this.id+n);if(!s.success)return this._bindingResult=s,s;r=r&&s.supportsGPU}}return!this.rasterInfo||e?(this.sourceRasterInfos=this._getSourceRasterInfos(t),this._bindingResult=this._bindSourceRasters(),this._bindingResult.supportsGPU=r&&this._bindingResult.supportsGPU,this.processInputBandIds(),this._bindingResult):(this._bindingResult={success:!0,supportsGPU:!0},this.processInputBandIds(),this._bindingResult)}process(t){const e=this._getRasterValues(),n=0===e.length?t.pixelBlocks??t.primaryPixelBlocks:e.map((e=>this._readRasterValue(e,t)));return this._processPixels({...t,pixelBlocks:n})}processInputBandIds(){const t=this._getRasterValues().filter(this._isRasterFunctionValue);let e;if(t.length>1){const e=t.map((t=>t.processInputBandIds()[0]));this.rawInputBandIds=e,this.isInputBandIdsSwizzled=this.rawInputBandIds.some(((t,e)=>t!==e));const n=t.filter((t=>"ExtractBand"===t.functionName));return n.length&&n.forEach(((t,e)=>{t.isInputBandIdsSwizzled=!0,t.swizzledBandSelection=[e,e,e]})),this.rawInputBandIds}const n=t[0];if(n){if(e=n.processInputBandIds(),n.isInputBandIdsSwizzled)return this.rawInputBandIds=e,e}else{e=[];const{bandCount:t}=this.sourceRasterInfos[0];for(let n=0;n<t;n++)e.push(n)}const s=this._getInputBandIds(e);return this.isInputBandIdsSwizzled=s.some(((t,e)=>t!==e)),this.rawInputBandIds=s,this.rawInputBandIds}getPrimaryRasters(){const t=[],e=[];return this._getPrimaryRasters(this,t,e),{rasters:t,rasterIds:e}}getWebGLProcessorDefinition(){const t=this._getWebGLParameters(),{raster:e,rasters:n}=this.functionArguments;return n&&Array.isArray(n)&&n.length?(t.rasters=n.map((t=>this._isRasterFunctionValue(t)?t.getWebGLProcessorDefinition():"number"==typeof t?{name:"Constant",parameters:{value:t},pixelType:"f32",id:-1,isNoopProcess:!1}:{name:"Identity",parameters:{value:t},pixelType:"f32",id:-1,isNoopProcess:!1})),t.rasters.some((t=>null!=t))||(t.rasters=null)):this._isRasterFunctionValue(e)&&(t.raster=e.getWebGLProcessorDefinition()),{name:this.functionName,parameters:t,pixelType:this.outputPixelType,id:this.id,isNoopProcess:this.isNoopProcess}}_getOutputPixelType(t){return"unknown"===this.outputPixelType?t:this.outputPixelType??t}_getWebGLParameters(){return{}}_getInputBandIds(t){return t}_isOutputRoundingNeeded(){const{outputPixelType:t}=this;return(t?.startsWith("u")||t?.startsWith("s"))??!1}_getRasterValues(){const{rasterArgumentNames:t}=this;return"rasters"===t[0]?this.functionArguments.rasters??[]:t.map((t=>this.functionArguments[t])).flat()}_getSourceRasterInfos(t){const e=this._getRasterValues(),{rasterInfos:n,rasterIds:s}=t;if(0===e.length)return n;const r=e.map((t=>t&&"object"==typeof t&&"bind"in t&&t.rasterInfo?t.rasterInfo:"string"==typeof t&&s.includes(t)?n[s.indexOf(t)]:"number"!=typeof t?n[0]:void 0)),o=r.find((t=>t))??n[0];return r.forEach(((t,e)=>{void 0===t&&(r[e]=o)})),r}_getPrimaryRasterId(t){return t?.url}_getPrimaryRasters(t,e=[],n=[]){for(let s=0;s<t.sourceRasters.length;s++){const r=t.sourceRasters[s];if("number"!=typeof r)if("bind"in r)this._getPrimaryRasters(r,e,n);else{const t=r,s=this._getPrimaryRasterId(t);if(null==s)continue;n.includes(s)||(this.mainPrimaryRasterId===s?(e.unshift(t),n.unshift(s)):(e.push(t),n.push(s)))}}}_isRasterFunctionValue(t){return null!=t&&"object"==typeof t&&"getWebGLProcessorDefinition"in t}_readRasterValue(t,e){const{primaryPixelBlocks:n}=e;if(null==t||"$$"===t){const t=n[0];return null==t?null:t.clone()}if("string"==typeof t){const s=e.primaryRasterIds.indexOf(t);return-1===s?null:n[s]}if("number"==typeof t){const e=n[0];if(null==e)return null;const{width:s,height:r,pixelType:o,mask:i}=e,a=i?new Uint8Array(i):null,u=new Float32Array(s*r);u.fill(t);const l=this.sourceRasterInfos[0].bandCount,c=new Array(l).fill(u);return new g.Z({width:s,height:r,pixelType:o,pixels:c,mask:a})}return t.process(e)}};(0,i._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],x.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}}),(0,d.p)((t=>t?.toLowerCase()))],x.prototype,"outputPixelType",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"mainPrimaryRasterId",void 0),(0,i._)([(0,a.Cb)()],x.prototype,"sourceRasters",void 0),(0,i._)([(0,a.Cb)({type:[y.Z],json:{write:!0}})],x.prototype,"sourceRasterInfos",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"rasterInfo",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"readingBufferSize",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],x.prototype,"id",void 0),(0,i._)([(0,a.Cb)()],x.prototype,"isNoopProcess",void 0),(0,i._)([(0,a.Cb)()],x.prototype,"supportsGPU",null),(0,i._)([(0,a.Cb)()],x.prototype,"rawInputBandIds",void 0),(0,i._)([(0,a.Cb)()],x.prototype,"isInputBandIdsSwizzled",void 0),(0,i._)([(0,a.Cb)()],x.prototype,"swizzledBandSelection",void 0),(0,i._)([(0,a.Cb)()],x.prototype,"isBranch",void 0),(0,i._)([(0,a.Cb)()],x.prototype,"flatWebGLFunctionChain",null),(0,i._)([(0,a.Cb)()],x.prototype,"_bindingResult",void 0),x=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.BaseRasterFunction")],x);const w=x;var v=n(63342);let _=class extends w{constructor(){super(...arguments),this.functionName="Aspect",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){const t=this.sourceRasterInfos[0];this.isGCS=t.spatialReference?.isGeographic??!1,this.outputPixelType=this._getOutputPixelType("f32");const e=t.clone();return e.pixelType=this.outputPixelType,e.statistics=[{min:-1,max:360,avg:180,stddev:30}],e.histograms=null,e.colormap=null,e.attributeTable=null,e.bandCount=1,this.rasterInfo=e,{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{extent:n,primaryPixelSizes:s}=t,r=s?.[0],o=r??(n?{x:n.width/e.width,y:n.height/e.height}:{x:1,y:1});return(0,v.M_)(e,{resolution:o})}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],_.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:m,json:{write:!0,name:"rasterFunctionArguments"}})],_.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],_.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],_.prototype,"isGCS",void 0),_=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.AspectFunction")],_);const C=_;var A=n(36030),R=n(35454);const P=new Set(["+","-","*","/","(",")"]);function N(t,e,n,s){if("number"==typeof n&&"number"==typeof s)return n+s;let r,o,i;"number"==typeof n?(i=s,r=i.length,o=new Float32Array(r),o.fill(n)):(r=n.length,o=n,s.constructor===Number?(i=new Float32Array(r),i.fill(s)):i=s);const a=new Float32Array(r);switch(e){case"+":for(let e=0;e<r;e++)(null==t||t[e])&&(a[e]=o[e]+i[e]);break;case"-":for(let e=0;e<r;e++)(null==t||t[e])&&(a[e]=o[e]-i[e]);break;case"*":for(let e=0;e<r;e++)(null==t||t[e])&&(a[e]=o[e]*i[e]);break;case"/":for(let e=0;e<r;e++)(null==t||t[e])&&i[e]&&(a[e]=o[e]/i[e]);break;case"(":case")":throw new Error("encountered error with custom band index equation")}return a}function T(t,e){t.splice(e,1);let n=0,s=0;do{n=0,s=0;for(let e=0;e<t.length;e++)if("("===t[e])n=e;else if(")"===t[e]){s=e;break}s===n+1&&t.splice(n,2)}while(s===n+1);return t}function I(t){if(1===t.length)return{opIndex:0,numIndex:0};let e=0,n=0;for(let s=0;s<t.length;s++)if("("===t[s])e=s;else if(")"===t[s]){n=s;break}const s=0===n?t:t.slice(e+1,n);let r=-1;for(let t=0;t<s.length;t++)if("*"===s[t]||"/"===s[t]){r=t;break}if(r>-1)n>0&&(r+=e+1);else{for(let t=0;t<s.length;t++)if("+"===s[t]||"-"===s[t]){r=t;break}n>0&&(r+=e+1)}let o=0;for(let e=0;e<r;e++)"("===t[e]&&o++;return{opIndex:r,numIndex:r-o}}var F=n(55914);const j=new R.X({0:"custom",1:"ndvi",2:"savi",3:"tsavi",4:"msavi",5:"gemi",6:"pvi",7:"gvitm",8:"sultan",9:"vari",10:"gndvi",11:"sr",12:"ndvi-re",13:"sr-re",14:"mtvi2",15:"rtvi-core",16:"ci-re",17:"ci-g",18:"ndwi",19:"evi",20:"iron-oxide",21:"ferrous-minerals",22:"clay-minerals",23:"wndwi",24:"bai",25:"nbr",26:"ndbi",27:"ndmi",28:"ndsi",29:"mndwi"},{useNumericKeys:!0});function S(t,e){if(!(0,F.nk)(t))return t;const{equation:n,method:s}=e,r=e.bandIndexes.map((t=>t-1)),{pixels:o,mask:i}=t;let a;switch(s){case"gndvi":case"nbr":case"ndbi":case"ndvi":case"ndvi-re":case"ndsi":case"ndmi":case"mndwi":a=M(i,o[r[0]],o[r[1]]);break;case"ndwi":a=M(i,o[r[1]],o[r[0]]);break;case"sr":case"sr-re":case"iron-oxide":case"ferrous-minerals":case"clay-minerals":a=function(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=e[o],s=n[o];s&&(r[o]=t/s)}return[r]}(i,o[r[0]],o[r[1]]);break;case"ci-g":case"ci-re":a=function(t,e,n){const s=e.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=e[o],s=n[o];s&&(r[o]=t/s-1)}return[r]}(i,o[r[0]],o[r[1]]);break;case"savi":a=function(t,e,n,s){const r=n.length,o=new Float32Array(r);for(let i=0;i<r;i++)if(null==t||t[i]){const t=n[i],r=e[i],a=r+t+s;a&&(o[i]=(r-t)/a*(1+s))}return[o]}(i,o[r[0]],o[r[1]],r[2]+1);break;case"tsavi":a=function(t,e,n,s,r,o){const i=n.length,a=new Float32Array(i),u=-r*s+o*(1+s*s);for(let o=0;o<i;o++)if(null==t||t[o]){const t=n[o],i=e[o],l=r*i+t+u;l&&(a[o]=s*(i-s*t-r)/l)}return[a]}(i,o[r[0]],o[r[1]],r[2]+1,r[3]+1,r[4]+1);break;case"msavi":a=function(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=n[o],s=e[o];r[o]=.5*(2*(s+1)-Math.sqrt((2*s+1)**2-8*(s-t)))}return[r]}(i,o[r[0]],o[r[1]]);break;case"gemi":a=function(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=n[o],s=e[o];if(1!==t){const e=(2*(s*s-t*t)+1.5*s+.5*t)/(s+t+.5);r[o]=e*(1-.25*e)-(t-.125)/(1-t)}}return[r]}(i,o[r[0]],o[r[1]]);break;case"pvi":a=function(t,e,n,s,r){const o=n.length,i=new Float32Array(o),a=Math.sqrt(1+s*s);for(let u=0;u<o;u++)if(null==t||t[u]){const t=n[u],o=e[u];i[u]=(o-s*t-r)/a}return[i]}(i,o[r[0]],o[r[1]],r[2]+1,r[3]+1);break;case"gvitm":a=function(t,e){const[n,s,r,o,i,a]=e,u=n.length,l=new Float32Array(u);for(let e=0;e<u;e++)(null==t||t[e])&&(l[e]=-.2848*n[e]-.2435*s[e]-.5436*r[e]+.7243*o[e]+.084*i[e]-1.18*a[e]);return[l]}(i,[o[r[0]],o[r[1]],o[r[2]],o[r[3]],o[r[4]],o[r[5]]]);break;case"sultan":a=function(t,e){const[n,,s,r,o,i]=e,a=n.length,u=new Float32Array(a),l=new Float32Array(a),c=new Float32Array(a);for(let e=0;e<a;e++)(null==t||t[e])&&(u[e]=i[e]?o[e]/i[e]*100:0,l[e]=n[e]?o[e]/n[e]*100:0,c[e]=r[e]?s[e]/r[e]*(o[e]/r[e])*100:0);return[u,l,c]}(i,[o[r[0]],o[r[1]],o[r[2]],o[r[3]],o[r[4]],o[r[5]]]);break;case"vari":a=function(t,e){const[n,s,r]=e,o=n.length,i=new Float32Array(o);for(let e=0;e<o;e++)if(null==t||t[e])for(e=0;e<o;e++){const t=n[e],o=s[e],a=o+t-r[e];a&&(i[e]=(o-t)/a)}return[i]}(i,[o[r[0]],o[r[1]],o[r[2]]]);break;case"mtvi2":a=function(t,e){const[n,s,r]=e,o=n.length,i=new Float32Array(o);for(let e=0;e<o;e++)if(null==t||t[e])for(e=0;e<o;e++){const t=n[e],o=s[e],a=r[e],u=Math.sqrt((2*t+1)**2-6*t-5*Math.sqrt(o)-.5);i[e]=1.5*(1.2*(t-a)-2.5*(o-a))*u}return[i]}(i,[o[r[0]],o[r[1]],o[r[2]]]);break;case"rtvi-core":a=function(t,e){const[n,s,r]=e,o=n.length,i=new Float32Array(o);for(let e=0;e<o;e++)if(null==t||t[e])for(e=0;e<o;e++){const t=n[e],o=s[e],a=r[e];i[e]=100*(t-o)-10*(t-a)}return[i]}(i,[o[r[0]],o[r[1]],o[r[2]]]);break;case"evi":a=function(t,e){const[n,s,r]=e,o=n.length,i=new Float32Array(o);for(let e=0;e<o;e++)if(null==t||t[e])for(e=0;e<o;e++){const t=n[e],o=s[e],a=t+6*o-7.5*r[e]+1;a&&(i[e]=2.5*(t-o)/a)}return[i]}(i,[o[r[0]],o[r[1]],o[r[2]]]);break;case"wndwi":a=function(t,e,n=.5){const[s,r,o]=e,i=r.length,a=new Float32Array(i);for(let e=0;e<i;e++)if(null==t||t[e])for(e=0;e<i;e++){const t=s[e],i=r[e],u=o[e],l=t+n*i+(1-n)*u;l&&(a[e]=(t-n*i-(1-n)*u)/l)}return[a]}(i,[o[r[0]],o[r[1]],o[r[2]]],r[3]?r[3]+1:.5);break;case"bai":a=function(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o])for(o=0;o<s;o++){const t=(.1-e[o])**2+(.06-n[o])**2;t&&(r[o]=1/t)}return[r]}(i,o[r[0]],o[r[1]]);break;case"custom":a=function(t,e,n){let s,{ops:r,nums:o}=function(t,e){(t=t.replaceAll(" ","")).startsWith("-")&&(t="0"+t),t.startsWith("+")&&(t=t.slice(1,t.length));const n=t.split(""),s=[],r=[];let o="";for(let t=0;t<n.length;t++){const i=n[t];if(P.has(i))""!==o&&r.push(parseFloat(o)),s.push(i),o="";else{if("b"===i.toLowerCase()){t++,o=i.concat(n[t]),r.push(e[parseInt(o[1],10)-1]),o="";continue}o=o.concat(i),t===n.length-1&&r.push(parseFloat(o))}}return{ops:s,nums:r}}(n,e);if(0===r.length){const t=1===o.length?o[0]:e[0];if(t instanceof Float32Array)return[t];const n=new Float32Array(e[0].length);return"number"==typeof t?n.fill(t):n.set(t),[n]}for(;r.length>0;){const{numIndex:e,opIndex:n}=I(r);if(s=N(t,r[n],o[e],o[e+1]),1===r.length)break;r=T(r,n),o.splice(e,2,s)}return[s]}(i,o,n);break;default:return t}const u=null!=i?new Uint8Array(i.length):null;null!=i&&null!=u&&u.set(i);const l=new g.Z({width:t.width,height:t.height,pixelType:"f32",pixels:a,mask:u});return l.updateStatistics(),l}function k(t){const e=new Float32Array(9);return e[3*t[0]]=1,e[3*t[1]+1]=1,e[3*t[2]+2]=1,e}function M(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=e[o],s=n[o],i=t+s;i&&(r[o]=(t-s)/i)}return[r]}var B;let G=B=class extends p{constructor(){super(...arguments),this.method="custom"}clone(){return new B({method:this.method,bandIndexes:this.bandIndexes,raster:(0,o.d9)(this.raster)})}};(0,i._)([(0,a.Cb)({json:{type:String,write:!0}})],G.prototype,"bandIndexes",void 0),(0,i._)([(0,A.J)(j)],G.prototype,"method",void 0),G=B=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.BandArithmeticFunctionArguments")],G);const E=G,D=new Set(["vari","mtvi2","rtvi-core","evi"]);let z=class extends w{constructor(){super(...arguments),this.functionName="BandArithmetic",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){this.outputPixelType=this._getOutputPixelType("f32");const t=this.sourceRasterInfos[0];if(t.bandCount<2)return{success:!1,supportsGPU:!1,error:"band-arithmetic-function: source raster has insufficient amount of raster bands"};const e=t.clone();return e.pixelType=this.outputPixelType,e.statistics=null,e.histograms=null,e.bandCount="sultan"===this.functionArguments.method?t.bandCount:1,this.rasterInfo=e,{success:!0,supportsGPU:!["custom","gvitm","sultan"].includes(this.functionArguments.method)}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return e;const{method:n,bandIndexes:s}=this.functionArguments,r=s.split(" ").map((t=>parseFloat(t)));return S(e,{method:n,bandIndexes:r,equation:s})}_getWebGLParameters(){const t=this.functionArguments.bandIndexes.split(" ").map((t=>parseFloat(t)-1));2===t.length&&t.push(0);const e=this.isInputBandIdsSwizzled?[0,1,2]:t;let n,s;const r=new Float32Array(3),{method:o}=this.functionArguments;switch(o){case"gndvi":case"nbr":case"ndbi":case"ndvi":case"ndvi-re":case"ndsi":case"ndmi":case"mndwi":n=k([e[0],e[1],0]),s="ndxi";break;case"ndwi":n=k([e[1],e[0],0]),s="ndxi";break;case"sr":case"sr-re":case"iron-oxide":case"ferrous-minerals":case"clay-minerals":n=k([e[0],e[1],0]),s="sr";break;case"ci-g":case"ci-re":n=k([e[0],e[1],0]),s="ci";break;case"savi":n=k([e[0],e[1],0]),s="savi",r[0]=t[2]+1;break;case"tsavi":n=k([e[0],e[1],0]),s="tsavi",r[0]=t[2]+1,r[1]=t[3]+1,r[2]=t[4]+1;break;case"msavi":n=k([e[0],e[1],0]),s="msavi";break;case"gemi":n=k([e[0],e[1],0]),s="gemi";break;case"pvi":n=k([e[0],e[1],0]),s="tsavi",r[0]=t[2]+1,r[1]=t[3]+1;break;case"vari":n=k([e[0],e[1],e[2]]),s="vari";break;case"mtvi2":n=k([e[0],e[1],e[2]]),s="mtvi2";break;case"rtvi-core":n=k([e[0],e[1],e[2]]),s="rtvicore";break;case"evi":n=k([e[0],e[1],e[2]]),s="evi";break;case"wndwi":n=k([e[0],e[1],0]),s="wndwi",r[0]=t[3]?t[3]+1:.5;break;case"bai":n=k([e[1],e[0],0]),s="bai";break;default:n=k([0,1,2]),s="custom"}return{bandIndexMat3:n,indexType:s,adjustments:r}}_getInputBandIds(t){if("custom"===this.functionArguments.method)return t;const e=this.functionArguments.bandIndexes.split(" ").map((t=>parseFloat(t)-1)),n=t.length,s=e.map((t=>t>=n?n-1:t)),r=D.has(this.functionArguments.method)?3:2,o=s.slice(0,r).map((e=>t[e]));return 2===o.length&&o.push(0),o}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],z.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:E,json:{write:!0,name:"rasterFunctionArguments"}})],z.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],z.prototype,"rasterArgumentNames",void 0),z=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.BandArithmeticFunction")],z);const O=z;var Z,V=n(71715),L=n(93010),U=n(94593);let W=Z=class extends p{castColormapName(t){if(!t)return null;const e=t.toLowerCase();return L.Oi.includes(e)?e:null}readColorRamp(t){return(0,U.i)(t)}readColorRampName(t,e){if(!t)return null;const n=L.H0.jsonValues.find((e=>e.toLowerCase()===t.toLowerCase()));return n?L.H0.fromJSON(n):null}clone(){return new Z({colormap:(0,o.d9)(this.colormap),colormapName:this.colormapName,colorRamp:this.colorRamp?.clone(),colorRampName:this.colorRampName})}};(0,i._)([(0,a.Cb)({type:[[Number]],json:{write:!0}})],W.prototype,"colormap",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],W.prototype,"colormapName",void 0),(0,i._)([(0,d.p)("colormapName")],W.prototype,"castColormapName",null),(0,i._)([(0,a.Cb)({types:U.V,json:{write:!0}})],W.prototype,"colorRamp",void 0),(0,i._)([(0,V.r)("colorRamp")],W.prototype,"readColorRamp",null),(0,i._)([(0,a.Cb)({type:L.H0.apiValues,json:{type:L.H0.jsonValues,write:L.H0.write}})],W.prototype,"colorRampName",void 0),(0,i._)([(0,V.r)("colorRampName")],W.prototype,"readColorRampName",null),W=Z=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.ColormapFunctionArguments")],W);const q=W,X=[[36,0,255],[36,0,255],[36,0,255],[36,0,255],[112,75,3],[113,76,3],[114,77,3],[115,77,3],[116,78,3],[117,79,3],[118,79,3],[119,80,3],[121,81,4],[122,82,4],[123,82,4],[124,83,4],[125,84,4],[126,84,4],[127,85,4],[128,86,4],[129,86,4],[130,87,4],[131,88,4],[132,89,4],[133,89,4],[134,90,4],[135,91,4],[136,91,4],[137,92,4],[138,93,4],[139,94,4],[140,94,4],[142,95,5],[143,96,5],[144,96,5],[145,97,5],[146,98,5],[147,99,5],[148,99,5],[149,100,5],[150,101,5],[151,101,5],[152,102,5],[153,103,5],[154,104,5],[155,104,5],[156,105,5],[157,106,5],[158,106,5],[159,107,5],[160,108,5],[161,108,5],[162,109,5],[164,110,6],[165,111,6],[166,111,6],[167,112,6],[168,113,6],[169,113,6],[170,114,6],[171,115,6],[172,116,6],[173,116,6],[174,117,6],[245,0,0],[245,5,0],[245,10,0],[246,15,0],[246,20,0],[246,25,0],[246,30,0],[247,35,0],[247,40,0],[247,45,0],[247,50,0],[247,55,0],[248,60,0],[248,65,0],[248,70,0],[248,75,0],[249,81,0],[249,86,0],[249,91,0],[249,96,0],[250,101,0],[250,106,0],[250,111,0],[250,116,0],[250,121,0],[251,126,0],[251,131,0],[251,136,0],[251,141,0],[252,146,0],[252,151,0],[252,156,0],[252,156,0],[251,159,0],[250,162,0],[249,165,0],[248,168,0],[247,171,0],[246,174,0],[245,177,0],[245,179,0],[244,182,0],[243,185,0],[242,188,0],[241,191,0],[240,194,0],[239,197,0],[238,200,0],[237,203,0],[236,206,0],[235,209,0],[234,212,0],[233,215,0],[232,218,0],[231,221,0],[230,224,0],[230,226,0],[229,229,0],[228,232,0],[227,235,0],[226,238,0],[225,241,0],[224,244,0],[223,247,0],[165,247,0],[163,244,0],[161,240,0],[158,237,0],[156,233,1],[154,230,1],[152,227,1],[149,223,1],[147,220,1],[145,216,1],[143,213,1],[140,210,2],[138,206,2],[136,203,2],[134,200,2],[132,196,2],[129,193,2],[127,189,2],[125,186,3],[123,183,3],[120,179,3],[118,176,3],[116,172,3],[114,169,3],[111,166,3],[109,162,4],[107,159,4],[105,155,4],[103,152,4],[100,149,4],[98,145,4],[96,142,4],[94,138,5],[91,135,5],[89,132,5],[87,128,5],[85,125,5],[82,121,5],[80,118,5],[78,115,6],[76,111,6],[73,108,6],[71,105,6],[69,101,6],[67,98,6],[65,94,6],[62,91,7],[60,88,7],[58,84,7],[56,81,7],[53,77,7],[51,74,7],[49,71,7],[47,67,8],[44,64,8],[42,60,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8],[40,57,8]],J=[[36,0,255],[36,0,255],[36,0,255],[36,0,255],[245,20,0],[245,24,0],[245,29,0],[245,31,0],[247,33,0],[247,33,0],[247,37,0],[247,41,0],[247,41,0],[247,41,0],[247,45,0],[247,45,0],[247,47,0],[247,49,0],[247,49,0],[247,54,0],[247,54,0],[247,56,0],[247,58,0],[247,58,0],[250,62,0],[250,62,0],[250,62,0],[250,67,0],[250,67,0],[250,67,0],[250,69,0],[250,71,0],[250,71,0],[250,75,0],[250,75,0],[250,78,0],[250,79,0],[250,79,0],[250,79,0],[250,81,0],[250,83,0],[250,83,0],[250,87,0],[250,87,0],[250,90,0],[250,92,0],[252,93,0],[252,93,0],[252,97,0],[252,97,0],[252,97,0],[252,97,0],[252,101,0],[252,101,0],[252,101,0],[252,101,0],[252,105,0],[252,105,0],[252,107,0],[252,109,0],[252,109,0],[252,113,13],[255,118,20],[255,119,23],[255,121,25],[255,126,33],[255,132,38],[255,133,40],[255,135,43],[255,141,48],[255,144,54],[255,150,59],[255,152,61],[255,153,64],[255,159,69],[255,163,77],[255,165,79],[255,168,82],[255,174,87],[255,176,92],[255,181,97],[255,183,99],[255,186,102],[255,191,107],[255,197,115],[255,201,120],[255,203,123],[255,205,125],[255,209,130],[255,214,138],[255,216,141],[255,218,143],[255,224,150],[255,228,156],[255,234,163],[255,236,165],[255,238,168],[255,243,173],[255,248,181],[255,252,186],[253,252,186],[250,252,187],[244,250,180],[238,247,176],[234,246,173],[231,245,169],[223,240,163],[217,237,157],[211,235,150],[205,233,146],[200,230,142],[195,227,136],[189,224,132],[184,222,126],[180,220,123],[174,217,119],[169,214,114],[163,212,108],[160,210,105],[154,207,101],[148,204,96],[143,201,93],[138,199,88],[134,197,84],[130,194,81],[126,191,77],[117,189,70],[115,186,68],[112,184,64],[106,181,60],[100,179,55],[94,176,49],[92,174,47],[90,173,45],[81,168,37],[75,166,33],[71,163,28],[66,160,24],[62,158,21],[56,156,14],[51,153,0],[51,153,0],[51,153,0],[50,150,0],[50,150,0],[50,150,0],[50,150,0],[49,148,0],[49,148,0],[49,148,0],[48,145,0],[48,145,0],[48,145,0],[48,145,0],[48,143,0],[48,143,0],[48,143,0],[48,143,0],[47,140,0],[47,140,0],[47,140,0],[47,140,0],[46,138,0],[46,138,0],[46,138,0],[46,138,0],[45,135,0],[45,135,0],[45,135,0],[45,135,0],[44,133,0],[44,133,0],[44,133,0],[43,130,0],[43,130,0],[43,130,0],[43,130,0],[43,130,0],[43,130,0],[42,128,0],[42,128,0],[42,128,0],[42,125,0],[42,125,0],[42,125,0],[42,125,0],[41,122,0],[41,122,0],[41,122,0],[41,122,0],[40,120,0],[40,120,0],[40,120,0],[40,120,0],[40,120,0],[39,117,0],[39,117,0],[39,117,0],[39,117,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0]];function H(t,e){const n=[],s=[];for(let e=0;e<t.length-1;e++)n.push({type:"algorithmic",algorithm:"esriHSVAlgorithm",fromColor:t[e].slice(1),toColor:t[e+1].slice(1)}),s.push(t[e+1][0]-t[e][0]);const r=t[t.length-1][0];return(0,L.XL)({type:"multipart",colorRamps:n},{numColors:r,weights:e=e??s})}let Y=class extends w{constructor(){super(...arguments),this.functionName="Colormap",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){const t=this.sourceRasterInfos[0];if(t.bandCount>1)return{success:!1,supportsGPU:!1,error:"colormap-function: source data must be single band"};let{colormap:e,colormapName:n,colorRamp:s,colorRampName:r}=this.functionArguments;if(!e?.length)if(s)e=(0,L.Jw)(s,{interpolateAlpha:!0});else if(r){const t=(0,L.B4)(r);t&&(e=(0,L.Jw)(t))}else n&&(e=function(t){let e;switch(t){case"elevation":e=H([[0,0,191,191],[51,0,255,0],[102,255,255,0],[153,255,127,0],[204,191,127,63],[256,20,20,20]]);break;case"gray":e=(0,L.XL)({type:"algorithmic",algorithm:"esriHSVAlgorithm",fromColor:[0,0,0],toColor:[255,255,255]});break;case"hillshade":e=H([[0,38,54,41],[69,79,90,82],[131,156,156,156],[256,253,241,253]],[.268,.238,.495]);break;case"ndvi":e=X;break;case"ndvi2":e=function(){const t=H([[0,255,255,255],[70,0,0,255],[80,205,193,173],[100,150,150,150],[110,120,100,51],[130,120,200,100],[140,28,144,3],[160,6,55,0],[180,10,30,25],[201,6,27,7]]);for(let e=t.length;e<256;e++)t.push([6,27,7]);return t}();break;case"ndvi3":e=J;break;case"random":e=function(){const t=[];for(let e=0;e<256;e++){const e=[];for(let t=0;t<3;t++)e.push(Math.round(255*Math.random()));t.push(e)}return t}()}return e?(e=e.map(((t,e)=>[e,...t])),e):null}(n));if(!e?.length)return{success:!1,supportsGPU:!1,error:"colormap-function: missing colormap argument"};this.outputPixelType=this._getOutputPixelType("u8");const o=t.clone();return o.pixelType=this.outputPixelType,o.colormap=e,o.bandCount=1,this.rasterInfo=o,{success:!0,supportsGPU:!0}}_processPixels(t){return t.pixelBlocks?.[0]}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],Y.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:q,json:{write:!0,name:"rasterFunctionArguments"}})],Y.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],Y.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)()],Y.prototype,"isNoopProcess",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],Y.prototype,"indexedColormap",void 0),Y=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.ColormapFunction")],Y);const $=Y;var K,Q=n(30556);let tt=K=class extends p{constructor(){super(...arguments),this.rasters=[]}writeRasters(t,e){e.rasters=t.map((t=>"number"==typeof t||"string"==typeof t?t:t.toJSON()))}clone(){return new K({rasters:(0,o.d9)(this.rasters)})}};(0,i._)([(0,a.Cb)({json:{write:!0}})],tt.prototype,"rasters",void 0),(0,i._)([(0,Q.c)("rasters")],tt.prototype,"writeRasters",null),tt=K=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.CompositeBandFunctionArguments")],tt);const et=tt;let nt=class extends w{constructor(){super(...arguments),this.functionName="CompositeBand",this.functionArguments=null,this.rasterArgumentNames=["rasters"]}_bindSourceRasters(){const{sourceRasterInfos:t}=this,e=t[0];this.outputPixelType=this._getOutputPixelType(e.pixelType);const n=e.clone();if(n.attributeTable=null,n.colormap=null,n.pixelType=this.outputPixelType,n.bandCount=t.map((({bandCount:t})=>t)).reduce(((t,e)=>t+e)),t.every((({statistics:t})=>null!=t&&t.length))){const e=[];t.forEach((({statistics:t})=>null!=t&&e.push(...t))),n.statistics=e}if(t.every((({histograms:t})=>null!=t&&t.length))){const e=[];t.forEach((({histograms:t})=>null!=t&&e.push(...t))),n.histograms=e}return n.bandCount>1&&(n.colormap=null,n.attributeTable=null),this.rasterInfo=n,{success:!0,supportsGPU:n.bandCount<=3}}_processPixels(t){const{pixelBlocks:e}=t;if(!e)return null;const n=e?.[0];return null==n?null:(0,F.Gd)(e)}_getWebGLParameters(){return{bandCount:this.rasterInfo.bandCount}}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],nt.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:et,json:{write:!0,name:"rasterFunctionArguments"}})],nt.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],nt.prototype,"rasterArgumentNames",void 0),nt=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.CompositeBandFunction")],nt);const st=nt,rt={userDefined:-1,lineDetectionHorizontal:0,lineDetectionVertical:1,lineDetectionLeftDiagonal:2,lineDetectionRightDiagonal:3,gradientNorth:4,gradientWest:5,gradientEast:6,gradientSouth:7,gradientNorthEast:8,gradientNorthWest:9,smoothArithmeticMean:10,smoothing3x3:11,smoothing5x5:12,sharpening3x3:13,sharpening5x5:14,laplacian3x3:15,laplacian5x5:16,sobelHorizontal:17,sobelVertical:18,sharpen:19,sharpen2:20,pointSpread:21,none:255},ot={bitwiseAnd:11,bitwiseLeftShift:12,bitwiseNot:13,bitwiseOr:14,bitwiseRightShift:15,bitwiseXOr:16,booleanAnd:17,booleanNot:18,booleanOr:19,booleanXOr:20,equalTo:24,greaterThan:28,greaterThanEqual:29,lessThan:33,lessThanEqual:34,isNull:31,notEqual:46},it={acos:6,asin:7,atan:8,atanh:9,cos:21,cosh:22,sin:51,sinh:52,tan:56,tanh:57,acosh:59,asinh:60,atan2:61},at={setNull:50,conditional:78},ut={plus:1,minus:2,times:3,sqrt:4,power:5,abs:10,divide:23,exp:25,exp10:26,exp2:27,int:30,float:32,ln:35,log10:36,log2:37,mod:44,negate:45,roundDown:48,roundUp:49,square:53,floatDivide:64,floorDivide:65,...ot,...it,majority:38,max:39,mean:40,med:41,min:42,minority:43,range:47,stddev:54,sum:55,variety:58,majorityIgnoreNoData:66,maxIgnoreNoData:67,meanIgnoreNoData:68,medIgnoreNoData:69,minIgnoreNoData:70,minorityIgnoreNoData:71,rangeIgnoreNoData:72,stddevIgnoreNoData:73,sumIgnoreNoData:74,varietyIgnoreNoData:75,...at};var lt=n(81578);const ct=new Map;function pt(t,e,n,s,r,o,i){const a=new Float32Array(e*n),u=o.length,l=i?0:s,c=i?s:0,p=i?1:e;for(let i=l;i<n-l;i++){const n=i*e;for(let i=c;i<e-c;i++){if(r&&!r[n+i])continue;let e=0;for(let r=0;r<u;r++)e+=t[n+i+(r-s)*p]*o[r];a[n+i]=e}}return a}function ft(t,e,n,s,r,o,i){const a=new Float32Array(e*n),u=Math.floor(s/2),l=Math.floor(r/2);for(let c=u;c<n-u;c++){const n=c*e;for(let c=l;c<e-l;c++){if(o&&!o[n+c])continue;let p=0;for(let o=0;o<s;o++)for(let s=0;s<r;s++)p+=t[n+c+(o-u)*e+s-l]*i[o*r+s];a[n+c]=p}}return a}function ht(t,e,n,s,r){const o=Math.floor(s/2);for(let s=0;s<o;s++)for(let o=0;o<e;o++)t[s*e+o]=t[(r-1-s)*e+o],t[(n-1-s)*e+o]=t[(n-r+s)*e+o];const i=Math.floor(r/2);for(let s=0;s<n;s++){const n=s*e;for(let s=0;s<i;s++)t[n+s]=t[n+r-1-s],t[n+e-s-1]=t[n+e+s-r]}}var mt;ct.set(rt.none,[0,0,0,0,1,0,0,0,0]),ct.set(rt.lineDetectionHorizontal,[-1,-1,-1,2,2,2,-1,-1,-1]),ct.set(rt.lineDetectionVertical,[-1,2,-1,-1,2,-1,-1,2,-1]),ct.set(rt.lineDetectionLeftDiagonal,[2,-1,-1,-1,2,-1,-1,-1,2]),ct.set(rt.lineDetectionRightDiagonal,[-1,-1,2,-1,2,-1,2,-1,-1]),ct.set(rt.gradientNorth,[-1,-2,-1,0,0,0,1,2,1]),ct.set(rt.gradientWest,[-1,0,1,-2,0,2,-1,0,1]),ct.set(rt.gradientEast,[1,0,-1,2,0,-2,1,0,-1]),ct.set(rt.gradientSouth,[1,2,1,0,0,0,-1,-2,-1]),ct.set(rt.gradientNorthEast,[0,-1,-2,1,0,-1,2,1,0]),ct.set(rt.gradientNorthWest,[-2,-1,0,-1,0,1,0,1,2]),ct.set(rt.smoothArithmeticMean,[.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111]),ct.set(rt.smoothing3x3,[.0625,.125,.0625,.125,.25,.125,.0625,.125,.0625]),ct.set(rt.smoothing5x5,[1,1,1,1,1,1,4,4,4,1,1,4,12,4,1,1,4,4,4,1,1,1,1,1,1]),ct.set(rt.sharpening3x3,[-1,-1,-1,-1,9,-1,-1,-1,-1]),ct.set(rt.sharpening5x5,[-1,-3,-4,-3,-1,-3,0,6,0,-3,-4,6,21,6,-4,-3,0,6,0,-3,-1,-3,-4,-3,-1]),ct.set(rt.laplacian3x3,[0,-1,0,-1,4,-1,0,-1,0]),ct.set(rt.laplacian5x5,[0,0,-1,0,0,0,-1,-2,-1,0,-1,-2,17,-2,-1,0,-1,-2,-1,0,0,0,-1,0,0]),ct.set(rt.sobelHorizontal,[-1,-2,-1,0,0,0,1,2,1]),ct.set(rt.sobelVertical,[-1,0,1,-2,0,2,-1,0,1]),ct.set(rt.sharpen,[0,-.25,0,-.25,2,-.25,0,-.25,0]),ct.set(rt.sharpen2,[-.25,-.25,-.25,-.25,3,-.25,-.25,-.25,-.25]),ct.set(rt.pointSpread,[-.627,.352,-.627,.352,2.923,.352,-.627,.352,-.627]);let dt=mt=class extends p{constructor(){super(...arguments),this.rows=3,this.cols=3,this.kernel=[0,0,0,0,1,0,0,0,0]}set convolutionType(t){this._set("convolutionType",t);const e=ct.get(t);if(!e||t===rt.userDefined||t===rt.none)return;const n=Math.sqrt(e.length);this._set("kernel",e),this._set("cols",n),this._set("rows",n)}clone(){return new mt({cols:this.cols,rows:this.rows,kernel:[...this.kernel],convolutionType:this.convolutionType,raster:(0,o.d9)(this.raster)})}};(0,i._)([(0,a.Cb)({json:{type:Number,write:!0}})],dt.prototype,"rows",void 0),(0,i._)([(0,a.Cb)({json:{type:Number,write:!0}})],dt.prototype,"cols",void 0),(0,i._)([(0,a.Cb)({json:{name:"type",type:Number,write:!0}})],dt.prototype,"convolutionType",null),(0,i._)([(0,a.Cb)({json:{type:[Number],write:!0}})],dt.prototype,"kernel",void 0),dt=mt=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.ConvolutionFunctionArguments")],dt);const gt=dt;let yt=class extends w{constructor(){super(...arguments),this.functionName="Convolution",this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const{convolutionType:t,rows:e,cols:n,kernel:s}=this.functionArguments;if(!Object.values(rt).includes(t))return{success:!1,supportsGPU:!1,error:`convolution-function: the specified kernel type is not supported ${t}`};if(t!==rt.none&&e*n!==s.length)return{success:!1,supportsGPU:!1,error:"convolution-function: the specified rows and cols do not match the length of the kernel"};const r=this.sourceRasterInfos[0];this.outputPixelType=this._getOutputPixelType(r.pixelType);const o=r.clone();o.pixelType=this.outputPixelType;const i=[rt.none,rt.sharpen,rt.sharpen2,rt.sharpening3x3,rt.sharpening5x5];return"u8"===this.outputPixelType||i.includes(t)||(o.statistics=null,o.histograms=null),o.colormap=null,o.attributeTable=null,this.rasterInfo=o,{success:!0,supportsGPU:s.length<=25}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e||this.functionArguments.convolutionType===rt.none)return e;let{kernel:n,rows:s,cols:r}=this.functionArguments;const o=n.reduce(((t,e)=>t+e));return 0!==o&&1!==o&&(n=n.map((t=>t/o))),function(t,e){const n=function(t){const e=Math.sqrt(t.length),n=t.slice(0,e),s=[1];for(let n=1;n<e;n++){let r=null;for(let s=0;s<e;s++){const o=t[s+n*e],i=t[s];if(null==r)if(0===i){if(o)return{separable:!1,row:null,col:null}}else r=o/i;else if(o/i!==r)return{separable:!1,row:null,col:null}}if(null==r)return{separable:!1,row:null,col:null};s.push(r)}return{separable:!0,row:n,col:s}}(e.kernel),s=!1!==e.mirrorEdges,r=n.separable?function(t,e,n,s=!0){const{pixels:r,width:o,height:i,pixelType:a,mask:u}=t,l=r.length,c=[],p=e.length,f=n.length,h=Math.floor(p/2),m=Math.floor(f/2);for(let t=0;t<l;t++){let a=pt(r[t],o,i,h,u,e,!0);a=pt(a,o,i,m,u,n,!1),s&&ht(a,o,i,p,f),c.push(a)}return new g.Z({width:o,height:i,pixelType:a,pixels:c,mask:u})}(t,n.row,n.col,s):function(t,e,n=!0){const{pixels:s,width:r,height:o,pixelType:i,mask:a}=t,u=s.length,l=[],{kernel:c,rows:p,cols:f}=e;for(let t=0;t<u;t++){const e=ft(s[t],r,o,p,f,a,c);n&&ht(e,r,o,p,f),l.push(e)}return new g.Z({width:r,height:o,pixelType:i,pixels:l,mask:a})}(t,e,s),{outputPixelType:o}=e;return o&&r.clamp(o),r}(e,{kernel:n,rows:s,cols:r,outputPixelType:this.outputPixelType})}_getWebGLParameters(){let{kernel:t}=this.functionArguments;const e=t.reduce(((t,e)=>t+e));0!==e&&1!==e&&(t=t.map((t=>t/e)));const n=new Float32Array(25);return n.set(t),{kernelRows:this.functionArguments.rows,kernelCols:this.functionArguments.cols,kernel:n,clampRange:(0,lt.r)(this.outputPixelType)}}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],yt.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:gt,json:{write:!0,name:"rasterFunctionArguments"}})],yt.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],yt.prototype,"rasterArgumentNames",void 0),yt=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.ConvolutionFunction")],yt);const bt=yt;var xt;const wt=new R.X({0:"standard",1:"platform",2:"profile"},{useNumericKeys:!0});let vt=xt=class extends p{constructor(){super(...arguments),this.curvatureType="standard",this.zFactor=1}readCurvatureType(t,e){return wt.fromJSON(e.type??e.curvatureType??0)}clone(){return new xt({curvatureType:this.curvatureType,zFactor:this.zFactor,raster:this.raster})}};(0,i._)([(0,a.Cb)({json:{write:{target:"type"}}}),(0,A.J)(wt)],vt.prototype,"curvatureType",void 0),(0,i._)([(0,V.r)("curvatureType",["type","curvatureType"])],vt.prototype,"readCurvatureType",null),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0}})],vt.prototype,"zFactor",void 0),vt=xt=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.CurvatureFunctionArguments")],vt);const _t=vt;let Ct=class extends w{constructor(){super(...arguments),this.functionName="Curvature",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){this.outputPixelType=this._getOutputPixelType("f32");const t=this.sourceRasterInfos[0].clone();return t.pixelType=this.outputPixelType,t.statistics=null,t.histograms=null,t.colormap=null,t.attributeTable=null,t.bandCount=1,this.rasterInfo=t,this.isGCS=t.spatialReference?.isGeographic??!1,{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{zFactor:n,curvatureType:s}=this.functionArguments,{extent:r,primaryPixelSizes:o}=t,i=o?.[0],a=i??(r?{x:r.width/e.width,y:r.height/e.height}:{x:1,y:1}),u=this.isGCS&&n>=1?n*v.CX:n;return(0,v.Ne)(e,{zFactor:u,curvatureType:s,resolution:a})}_getWebGLParameters(){const{zFactor:t,curvatureType:e}=this.functionArguments;return{curvatureType:e,zFactor:this.isGCS&&t>=1?t*v.CX:t}}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],Ct.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:_t,json:{write:!0,name:"rasterFunctionArguments"}})],Ct.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],Ct.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],Ct.prototype,"isGCS",void 0),Ct=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.CurvatureFunction")],Ct);const At=Ct;var Rt;let Pt=Rt=class extends p{constructor(){super(...arguments),this.bandIds=[],this.bandNames=[],this.bandWavelengths=[],this.missingBandAction=F.CD.bestMatch}clone(){return new Rt({bandIds:[...this.bandIds],bandNames:[...this.bandNames],missingBandAction:this.missingBandAction})}};(0,i._)([(0,a.Cb)({json:{write:!0}})],Pt.prototype,"bandIds",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],Pt.prototype,"bandNames",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],Pt.prototype,"bandWavelengths",void 0),(0,i._)([(0,A.J)({0:"name",1:"wavelength",2:"id"})],Pt.prototype,"method",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],Pt.prototype,"missingBandAction",void 0),Pt=Rt=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.ExtractBandFunctionArguments")],Pt);const Nt=Pt;let Tt=class extends w{constructor(){super(...arguments),this.functionName="ExtractBand",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const{functionArguments:t,sourceRasterInfos:e}=this,n=e[0],{bandCount:s}=n,{method:r,bandNames:o,bandWavelengths:i,bandIds:a}=t;if("id"!==r)if(!o?.length||"name"!==r&&a?.length){if(i?.length&&("wavelength"===r||!a?.length)){const{bandInfos:e}=n,s=i.map((t=>e.findIndex((e=>e.minWavelength&&e.maxWavelength&&t>e.minWavelength&&t<e.maxWavelength))));if(s.includes(-1))return{success:!1,supportsGPU:!1,error:"extract-band-function: Invalid bandWavelengths for the imagery data source"};t.bandIds=s,t.method="id"}}else{const e=n.bandInfos.map((({name:t})=>t.toLowerCase())),s=o.map((t=>{const n=t.toLowerCase();let s=e.indexOf(n);return-1===s&&"nearinfrared"===n&&(s=e.findIndex((t=>t.startsWith(n)))),s}));if(s.includes(-1))return{success:!1,supportsGPU:!1,error:"extract-band-function: Invalid bandNames for the imagery data source"};t.bandIds=s,t.method="id"}const{bandIds:u,missingBandAction:l}=t;if(!u.length||l===F.CD.fail&&u.some((t=>t<0||t>=s)))return{success:!1,supportsGPU:!1,error:"extract-band-function: Invalid bandIds for the imagery data source"};this.outputPixelType=this._getOutputPixelType("f32");const c=n.clone();c.pixelType=this.outputPixelType,c.bandCount=u.length;const{statistics:p,histograms:f}=c;return null!=p&&p.length&&(c.statistics=u.map((t=>p[t]||p[p.length-1]))),null!=f&&f.length&&(c.histograms=u.map((t=>f[t]||f[f.length-1]))),this.rasterInfo=c,{success:!0,supportsGPU:c.bandCount<=3}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const n=e.pixels.length,s=this.functionArguments.bandIds.map((t=>t>=n?n-1:t));return e.extractBands(s)}_getWebGLParameters(){let t;if(this.isInputBandIdsSwizzled)t=this.swizzledBandSelection.length?this.swizzledBandSelection:[0,1,2];else{t=[...this.functionArguments.bandIds],0===t.length?t=[0,1,2]:t.length<3&&(t[1]=t[1]??t[0],t[2]=t[2]??t[1]);for(let e=0;e<3;e++)t[e]=Math.min(t[e],2)}return{bandIndexMat3:k(t)}}_getInputBandIds(t){const e=t.length;return this.functionArguments.bandIds.map((t=>t>=e?e-1:t)).map((e=>t[e]))}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],Tt.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:Nt,json:{write:!0,name:"rasterFunctionArguments"}})],Tt.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],Tt.prototype,"rasterArgumentNames",void 0),Tt=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.ExtractBandFunction")],Tt);const It=Tt;var Ft;let jt=Ft=class extends p{constructor(){super(...arguments),this.rasters=[],this.processAsMultiband=!0}writeRasters(t,e){e.rasters=t.map((t=>"number"==typeof t||"string"==typeof t?t:t.toJSON()))}clone(){return new Ft({operation:this.operation,processAsMultiband:this.processAsMultiband,rasters:(0,o.d9)(this.rasters)})}};(0,i._)([(0,a.Cb)({json:{write:!0}})],jt.prototype,"operation",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],jt.prototype,"rasters",void 0),(0,i._)([(0,Q.c)("rasters")],jt.prototype,"writeRasters",null),(0,i._)([(0,a.Cb)({json:{write:!0}})],jt.prototype,"processAsMultiband",void 0),jt=Ft=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.LocalFunctionArguments")],jt);const St=jt,kt=new Map;kt.set(it.acos,[0,Math.PI]),kt.set(it.asin,[-Math.PI/2,Math.PI/2]),kt.set(it.atan,[-Math.PI/2,Math.PI/2]),kt.set(it.cos,[-1,1]),kt.set(it.sin,[-1,1]),kt.set(ot.booleanAnd,[0,1]),kt.set(ot.booleanNot,[0,1]),kt.set(ot.booleanOr,[0,1]),kt.set(ot.booleanXOr,[0,1]),kt.set(ot.equalTo,[0,1]),kt.set(ot.notEqual,[0,1]),kt.set(ot.greaterThan,[0,1]),kt.set(ot.greaterThanEqual,[0,1]),kt.set(ot.lessThan,[0,1]),kt.set(ot.lessThanEqual,[0,1]),kt.set(ot.isNull,[0,1]);const Mt=[0,2,2,2,1,2,1,1,1,1,1,2,2,1,2,2,2,2,1,2,2,1,1,2,2,1,1,1,2,2,1,1,1,2,2,1,1,1,999,999,999,999,999,999,2,1,2,999,1,1,2,1,1,1,999,999,1,1,999,1,1,2,999,999,2,2,999,999,999,999,999,999,999,999,999,999,3,999,3];function Bt(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]+r[t]);return i}function Gt(t,e,n){const[s]=t,r=s.length,o=g.Z.createEmptyBand("f32",r);return o.set(s),o}function Et(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]-r[t]);return i}function Dt(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]*r[t]);return i}function zt(t,e,n){const[s]=t,r=s.length,o=g.Z.createEmptyBand(n,r);for(let t=0;t<r;t++)e&&!e[t]||(o[t]=Math.sign(s[t])*Math.floor(Math.abs(s[t])));return o}function Ot(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]/r[t]);return i}function Zt(t,e,n){return Ot(t,e,"f32")}function Vt(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=Math.floor(s[t]/r[t]));return i}function Lt(t,e,n,s){const r=t[0],o=r.length,i=g.Z.createEmptyBand(n,o);if(s===it.atanh){for(let t=0;t<o;t++)if(e[t]){const n=r[t];Math.abs(n)>=1?e[t]=0:i[t]=Math.atanh(n)}return i}const a=s===it.asin?Math.asin:Math.acos;for(let t=0;t<o;t++)if(e[t]){const n=r[t];Math.abs(n)>1?e[t]=0:i[t]=a(n)}return i}function Ut(t,e,n,s){const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s(r[t]));return i}function Wt(t,e,n,s){const[r,o]=t,i=r.length,a=g.Z.createEmptyBand(n,i);for(let t=0;t<i;t++)e&&!e[t]||(a[t]=s(r[t],o[t]));return a}function qt(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]&r[t]);return i}function Xt(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]<<r[t]);return i}function Jt(t,e,n){const[s]=t,r=s.length,o=g.Z.createEmptyBand(n,r);for(let t=0;t<r;t++)e&&!e[t]||(o[t]=~s[t]);return o}function Ht(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]|r[t]);return i}function Yt(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]>>r[t]);return i}function $t(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]^r[t]);return i}function Kt(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]&&r[t]?1:0);return i}function Qt(t,e,n){const[s]=t,r=s.length,o=g.Z.createEmptyBand(n,r);for(let t=0;t<r;t++)e&&!e[t]||(o[t]=s[t]?0:1);return o}function te(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]||r[t]?1:0);return i}function ee(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=(s[t]?1:0)^(r[t]?1:0));return i}function ne(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]===r[t]?1:0);return i}function se(t,e,n,s){const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o),a=s===Math.E;for(let t=0;t<o;t++)e&&!e[t]||(i[t]=a?Math.exp(r[t]):s**r[t]);return i}function re(t,e,n){return se(t,e,n,10)}function oe(t,e,n){return se(t,e,n,2)}function ie(t,e,n){return se(t,e,n,Math.E)}function ae(t,e,n,s){const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(r[t]<=0?e[t]=0:i[t]=s(r[t]));return i}function ue(t,e,n){return ae(t,e,n,Math.log10)}function le(t,e,n){return ae(t,e,n,Math.log2)}function ce(t,e,n){return ae(t,e,n,Math.log)}function pe(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]>r[t]?1:0);return i}function fe(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]>=r[t]?1:0);return i}function he(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]<r[t]?1:0);return i}function me(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]<=r[t]?1:0);return i}function de(t,e,n){const[s]=t,r=s.length,o=g.Z.createEmptyBand(n,r);if(!e)return o;for(let t=0;t<r;t++)o[t]=e[t]?0:1;return o}function ge(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]%r[t]);return i}function ye(t,e,n){const[s]=t,r=s.length,o=g.Z.createEmptyBand(n,r);for(let t=0;t<r;t++)e&&!e[t]||(o[t]=-s[t]);return o}function be(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]===r[t]?0:1);return i}function xe(t,e,n){const[s,r]=t,o=s.length,i=g.Z.createEmptyBand(n,o),a=new Uint8Array(o);for(let t=0;t<o;t++)null!=e&&!e[t]||0!==s[t]||(i[t]=r[t],a[t]=255);return{band:i,mask:a}}function we(t,e,n){const[s,r,o]=t,i=s.length,a=g.Z.createEmptyBand(n,i);for(let t=0;t<i;t++)e&&!e[t]||(a[t]=s[t]?r[t]:o[t]);return a}function ve(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){let e=r[n];for(let r=1;r<s;r++){const s=t[r][n];e<s&&(e=s)}i[n]=e}return i}function _e(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){let e=r[n];for(let r=1;r<s;r++){const s=t[r][n];e>s&&(e=s)}i[n]=e}return i}function Ce(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){let e=r[n],o=e;for(let r=1;r<s;r++){const s=t[r][n];o<s?o=s:e>s&&(e=s)}i[n]=o-e}return i}function Ae(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){let e=0;for(let r=0;r<s;r++)e+=t[r][n];i[n]=e/s}return i}function Re(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n])for(let e=0;e<s;e++){const s=t[e];i[n]+=s[n]}return i}function Pe(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){const e=new Float32Array(s);let r=0;for(let o=0;o<s;o++){const s=t[o];r+=s[n],e[o]=s[n]}r/=s;let o=0;for(let t=0;t<s;t++)o+=(e[t]-r)**2;i[n]=Math.sqrt(o/s)}return i}function Ne(t,e,n){const s=t.length;if(s<2)return t[0];const r=Math.floor(s/2),[o]=t,i=o.length,a=g.Z.createEmptyBand(n,i),u=new Float32Array(s),l=s%2==1;for(let n=0;n<i;n++)if(!e||e[n]){for(let e=0;e<s;e++)u[e]=t[e][n];u.sort(),a[n]=l?u[r]:(u[r]+u[r-1])/2}return a}function Te(t,e,n){const[s,r]=t;if(null==r)return s;const o=s.length,i=g.Z.createEmptyBand(n,o);for(let t=0;t<o;t++)e[t]&&(s[t]===r[t]?i[t]=s[t]:e[t]=0);return i}function Ie(t,e,n){const s=t.length;if(s<=2)return Te(t,e,n);const r=t[0].length,o=g.Z.createEmptyBand(n,r),i=new Map;for(let n=0;n<r;n++)if(!e||e[n]){let e;i.clear();for(let r=0;r<s;r++)e=t[r][n],i.set(e,i.has(e)?i.get(e)+1:1);let r=0,a=0;for(const t of i.keys())r=i.get(t),r>a&&(a=r,e=t);o[n]=e}return o}function Fe(t,e,n){const s=t.length;if(s<=2)return Te(t,e,n);const r=t[0].length,o=g.Z.createEmptyBand(n,r),i=new Map;for(let n=0;n<r;n++)if(!e||e[n]){let e;i.clear();for(let r=0;r<s;r++)e=t[r][n],i.set(e,i.has(e)?i.get(e)+1:1);let r=0,a=t.length;for(const t of i.keys())r=i.get(t),r<a&&(a=r,e=t);o[n]=e}return o}function je(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.Z.createEmptyBand(n,o),a=new Set;for(let n=0;n<o;n++)if(!e||e[n]){let e;a.clear();for(let r=0;r<s;r++)e=t[r][n],a.add(e);i[n]=a.size}return i}const Se=new Map,ke=new Map,Me=new Map,Be=new Map;function Ge(t,e,n,s){let[r,o]=(0,lt.r)(n);const i=n.startsWith("u")||n.startsWith("s");i&&(r-=1e-5,o+=1e-5);for(let n=0;n<e.length;n++)if(e[n]){const a=t[n];isNaN(a)||a<r||a>o?e[n]=0:s[n]=i?Math.round(a):a}}let Ee=class extends w{constructor(){super(...arguments),this.functionName="Local",this.functionArguments=null,this.rasterArgumentNames=["rasters"]}_bindSourceRasters(){const{sourceRasterInfos:t}=this,e=t[0],{bandCount:n}=e,{processAsMultiband:s}=this.functionArguments;if(t.some((t=>t.bandCount!==n)))return{success:!1,supportsGPU:!1,error:"local-function: input rasters do not have same band count"};const{operation:r,rasters:o}=this.functionArguments,i=Mt[r];if(!(999===i||o.length===i||o.length<=1&&1===i))return{success:!1,supportsGPU:!1,error:`local-function: the length of functionArguments.rasters does not match operation's requirement: ${i}`};this.outputPixelType=this._getOutputPixelType("f32");const a=e.clone();a.pixelType=this.outputPixelType,a.statistics=null,a.histograms=null,a.colormap=null,a.attributeTable=null,a.bandCount=999!==i||s?n:1;const u=function(t){return kt.get(t)}(r);if(u){a.statistics=[];for(let t=0;t<a.bandCount;t++)a.statistics[t]={min:u[0],max:u[1],avg:(u[0]+u[1])/2,stddev:(u[0]+u[1])/10}}return this.rasterInfo=a,{success:!0,supportsGPU:1===a.bandCount&&i<=3&&(r<11||r>16)}}_processPixels(t){const{pixelBlocks:e}=t;return null==e||e.some((t=>null==t))?null:function(t,e,n={}){Se.size||(Se.set(4,Math.sqrt),Se.set(6,Math.acos),Se.set(7,Math.asin),Se.set(8,Math.atan),Se.set(9,Math.atanh),Se.set(10,Math.abs),Se.set(21,Math.cos),Se.set(22,Math.cosh),Se.set(48,Math.floor),Se.set(49,Math.ceil),Se.set(51,Math.sin),Se.set(52,Math.sinh),Se.set(56,Math.tan),Se.set(57,Math.tanh),Se.set(59,Math.acosh),Se.set(60,Math.asinh),Se.set(65,Math.floor),ke.set(5,Math.pow),ke.set(61,Math.atan2),Me.set(1,Bt),Me.set(2,Et),Me.set(3,Dt),Me.set(11,qt),Me.set(12,Xt),Me.set(12,Xt),Me.set(13,Jt),Me.set(14,Ht),Me.set(15,Yt),Me.set(16,$t),Me.set(17,Kt),Me.set(18,Qt),Me.set(19,te),Me.set(20,ee),Me.set(23,Ot),Me.set(24,ne),Me.set(25,ie),Me.set(26,re),Me.set(27,oe),Me.set(28,pe),Me.set(29,fe),Me.set(30,zt),Me.set(31,de),Me.set(32,Gt),Me.set(33,he),Me.set(34,me),Me.set(35,ce),Me.set(36,ue),Me.set(37,le),Me.set(44,ge),Me.set(45,ye),Me.set(46,be),Me.set(64,Zt),Me.set(65,Vt),Me.set(76,we),Me.set(78,we),Be.set(38,Ie),Be.set(39,ve),Be.set(40,Ae),Be.set(41,Ne),Be.set(42,_e),Be.set(43,Fe),Be.set(47,Ce),Be.set(54,Pe),Be.set(55,Re),Be.set(58,je),Be.set(66,Ie),Be.set(67,ve),Be.set(68,Ae),Be.set(69,Ne),Be.set(70,_e),Be.set(71,Fe),Be.set(72,Ce),Be.set(73,Pe),Be.set(74,Re),Be.set(75,je));let s=function(t,e=!1){const n=t.map((t=>t.mask)),s=n.filter((t=>null!=t)),r=t[0].pixels[0].length;if(0===s.length)return new Uint8Array(r).fill(255);const o=s[0],i=new Uint8Array(o);if(1===s.length)return i;if(!e){for(let t=1;t<s.length;t++){const e=s[t];for(let t=0;t<i.length;t++)i[t]&&(i[t]=e[t]?255:0)}return i}if(s.length!==n.length)return new Uint8Array(r).fill(255);for(let t=1;t<s.length;t++){const e=s[t];for(let t=0;t<i.length;t++)0===i[t]&&(i[t]=e[t]?255:0)}return i}(t,e>=66&&e<=75);const{outputPixelType:r="f32"}=n,o=!Be.has(e)||n.processAsMultiband,i=o?t[0].pixels.length:1,a=[];for(let n=0;n<i;n++){const i=Be.has(e)&&!o?t.flatMap((t=>t.pixels)):t.map((t=>t.pixels[n]));let u,l=!0;if(e===at.setNull){const t=xe(i,s,r);u=t.band,s=t.mask,l=!1}else Me.has(e)?u=Me.get(e)(i,s,"f64"):Se.has(e)?u=e===it.asin||e===it.acos||e===it.atanh?Lt(i,s,"f64",e):Ut(i,s,"f64",Se.get(e)):ke.has(e)?u=Wt(i,s,"f64",ke.get(e)):Be.has(e)?u=Be.get(e)(i,s,"f64"):(u=i[0],l=!1);if(l&&e!==ot.isNull&&!kt.has(e)){const t=g.Z.createEmptyBand(r,u.length);s||(s=new Uint8Array(u.length).fill(255)),Ge(u,s,r,t),u=t}a.push(u)}const u=t[0];return new g.Z({width:u.width,height:u.height,pixelType:r,mask:e===ot.isNull?null:s,pixels:a})}(e,this.functionArguments.operation,{processAsMultiband:this.functionArguments.processAsMultiband,outputPixelType:this.outputPixelType??void 0})}_getWebGLParameters(){const{operation:t}=this.functionArguments,e=Mt[t],n=Object.keys(ut).find((e=>ut[e]===t))?.toLowerCase()??"undefined",s=this.outputPixelType??"f32";let[r,o]=(0,lt.r)(s);const i=s.startsWith("u")||s.startsWith("s");return i&&(r-=1e-4,o+=1e-4),{imageCount:e,operationName:n,domainRange:[r,o],isOutputRounded:i}}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],Ee.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:St,json:{write:!0,name:"rasterFunctionArguments"}})],Ee.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],Ee.prototype,"rasterArgumentNames",void 0),Ee=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.LocalFunction")],Ee);const De=Ee;var ze,Oe=n(22021);let Ze=ze=class extends p{constructor(){super(...arguments),this.includedRanges=null,this.noDataValues=null,this.noDataInterpretation=F.DX.matchAny}get normalizedNoDataValues(){const{noDataValues:t}=this;if(!t?.length)return null;let e=!1;const n=t.map((t=>{if("number"==typeof t)return e=!0,[t];if("string"==typeof t){const n=t.trim().split(" ").filter((t=>""!==t.trim())).map((t=>Number(t)));return e=e||n.length>0,0===n.length?null:n}return null}));return e?n:null}clone(){return new ze({includedRanges:this.includedRanges?.slice()??[],noDataValues:this.noDataValues?.slice()??[],noDataInterpretation:this.noDataInterpretation})}};(0,i._)([(0,a.Cb)({json:{write:!0}})],Ze.prototype,"includedRanges",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],Ze.prototype,"noDataValues",void 0),(0,i._)([(0,a.Cb)()],Ze.prototype,"normalizedNoDataValues",null),(0,i._)([(0,a.Cb)({json:{write:!0}})],Ze.prototype,"noDataInterpretation",void 0),Ze=ze=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.MaskFunctionArguments")],Ze);const Ve=Ze;let Le=class extends w{constructor(){super(...arguments),this.functionName="Mask",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const t=this.sourceRasterInfos[0].clone(),{pixelType:e}=t;this.outputPixelType=this._getOutputPixelType(e),t.pixelType=this.outputPixelType,this.rasterInfo=t;const{includedRanges:n,normalizedNoDataValues:s}=this.functionArguments;if(!n?.length&&!s?.length)return{success:!1,supportsGPU:!1,error:"missing includedRanges or noDataValues argument"};let r=[];for(let o=0;o<t.bandCount;o++){const t=(0,F.nA)(e,n?.slice(2*o,2*o+2),s?.[o]);if(null==t){r=null;break}r.push(t)}this.lookups=r;const o=null!=s&&s.every((t=>t?.length===s[0]?.length));return{success:!0,supportsGPU:(!n||n.length<=2*F.hd)&&(!s||o&&s[0].length<=F.hd)}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{outputPixelType:n,lookups:s}=this,{includedRanges:r,noDataInterpretation:o,normalizedNoDataValues:i}=this.functionArguments,a=o===F.DX.matchAll;return(0,F.sS)(e,{includedRanges:r,noDataValues:i,outputPixelType:n,matchAll:a,lookups:s})}_getWebGLParameters(){const{includedRanges:t,normalizedNoDataValues:e}=this.functionArguments,n=new Float32Array(F.hd);n.fill(Oe._3),e?.[0]?.length&&n.set(e[0]);const s=new Float32Array(F.hd);for(let e=0;e<s.length;e+=2)s[e]=t?.[e]??-Oe._3,s[e+1]=t?.[e+1]??Oe._3;return t&&t.length&&s.set(t),{bandCount:this.sourceRasterInfos[0].bandCount,noDataValues:n,includedRanges:s}}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],Le.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:Ve,json:{write:!0,name:"rasterFunctionArguments"}})],Le.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],Le.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],Le.prototype,"lookups",void 0),Le=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.MaskFunction")],Le);const Ue=Le;var We;let qe=We=class extends p{constructor(){super(...arguments),this.visibleBandID=0,this.infraredBandID=1,this.scientificOutput=!1}clone(){const{visibleBandID:t,infraredBandID:e,scientificOutput:n}=this;return new We({visibleBandID:t,infraredBandID:e,scientificOutput:n})}};(0,i._)([(0,a.Cb)({json:{write:!0}})],qe.prototype,"visibleBandID",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],qe.prototype,"infraredBandID",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],qe.prototype,"scientificOutput",void 0),qe=We=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.NDVIFunctionArguments")],qe);const Xe=qe;let Je=class extends w{constructor(){super(...arguments),this.functionName="NDVI",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const{scientificOutput:t,visibleBandID:e,infraredBandID:n}=this.functionArguments;this.outputPixelType=this._getOutputPixelType(t?"f32":"u8");const s=this.sourceRasterInfos[0],r=Math.max(e,n);if(s.bandCount<2||r>=s.bandCount)return{success:!1,supportsGPU:!1,error:"ndvi-function: source raster has insufficient amount of raster bands"};const o=s.clone();o.pixelType=this.outputPixelType,o.colormap=null,o.histograms=null,o.bandCount=1;const[i,a,u,l]=t?[-1,1,0,.1]:[0,200,100,10];return o.statistics=[{min:i,max:a,avg:u,stddev:l}],this.rasterInfo=o,{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{visibleBandID:n,infraredBandID:s,scientificOutput:r}=this.functionArguments;return function(t,e,n,s){const{mask:r,pixels:o,width:i,height:a}=t,u=o[n],l=o[e],c=l.length,p=s?new Uint8Array(c):new Float32Array(c),f=s?100:1,h=s?100.5:0;for(let t=0;t<c;t++)if(null==r||r[t]){const e=u[t],n=l[t],s=e+n;s&&(p[t]=(e-n)/s*f+h)}const m=new g.Z({width:i,height:a,mask:r,pixelType:s?"u8":"f32",pixels:[p]});return m.updateStatistics(),m}(e,n,s,!r)}_getWebGLParameters(){const{visibleBandID:t,infraredBandID:e,scientificOutput:n}=this.functionArguments;return{bandIndexMat3:k(this.isInputBandIdsSwizzled?[0,1,2]:[e,t,0]),scaled:!n}}_getInputBandIds(t){const{visibleBandID:e,infraredBandID:n}=this.functionArguments;return[n,e,0].map((e=>t[e]))}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],Je.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:Xe,json:{write:!0,name:"rasterFunctionArguments"}})],Je.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],Je.prototype,"rasterArgumentNames",void 0),Je=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.NDVIFunction")],Je);const He=Je;var Ye;let $e=Ye=class extends p{constructor(){super(...arguments),this.inputRanges=null,this.outputValues=null,this.noDataRanges=null,this.allowUnmatched=!1,this.isLastInputRangeInclusive=!1}clone(){return new Ye({inputRanges:[...this.inputRanges],outputValues:[...this.outputValues],noDataRanges:[...this.noDataRanges],allowUnmatched:this.allowUnmatched,isLastInputRangeInclusive:this.isLastInputRangeInclusive})}};(0,i._)([(0,a.Cb)({json:{write:!0}})],$e.prototype,"inputRanges",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],$e.prototype,"outputValues",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],$e.prototype,"noDataRanges",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],$e.prototype,"allowUnmatched",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],$e.prototype,"isLastInputRangeInclusive",void 0),$e=Ye=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.RemapFunctionArguments")],$e);const Ke=$e;let Qe=class extends w{constructor(){super(...arguments),this.functionName="Remap",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null}_bindSourceRasters(){const t=this.sourceRasterInfos[0].clone(),{pixelType:e}=t;this.outputPixelType=this._getOutputPixelType(e),t.pixelType=this.outputPixelType,t.colormap=null,t.histograms=null,t.bandCount=1,t.attributeTable=null;const{statistics:n}=t,{allowUnmatched:s,outputValues:r,inputRanges:o,noDataRanges:i,isLastInputRangeInclusive:a}=this.functionArguments;if(null!=n&&n.length&&r?.length)if(s){const e=Math.min.apply(null,[...r,n[0].min]),s=Math.max.apply(null,[...r,n[0].max]);t.statistics=[{...n[0],min:e,max:s}]}else{let e=r[0],s=e;for(let t=0;t<r.length;t++)e=e>r[t]?r[t]:e,s=s>r[t]?s:r[t];t.statistics=[{...n[0],min:e,max:s}]}return this.rasterInfo=t,this.lookup=s?null:(0,F.oB)({srcPixelType:e,inputRanges:o,outputValues:r,noDataRanges:i,allowUnmatched:s,isLastInputRangeInclusive:a,outputPixelType:this.outputPixelType}),{success:!0,supportsGPU:(!r||r.length<=F.hd)&&(!i||i.length<=F.hd)}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{lookup:n,outputPixelType:s}=this;if(n){const t=(0,F.XV)(e,{lut:[n.lut],offset:n.offset,outputPixelType:s});return null!=t&&n.mask&&(t.mask=(0,F.wV)(e.pixels[0],e.mask,n.mask,n.offset,"u8")),t}const{inputRanges:r,outputValues:o,noDataRanges:i,allowUnmatched:a,isLastInputRangeInclusive:u}=this.functionArguments;return(0,F.a2)(e,{inputRanges:r,outputValues:o,noDataRanges:i,outputPixelType:s,allowUnmatched:a,isLastInputRangeInclusive:u})}_getWebGLParameters(){const{allowUnmatched:t,noDataRanges:e,isLastInputRangeInclusive:n}=this.functionArguments,s=new Float32Array(3*F.hd),r=1e-5,o=this.functionArguments.inputRanges??[],i=this.functionArguments.outputValues??[],a=i.length;for(let t=0;t<F.hd;t++)s[3*t]=o[2*t]??Oe._3-1,s[3*t+1]=o[2*t+1]??Oe._3,s[3*t+2]=i[t]??0,t<a&&(t>0&&(s[3*t]-=r),(t<a-1||!n)&&(s[3*t+1]-=r));const u=new Float32Array(2*F.hd);return u.fill(Oe._3),e?.length&&u.set(e),{allowUnmatched:t,rangeMaps:s,noDataRanges:u,clampRange:(0,lt.r)(this.outputPixelType)}}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],Qe.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:Ke,json:{write:!0,name:"rasterFunctionArguments"}})],Qe.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],Qe.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],Qe.prototype,"lookup",void 0),Qe=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.RemapFunction")],Qe);const tn=Qe;var en;const nn=new R.X({1:"degree",2:"percent-rise",3:"adjusted"},{useNumericKeys:!0});let sn=en=class extends p{constructor(){super(...arguments),this.slopeType="degree",this.zFactor=1,this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.removeEdgeEffect=!1}clone(){return new en({slopeType:this.slopeType,zFactor:this.zFactor,pixelSizePower:this.pixelSizePower,pixelSizeFactor:this.pixelSizeFactor,removeEdgeEffect:this.removeEdgeEffect,raster:this.raster})}};(0,i._)([(0,A.J)(nn)],sn.prototype,"slopeType",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0}})],sn.prototype,"zFactor",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{name:"psPower",write:!0}})],sn.prototype,"pixelSizePower",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{name:"psZFactor",write:!0}})],sn.prototype,"pixelSizeFactor",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],sn.prototype,"removeEdgeEffect",void 0),sn=en=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.SlopeFunctionArguments")],sn);const rn=sn;let on=class extends w{constructor(){super(...arguments),this.functionName="Slope",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){this.outputPixelType=this._getOutputPixelType("f32");const t=this.sourceRasterInfos[0].clone();return t.pixelType=this.outputPixelType,t.statistics="percent-rise"!==this.functionArguments.slopeType?[{min:0,max:90,avg:1,stddev:1}]:null,t.histograms=null,t.colormap=null,t.attributeTable=null,t.bandCount=1,this.rasterInfo=t,this.isGCS=t.spatialReference?.isGeographic??!1,{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{zFactor:n,slopeType:s,pixelSizePower:r,pixelSizeFactor:o}=this.functionArguments,{isGCS:i}=this,{extent:a,primaryPixelSizes:u}=t,l=u?.[0],c=l??(a?{x:a.width/e.width,y:a.height/e.height}:{x:1,y:1});return(0,v.yg)(e,{zFactor:n,slopeType:s,pixelSizePower:r,pixelSizeFactor:o,isGCS:i,resolution:c})}_getWebGLParameters(){const{zFactor:t,slopeType:e,pixelSizeFactor:n,pixelSizePower:s}=this.functionArguments;return{zFactor:this.isGCS&&t>=1?t*v.CX:t,slopeType:e,pixelSizeFactor:n??0,pixelSizePower:s??0}}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],on.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:rn,json:{write:!0,name:"rasterFunctionArguments"}})],on.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],on.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],on.prototype,"isGCS",void 0),on=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.SlopeFunction")],on);const an=on;var un;let ln=un=class extends p{constructor(){super(...arguments),this.statistics=null,this.histograms=null}readStatistics(t,e){if(!t?.length)return null;const n=[];return t.forEach((t=>{const e={min:t.min,max:t.max,avg:t.avg??t.mean,stddev:t.stddev??t.standardDeviation};n.push(e)})),n}writeStatistics(t,e,n){if(!t?.length)return;const s=[];t.forEach((t=>{const e={...t,mean:t.avg,standardDeviation:t.stddev};delete e.avg,delete e.stddev,s.push(e)})),e[n]=s}clone(){return new un({statistics:(0,o.d9)(this.statistics),histograms:(0,o.d9)(this.histograms)})}};(0,i._)([(0,a.Cb)({json:{write:!0}})],ln.prototype,"statistics",void 0),(0,i._)([(0,V.r)("statistics")],ln.prototype,"readStatistics",null),(0,i._)([(0,Q.c)("statistics")],ln.prototype,"writeStatistics",null),(0,i._)([(0,a.Cb)({json:{write:!0}})],ln.prototype,"histograms",void 0),ln=un=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.StatisticsHistogramFunctionArguments")],ln);const cn=ln;let pn=class extends w{constructor(){super(...arguments),this.functionName="StatisticsHistogram",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){const t=this.sourceRasterInfos[0];this.outputPixelType=this._getOutputPixelType("u8");const e=t.clone(),{statistics:n,histograms:s}=this.functionArguments;return s&&(e.histograms=s),n&&(e.statistics=n),this.rasterInfo=e,{success:!0,supportsGPU:!0}}_processPixels(t){return t.pixelBlocks?.[0]}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],pn.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:cn,json:{write:!0,name:"rasterFunctionArguments"}})],pn.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],pn.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],pn.prototype,"indexedColormap",void 0),(0,i._)([(0,a.Cb)()],pn.prototype,"isNoopProcess",void 0),pn=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.StatisticsHistogramFunction")],pn);const fn=pn;var hn;const mn=new R.X({0:"none",3:"standard-deviation",4:"histogram-equalization",5:"min-max",6:"percent-clip",9:"sigmoid"},{useNumericKeys:!0});let dn=hn=class extends p{constructor(){super(...arguments),this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.histograms=null,this.statistics=null,this.stretchType="none",this.useGamma=!1}writeStatistics(t,e,n){t?.length&&(Array.isArray(t[0])||(t=t.map((t=>[t.min,t.max,t.avg,t.stddev]))),e[n]=t)}clone(){return new hn({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,o.d9)(this.statistics),gamma:(0,o.d9)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,histograms:(0,o.d9)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment,raster:this.raster})}};(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],dn.prototype,"computeGamma",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{name:"dra",write:!0}})],dn.prototype,"dynamicRangeAdjustment",void 0),(0,i._)([(0,a.Cb)({type:[Number],json:{write:!0}})],dn.prototype,"gamma",void 0),(0,i._)([(0,a.Cb)()],dn.prototype,"histograms",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0}})],dn.prototype,"maxPercent",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0}})],dn.prototype,"minPercent",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0}})],dn.prototype,"numberOfStandardDeviations",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{name:"max",write:!0}})],dn.prototype,"outputMax",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{name:"min",write:!0}})],dn.prototype,"outputMin",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0}})],dn.prototype,"sigmoidStrengthLevel",void 0),(0,i._)([(0,a.Cb)({json:{type:[[Number]],write:!0}})],dn.prototype,"statistics",void 0),(0,i._)([(0,Q.c)("statistics")],dn.prototype,"writeStatistics",null),(0,i._)([(0,A.J)(mn)],dn.prototype,"stretchType",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],dn.prototype,"useGamma",void 0),dn=hn=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.StretchFunctionArguments")],dn);const gn=dn;var yn=n(15612);let bn=class extends w{constructor(){super(...arguments),this.functionName="Stretch",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null,this.cutOffs=null}_bindSourceRasters(){this.lookup=null,this.cutOffs=null;const t=this.sourceRasterInfos[0],{pixelType:e}=t,{functionArguments:n}=this,{dynamicRangeAdjustment:s,gamma:r,useGamma:o}=n;if(!s&&["u8","u16","s8","s16"].includes(e)){const s=(0,yn.AV)(n.toJSON(),{rasterInfo:t}),i=this._isOutputRoundingNeeded()?"round":"float";this.lookup=(0,yn.hE)({pixelType:e,...s,gamma:o?r:null,rounding:i}),this.cutOffs=s}else s||(this.cutOffs=(0,yn.AV)(n.toJSON(),{rasterInfo:t}));this.outputPixelType=this._getOutputPixelType(e);const i=t.clone();return i.pixelType=this.outputPixelType,i.statistics=null,i.histograms=null,i.colormap=null,i.attributeTable=null,"u8"===this.outputPixelType&&(i.keyProperties.DataType="processed"),this.rasterInfo=i,{success:!0,supportsGPU:!s}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return e;const{lookup:n}=this;if(n)return(0,F.XV)(e,{...n,outputPixelType:this.rasterInfo.pixelType});const{functionArguments:s}=this,r=this.cutOffs||(0,yn.AV)(s.toJSON(),{rasterInfo:this.sourceRasterInfos[0],pixelBlock:e}),o=s.useGamma?s.gamma:null;return(0,yn.dy)(e,{...r,gamma:o,outputPixelType:this.outputPixelType})}_getWebGLParameters(){const{outputMin:t=0,outputMax:e=255,gamma:n,useGamma:s}=this.functionArguments,r=this.rasterInfo.bandCount>=2?3:1,o=s&&n&&n.length?(0,yn.um)(r,n):[1,1,1],{minCutOff:i,maxCutOff:a}=this.cutOffs??{minCutOff:[0,0,0],maxCutOff:[255,255,255]};1===i.length&&(i[1]=i[2]=i[0],a[1]=a[2]=a[0]);const u=new Float32Array(r);let l;for(l=0;l<r;l++)u[l]=(e-t)/(a[l]-i[l]);const c=this._isOutputRoundingNeeded();return{bandCount:r,outMin:t,outMax:e,minCutOff:i,maxCutOff:a,factor:u,useGamma:s,gamma:s&&n?n:[1,1,1],gammaCorrection:s&&o?o:[1,1,1],stretchType:this.functionArguments.stretchType,isOutputRounded:c,type:"stretch"}}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],bn.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:gn,json:{write:!0,name:"rasterFunctionArguments"}})],bn.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],bn.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],bn.prototype,"lookup",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],bn.prototype,"cutOffs",void 0),bn=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.StretchFunction")],bn);const xn=bn;var wn;let vn=wn=class extends p{constructor(){super(...arguments),this.attributeTableAsRecordSet=null}clone(){return new wn({attributeTableAsRecordSet:(0,o.d9)(this.attributeTableAsRecordSet)})}};(0,i._)([(0,a.Cb)({json:{write:!0}})],vn.prototype,"attributeTableAsRecordSet",void 0),vn=wn=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.TableFunctionArguments")],vn);const _n=vn;let Cn=class extends w{constructor(){super(...arguments),this.functionName="Table",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){const t=this.sourceRasterInfos[0];if(t.bandCount>1||t.pixelType.startsWith("f"))return{success:!1,supportsGPU:!1,error:"table-function: Source data must be single band and integer pixel type."};const{attributeTableAsRecordSet:e}=this.functionArguments;if(!e)return{success:!1,supportsGPU:!1,error:"table-function: Missing attributeTableAsRecordSet argument."};this.outputPixelType=this._getOutputPixelType(t.pixelType);const n=t.clone();return n.pixelType=this.outputPixelType,n.bandCount=1,"thematic"!==n.dataType&&(n.keyProperties=n.keyProperties?{...n.keyProperties,DataType:"thematic"}:{DataType:"thematic"}),this.rasterInfo=n,{success:!0,supportsGPU:!0}}_processPixels(t){return t.pixelBlocks?.[0]}};(0,i._)([(0,a.Cb)({json:{write:!0,name:"rasterFunction"}})],Cn.prototype,"functionName",void 0),(0,i._)([(0,a.Cb)({type:_n,json:{write:!0,name:"rasterFunctionArguments"}})],Cn.prototype,"functionArguments",void 0),(0,i._)([(0,a.Cb)()],Cn.prototype,"rasterArgumentNames",void 0),(0,i._)([(0,a.Cb)()],Cn.prototype,"isNoopProcess",void 0),Cn=(0,i._)([(0,u.j)("esri.layers.support.rasterFunctions.TableFunction")],Cn);const An=Cn,Rn=new Map;function Pn(t,e){const{rasterFunctionArguments:n}=t;n&&(n.rasters||[n.raster]).forEach((t=>{t&&"number"!=typeof t&&("string"==typeof t?t.startsWith("http")&&(e.includes(t)||e.push(t)):"rasterFunctionArguments"in t&&Pn(t,e))}))}function Nn(t,e){if(e=e??{},"function"in(t=(0,o.d9)(t))&&"arguments"in t&&t.arguments){const n=Mn(t,new Map,e);if(Gn(n),!n.renderingRule)throw new r.Z("raster-function-helper","Unsupported raster function json.");t=n.renderingRule}if("rasterFunction"in t)return Fn(t=In(t),e);throw new r.Z("raster-function-helper","unsupported raster function json.")}function Tn(t){return!!(t&&"object"==typeof t&&t.rasterFunction&&t.rasterFunctionArguments)}function In(t){const{rasterFunction:e,rasterFunctionArguments:n}=t,s={};for(const t in n){let e=n[t];const r=t.toLowerCase();if("rasters"===r&&Array.isArray(e))s.rasters=e.map((t=>Tn(t)?In(t):t));else switch(Tn(e)&&(e=In(e)),r){case"dra":s.dra=e;break;case"pspower":s.psPower=e;break;case"pszfactor":s.psZFactor=e;break;case"bandids":s.bandIds=e;break;default:s[t[0].toLowerCase()+t.slice(1)]=e}}return"Local"!==e||s.rasters?.length||(s.rasters=["$$"]),{...t,rasterFunctionArguments:s}}function Fn(t,e){const{rasterFunction:n,rasterFunctionArguments:s}=t,o=t.outputPixelType?.toLowerCase();if(null==n||!Rn.has(n))throw new r.Z("raster-function-helper",`unsupported raster function: ${n}`);const i=Rn.get(n),a=("function"==typeof i.ctor?i.ctor:i.ctor.default).fromJSON({...t,outputPixelType:o}),{rasterArgumentNames:u}=a,l=[],c=function(t,e){return"rasters"===e[0]&&Array.isArray(t.rasters)?t.rasters:e.map((e=>t[e]))}(s,u),p="rasters"===u[0],f=[];for(let t=0;t<c.length;t++){const n=c[t];let s;null==n||"string"==typeof n&&n.startsWith("$")?l.push(e?.raster):"string"==typeof n?e[n]&&l.push(e[n]):"number"!=typeof n&&"rasterFunction"in n&&(s=Fn(n,e),p||(a.functionArguments[u[t]]=s),l.push(s)),p&&f.push(s??n)}if(p&&(a.functionArguments.rasters=f),e){a.sourceRasters=l;const t=e.raster?.url;t&&(a.mainPrimaryRasterId=t)}return a}function jn(t,e){if(t&&e)for(const n in t){const s=t[n];s&&"object"==typeof s&&"type"in s&&("RasterFunctionTemplate"===s.type?jn(s.arguments,e):"RasterFunctionVariable"===s.type&&null!=e[s.name]&&(s.value=e[s.name]))}}function Sn(t,e){if(!t||"object"!=typeof t)return t;const{value:n}=t;if(!n||"object"!=typeof n)return t.isDataset?"$$":n;if(Array.isArray(n))return 0===n.length?[]:n.map((t=>"object"==typeof t&&"RasterFunctionVariable"===t.type?Sn(t,e):t));if("value"in n&&["number","string","boolean"].includes(typeof n.value))return n.value;if(t.isDataset&&"Scalar"!==n.type)return"$$";if(!("type"in n))return n;let s=n;switch(n.type){case"Scalar":s=n.value;break;case"AlgorithmicColorRamp":s=kn(n);break;case"MultiPartColorRamp":s={type:"multipart",colorRamps:n.ArrayOfColorRamp.map(kn)};break;case"ArgumentArray":if(n.elements?.length&&"RasterStatistics"!==n.elements[0].type){const t=[];for(let s=0;s<n.elements.length;s++){const o=n.elements[s],{type:i}=o;if(i)if("RasterFunctionTemplate"===i){const{renderingRule:n}=Mn(o,e);t.push(n),null!=o._object_id&&e.set(o._object_id,n)}else{if("RasterFunctionVariable"!==i)throw new r.Z("raster-function-helper","unsupported raster function json.");{const n=Sn(o,e);t.push(n),null!=o._object_id&&e.set(o._object_id,n)}}else t.push(o)}s=t}else s=n.elements}return null!=n._object_id&&e.set(n._object_id,s),s}function kn(t){const e=t.algorithm??"esriHSVAlgorithm";let{FromColor:n,ToColor:r}=t;if(!Array.isArray(n)){const{r:t,g:e,b:r}=(0,s.xr)({h:n.Hue,s:n.Saturation,v:n.Value});n=[t,e,r,n.AlphaValue]}if(!Array.isArray(r)){const{r:t,g:e,b:n}=(0,s.xr)({h:r.Hue,s:r.Saturation,v:r.Value});r=[t,e,n,r.AlphaValue]}return{type:"algorithmic",algorithm:e,fromColor:n,toColor:r}}function Mn(t,e,n){n&&jn(t,n);const s={renderingRule:{},templates:e};return Bn(t,s),s}function Bn(t,e){if(!t||!e.renderingRule)return;const{renderingRule:n,templates:s}=e,{function:r,arguments:o,_object_id:i}=t;if(!r||!o)return;null!=i&&s.set(i,n),n.rasterFunction=r.type.replace("Function",""),n.outputPixelType=r.pixelType;const a={};n.rasterFunctionArguments=a;for(const t in o){if("type"===t||"object_id"===t||"_object_ref_id"===t)continue;const e=o[t];e&&"object"==typeof e&&"type"in e&&("RasterFunctionTemplate"===e.type||"RasterFunctionVariable"===e.type)?("RasterFunctionVariable"===e.type?a[t]=Sn(e,s):(n.rasterFunctionArguments[t]={},Bn(e,{renderingRule:n.rasterFunctionArguments[t],templates:s})),null!=e._object_id&&s.set(e._object_id,a[t])):a[t]=e}switch(a.DEM&&!a.Raster&&(a.Raster=a.DEM,delete a.DEM),n.rasterFunction){case"Stretch":!function(t){t.Statistics?.length&&"object"==typeof t.Statistics&&(t.Statistics=t.Statistics.map((t=>[t.min,t.max,t.mean,t.standardDeviation]))),null!=t.NumberOfStandardDeviation&&(t.NumberOfStandardDeviations=t.NumberOfStandardDeviation,delete t.NumberOfStandardDeviation)}(a);break;case"Colormap":!function(t){"randomcolorramp"===t.ColorRamp?.type?.toLowerCase()&&(delete t.ColorRamp,t.ColormapName="Random"),0===t.ColorSchemeType&&delete t.ColorRamp}(a);break;case"Convolution":!function(t){null!=t.ConvolutionType&&(t.Type=t.ConvolutionType,delete t.ConvolutionType)}(a);break;case"Mask":!function(t){t.NoDataValues?.length&&"string"==typeof t.NoDataValues[0]&&(t.NoDataValues=t.NoDataValues.filter((t=>""!==t)).map((t=>Number(t))))}(a)}}function Gn(t){const{renderingRule:e,templates:n}=t;if("object"!=typeof e||!e?.rasterFunctionArguments||!n.size)return;const{rasterFunctionArguments:s}=e;for(const t in s){const e=s[t],o="_object_ref_id"===t?e:e&&"object"==typeof e&&"_object_ref_id"in e?e._object_ref_id:null;if(null==o)e&&"object"==typeof e&&(e.rasterFunctionArguments&&Gn({renderingRule:e,templates:n}),Array.isArray(e)&&e.forEach(((t,s)=>{if("object"==typeof t)if(null!=t._object_ref_id){if(!n.has(t._object_ref_id))throw new r.Z("raster-function-helper",`unsupported raster function json. _object_ref_id: ${e} does not exist`);const i=n.get(o);i&&"object"==typeof i?Object.assign(t,i):e[s]=i}else Gn({renderingRule:t,templates:n})})));else{if(!n.has(o))throw new r.Z("raster-function-helper",`unsupported raster function json. _object_ref_id: ${o} does not exist`);const e=n.get(o);"_object_ref_id"!==t?s[t]=e:e&&"object"==typeof e&&Object.assign(s,e)}}}Rn.set("Aspect",{desc:"Aspect Function",ctor:C,rasterArgumentNames:["raster"]}),Rn.set("BandArithmetic",{desc:"Band Arithmetic Function",ctor:O,rasterArgumentNames:["raster"]}),Rn.set("Colormap",{desc:"Colormap Function",ctor:$,rasterArgumentNames:["raster"]}),Rn.set("CompositeBand",{desc:"CompositeBand Function",ctor:st,rasterArgumentNames:["rasters"]}),Rn.set("Convolution",{desc:"Convolution Function",ctor:bt,rasterArgumentNames:["raster"]}),Rn.set("ExtractBand",{desc:"ExtractBand Function",ctor:It,rasterArgumentNames:["raster"]}),Rn.set("Curvature",{desc:"Curvature Function",ctor:At,rasterArgumentNames:["raster"]}),Rn.set("Local",{desc:"Local Function",ctor:De,rasterArgumentNames:["rasters"]}),Rn.set("Mask",{desc:"Mask Function",ctor:Ue,rasterArgumentNames:["raster"]}),Rn.set("NDVI",{desc:"NDVI Function",ctor:He,rasterArgumentNames:["raster"]}),Rn.set("Remap",{desc:"Remap Function",ctor:tn,rasterArgumentNames:["raster"]}),Rn.set("Slope",{desc:"Slope Function",ctor:an,rasterArgumentNames:["raster"]}),Rn.set("StatisticsHistogram",{desc:"Statistics Histogram Function",ctor:fn,rasterArgumentNames:["raster"]}),Rn.set("Stretch",{desc:"Stretch Function",ctor:xn,rasterArgumentNames:["raster"]}),Rn.set("Table",{desc:"Attribute Table Function",ctor:An,rasterArgumentNames:["raster"]})},73506:(t,e,n)=>{n.d(e,{Hq:()=>Z,Mk:()=>m,P_:()=>V,Qp:()=>L,VO:()=>R,Wt:()=>G,kZ:()=>q,kr:()=>X,nF:()=>N,tB:()=>B,ut:()=>D,zD:()=>A}),n(66577);var s,r,o=n(67676),i=n(20102),a=n(67900),u=n(83305),l=n(44547),c=n(6570),p=n(94139),f=n(38913),h=n(82971);function m(t,e,n){return!(0,l.Up)(t,e,n)}function d(t,e,n){const s=m(t,e,n);if(s&&!(0,l.kR)())throw new i.Z("rasterprojectionhelper-project","projection engine is not loaded");return s}(r=s||(s={}))[r.None=0]="None",r[r.North=1]="North",r[r.South=2]="South",r[r.Both=3]="Both";const g=(t,e,n,s=0)=>{if(1===n[0])return[0,0];let r=1,o=-1,i=1,a=-1;for(let e=0;e<t.length;e+=2)isNaN(t[e])||(r=r>t[e]?t[e]:r,o=o>t[e]?o:t[e],i=i>t[e+1]?t[e+1]:i,a=a>t[e+1]?a:t[e+1]);const{cols:u,rows:l}=e,c=(o-r)/u/n[0],p=(a-i)/l/n[1],f=2*s;let h=0,m=!1,d=[0,0];for(let e=0;e<u-3;e++){for(let n=0;n<l-3;n++){const s=e*l*2+2*n,r=(t[s]+t[s+4]+t[s+4*l]+t[s+4*l+4])/4,o=(t[s+1]+t[s+5]+t[s+4*l+1]+t[s+4*l+5])/4,i=Math.abs((r-t[s+2*l+2])/c),a=Math.abs((o-t[s+2*l+3])/p);if(i+a>h&&(h=i+a,d=[i,a]),f&&h>f){m=!0;break}}if(m)break}return d},y={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},b=32,x=4,w=x,v=new Map,_=new Map,C=500;async function A(){(0,l.kR)()||await(0,l.zD)()}function R(t,e,n,s=null){const r=t.spatialReference;if(r.equals(e))return t;d(r,e,s);const o=n.center,i=new c.Z({xmin:o.x-t.x/2,xmax:o.x+t.x/2,ymin:o.y-t.y/2,ymax:o.y+t.y/2,spatialReference:r}),u=(0,l.iV)(i,e,s),p=D(e);let f;if(null==u||null!=p&&u.width>=p){const n=(0,a.c9)(r)/(0,a.c9)(e);f={x:t.x*n,y:t.y*n}}else f={x:u.width,y:u.height};return f}function P(t,e=.01){return(0,a.c9)(t)?e/(0,a.c9)(t):0}function N(t,e,n=null,s=!0){const r=t.spatialReference;if(r.equals(e))return t;d(r,e,n);const o=(0,l.iV)(t,e,n);return s&&o?(T([t],[o],r,e),o):o}function T(t,e,n,s){const r=z(n,!0),o=z(s,!0),i=P(n,C),a=P(s,C);if(i&&null!=r&&null!=o)for(let n=0;n<t.length;n++){const s=e[n];if(!s)continue;const{x:u}=t[n],{x:l}=s;l>=o[1]-a&&Math.abs(u-r[0])<i?s.x-=o[1]-o[0]:l<=o[0]+a&&Math.abs(u-r[1])<i&&(s.x+=o[1]-o[0])}}function I(t){const{inSR:e,outSR:n,datumTransformation:s,preferPE:r}=t;if(e.equals(n)){const{points:e}=k(t,null);return e}if(e.isWebMercator&&n.isWGS84||e.isWGS84&&n.isWebMercator)return function(t){const{cols:e,rows:n,xres:s,yres:r,usePixelCenter:o,inSR:i,outSR:a}=t;let{xmin:u,ymax:c}=t;o&&(u+=s/2,c-=r/2);const f=[],h=[],m=Math.max(e,n);for(let t=0;t<m;t++){const o=u+s*Math.min(e,t),m=c-r*Math.min(n,t),d=(0,l.iV)(new p.Z({x:o,y:m,spatialReference:i}),a);t<=e&&f.push(d.x),t<=n&&h.push(d.y)}const d=[];for(let t=0;t<e;t++)for(let e=0;e<n;e++)d.push([f[t],h[e]]);return d}(t);if(d(e,n,s)&&r){if(e.isGeographic)return F(t);if(null!=j(e))return F(t)}return function(t){const{points:e}=k(t,null),{inSR:n,outSR:s,datumTransformation:r}=t,o=e.map((t=>new p.Z(t[0],t[1],n))),i=(0,l.iV)(o,s,r);return r&&T(o,i,n,s),i.map((t=>t?[t.x,t.y]:[NaN,NaN]))}(t)}function F(t){const{inSR:e,outSR:n,datumTransformation:s}=t,r=j(e),{points:o,mask:i}=k(t,r);if(!e.isGeographic){const t=e.wkid?u.e.coordsys(e.wkid):u.e.fromString(e.isGeographic?u.f.PE_TYPE_GEOGCS:u.f.PE_TYPE_PROJCS,e.wkt);u.g.projToGeog(t,o.length,o)}if(null!=s&&s.steps.length){let t;const e=179.9955;if(n.isGeographic&&(t=o.map((([t])=>t>e?1:t<-e?-1:0))),s.steps.forEach((t=>{const e=t.wkid?u.e.geogtran(t.wkid):u.e.fromString(u.f.PE_TYPE_GEOGTRAN,t.wkt);u.h.geogToGeog(e,o.length,o,null,t.isInverse?u.f.PE_TRANSFORM_2_TO_1:u.f.PE_TRANSFORM_1_TO_2)})),t)for(let n=0;n<o.length;n++){const s=t[n],r=o[n][0],i=r>e?1:r<-e?-1:0;s&&i&&s!==i&&(o[n][0]=s>0?r+360:r-360)}}if(!n.isGeographic){const t=j(n,!0),e=null!=t&&t.isEnvelope?[t.bbox[1],t.bbox[3]]:[-90,90];!function(t,e){const[n,s]=e;for(let e=0;e<t.length;e++){const r=t[e][1];(r<n||r>s)&&(t[e]=[NaN,NaN])}}(o,e);const s=n.wkid?u.e.coordsys(n.wkid):u.e.fromString(n.isGeographic?u.f.PE_TYPE_GEOGCS:u.f.PE_TYPE_PROJCS,n.wkt);u.g.geogToProj(s,o.length,o)}let a=o;if(i&&o.length!==i.length){a=[];for(let t=0,e=0;t<i.length;t++)i[t]?a.push(o[e++]):a.push([NaN,NaN])}return a}function j(t,e=!1){let n=t.wkid||t.wkt;if(!n||t.isGeographic)return null;if(n=String(n),v.has(n)){const t=v.get(n);return e?t?.gcs:t?.pcs}const s=t.wkid?u.e.coordsys(t.wkid):u.e.fromString(t.isGeographic?u.f.PE_TYPE_GEOGCS:u.f.PE_TYPE_PROJCS,t.wkt),r=S(s,P(t,1e-4)),o=S(s,0,!0);return v.set(n,{pcs:r,gcs:o}),e?o:r}function S(t,e=0,n=!1){const s=u.j.generate(t),r=n?t.horizonGcsGenerate():t.horizonPcsGenerate();if(!s||!r?.length)return null;let o=!1,i=r.find((t=>1===t.getInclusive()&&1===t.getKind()));if(!i){if(i=r.find((t=>1===t.getInclusive()&&0===t.getKind())),!i)return null;o=!0}const a=n?0:(2===s.getNorthPoleLocation()?1:0)|(2===s.getSouthPoleLocation()?2:0),l=s.isPannableRectangle(),c=i.getCoord();if(o)return{isEnvelope:o,isPannable:l,vertices:c,coef:null,bbox:[c[0][0]-e,c[0][1]-e,c[1][0]+e,c[1][1]+e],poleLocation:a};let p=0;const f=[];let[h,m]=c[0],[d,g]=c[0];for(let t=0,e=c.length;t<e;t++){p++,p===e&&(p=0);const[n,s]=c[t],[r,o]=c[p];if(o===s)f.push([n,r,s,o,2]);else{const t=(r-n)/(o-s||1e-4),e=n-t*s;s<o?f.push([t,e,s,o,0]):f.push([t,e,o,s,1])}h=h<n?h:n,m=m<s?m:s,d=d>n?d:n,g=g>s?g:s}return{isEnvelope:!1,isPannable:l,vertices:c,coef:f,bbox:[h,m,d,g],poleLocation:a}}function k(t,e){const n=[],{cols:s,rows:r,xres:o,yres:i,usePixelCenter:a}=t;let{xmin:u,ymax:l}=t;if(a&&(u+=o/2,l-=i/2),null==e){for(let t=0;t<s;t++)for(let e=0;e<r;e++)n.push([u+o*t,l-i*e]);return{points:n}}const c=new Uint8Array(s*r);if(e.isEnvelope){const{bbox:[t,a,p,f]}=e;for(let h=0,m=0;h<s;h++){const s=u+o*h,d=e.isPannable||s>=t&&s<=p;for(let t=0;t<r;t++,m++){const e=l-i*t;d&&e>=a&&e<=f&&(n.push([s,e]),c[m]=1)}}return{points:n,mask:c}}const p=e.coef,f=[];for(let t=0;t<r;t++){const e=l-i*t,n=[],s=[];for(let t=0;t<p.length;t++){const[r,o,i,a,u]=p[t];if(e===i&&i===a)n.push(r),n.push(o),s.push(2),s.push(2);else if(e>=i&&e<=a){const t=r*e+o;n.push(t),s.push(u)}}let r=n;if(n.length>2){let t=2===s[0]?0:s[0],e=n[0];r=[];for(let o=1;o<s.length;o++)2===s[o]&&o!==s.length-1||(s[o]!==t&&(r.push(0===t?Math.min(e,n[o-1]):Math.max(e,n[o-1])),t=s[o],e=n[o]),o===s.length-1&&r.push(0===s[o]?Math.min(e,n[o]):Math.max(e,n[o])));r.sort(((t,e)=>t-e))}else n[0]>n[1]&&(r=[n[1],n[0]]);f.push(r)}for(let t=0,e=0;t<s;t++){const s=u+o*t;for(let t=0;t<r;t++,e++){const r=l-i*t,o=f[t];if(2===o.length)s>=o[0]&&s<=o[1]&&(n.push([s,r]),c[e]=1);else if(o.length>2){let t=!1;for(let e=0;e<o.length;e+=2)if(s>=o[e]&&s<=o[e+1]){t=!0;break}t&&(n.push([s,r]),c[e]=1)}}}return{points:n,mask:c}}function M(t){const e=D(t[0].spatialReference);if(t.length<2||null==e)return t[0];const n=P(t[0].spatialReference);if(1===(t=t.filter((t=>t.width>n))).length)return t[0];let{xmin:s,xmax:r,ymin:o,ymax:i}=t[0];for(let n=1;n<t.length;n++){const s=t[n];r=s.xmax+e*n,o=Math.min(o,s.ymin),i=Math.max(i,s.ymax)}return new c.Z({xmin:s,xmax:r,ymin:o,ymax:i,spatialReference:t[0].spatialReference})}function B(t,e,n=null,r=!0){const i=t.spatialReference;if(i.equals(e))return t;const a=Z(t),u=D(i,!0),p=D(e);if(0===a||null==u||null==p){const o=E(t,e,n,r);if(null==u&&null!=p&&Math.abs(o.width-p)<P(e)&&(0,l.kR)()){const n=j(i);if(null!=n&&n.poleLocation===s.None&&t.width<(n.bbox[2]-n.bbox[0])/2)return function(t,e){const n=D(e);if(null==n)return null;let{xmin:s,ymin:r,xmax:o,ymax:i}=t;const a=t.spatialReference,u=new f.Z({spatialReference:a,rings:[[[s,r],[o,r],[o,i],[s,i],[s,r]]]}),p=(0,l.iV)(u,e);if(2!==p.rings.length||!p.rings[0].length||!p.rings[1].length)return null;const{rings:h}=p,m=P(a),d=new c.Z({spatialReference:e});for(let t=0;t<2;t++){s=o=h[t][0][0],r=i=h[t][0][1];for(let e=0;e<h[t].length;e++)s=s>h[t][e][0]?h[t][e][0]:s,o=o<h[t][e][0]?h[t][e][0]:o,r=r>h[t][e][1]?h[t][e][1]:r,i=i<h[t][e][1]?h[t][e][1]:i;if(0===t)d.ymin=r,d.ymax=i,d.xmin=s,d.xmax=o;else if(d.ymin=Math.min(d.ymin,r),d.ymax=Math.max(d.ymax,i),Math.abs(o-n/2)<m)d.xmin=s,d.xmax=d.xmax+n;else{if(!(Math.abs(s+n/2)<m))return null;d.xmax=o+n}}return d}(t,e)||o}return o}const h=t.clone().normalize();if(1===h.length&&t.xmax<u&&t.xmax-u/2>P(i)){const{xmin:e,xmax:n}=t;for(let s=0;s<=a;s++){const r=0===s?e:-u/2,o=s===a?n-u*s:u/2;h[s]=new c.Z({xmin:r,xmax:o,ymin:t.ymin,ymax:t.ymax,spatialReference:i})}}return M(h.map((t=>E(t,e,n,r))).filter(o.pC))}function G(t,e,n){if("extent"===t.type){const{xmin:e,ymin:n,xmax:s,ymax:r,spatialReference:o}=t;t=new f.Z({rings:[[[e,r],[s,r],[s,n],[e,n],[e,r]]],spatialReference:o})}return t.spatialReference.equals(e)?t:(d(t.spatialReference,e,n),(0,l.iV)(t,e,n))}function E(t,e,n=null,s=!0,r=!0){const o=t.spatialReference;if(o.equals(e)||!e)return t;d(o,e,n);const i=(0,l.iV)(t,e,n);if(r&&e.isWebMercator&&i&&(i.ymax=Math.min(20037508.342787,i.ymax),i.ymin=Math.max(-20037508.342787,i.ymin),i.ymin>=i.ymax))return null;if(!s||!i)return i;const a=z(o,!0),u=z(e,!0);if(null==a||null==u)return i;const c=P(o,.001),f=P(o,C),h=P(e,.001);if(Math.abs(i.xmin-u[0])<h&&Math.abs(i.xmax-u[1])<h){const s=Math.abs(t.xmin-a[0]),r=Math.abs(a[1]-t.xmax);if(s<c&&r>f){i.xmin=u[0];const s=[];s.push(new p.Z(t.xmax,t.ymin,o)),s.push(new p.Z(t.xmax,(t.ymin+t.ymax)/2,o)),s.push(new p.Z(t.xmax,t.ymax,o));const r=s.map((t=>N(t,e,n))).filter((t=>!isNaN(t?.x))).map((t=>t.x));i.xmax=Math.max.apply(null,r)}if(r<c&&s>f){i.xmax=u[1];const s=[];s.push(new p.Z(t.xmin,t.ymin,o)),s.push(new p.Z(t.xmin,(t.ymin+t.ymax)/2,o)),s.push(new p.Z(t.xmin,t.ymax,o));const r=s.map((t=>N(t,e,n))).filter((t=>!isNaN(t?.x))).map((t=>t.x));i.xmin=Math.min.apply(null,r)}}else{const t=P(e,.001);Math.abs(i.xmin-u[0])<t&&(i.xmin=u[0]),Math.abs(i.xmax-u[1])<t&&(i.xmax=u[1])}return i}function D(t,e=!1){if(!t)return null;const n=e?20037508.342787:20037508.342788905;return t.isWebMercator?2*n:t.wkid&&t.isGeographic?360:2*y[t.wkid]||null}function z(t,e=!1){if(t.isGeographic)return[-180,180];const n=D(t,e);return null!=n?[-n/2,n/2]:null}function O(t,e,n,s){let r=(t-e)/n;return r-Math.floor(r)!=0?r=Math.floor(r):s&&(r-=1),r}function Z(t,e=!1){const n=D(t.spatialReference);if(null==n)return 0;const s=e?0:-n/2,r=P(t.spatialReference),o=!e&&Math.abs(t.xmax-n/2)<r?n/2:t.xmax,i=!e&&Math.abs(t.xmin+n/2)<r?-n/2:t.xmin;return O(o,s,n,!0)-O(i,s,n,!1)}function V(t){const e=t.storageInfo.origin.x,n=D(t.spatialReference,!0);if(null==n)return{originX:e,halfWorldWidth:null,pyramidsInfo:null};const s=n/2,{nativePixelSize:r,storageInfo:o,extent:i}=t,{maximumPyramidLevel:a,blockWidth:u,pyramidScalingFactor:l}=o;let c=r.x;const p=[],f=null!=t.transform&&"gcs-shift"===t.transform.type,h=e+(f?0:s),m=f?n-e:s-e;for(let t=0;t<=a;t++){const t=(i.xmax-e)/c/u,n=t-Math.floor(t)==0?t:Math.ceil(t),s=m/c/u,r=s-Math.floor(s)==0?s:Math.ceil(s),o=Math.floor(h/c/u),a=Math.round(h/c)%u,f=(u-Math.round(m/c)%u)%u;p.push({resolutionX:c,blockWidth:u,datsetColumnCount:n,worldColumnCountFromOrigin:r,leftMargin:a,rightPadding:f,originColumnOffset:o}),c*=l}return{originX:e,halfWorldWidth:s,pyramidsInfo:p,hasGCSSShiftTransform:f}}function L(t){const e=t.isAdaptive&&null==t.spacing;let n=t.spacing||[b,b],s=U(t),r={cols:s.size[0]+1,rows:s.size[1]+1};const o=s.outofBoundPointCount>0&&s.outofBoundPointCount<s.offsets.length/2;let i=s.outofBoundPointCount===s.offsets.length/2||e&&o?[0,0]:g(s.offsets,r,n,w);const a=(i[0]+i[1])/2,l=t.projectedExtent.spatialReference,c=t.srcBufferExtent.spatialReference;if(e&&(o||a>w)&&(m(l,c,t.datumTransformation)&&(l.isGeographic||j(l)),n=[x,x],s=U({...t,spacing:n}),r={cols:s.size[0]+1,rows:s.size[1]+1},i=g(s.offsets,r,n,w)),s.error=i,n[0]>1&&(s.coefficients=W(s.offsets,r,o)),t.includeGCSGrid&&!l.isGeographic&&!l.isWebMercator)if(c.isGeographic)s.gcsGrid={offsets:s.offsets,coefficients:s.coefficients,spacing:n};else{const e=j(l);if(null!=e&&!e.isEnvelope){const e=function(t){if(!t||t.isGeographic)return t;const e=String(t.wkid||t.wkt);let n;return _.has(e)?n=_.get(e):(n=(t.wkid?u.e.coordsys(t.wkid):u.e.fromString(u.f.PE_TYPE_PROJCS,t.wkt)).getGeogcs().getCode(),_.set(e,n)),new h.Z({wkid:n})}(l),i=B(t.projectedExtent,e),{offsets:a}=U({...t,srcBufferExtent:i,spacing:n}),c=W(a,r,o);s.gcsGrid={offsets:a,coefficients:c,spacing:n}}}return s}function U(t){const{projectedExtent:e,srcBufferExtent:n,pixelSize:s,datumTransformation:r,rasterTransform:o}=t,i=e.spatialReference,a=n.spatialReference,u=d(i,a),{xmin:l,ymin:c,xmax:f,ymax:h}=e,m=D(a),g=null!=m&&(t.hasWrapAround||"gcs-shift"===o?.type),y=t.spacing||[b,b],w=y[0]*s.x,v=y[1]*s.y,_=1===y[0],A=Math.ceil((f-l)/w-.1/y[0])+(_?0:1),R=Math.ceil((h-c)/v-.1/y[1])+(_?0:1),N=I({cols:A,rows:R,xmin:l,ymax:h,xres:w,yres:v,inSR:i,outSR:a,datumTransformation:r,preferPE:y[0]<=x,usePixelCenter:_}),T=[];let F,S=0;const k=_?-1:NaN,{xmin:M,xmax:B,ymax:G,width:E,height:z}=n,O=P(a,C),Z=null!=m&&M>0&&B>m/2;let V=!1;if(u){const t=j(i);V=null!=t&&t.poleLocation>0}for(let t=0;t<A;t++){const e=[];for(let n=0;n<R;n++){let s=N[t*R+n];if(g&&s[0]>B&&s[0]>m/2-O?s[0]-=m:g&&0===t&&s[0]<0&&Z&&!o&&(s[0]+=m),!s||isNaN(s[0])||isNaN(s[1]))T.push(k),T.push(k),e.push(null),S++;else{if(o){const t=o.inverseTransform(new p.Z({x:s[0],y:s[1],spatialReference:a}));s=[t.x,t.y]}e.push(s),t>0&&g&&F[n]&&s[0]<F[n][0]&&(s[0]+=m,V&&s[0]>B&&s[0]>m&&(s[0]-=m)),T.push((s[0]-M)/E),T.push((G-s[1])/z)}}F=e}return{offsets:T,error:null,coefficients:null,outofBoundPointCount:S,spacing:y,size:_?[A,R]:[A-1,R-1]}}function W(t,e,n){const{cols:s,rows:r}=e,o=new Float32Array((s-1)*(r-1)*2*6),i=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),a=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let e=0;e<s-1;e++){for(let n=0;n<r-1;n++){let u=e*r*2+2*n;const l=t[u],c=t[u+1],p=t[u+2],f=t[u+3];u+=2*r;const h=t[u],m=t[u+1],d=t[u+2],g=t[u+3];let y=0,b=12*(n*(s-1)+e);for(let t=0;t<3;t++)o[b++]=i[y++]*l+i[y++]*p+i[y++]*d;y=0;for(let t=0;t<3;t++)o[b++]=i[y++]*c+i[y++]*f+i[y++]*g;y=0;for(let t=0;t<3;t++)o[b++]=a[y++]*l+a[y++]*h+a[y++]*d;y=0;for(let t=0;t<3;t++)o[b++]=a[y++]*c+a[y++]*m+a[y++]*g}if(n)for(let t=0;t<o.length;t++)isNaN(o[t])&&(o[t]=-1)}return o}function q(t){const e=t.clone().normalize();return 1===e.length?e[0]:M(e)}function X(t,e,n){const{storageInfo:s,pixelSize:r}=e;let o=0,i=!1;const{pyramidResolutions:u}=s,l="mixed"===s.tileInfo.format?.toLowerCase()?Math.max(1,Math.min(3,s.tileInfo.dpi/96)):1,c=(t.x+t.y)/2/l;if(null!=u&&u.length){const t=u[u.length-1],s=(t.x+t.y)/2,l=(r.x+r.y)/2;if(c<=l)o=0;else if(c>=s)o=u.length,i=c/s>8;else{let t,e=l;for(let s=1;s<=u.length;s++){if(t=(u[s-1].x+u[s-1].y)/2,c<=t){c===t?o=s:"down"===n?(o=s-1,i=c/e>8):o="up"===n||c-e>t-c||c/e>2?s:s-1;break}e=t}}const f=0===o?r:u[o-1];return i&&Math.min(f.x,f.y)*(0,a.c9)(e.spatialReference)>19567&&(i=!1),{pyramidLevel:o,pyramidResolution:new p.Z({x:f.x,y:f.y,spatialReference:e.spatialReference}),excessiveReading:i}}const f=Math.log(t.x/r.x)/Math.LN2,h=Math.log(t.y/r.y)/Math.LN2,m=e.storageInfo.maximumPyramidLevel||0;o="down"===n?Math.floor(Math.min(f,h)):"up"===n?Math.ceil(Math.max(f,h)):Math.round((f+h)/2),o<0?o=0:o>m&&(i=o>m+3,o=m);const d=2**o;return{pyramidLevel:o,pyramidResolution:new p.Z({x:d*e.nativePixelSize.x,y:d*e.nativePixelSize.y,spatialReference:e.spatialReference}),excessiveReading:i}}},48700:(t,e,n)=>{n.d(e,{Z:()=>u});var s=n(43697),r=n(96674),o=n(5600),i=(n(75215),n(67676),n(80442),n(52011));let a=class extends r.wq{get affectsPixelSize(){return!1}forwardTransform(t){return t}inverseTransform(t){return t}};(0,s._)([(0,o.Cb)()],a.prototype,"affectsPixelSize",null),(0,s._)([(0,o.Cb)({json:{write:!0}})],a.prototype,"spatialReference",void 0),a=(0,s._)([(0,i.j)("esri.layers.support.rasterTransforms.BaseRasterTransform")],a);const u=a},29680:(t,e,n)=>{n.d(e,{Z:()=>c});var s,r=n(43697),o=n(5600),i=(n(75215),n(67676),n(80442),n(36030)),a=n(52011),u=n(48700);let l=s=class extends u.Z{constructor(){super(...arguments),this.type="gcs-shift",this.tolerance=1e-8}forwardTransform(t){return"point"===(t=t.clone()).type?(t.x>180+this.tolerance&&(t.x-=360),t):(t.xmin>=180-this.tolerance?(t.xmax-=360,t.xmin-=360):t.xmax>180+this.tolerance&&(t.xmin=-180,t.xmax=180),t)}inverseTransform(t){return"point"===(t=t.clone()).type?(t.x<-this.tolerance&&(t.x+=360),t):(t.xmin<-this.tolerance&&(t.xmin+=360,t.xmax+=360),t)}clone(){return new s({tolerance:this.tolerance})}};(0,r._)([(0,i.J)({GCSShiftXform:"gcs-shift"})],l.prototype,"type",void 0),(0,r._)([(0,o.Cb)()],l.prototype,"tolerance",void 0),l=s=(0,r._)([(0,a.j)("esri.layers.support.rasterTransforms.GCSShiftTransform")],l);const c=l},87390:(t,e,n)=>{n.d(e,{Z:()=>g});var s,r=n(43697),o=(n(66577),n(5600)),i=(n(75215),n(67676),n(80442),n(36030)),a=n(71715),u=n(52011),l=n(30556),c=n(48700),p=n(94139),f=n(6570);function h(t,e,n){const{x:s,y:r}=e;if(n<2)return{x:t[0]+s*t[2]+r*t[4],y:t[1]+s*t[3]+r*t[5]};if(2===n){const e=s*s,n=r*r,o=s*r;return{x:t[0]+s*t[2]+r*t[4]+e*t[6]+o*t[8]+n*t[10],y:t[1]+s*t[3]+r*t[5]+e*t[7]+o*t[9]+n*t[11]}}const o=s*s,i=r*r,a=s*r,u=o*s,l=o*r,c=s*i,p=r*i;return{x:t[0]+s*t[2]+r*t[4]+o*t[6]+a*t[8]+i*t[10]+u*t[12]+l*t[14]+c*t[16]+p*t[18],y:t[1]+s*t[3]+r*t[5]+o*t[7]+a*t[9]+i*t[11]+u*t[13]+l*t[15]+c*t[17]+p*t[19]}}function m(t,e,n){const{xmin:s,ymin:r,xmax:o,ymax:i,spatialReference:a}=e;let u=[];if(n<2)u.push({x:s,y:i}),u.push({x:o,y:i}),u.push({x:s,y:r}),u.push({x:o,y:r});else{let t=10;for(let e=0;e<t;e++)u.push({x:s,y:r+(i-r)*e/(t-1)}),u.push({x:o,y:r+(i-r)*e/(t-1)});t=8;for(let e=1;e<=t;e++)u.push({x:s+(o-s)*e/t,y:r}),u.push({x:s+(o-s)*e/t,y:i})}u=u.map((e=>h(t,e,n)));const l=u.map((t=>t.x)),c=u.map((t=>t.y));return new f.Z({xmin:Math.min.apply(null,l),xmax:Math.max.apply(null,l),ymin:Math.min.apply(null,c),ymax:Math.max.apply(null,c),spatialReference:a})}let d=s=class extends c.Z{constructor(){super(...arguments),this.polynomialOrder=1,this.type="polynomial"}readForwardCoefficients(t,e){const{coeffX:n,coeffY:s}=e;if(!n?.length||!s?.length||n.length!==s.length)return null;const r=[];for(let t=0;t<n.length;t++)r.push(n[t]),r.push(s[t]);return r}writeForwardCoefficients(t,e,n){const s=[],r=[];for(let e=0;e<t?.length;e++)e%2==0?s.push(t[e]):r.push(t[e]);e.coeffX=s,e.coeffY=r}get inverseCoefficients(){let t=this._get("inverseCoefficients");const e=this._get("forwardCoefficients");return!t&&e&&this.polynomialOrder<2&&(t=function(t){const[e,n,s,r,o,i]=t,a=s*i-o*r,u=o*r-s*i;return[(o*n-e*i)/a,(s*n-e*r)/u,i/a,r/u,-o/a,-s/u]}(e)),t}set inverseCoefficients(t){this._set("inverseCoefficients",t)}readInverseCoefficients(t,e){const{inverseCoeffX:n,inverseCoeffY:s}=e;if(!n?.length||!s?.length||n.length!==s.length)return null;const r=[];for(let t=0;t<n.length;t++)r.push(n[t]),r.push(s[t]);return r}writeInverseCoefficients(t,e,n){const s=[],r=[];for(let e=0;e<t?.length;e++)e%2==0?s.push(t[e]):r.push(t[e]);e.inverseCoeffX=s,e.inverseCoeffY=r}get affectsPixelSize(){return this.polynomialOrder>0}forwardTransform(t){if("point"===t.type){const e=h(this.forwardCoefficients,t,this.polynomialOrder);return new p.Z({x:e.x,y:e.y,spatialReference:t.spatialReference})}return m(this.forwardCoefficients,t,this.polynomialOrder)}inverseTransform(t){if("point"===t.type){const e=h(this.inverseCoefficients,t,this.polynomialOrder);return new p.Z({x:e.x,y:e.y,spatialReference:t.spatialReference})}return m(this.inverseCoefficients,t,this.polynomialOrder)}clone(){return new s({polynomialOrder:this.polynomialOrder,forwardCoefficients:this.forwardCoefficients?[...this.forwardCoefficients]:null,inverseCoefficients:this.inverseCoefficients?[...this.inverseCoefficients]:null})}};(0,r._)([(0,o.Cb)({json:{write:!0}})],d.prototype,"polynomialOrder",void 0),(0,r._)([(0,o.Cb)()],d.prototype,"forwardCoefficients",void 0),(0,r._)([(0,a.r)("forwardCoefficients",["coeffX","coeffY"])],d.prototype,"readForwardCoefficients",null),(0,r._)([(0,l.c)("forwardCoefficients")],d.prototype,"writeForwardCoefficients",null),(0,r._)([(0,o.Cb)({json:{write:!0}})],d.prototype,"inverseCoefficients",null),(0,r._)([(0,a.r)("inverseCoefficients",["inverseCoeffX","inverseCoeffY"])],d.prototype,"readInverseCoefficients",null),(0,r._)([(0,l.c)("inverseCoefficients")],d.prototype,"writeInverseCoefficients",null),(0,r._)([(0,o.Cb)()],d.prototype,"affectsPixelSize",null),(0,r._)([(0,i.J)({PolynomialXform:"polynomial"})],d.prototype,"type",void 0),d=s=(0,r._)([(0,u.j)("esri.layers.support.rasterTransforms.PolynomialTransform")],d);const g=d},87521:(t,e,n)=>{n.d(e,{j:()=>m,c:()=>d});var s,r=n(29680),o=n(43697),i=(n(92604),n(75215),n(67676),n(80442),n(20102),n(36030)),a=n(52011),u=n(48700);let l=s=class extends u.Z{constructor(){super(...arguments),this.type="identity"}clone(){return new s}};(0,o._)([(0,i.J)({IdentityXform:"identity"})],l.prototype,"type",void 0),l=s=(0,o._)([(0,a.j)("esri.layers.support.rasterTransforms.IdentityTransform")],l);const c=l;var p=n(87390);const f={GCSShiftXform:r.Z,IdentityXform:c,PolynomialXform:p.Z},h=Object.keys(f);function m(t){const e=t?.type;return!t||h.includes(e)}function d(t){const e=t?.type;if(!e)return null;const n=f[t?.type];if(n){const e=new n;return e.read(t),e}return null}}}]);