@agrotools1/at-components 0.2.3 → 0.2.4

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 (894) hide show
  1. package/dist/AGraphicContainer-75e55bb8.js +109 -0
  2. package/dist/APIKeyMixin-688c6ac6.js +19 -0
  3. package/dist/Analysis-53f71911.js +31 -0
  4. package/dist/ArcGISCachedService-ea7559f0.js +47 -0
  5. package/dist/ArcGISService-a447176d.js +25 -0
  6. package/dist/AreaMeasurement2D-4d0db109.js +405 -0
  7. package/dist/AreaMeasurement3D-a2a10ea8.js +488 -0
  8. package/dist/AttachmentInfo-a2849bf0.js +34 -0
  9. package/dist/AttachmentQuery-e743e06f.js +18 -0
  10. package/dist/AttributeStore-6a3291d4.js +1707 -0
  11. package/dist/BaseDynamicLayerView2D-b3ff0eae.js +63 -0
  12. package/dist/BingMapsLayer-689d8e88.js +112 -0
  13. package/dist/Bitmap-e2b1f93c.js +128 -0
  14. package/dist/BitmapContainer-4dcc4a14.js +23 -0
  15. package/dist/BlendLayer-113fd3b8.js +13 -0
  16. package/dist/BoundsStore-3598604e.js +63 -0
  17. package/dist/BufferObject-59880a47.js +100 -0
  18. package/dist/BufferView-2cfe8c7d.js +683 -0
  19. package/dist/BuildingSceneLayer-a3e4a869.js +535 -0
  20. package/dist/Button-5e85250d.js +36 -0
  21. package/dist/CSVLayer-a68a64b8.js +208 -0
  22. package/dist/CSVSourceWorker-cf1fee99.js +367 -0
  23. package/dist/CardWithInsights/CardWithInsights.d.ts +2 -1
  24. package/dist/CatalogDynamicGroupLayerView2D-a4ae390f.js +66 -0
  25. package/dist/CatalogFootprintLayerView2D-145014a4.js +76 -0
  26. package/dist/CatalogLayer-48e7048b.js +262 -0
  27. package/dist/CatalogLayerView2D-8b4a4d47.js +52 -0
  28. package/dist/ClassBreaksDefinition-e2d8b3cc.js +18 -0
  29. package/dist/ColorMaterial.glsl-a7c70d21.js +64 -0
  30. package/dist/ColorSet-f4b34654.js +45 -0
  31. package/dist/ColorStop-1111f0fd.js +29 -0
  32. package/dist/Container-4a2d8bcd.js +521 -0
  33. package/dist/CustomParametersMixin-601866cc.js +12 -0
  34. package/dist/DefaultMaterial.glsl-9243ba6c.js +42 -0
  35. package/dist/DefaultMaterial_COLOR_GAMMA-bf0d97c7.js +653 -0
  36. package/dist/DefaultTheme-e96ad45b.js +130 -0
  37. package/dist/DeleteForwardEditsParameters-bd5164e3.js +18 -0
  38. package/dist/DimensionLayer-d51dcf5e.js +129 -0
  39. package/dist/DirectLineMeasurement3D-7b426a46.js +449 -0
  40. package/dist/DistanceMeasurement2D-1f05b105.js +303 -0
  41. package/dist/DoubleArray-4f276822.js +25 -0
  42. package/dist/Dropdown/Dropdown.core.d.ts +31 -0
  43. package/dist/Dropdown/Filter/test.mocks.d.ts +6 -0
  44. package/dist/Dropdown/List/Dropdown.List.d.ts +84 -0
  45. package/dist/Dropdown/List/test.mocks.d.ts +6 -0
  46. package/dist/EdgeProcessingWorker-317b2f9a.js +63 -0
  47. package/dist/EditBusLayer-55763028.js +107 -0
  48. package/dist/ElevationInfo-5be88917.js +56 -0
  49. package/dist/ElevationLayer-754634d4.js +129 -0
  50. package/dist/ElevationQuery-1e84df59.js +598 -0
  51. package/dist/ElevationSamplerWorker-1c01b3d8.js +62 -0
  52. package/dist/ExportImageParameters-e00a1031.js +66 -0
  53. package/dist/ExportStrategy-ba992e25.js +93 -0
  54. package/dist/ExportWMSImageParameters-395804ac.js +33 -0
  55. package/dist/External-77e767f4.js +110 -0
  56. package/dist/Faq/Faq.d.ts +1 -1
  57. package/dist/Faq/index.d.ts +1 -1
  58. package/dist/FeatureCollectionSnappingSource-d1435805.js +130 -0
  59. package/dist/FeatureCommandQueue-4db7f162.js +1244 -0
  60. package/dist/FeatureEffect-5b570804.js +39 -0
  61. package/dist/FeatureEffectLayer-171a9749.js +13 -0
  62. package/dist/FeatureFilter-db89ec09.js +27 -0
  63. package/dist/FeatureLayer-881827c7.js +693 -0
  64. package/dist/FeatureLayerBase-b410d8eb.js +148 -0
  65. package/dist/FeatureLayerSource-e5eba81e.js +444 -0
  66. package/dist/FeatureLayerView2D-107b4ed6.js +1967 -0
  67. package/dist/FeaturePipelineWorker-2b42d98d.js +3633 -0
  68. package/dist/FeatureReductionLayer-1f3f6a98.js +225 -0
  69. package/dist/FeatureReductionSelection-b0c4bcaf.js +22 -0
  70. package/dist/FeatureServiceSnappingSource-fde9a8da.js +481 -0
  71. package/dist/FeatureServiceSnappingSourceWorker-d4113c50.js +747 -0
  72. package/dist/FeatureSet-595ae550.js +188 -0
  73. package/dist/FeatureStore-87fbe804.js +131 -0
  74. package/dist/FeatureTemplate-c810cba6.js +12 -0
  75. package/dist/FeatureType-22de76b9.js +25 -0
  76. package/dist/FieldsIndex-390b005f.js +109 -0
  77. package/dist/FormTemplate-728de82d.js +350 -0
  78. package/dist/GeoJSONLayer-fbf5ee27.js +236 -0
  79. package/dist/GeoJSONSourceWorker-30cd4133.js +247 -0
  80. package/dist/GeoRSSLayer-2addf639.js +73 -0
  81. package/dist/GeoRSSLayerView2D-29c15edb.js +140 -0
  82. package/dist/GeometryUtils-80d3036a.js +403 -0
  83. package/dist/GraphicContainer-2b112072.js +26 -0
  84. package/dist/GraphicManipulator-84ac0573.js +1499 -0
  85. package/dist/GraphicsLayer-ee9f874e.js +38 -0
  86. package/dist/GraphicsLayerView2D-c5eda7d2.js +114 -0
  87. package/dist/GraphicsSnappingSource-3dd1e9b3.js +273 -0
  88. package/dist/GraphicsView2D-40686b59.js +620 -0
  89. package/dist/GroupLayer-fd168a3e.js +147 -0
  90. package/dist/GroupLayerView2D-f4078b54.js +98 -0
  91. package/dist/HUDMaterial.glsl-bea5cb7c.js +65 -0
  92. package/dist/HighlightCounter-b3b4b206.js +41 -0
  93. package/dist/HighlightGraphicContainer-c00c331b.js +18 -0
  94. package/dist/I3SBinaryReader-d3a26893.js +310 -0
  95. package/dist/I3SLayerDefinitions-2bea64c8.js +55 -0
  96. package/dist/I3SUtil-ab1a91f5.js +59 -0
  97. package/dist/IdentityManager-8e14d109.js +899 -0
  98. package/dist/ImageHistogramParameters-711f313f.js +905 -0
  99. package/dist/ImageryLayer-fbaf4d8c.js +1799 -0
  100. package/dist/ImageryLayerView2D-199eb1fd.js +352 -0
  101. package/dist/ImageryTileLayer-48671dc9.js +2157 -0
  102. package/dist/ImageryTileLayerView2D-8ac1ee64.js +1110 -0
  103. package/dist/Indices-2f9cf62d.js +67 -0
  104. package/dist/Input/Input.core.d.ts +4553 -3
  105. package/dist/Input/index.d.ts +4547 -3
  106. package/dist/IntegratedMesh3DTilesLayer-89d862a2.js +112 -0
  107. package/dist/IntegratedMeshLayer-53f792e4.js +141 -0
  108. package/dist/InteractiveAnalysisViewModel-d7dd665d.js +7397 -0
  109. package/dist/InterleavedLayout-ff67e161.js +163 -0
  110. package/dist/KMLLayer-7a4cfa2a.js +162 -0
  111. package/dist/KMLLayerView2D-d0874e8d.js +253 -0
  112. package/dist/KnowledgeGraphLayerView2D-70d956b2.js +43 -0
  113. package/dist/LRUCache-5bebd9a8.js +32 -0
  114. package/dist/LabelClass-63459c37.js +135 -0
  115. package/dist/LabelMetric-09a9cd38.js +400 -0
  116. package/dist/LaserlinePath.glsl-731dbba1.js +64 -0
  117. package/dist/Laserlines.glsl-26d42447.js +65 -0
  118. package/dist/LayerFloorInfo-5c67a822.js +15 -0
  119. package/dist/LayerView-405cecd2.js +206 -0
  120. package/dist/LercWorker-a7892aa0.js +157 -0
  121. package/dist/LineOfSightLayer-abad68f7.js +147 -0
  122. package/dist/LinkChartLayer-c36d2a81.js +1027 -0
  123. package/dist/Lyr3DWorker-8f4c6c50.js +82 -0
  124. package/dist/MagnifierPrograms-ddc85113.js +806 -0
  125. package/dist/MapImageLayer-04f4cdcb.js +169 -0
  126. package/dist/MapImageLayerView2D-712dd60f.js +146 -0
  127. package/dist/MapNotesLayer-83fcba8e.js +283 -0
  128. package/dist/MapNotesLayerView2D-f0ad0a82.js +161 -0
  129. package/dist/MapServiceLayerViewHelper-6c746a26.js +288 -0
  130. package/dist/MeasurementWidgetContent-fc0c1569.js +2642 -0
  131. package/dist/MediaLayer-05162eaf.js +523 -0
  132. package/dist/MediaLayerView2D-474c563b.js +332 -0
  133. package/dist/MemCache-8f96824a.js +227 -0
  134. package/dist/MemorySourceWorker-08562524.js +222 -0
  135. package/dist/Mesh-3208420e.js +980 -0
  136. package/dist/MeshLocalVertexSpace-59268d9e.js +19 -0
  137. package/dist/MultiOriginJSONSupport-365740bb.js +158 -0
  138. package/dist/OGCFeatureLayer-7201d1ee.js +211 -0
  139. package/dist/OGCFeatureLayerView2D-d242f130.js +82 -0
  140. package/dist/ObjectStack-bad354ab.js +21 -0
  141. package/dist/Octree-cbaefa65.js +495 -0
  142. package/dist/OpenStreetMapLayer-b3c8020b.js +30 -0
  143. package/dist/OperationalLayer-30f48d16.js +44 -0
  144. package/dist/OrderByInfo-9bd0a8fe.js +16 -0
  145. package/dist/OrderedLayer-2962d196.js +26 -0
  146. package/dist/OrientedImageryLayer-5d599e15.js +216 -0
  147. package/dist/OverlayCompositing.glsl-334c68d5.js +65 -0
  148. package/dist/OverrideHelper-7981ecc2.js +242 -0
  149. package/dist/PBFDecoderWorker-48f7e620.js +213 -0
  150. package/dist/PointCloudLayer-5b804571.js +197 -0
  151. package/dist/PointCloudUniqueValueRenderer-9ef1db42.js +115 -0
  152. package/dist/PointCloudWorker-9e88daea.js +212 -0
  153. package/dist/PooledRBush-afceba5f.js +272 -0
  154. package/dist/Popup-89e3fd56.js +3990 -0
  155. package/dist/PortalLayer-21d22eb9.js +126 -0
  156. package/dist/Program-09ee8c67.js +694 -0
  157. package/dist/ProgramTemplate-be811b23.js +35 -0
  158. package/dist/ProgressBar/ProgressBar.d.ts +13 -1
  159. package/dist/QueryEngine-810a7f24.js +896 -0
  160. package/dist/QueryTask-013cc810.js +119 -0
  161. package/dist/RasterSymbolizer-ae063ee7.js +3024 -0
  162. package/dist/RasterVFDisplayObject-fe2f7ea2.js +581 -0
  163. package/dist/RasterWorker-7efcbd4d.js +78 -0
  164. package/dist/RawBlockCache-5a644219.js +185 -0
  165. package/dist/RealisticTree.glsl-4e33ae57.js +42 -0
  166. package/dist/RefreshableLayer-e64dd0ee.js +80 -0
  167. package/dist/RefreshableLayerView-61f7dd9a.js +16 -0
  168. package/dist/Relationship-adcdce15.js +64 -0
  169. package/dist/RelationshipQuery-0c20b8ed.js +22 -0
  170. package/dist/RenderingContext-29b578ca.js +889 -0
  171. package/dist/RibbonLine.glsl-038f5cac.js +65 -0
  172. package/dist/RouteLayer-479e0ccc.js +786 -0
  173. package/dist/RouteLayerView2D-1a646f54.js +195 -0
  174. package/dist/SDFHelper-9abcbcca.js +140 -0
  175. package/dist/SSAO.glsl-5d41f99f.js +43 -0
  176. package/dist/SSAOBlur.glsl-7ebf8f5c.js +42 -0
  177. package/dist/ScaleRangeLayer-3bbd6ead.js +21 -0
  178. package/dist/SceneLayer-b19fa11e.js +542 -0
  179. package/dist/SceneLayerSnappingSource-f53ddd8a.js +218 -0
  180. package/dist/SceneLayerSnappingSourceWorker-80f48214.js +112 -0
  181. package/dist/SceneLayerWorker-bab8aeb0.js +164 -0
  182. package/dist/SceneService-0c4fac79.js +215 -0
  183. package/dist/Scheduler-9db9a8cf.js +373 -0
  184. package/dist/Search/Search.d.ts +99 -0
  185. package/dist/Search/index.d.ts +1 -0
  186. package/dist/Search/test.mocks.d.ts +3 -0
  187. package/dist/Search/utils.d.ts +3 -0
  188. package/dist/Select/Item/Item.d.ts +1 -1
  189. package/dist/Select/Multiple/Select.multiple.d.ts +3 -3
  190. package/dist/Select/Select.core.d.ts +1 -1
  191. package/dist/Select/index.d.ts +3 -3
  192. package/dist/ShadedColorMaterial.glsl-a2dd0bb3.js +64 -0
  193. package/dist/SnappingOperation-25ff52da.js +48 -0
  194. package/dist/SourceLayerData-ec301fa4.js +116 -0
  195. package/dist/SpatialFilter-351a1d5e.js +1701 -0
  196. package/dist/Stop-595501a7.js +281 -0
  197. package/dist/StreamLayer-d5ebd4d3.js +188 -0
  198. package/dist/StreamLayerView2D-8a39daaa.js +164 -0
  199. package/dist/StyleRepository-dd283243.js +2212 -0
  200. package/dist/SublayersOwner-0be88fd0.js +545 -0
  201. package/dist/SubtypeGroupLayer-8386c037.js +514 -0
  202. package/dist/SubtypeGroupLayerView2D-97b63aa1.js +84 -0
  203. package/dist/Tabs/Tab/Tab.d.ts +3 -3
  204. package/dist/Tag/Tag.d.ts +52 -0
  205. package/dist/TechniqueInstance-87f77cd3.js +233 -0
  206. package/dist/TemporalLayer-7c15b8a6.js +23 -0
  207. package/dist/Texture-c1f5f21b.js +501 -0
  208. package/dist/TextureOnly.glsl-acae1d94.js +65 -0
  209. package/dist/Theme-72a69427.js +3426 -0
  210. package/dist/Tick-d7f9b999.js +723 -0
  211. package/dist/TileContainer-20f11bc5.js +31 -0
  212. package/dist/TileInfoTilemapCache-a50aaed0.js +38 -0
  213. package/dist/TileLayer-ce04649f.js +194 -0
  214. package/dist/TileLayerView2D-0f45ff75.js +187 -0
  215. package/dist/TilemapCache-95b53d5a.js +189 -0
  216. package/dist/TimeInfo-f17e0ff9.js +42 -0
  217. package/dist/TimeOnly-63922f1a.js +706 -0
  218. package/dist/Tooltip-a21a6650.js +138 -0
  219. package/dist/TopFeaturesQuery-9e4228e7.js +32 -0
  220. package/dist/TurboLine-aeb14d6e.js +565 -0
  221. package/dist/UniqueValueRenderer-7532473e.js +1039 -0
  222. package/dist/UnknownLayer-99d4832b.js +30 -0
  223. package/dist/UnknownTimeZone-4c0a5184.js +15 -0
  224. package/dist/UnsupportedLayer-f439265c.js +31 -0
  225. package/dist/UpdateTracking2D-a1164b3d.js +8566 -0
  226. package/dist/Upload/Upload.d.ts +91 -14
  227. package/dist/Upload/index.d.ts +1 -1
  228. package/dist/Util-26f81cc4.js +57 -0
  229. package/dist/VectorTileLayer-8b5289d2.js +544 -0
  230. package/dist/VectorTileLayerView2D-00d98337.js +2108 -0
  231. package/dist/Version-2556ea28.js +33 -0
  232. package/dist/VertexArrayObject-5595c535.js +73 -0
  233. package/dist/VertexColor.glsl-01eb58bb.js +2683 -0
  234. package/dist/VertexSnappingCandidate-c1e2992a.js +13 -0
  235. package/dist/VideoLayerView2D-e92c8bab.js +124 -0
  236. package/dist/VoxelLayer-e57c2b7b.js +631 -0
  237. package/dist/WFSLayer-486fff2e.js +221 -0
  238. package/dist/WFSSourceWorker-3d8ac573.js +157 -0
  239. package/dist/WGLContainer-1441483b.js +5426 -0
  240. package/dist/WMSLayer-07ea95cc.js +536 -0
  241. package/dist/WMSLayerView2D-8b67d5da.js +117 -0
  242. package/dist/WMTSLayer-b52fbe0c.js +531 -0
  243. package/dist/WMTSLayerView2D-8ca1d522.js +142 -0
  244. package/dist/WebTileLayer-dd24dee2.js +110 -0
  245. package/dist/WhereClause-2eefa48c.js +2766 -0
  246. package/dist/WorkerHandle-f6b5ac7b.js +47 -0
  247. package/dist/WorkerTileHandler-e060fab5.js +1539 -0
  248. package/dist/action-a2d13907.js +198 -0
  249. package/dist/action-group-af071314.js +145 -0
  250. package/dist/action-menu-c759068f.js +1759 -0
  251. package/dist/apng-b33ce902.js +392 -0
  252. package/dist/arcade-b05c8c22.js +229 -0
  253. package/dist/arcadeAsyncRuntime-9b4a7891.js +943 -0
  254. package/dist/arcadeUtils-41691d12.js +8741 -0
  255. package/dist/arcgis-knowledge-client-core-2217ce57.js +1218 -0
  256. package/dist/arcgis-knowledge-client-core-simd-ab44590a.js +1218 -0
  257. package/dist/arcgisLayers-0ea0be85.js +152 -0
  258. package/dist/associatedFeatureServiceUtils-09077513.js +92 -0
  259. package/dist/axisAngleDegrees-1c3d7520.js +49 -0
  260. package/dist/basis_transcoder-292f1aaf.js +1248 -0
  261. package/dist/calcite-action-ad0d1e23.js +22 -0
  262. package/dist/calcite-action-bar-1b2de6d0.js +303 -0
  263. package/dist/calcite-action-group-aacf8ec4.js +28 -0
  264. package/dist/calcite-button-125cbd95.js +228 -0
  265. package/dist/calcite-flow-c9a6e8fa.js +128 -0
  266. package/dist/calcite-flow-item-eb314bb8.js +499 -0
  267. package/dist/calcite-icon-07f22bc6.js +16 -0
  268. package/dist/calcite-input-167be799.js +24 -0
  269. package/dist/calcite-label-7de34a6b.js +79 -0
  270. package/dist/calcite-list-2087f9ca.js +2135 -0
  271. package/dist/calcite-list-item-3419fb5f.js +576 -0
  272. package/dist/calcite-list-item-group-3a6545e3.js +71 -0
  273. package/dist/calcite-loader-16bcfb95.js +14 -0
  274. package/dist/calcite-modal-f608731f.js +333 -0
  275. package/dist/calcite-notice-88ee1edf.js +181 -0
  276. package/dist/calcite-option-375585a2.js +94 -0
  277. package/dist/calcite-scrim-751cf767.js +18 -0
  278. package/dist/calcite-select-62db97da.js +231 -0
  279. package/dist/capabilities-359df394.js +50 -0
  280. package/dist/chartCommon-cceb2530.js +256 -0
  281. package/dist/chartUtilsAm5-08a29408.js +2954 -0
  282. package/dist/clientSideDefaults-b5450c9b.js +39 -0
  283. package/dist/colorRamps-314c4b5a.js +38 -0
  284. package/dist/colorUtils-6e9b620c.js +164 -0
  285. package/dist/commonProperties-3399f319.js +60 -0
  286. package/dist/computeTranslationToOriginAndRotation-0b0f32ad.js +60 -0
  287. package/dist/conditionalSlot-012fd5da.js +27 -0
  288. package/dist/createConnection-f1189f51.js +299 -0
  289. package/dist/dataUtils-950a0ae9.js +1421 -0
  290. package/dist/deduplicate-eabb5f9e.js +89 -0
  291. package/dist/defaults-e5c5ee75.js +31 -0
  292. package/dist/deleteForwardEdits-ea9258ea.js +13 -0
  293. package/dist/diffUtils-04a71a59.js +90 -0
  294. package/dist/drapedUtils-2515520d.js +75 -0
  295. package/dist/earcut-192842ab.js +292 -0
  296. package/dist/edgeProcessing-da003f69.js +252 -0
  297. package/dist/editingSupport-9f04ba1b.js +203 -0
  298. package/dist/editsZScale-97938687.js +37 -0
  299. package/dist/elevationInfoUtils-e1edd62e.js +126 -0
  300. package/dist/executeForIds-3b8a1698.js +14 -0
  301. package/dist/executeForTopCount-6c6cd2f2.js +17 -0
  302. package/dist/executeForTopExtents-86851593.js +17 -0
  303. package/dist/executeForTopIds-24bc9dea.js +17 -0
  304. package/dist/executeQueryJSON-cf7d748b.js +15 -0
  305. package/dist/executeQueryPBF-ad416846.js +152 -0
  306. package/dist/executeRelationshipQuery-9b6666bf.js +53 -0
  307. package/dist/executeTopFeaturesQuery-4ac72bd2.js +18 -0
  308. package/dist/featureConversionUtils-67a121da.js +479 -0
  309. package/dist/featureLayerUtils-a4002773.js +142 -0
  310. package/dist/featureLayerUtils-a7e985d2.js +250 -0
  311. package/dist/featureSetUtils-11fcb3c4.js +2530 -0
  312. package/dist/featuresetbase-47894167.js +707 -0
  313. package/dist/featuresetgeom-bff2aa07.js +99 -0
  314. package/dist/featuresetstats-14a3fe2b.js +81 -0
  315. package/dist/featuresetstring-de2b64db.js +95 -0
  316. package/dist/fetchService-b6d76f5e.js +33 -0
  317. package/dist/fieldProperties-a9fbe289.js +33 -0
  318. package/dist/floatRGBA-2bc6800c.js +20 -0
  319. package/dist/form-e210eee8.js +138 -0
  320. package/dist/geohashUtils-085312a3.js +85 -0
  321. package/dist/geojson-f0bc401a.js +208 -0
  322. package/dist/geomasync-3c3b5e8d.js +567 -0
  323. package/dist/geometryEngine-2772790a.js +192 -0
  324. package/dist/geometryEngineAsync-db2e5674.js +217 -0
  325. package/dist/geometryEngineBase-8b327072.js +18463 -0
  326. package/dist/geometryEngineJSON-95268e88.js +171 -0
  327. package/dist/geometryEngineJSON-fc48a48b.js +46 -0
  328. package/dist/geometryEngineWorker-2fbc65f7.js +11 -0
  329. package/dist/geometryServiceUtils-ed9cb722.js +28 -0
  330. package/dist/georeference-f6f67e9b.js +291 -0
  331. package/dist/gif-a4043534.js +323 -0
  332. package/dist/gltfexport-d028c5c9.js +705 -0
  333. package/dist/groupLayerUtils-22dde377.js +39 -0
  334. package/dist/heatmapUtils-8e578a0a.js +45 -0
  335. package/dist/highlightReasons-ab23926f.js +19 -0
  336. package/dist/hydrated-219f2b0c.js +40 -0
  337. package/dist/i3s-b5ed4851.js +809 -0
  338. package/dist/icon-8711ff33.js +127 -0
  339. package/dist/imageBitmapUtils-dc97b3de.js +23 -0
  340. package/dist/imageUtils-0a71062a.js +69 -0
  341. package/dist/imageUtils-a4c7c9bf.js +89 -0
  342. package/dist/imageryUtils-d21fd540.js +43 -0
  343. package/dist/index-f28919b2.js +43440 -0
  344. package/dist/index.d.ts +3 -0
  345. package/dist/index.js +15 -12
  346. package/dist/input-message-3df877b9.js +92 -0
  347. package/dist/input2-32e36924.js +575 -0
  348. package/dist/interactive-c1e1aeaf.js +80 -0
  349. package/dist/jsonContext-4622e179.js +15 -0
  350. package/dist/jsonUtils-9f58b7bb.js +476 -0
  351. package/dist/jsonUtils-d9bb6102.js +86 -0
  352. package/dist/jsonUtils-e40213c1.js +59 -0
  353. package/dist/kmlUtils-5f8f6cf6.js +112 -0
  354. package/dist/knowledgeGraphService-a34bf3b0.js +739 -0
  355. package/dist/knowledgegraph-68124c78.js +149 -0
  356. package/dist/labelUtils-3a1386e4.js +61 -0
  357. package/dist/labelingInfo-69c9f8f4.js +46 -0
  358. package/dist/layersCreator-5e6fe7f2.js +151 -0
  359. package/dist/layersLoader-f96735c7.js +197 -0
  360. package/dist/lazyLayerLoader-142515c4.js +10 -0
  361. package/dist/lclayout-639ec791.js +773 -0
  362. package/dist/lengthUtils-8796ccf3.js +5 -0
  363. package/dist/lerc-wasm-acb341bd.js +325 -0
  364. package/dist/libtess-a9e7192e.js +269 -0
  365. package/dist/libtess-asm-8de2fb72.js +3673 -0
  366. package/dist/lineSegment-2790f546.js +76 -0
  367. package/dist/loadGLTFMesh-33064e6d.js +181 -0
  368. package/dist/loadable-4558719f.js +24 -0
  369. package/dist/loader-4dbc522d.js +79 -0
  370. package/dist/lyr3DWorker-3365d66f.js +2108 -0
  371. package/dist/mapViewDeps-67ec1d27.js +3052 -0
  372. package/dist/mediaLayerUtils-612838fb.js +35 -0
  373. package/dist/meshFeatureSet-07b96756.js +126 -0
  374. package/dist/meshVertexSpaceUtils-673c2055.js +58 -0
  375. package/dist/multidimensionalUtils-79cc2536.js +290 -0
  376. package/dist/normalizeUtilsSync-9fd98ab4.js +181 -0
  377. package/dist/number-110986f5.js +128 -0
  378. package/dist/objectResourceUtils-1b8d1c03.js +1455 -0
  379. package/dist/observers-507c19a0.js +30 -0
  380. package/dist/ogcFeatureUtils-3c65f06a.js +206 -0
  381. package/dist/openCloseComponent-89dc4d35.js +37 -0
  382. package/dist/orientedBoundingBox-46d44acf.js +447 -0
  383. package/dist/parser-8f715684.js +488 -0
  384. package/dist/pbf-4ce99129.js +215 -0
  385. package/dist/pbfQueryUtils-23cca540.js +422 -0
  386. package/dist/pe-wasm-d186391a.js +887 -0
  387. package/dist/persistable-09062510.js +89 -0
  388. package/dist/perspectiveUtils-9da629d6.js +42 -0
  389. package/dist/pieChart-92709a5c.js +555 -0
  390. package/dist/plane-2b39f8eb.js +160 -0
  391. package/dist/popupUtils-dc099446.js +22 -0
  392. package/dist/popupUtils-e53c5c04.js +50 -0
  393. package/dist/portalItemUtils-39079445.js +57 -0
  394. package/dist/portalLayers-efcd5403.js +312 -0
  395. package/dist/portalUtils-44b1ac04.js +7 -0
  396. package/dist/programUtils-c22a40e2.js +59 -0
  397. package/dist/project-4759dc23.js +21 -0
  398. package/dist/projectPointToVector-1d9098bc.js +14 -0
  399. package/dist/projectVectorToVector-add01592.js +13 -0
  400. package/dist/quantityUtils-afe6e5b7.js +33 -0
  401. package/dist/quantizationUtils-51d3a038.js +68 -0
  402. package/dist/quat-22f56b72.js +104 -0
  403. package/dist/query-8cf3e12b.js +89 -0
  404. package/dist/queryAttachments-0a63ea2f.js +39 -0
  405. package/dist/queryEngineUtils-a1db57f0.js +21 -0
  406. package/dist/queryTopFeatures-b4fb05ad.js +50 -0
  407. package/dist/queryZScale-112cd8e3.js +12 -0
  408. package/dist/rasterProjectionHelper-3ae0fcfd.js +577 -0
  409. package/dist/rasterUtils-6868b6b6.js +122 -0
  410. package/dist/rasterizingUtils-922f43e7.js +46 -0
  411. package/dist/request-fd620c13.js +46 -0
  412. package/dist/requestImageUtils-f8f50ad7.js +8 -0
  413. package/dist/resourceExtension-f0327971.js +17 -0
  414. package/dist/resourceUtils-2e33090d.js +69 -0
  415. package/dist/resourceUtils-db0d7e83.js +42 -0
  416. package/dist/resourceUtils-ff5eafc3.js +62 -0
  417. package/dist/saveAPIKeyUtils-32bb955d.js +8 -0
  418. package/dist/saveUtils-d4ad8f94.js +24 -0
  419. package/dist/scaleUtils-a3ce8cc6.js +23 -0
  420. package/dist/scrim-7ef1cdf5.js +114 -0
  421. package/dist/serviceCapabilitiesUtils-cafdd4bc.js +64 -0
  422. package/dist/sourceUtils-1a30f8aa.js +71 -0
  423. package/dist/sphere-84d1e36b.js +199 -0
  424. package/dist/statsWorker-efb7a41b.js +37 -0
  425. package/dist/streamLayerUtils-4c5b417e.js +31 -0
  426. package/dist/style.css +1 -1
  427. package/dist/styleUtils-8f0e3848.js +75 -0
  428. package/dist/styleUtils-a61894cc.js +14 -0
  429. package/dist/sublayerUtils-aaa67481.js +37 -0
  430. package/dist/substitute-7b4a925f.js +52 -0
  431. package/dist/symbolColorUtils-45615b74.js +8 -0
  432. package/dist/symbolLayerUtils-6ee325f3.js +31 -0
  433. package/dist/symbologySnappingCandidates-a56c7bbb.js +221 -0
  434. package/dist/t9n-b5ab99e4.js +349 -0
  435. package/dist/testSVGPremultipliedAlpha-a89a8569.js +94 -0
  436. package/dist/timeSupport-76d5ec0e.js +410 -0
  437. package/dist/triangle-95e355d3.js +98 -0
  438. package/dist/unitConversionUtils-b0c2c156.js +17 -0
  439. package/dist/unitFormatUtils-b79fea5c.js +40 -0
  440. package/dist/uploadAssetErrors-7ef907ce.js +70 -0
  441. package/dist/uploadAssets-99a2ec95.js +330 -0
  442. package/dist/utils-0da4a164.js +419 -0
  443. package/dist/utils-0e163cdb.js +433 -0
  444. package/dist/utils-421c60f9.js +73 -0
  445. package/dist/utils-6e4fc34d.js +91 -0
  446. package/dist/utils-9612bce6.js +34 -0
  447. package/dist/utils-99bb2971.js +2746 -0
  448. package/dist/utils-d1f92cf8.js +79 -0
  449. package/dist/utils-e30b7de3.js +232 -0
  450. package/dist/utils3-41d8e55d.js +75 -0
  451. package/dist/vec3-ab2339d6.js +81 -0
  452. package/dist/vec42-1a7bd7a6.js +125 -0
  453. package/dist/versionUtils-b6c13869.js +161 -0
  454. package/dist/visualVariableUtils-1a38c540.js +267 -0
  455. package/dist/webStyleSymbolUtils-6f89a405.js +48 -0
  456. package/dist/webglDeps-dcb6738a.js +23 -0
  457. package/dist/wfsUtils-d679c9b9.js +343 -0
  458. package/dist/workerHelper-8fb7376f.js +11 -0
  459. package/dist/xyChart-b3c4e27e.js +3335 -0
  460. package/package.json +1 -1
  461. package/dist/AGraphicContainer-98a4c8a4.js +0 -109
  462. package/dist/APIKeyMixin-9511e0a5.js +0 -19
  463. package/dist/Analysis-4b1d1fb5.js +0 -31
  464. package/dist/ArcGISCachedService-93e2cb27.js +0 -47
  465. package/dist/ArcGISService-3f8d89c1.js +0 -25
  466. package/dist/AreaMeasurement2D-e0bb230c.js +0 -405
  467. package/dist/AreaMeasurement3D-a9959ecf.js +0 -488
  468. package/dist/AttachmentInfo-601c56e2.js +0 -34
  469. package/dist/AttachmentQuery-3504d550.js +0 -18
  470. package/dist/AttributeStore-b90878e3.js +0 -1707
  471. package/dist/BaseDynamicLayerView2D-b2faf028.js +0 -63
  472. package/dist/BingMapsLayer-5d79fe2b.js +0 -112
  473. package/dist/Bitmap-f775c851.js +0 -128
  474. package/dist/BitmapContainer-af5942b8.js +0 -23
  475. package/dist/BlendLayer-a792edf6.js +0 -13
  476. package/dist/BoundsStore-789624df.js +0 -63
  477. package/dist/BufferObject-cbd0168e.js +0 -100
  478. package/dist/BufferView-004ad517.js +0 -683
  479. package/dist/BuildingSceneLayer-25bc760b.js +0 -535
  480. package/dist/Button-70963624.js +0 -36
  481. package/dist/CSVLayer-fd3b6750.js +0 -208
  482. package/dist/CSVSourceWorker-eb24cd85.js +0 -367
  483. package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +0 -66
  484. package/dist/CatalogFootprintLayerView2D-6eb16597.js +0 -76
  485. package/dist/CatalogLayer-1cc632fe.js +0 -262
  486. package/dist/CatalogLayerView2D-d143aa34.js +0 -52
  487. package/dist/ClassBreaksDefinition-07ba0c64.js +0 -18
  488. package/dist/ColorMaterial.glsl-e7801766.js +0 -64
  489. package/dist/ColorSet-df5696b5.js +0 -45
  490. package/dist/ColorStop-7187f368.js +0 -29
  491. package/dist/Container-ac97765a.js +0 -521
  492. package/dist/CustomParametersMixin-b3432b3e.js +0 -12
  493. package/dist/DefaultMaterial.glsl-3cc4efe7.js +0 -42
  494. package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +0 -653
  495. package/dist/DefaultTheme-12dffc66.js +0 -130
  496. package/dist/DeleteForwardEditsParameters-ae76d898.js +0 -18
  497. package/dist/DimensionLayer-9eb47c76.js +0 -129
  498. package/dist/DirectLineMeasurement3D-e9903136.js +0 -449
  499. package/dist/DistanceMeasurement2D-a4853462.js +0 -303
  500. package/dist/DoubleArray-5076283e.js +0 -25
  501. package/dist/EdgeProcessingWorker-c1783ddd.js +0 -63
  502. package/dist/EditBusLayer-e812f4c9.js +0 -107
  503. package/dist/ElevationInfo-fad03d5e.js +0 -56
  504. package/dist/ElevationLayer-397792d5.js +0 -129
  505. package/dist/ElevationQuery-beceb62f.js +0 -598
  506. package/dist/ElevationSamplerWorker-0048a204.js +0 -62
  507. package/dist/ExportImageParameters-c6c4bc61.js +0 -66
  508. package/dist/ExportStrategy-908f5b8d.js +0 -93
  509. package/dist/ExportWMSImageParameters-34da6b46.js +0 -33
  510. package/dist/External-14daf0c1.js +0 -110
  511. package/dist/FeatureCollectionSnappingSource-f97a1829.js +0 -130
  512. package/dist/FeatureCommandQueue-d4817eac.js +0 -1244
  513. package/dist/FeatureEffect-08976bbd.js +0 -39
  514. package/dist/FeatureEffectLayer-05c258f4.js +0 -13
  515. package/dist/FeatureFilter-8c5e44b1.js +0 -27
  516. package/dist/FeatureLayer-d3659466.js +0 -693
  517. package/dist/FeatureLayerBase-9b63f732.js +0 -148
  518. package/dist/FeatureLayerSource-960f1c01.js +0 -444
  519. package/dist/FeatureLayerView2D-7503e1ed.js +0 -1967
  520. package/dist/FeaturePipelineWorker-d4301d2a.js +0 -3633
  521. package/dist/FeatureReductionLayer-e6cf73ac.js +0 -225
  522. package/dist/FeatureReductionSelection-d90249a7.js +0 -22
  523. package/dist/FeatureServiceSnappingSource-9e49ca72.js +0 -481
  524. package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +0 -747
  525. package/dist/FeatureSet-d79f0e48.js +0 -188
  526. package/dist/FeatureStore-eb4b87c0.js +0 -131
  527. package/dist/FeatureTemplate-edb1b782.js +0 -12
  528. package/dist/FeatureType-bba29adb.js +0 -25
  529. package/dist/FieldsIndex-75cca4d0.js +0 -109
  530. package/dist/FormTemplate-22911c47.js +0 -350
  531. package/dist/GeoJSONLayer-b33c96b8.js +0 -236
  532. package/dist/GeoJSONSourceWorker-b04ff552.js +0 -247
  533. package/dist/GeoRSSLayer-6e5fcd0e.js +0 -73
  534. package/dist/GeoRSSLayerView2D-21b6b12e.js +0 -140
  535. package/dist/GeometryUtils-fa897cbd.js +0 -403
  536. package/dist/GraphicContainer-1fd6bfce.js +0 -26
  537. package/dist/GraphicManipulator-f3b7dc9b.js +0 -1499
  538. package/dist/GraphicsLayer-e0686779.js +0 -38
  539. package/dist/GraphicsLayerView2D-a7eba2fe.js +0 -114
  540. package/dist/GraphicsSnappingSource-594f402a.js +0 -273
  541. package/dist/GraphicsView2D-347562b8.js +0 -620
  542. package/dist/GroupLayer-7ae0a916.js +0 -147
  543. package/dist/GroupLayerView2D-ffcde606.js +0 -98
  544. package/dist/HUDMaterial.glsl-b0a3e0ce.js +0 -65
  545. package/dist/HighlightCounter-e18f0179.js +0 -41
  546. package/dist/HighlightGraphicContainer-fd774cea.js +0 -18
  547. package/dist/I3SBinaryReader-190e99de.js +0 -310
  548. package/dist/I3SLayerDefinitions-6ddaca60.js +0 -55
  549. package/dist/I3SUtil-44b83dc0.js +0 -59
  550. package/dist/IdentityManager-fbe91c13.js +0 -899
  551. package/dist/ImageHistogramParameters-d64fd9c8.js +0 -905
  552. package/dist/ImageryLayer-67878a78.js +0 -1799
  553. package/dist/ImageryLayerView2D-ae45faba.js +0 -352
  554. package/dist/ImageryTileLayer-9dca8b93.js +0 -2157
  555. package/dist/ImageryTileLayerView2D-977f66aa.js +0 -1110
  556. package/dist/Indices-e6dc3b15.js +0 -67
  557. package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +0 -112
  558. package/dist/IntegratedMeshLayer-9162c0b5.js +0 -141
  559. package/dist/InteractiveAnalysisViewModel-b046fcb9.js +0 -7397
  560. package/dist/InterleavedLayout-32973c8a.js +0 -163
  561. package/dist/KMLLayer-80f81df7.js +0 -162
  562. package/dist/KMLLayerView2D-b6ba3b80.js +0 -253
  563. package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +0 -43
  564. package/dist/LRUCache-27e8c401.js +0 -32
  565. package/dist/LabelClass-d9a476d6.js +0 -135
  566. package/dist/LabelMetric-e2728bbf.js +0 -400
  567. package/dist/LaserlinePath.glsl-60d00e61.js +0 -64
  568. package/dist/Laserlines.glsl-499a6cbf.js +0 -65
  569. package/dist/LayerFloorInfo-d05cf9dd.js +0 -15
  570. package/dist/LayerView-036988a9.js +0 -206
  571. package/dist/LercWorker-b1b4bb47.js +0 -157
  572. package/dist/LineOfSightLayer-9a9a60b7.js +0 -147
  573. package/dist/LinkChartLayer-d61803bb.js +0 -1027
  574. package/dist/Lyr3DWorker-87be14e0.js +0 -82
  575. package/dist/MagnifierPrograms-da7a27ab.js +0 -806
  576. package/dist/MapImageLayer-f07adf1a.js +0 -169
  577. package/dist/MapImageLayerView2D-d1b140c3.js +0 -146
  578. package/dist/MapNotesLayer-c662d147.js +0 -283
  579. package/dist/MapNotesLayerView2D-bf9ac698.js +0 -161
  580. package/dist/MapServiceLayerViewHelper-fb724de9.js +0 -288
  581. package/dist/MeasurementWidgetContent-e4888ef2.js +0 -2642
  582. package/dist/MediaLayer-36d873a3.js +0 -523
  583. package/dist/MediaLayerView2D-e58b8ec0.js +0 -332
  584. package/dist/MemCache-a9232ec2.js +0 -227
  585. package/dist/MemorySourceWorker-20ff27d6.js +0 -222
  586. package/dist/Mesh-3839826a.js +0 -980
  587. package/dist/MeshLocalVertexSpace-00151564.js +0 -19
  588. package/dist/MultiOriginJSONSupport-bb258670.js +0 -158
  589. package/dist/OGCFeatureLayer-2a8b7ecc.js +0 -211
  590. package/dist/OGCFeatureLayerView2D-185f9649.js +0 -82
  591. package/dist/ObjectStack-10d91171.js +0 -21
  592. package/dist/Octree-78797046.js +0 -495
  593. package/dist/OpenStreetMapLayer-b0a17790.js +0 -30
  594. package/dist/OperationalLayer-55af27d6.js +0 -44
  595. package/dist/OrderByInfo-22e3c805.js +0 -16
  596. package/dist/OrderedLayer-1403a591.js +0 -26
  597. package/dist/OrientedImageryLayer-8ec8d7d1.js +0 -216
  598. package/dist/OverlayCompositing.glsl-ba3bd81d.js +0 -65
  599. package/dist/OverrideHelper-82325a2c.js +0 -242
  600. package/dist/PBFDecoderWorker-f6517afc.js +0 -213
  601. package/dist/PointCloudLayer-cff43a10.js +0 -197
  602. package/dist/PointCloudUniqueValueRenderer-f337a895.js +0 -115
  603. package/dist/PointCloudWorker-cdb28dc1.js +0 -212
  604. package/dist/PooledRBush-ee4e60af.js +0 -272
  605. package/dist/Popup-c7f55588.js +0 -3990
  606. package/dist/PortalLayer-07b3c53e.js +0 -126
  607. package/dist/Program-ba2f18b2.js +0 -694
  608. package/dist/ProgramTemplate-eee4f097.js +0 -35
  609. package/dist/QueryEngine-10c97624.js +0 -896
  610. package/dist/QueryTask-115430b6.js +0 -119
  611. package/dist/RasterSymbolizer-fbf433fe.js +0 -3024
  612. package/dist/RasterVFDisplayObject-20b0dd86.js +0 -581
  613. package/dist/RasterWorker-44c37e20.js +0 -78
  614. package/dist/RawBlockCache-25203dbd.js +0 -185
  615. package/dist/RealisticTree.glsl-bc07c4dc.js +0 -42
  616. package/dist/RefreshableLayer-9550b85a.js +0 -80
  617. package/dist/RefreshableLayerView-601f7038.js +0 -16
  618. package/dist/Relationship-c662830e.js +0 -64
  619. package/dist/RelationshipQuery-765f068e.js +0 -22
  620. package/dist/RenderingContext-3db74548.js +0 -889
  621. package/dist/RibbonLine.glsl-c6a715b7.js +0 -65
  622. package/dist/RouteLayer-3f5411f3.js +0 -786
  623. package/dist/RouteLayerView2D-a5fd4cbf.js +0 -195
  624. package/dist/SDFHelper-a34e90ee.js +0 -140
  625. package/dist/SSAO.glsl-5491a708.js +0 -43
  626. package/dist/SSAOBlur.glsl-f3068b8e.js +0 -42
  627. package/dist/ScaleRangeLayer-7ddf00b4.js +0 -21
  628. package/dist/SceneLayer-c594bfc3.js +0 -542
  629. package/dist/SceneLayerSnappingSource-a0504ac7.js +0 -218
  630. package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +0 -112
  631. package/dist/SceneLayerWorker-1865768e.js +0 -164
  632. package/dist/SceneService-fb9f0142.js +0 -215
  633. package/dist/Scheduler-eacc84bb.js +0 -373
  634. package/dist/ShadedColorMaterial.glsl-db97956b.js +0 -64
  635. package/dist/SnappingOperation-9622a00d.js +0 -48
  636. package/dist/SourceLayerData-7016f1a5.js +0 -116
  637. package/dist/SpatialFilter-d20d4f50.js +0 -1701
  638. package/dist/Stop-68022e32.js +0 -281
  639. package/dist/StreamLayer-7c837e3d.js +0 -188
  640. package/dist/StreamLayerView2D-586f5a6a.js +0 -164
  641. package/dist/StyleRepository-fba75e70.js +0 -2212
  642. package/dist/SublayersOwner-3dc574cd.js +0 -545
  643. package/dist/SubtypeGroupLayer-1f9c5398.js +0 -514
  644. package/dist/SubtypeGroupLayerView2D-0f108d9d.js +0 -84
  645. package/dist/TechniqueInstance-0481dbff.js +0 -233
  646. package/dist/TemporalLayer-8116b4a4.js +0 -23
  647. package/dist/Texture-22a8cca5.js +0 -501
  648. package/dist/TextureOnly.glsl-458f8148.js +0 -65
  649. package/dist/Theme-f05b8eb0.js +0 -3426
  650. package/dist/Tick-aef93b48.js +0 -723
  651. package/dist/TileContainer-0bf0ea1b.js +0 -31
  652. package/dist/TileInfoTilemapCache-d78858c0.js +0 -38
  653. package/dist/TileLayer-0edee064.js +0 -194
  654. package/dist/TileLayerView2D-78d5801b.js +0 -187
  655. package/dist/TilemapCache-79699d61.js +0 -189
  656. package/dist/TimeInfo-40c96ade.js +0 -42
  657. package/dist/TimeOnly-9ee66ca6.js +0 -706
  658. package/dist/Tooltip-e7498dc9.js +0 -138
  659. package/dist/TopFeaturesQuery-ad224e01.js +0 -32
  660. package/dist/TurboLine-6ab04aef.js +0 -565
  661. package/dist/UniqueValueRenderer-eaa5f8a6.js +0 -1039
  662. package/dist/UnknownLayer-e280ddd4.js +0 -30
  663. package/dist/UnknownTimeZone-220952b5.js +0 -15
  664. package/dist/UnsupportedLayer-447f7676.js +0 -31
  665. package/dist/UpdateTracking2D-e9adad8f.js +0 -8566
  666. package/dist/Util-002f5109.js +0 -57
  667. package/dist/VectorTileLayer-3210be81.js +0 -544
  668. package/dist/VectorTileLayerView2D-6a51e3b8.js +0 -2108
  669. package/dist/Version-3de8cbca.js +0 -33
  670. package/dist/VertexArrayObject-07998745.js +0 -73
  671. package/dist/VertexColor.glsl-e415cf02.js +0 -2683
  672. package/dist/VertexSnappingCandidate-b676241f.js +0 -13
  673. package/dist/VideoLayerView2D-f659dd0d.js +0 -124
  674. package/dist/VoxelLayer-003f82ff.js +0 -631
  675. package/dist/WFSLayer-3da6c5f7.js +0 -221
  676. package/dist/WFSSourceWorker-9a11693a.js +0 -157
  677. package/dist/WGLContainer-3d159b63.js +0 -5426
  678. package/dist/WMSLayer-fc0632f8.js +0 -536
  679. package/dist/WMSLayerView2D-54e80e1b.js +0 -117
  680. package/dist/WMTSLayer-9324b12b.js +0 -531
  681. package/dist/WMTSLayerView2D-3ef936db.js +0 -142
  682. package/dist/WebTileLayer-45c563ff.js +0 -110
  683. package/dist/WhereClause-7a28b740.js +0 -2766
  684. package/dist/WorkerHandle-0d54a6c7.js +0 -47
  685. package/dist/WorkerTileHandler-786c2b24.js +0 -1539
  686. package/dist/action-163397e3.js +0 -198
  687. package/dist/action-group-4859fb97.js +0 -145
  688. package/dist/action-menu-2d70b2fc.js +0 -1759
  689. package/dist/apng-9b71d52c.js +0 -392
  690. package/dist/arcade-fa309282.js +0 -229
  691. package/dist/arcadeAsyncRuntime-738498fd.js +0 -943
  692. package/dist/arcadeUtils-f71d80fa.js +0 -8741
  693. package/dist/arcgis-knowledge-client-core-6056bcea.js +0 -1218
  694. package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +0 -1218
  695. package/dist/arcgisLayers-b2b878bd.js +0 -152
  696. package/dist/associatedFeatureServiceUtils-df5b5187.js +0 -92
  697. package/dist/axisAngleDegrees-32643b7c.js +0 -49
  698. package/dist/basis_transcoder-3187cc92.js +0 -1248
  699. package/dist/calcite-action-bar-5a87c23c.js +0 -303
  700. package/dist/calcite-action-ee2ca847.js +0 -22
  701. package/dist/calcite-action-group-19aa86ee.js +0 -28
  702. package/dist/calcite-button-8e9175c0.js +0 -228
  703. package/dist/calcite-flow-57d26d2d.js +0 -128
  704. package/dist/calcite-flow-item-4a3e3fc0.js +0 -499
  705. package/dist/calcite-icon-d99e280a.js +0 -16
  706. package/dist/calcite-input-28b20785.js +0 -24
  707. package/dist/calcite-label-4f30e08d.js +0 -79
  708. package/dist/calcite-list-0cee7628.js +0 -2135
  709. package/dist/calcite-list-item-0a19efa8.js +0 -576
  710. package/dist/calcite-list-item-group-0706662f.js +0 -71
  711. package/dist/calcite-loader-865045b1.js +0 -14
  712. package/dist/calcite-modal-3e4da6fd.js +0 -333
  713. package/dist/calcite-notice-50b74ab7.js +0 -181
  714. package/dist/calcite-option-713c1d40.js +0 -94
  715. package/dist/calcite-scrim-809fbd0b.js +0 -18
  716. package/dist/calcite-select-28d8edfc.js +0 -231
  717. package/dist/capabilities-c8f838be.js +0 -50
  718. package/dist/chartCommon-13718cda.js +0 -256
  719. package/dist/chartUtilsAm5-6be145fb.js +0 -2954
  720. package/dist/clientSideDefaults-5c1f97c9.js +0 -39
  721. package/dist/colorRamps-8792655e.js +0 -38
  722. package/dist/colorUtils-54f4b662.js +0 -164
  723. package/dist/commonProperties-f9559903.js +0 -60
  724. package/dist/computeTranslationToOriginAndRotation-4876cb93.js +0 -60
  725. package/dist/conditionalSlot-87175989.js +0 -27
  726. package/dist/createConnection-f974a00a.js +0 -299
  727. package/dist/dataUtils-7c276b73.js +0 -1421
  728. package/dist/deduplicate-59fb9cac.js +0 -89
  729. package/dist/defaults-2bfa4a36.js +0 -31
  730. package/dist/deleteForwardEdits-f653b513.js +0 -13
  731. package/dist/diffUtils-e71a6152.js +0 -90
  732. package/dist/drapedUtils-b42fcbc6.js +0 -75
  733. package/dist/earcut-6fa1a128.js +0 -292
  734. package/dist/edgeProcessing-2ff1f201.js +0 -252
  735. package/dist/editingSupport-68545668.js +0 -203
  736. package/dist/editsZScale-c7cdd215.js +0 -37
  737. package/dist/elevationInfoUtils-5456a079.js +0 -126
  738. package/dist/executeForIds-4ab75c0d.js +0 -14
  739. package/dist/executeForTopCount-7e095ec1.js +0 -17
  740. package/dist/executeForTopExtents-19daf9d0.js +0 -17
  741. package/dist/executeForTopIds-1ba3a4af.js +0 -17
  742. package/dist/executeQueryJSON-46168866.js +0 -15
  743. package/dist/executeQueryPBF-d8623daf.js +0 -152
  744. package/dist/executeRelationshipQuery-011dfb45.js +0 -53
  745. package/dist/executeTopFeaturesQuery-02166801.js +0 -18
  746. package/dist/featureConversionUtils-650d7601.js +0 -479
  747. package/dist/featureLayerUtils-64e09283.js +0 -142
  748. package/dist/featureLayerUtils-b07f9c11.js +0 -250
  749. package/dist/featureSetUtils-9d37d6f8.js +0 -2530
  750. package/dist/featuresetbase-62aeb079.js +0 -707
  751. package/dist/featuresetgeom-51f9fc4e.js +0 -99
  752. package/dist/featuresetstats-4db32894.js +0 -81
  753. package/dist/featuresetstring-990c3287.js +0 -95
  754. package/dist/fetchService-5198dd4a.js +0 -33
  755. package/dist/fieldProperties-edfa24cb.js +0 -33
  756. package/dist/floatRGBA-516d7961.js +0 -20
  757. package/dist/form-99719d52.js +0 -138
  758. package/dist/geohashUtils-2bc76440.js +0 -85
  759. package/dist/geojson-603231df.js +0 -208
  760. package/dist/geomasync-e9063b4c.js +0 -567
  761. package/dist/geometryEngine-d3bb2fd6.js +0 -192
  762. package/dist/geometryEngineAsync-55aa6170.js +0 -217
  763. package/dist/geometryEngineBase-527e8b63.js +0 -18463
  764. package/dist/geometryEngineJSON-28087174.js +0 -46
  765. package/dist/geometryEngineJSON-d54949f9.js +0 -171
  766. package/dist/geometryEngineWorker-dc2c7127.js +0 -11
  767. package/dist/geometryServiceUtils-6a3e1e93.js +0 -28
  768. package/dist/georeference-ed8b2c30.js +0 -291
  769. package/dist/gif-204e82dd.js +0 -323
  770. package/dist/gltfexport-b2566542.js +0 -705
  771. package/dist/groupLayerUtils-ea9e6359.js +0 -39
  772. package/dist/heatmapUtils-56758920.js +0 -45
  773. package/dist/highlightReasons-de432106.js +0 -19
  774. package/dist/hydrated-0e1c7565.js +0 -40
  775. package/dist/i3s-bb0b5b67.js +0 -809
  776. package/dist/icon-c6e3bd23.js +0 -127
  777. package/dist/imageBitmapUtils-881d8c64.js +0 -23
  778. package/dist/imageUtils-57eeedc5.js +0 -69
  779. package/dist/imageUtils-ef69c578.js +0 -89
  780. package/dist/imageryUtils-23f51cb1.js +0 -43
  781. package/dist/index-01c737ed.js +0 -42563
  782. package/dist/input-message-673a9baa.js +0 -92
  783. package/dist/input2-bbf6454e.js +0 -575
  784. package/dist/interactive-aeb2cb9f.js +0 -80
  785. package/dist/jsonContext-2dc288b1.js +0 -15
  786. package/dist/jsonUtils-1abd4bfc.js +0 -59
  787. package/dist/jsonUtils-913fa1bd.js +0 -86
  788. package/dist/jsonUtils-f6a5e63b.js +0 -476
  789. package/dist/kmlUtils-7c2744fe.js +0 -112
  790. package/dist/knowledgeGraphService-6a349e04.js +0 -739
  791. package/dist/knowledgegraph-c91b0bb2.js +0 -149
  792. package/dist/labelUtils-a3634e8f.js +0 -61
  793. package/dist/labelingInfo-568c9210.js +0 -46
  794. package/dist/layersCreator-4a5366ea.js +0 -151
  795. package/dist/layersLoader-b87d4857.js +0 -197
  796. package/dist/lazyLayerLoader-8817000c.js +0 -10
  797. package/dist/lclayout-64c67b4e.js +0 -773
  798. package/dist/lengthUtils-695e744c.js +0 -5
  799. package/dist/lerc-wasm-13192bf3.js +0 -325
  800. package/dist/libtess-asm-4883179d.js +0 -3673
  801. package/dist/libtess-fc70d1ce.js +0 -269
  802. package/dist/lineSegment-3aa941f5.js +0 -76
  803. package/dist/loadGLTFMesh-db6645f5.js +0 -181
  804. package/dist/loadable-266f324b.js +0 -24
  805. package/dist/loader-d1ce1bc1.js +0 -79
  806. package/dist/lyr3DWorker-dd48e619.js +0 -2108
  807. package/dist/mapViewDeps-226d9da3.js +0 -3052
  808. package/dist/mediaLayerUtils-ae485c27.js +0 -35
  809. package/dist/meshFeatureSet-8a2ad011.js +0 -126
  810. package/dist/meshVertexSpaceUtils-6efe3dcc.js +0 -58
  811. package/dist/multidimensionalUtils-508a3f3f.js +0 -290
  812. package/dist/normalizeUtilsSync-1dae280b.js +0 -181
  813. package/dist/number-5aa3a81b.js +0 -128
  814. package/dist/objectResourceUtils-642ab03e.js +0 -1455
  815. package/dist/observers-f646a6a4.js +0 -30
  816. package/dist/ogcFeatureUtils-46ac1c44.js +0 -206
  817. package/dist/openCloseComponent-47eb52c6.js +0 -37
  818. package/dist/orientedBoundingBox-554ccdc6.js +0 -447
  819. package/dist/parser-0701286c.js +0 -488
  820. package/dist/pbf-5dd791f5.js +0 -215
  821. package/dist/pbfQueryUtils-a6ca7e23.js +0 -422
  822. package/dist/pe-wasm-6c16b121.js +0 -887
  823. package/dist/persistable-9eb0e8df.js +0 -89
  824. package/dist/perspectiveUtils-b194621d.js +0 -42
  825. package/dist/pieChart-b97433d0.js +0 -555
  826. package/dist/plane-3398eec1.js +0 -160
  827. package/dist/popupUtils-c444b896.js +0 -22
  828. package/dist/popupUtils-d871563b.js +0 -50
  829. package/dist/portalItemUtils-4c4caad0.js +0 -57
  830. package/dist/portalLayers-cb07742f.js +0 -312
  831. package/dist/portalUtils-effd590f.js +0 -7
  832. package/dist/programUtils-65af7b7c.js +0 -59
  833. package/dist/project-ee9c2947.js +0 -21
  834. package/dist/projectPointToVector-7dc831a9.js +0 -14
  835. package/dist/projectVectorToVector-5163db7a.js +0 -13
  836. package/dist/quantityUtils-5cd4cf90.js +0 -33
  837. package/dist/quantizationUtils-0a8f74c6.js +0 -68
  838. package/dist/quat-a508aed3.js +0 -104
  839. package/dist/query-b6e1fd14.js +0 -89
  840. package/dist/queryAttachments-7b39ebdc.js +0 -39
  841. package/dist/queryEngineUtils-cb8e309e.js +0 -21
  842. package/dist/queryTopFeatures-2e0e3941.js +0 -50
  843. package/dist/queryZScale-c5733d0a.js +0 -12
  844. package/dist/rasterProjectionHelper-213afa27.js +0 -577
  845. package/dist/rasterUtils-f2e44e8b.js +0 -122
  846. package/dist/rasterizingUtils-25cc0190.js +0 -46
  847. package/dist/request-e0c679b3.js +0 -46
  848. package/dist/requestImageUtils-37d79281.js +0 -8
  849. package/dist/resourceExtension-5f3f1c80.js +0 -17
  850. package/dist/resourceUtils-0d68cbc2.js +0 -69
  851. package/dist/resourceUtils-374db840.js +0 -62
  852. package/dist/resourceUtils-43ce192b.js +0 -42
  853. package/dist/saveAPIKeyUtils-1a3d4a8a.js +0 -8
  854. package/dist/saveUtils-43fdc547.js +0 -24
  855. package/dist/scaleUtils-bdf8b6cb.js +0 -23
  856. package/dist/scrim-44eb4dc0.js +0 -114
  857. package/dist/serviceCapabilitiesUtils-823612b8.js +0 -64
  858. package/dist/sourceUtils-01d115c6.js +0 -71
  859. package/dist/sphere-908cd9aa.js +0 -199
  860. package/dist/statsWorker-49f9befe.js +0 -37
  861. package/dist/streamLayerUtils-29324e05.js +0 -31
  862. package/dist/styleUtils-82e8da52.js +0 -75
  863. package/dist/styleUtils-8541d60d.js +0 -14
  864. package/dist/sublayerUtils-eaac2486.js +0 -37
  865. package/dist/substitute-1f578d70.js +0 -52
  866. package/dist/symbolColorUtils-18fd6b3d.js +0 -8
  867. package/dist/symbolLayerUtils-4c58b291.js +0 -31
  868. package/dist/symbologySnappingCandidates-14d94b6b.js +0 -221
  869. package/dist/t9n-c1c2b6c8.js +0 -349
  870. package/dist/testSVGPremultipliedAlpha-159dac90.js +0 -94
  871. package/dist/timeSupport-3f529cdb.js +0 -410
  872. package/dist/triangle-8a3a2ba8.js +0 -98
  873. package/dist/unitConversionUtils-f0ebaf75.js +0 -17
  874. package/dist/unitFormatUtils-555e2d94.js +0 -40
  875. package/dist/uploadAssetErrors-d1389781.js +0 -70
  876. package/dist/uploadAssets-5e85f09d.js +0 -330
  877. package/dist/utils-3a10b10c.js +0 -34
  878. package/dist/utils-505c54e9.js +0 -91
  879. package/dist/utils-5432e258.js +0 -433
  880. package/dist/utils-7a88ec6a.js +0 -419
  881. package/dist/utils-7fa9cdf9.js +0 -2746
  882. package/dist/utils-d252c575.js +0 -73
  883. package/dist/utils-f07e00b3.js +0 -232
  884. package/dist/utils-fda10b4b.js +0 -79
  885. package/dist/utils3-c34ab97c.js +0 -75
  886. package/dist/vec3-f79c600d.js +0 -81
  887. package/dist/vec42-36edeb73.js +0 -125
  888. package/dist/versionUtils-6935648b.js +0 -161
  889. package/dist/visualVariableUtils-c425461a.js +0 -267
  890. package/dist/webStyleSymbolUtils-4f42a29f.js +0 -48
  891. package/dist/webglDeps-5f18210d.js +0 -23
  892. package/dist/wfsUtils-6f7f1e3e.js +0 -343
  893. package/dist/workerHelper-9dc9a790.js +0 -11
  894. package/dist/xyChart-e5648fee.js +0 -3335
@@ -1,2746 +0,0 @@
1
- import { y as _e } from "./colorUtils-54f4b662.js";
2
- import { e as c, y as m, c as A, bx as $e, ei as rs, bu as jt, db as Y, bz as L, bv as vs, c7 as ws, c5 as Ct, c2 as _t, kI as kt, W as Bt, a$ as Be, b3 as bs } from "./index-01c737ed.js";
3
- import { u as w, r as nt, i as vt, o as As, t as Ts, n as Fe, v as os, d as Xt, w as is, x as Ps, y as K, z as $s, A as Fs, B as Ns, C as Is } from "./dataUtils-7c276b73.js";
4
- import { a as Rs, s as ks, v as Vt, C as Cs, w as as, e as je, x as _s, y as Bs, z as Kt, E as js, H as Ss, I as Jt, J as Ms, M as Os, K as Ds } from "./RasterSymbolizer-fbf433fe.js";
5
- import { m as Gs, p as zs } from "./colorRamps-8792655e.js";
6
- let Ut = class extends $e {
7
- constructor() {
8
- super(...arguments), this.raster = void 0;
9
- }
10
- };
11
- c([m({ json: { write: !0 } })], Ut.prototype, "raster", void 0), Ut = c([A("esri.layers.support.rasterFunctions.AspectFunctionArguments")], Ut);
12
- const D = Ut;
13
- var Yt;
14
- let wt = Yt = class extends D {
15
- constructor() {
16
- super(...arguments), this.raster2 = void 0;
17
- }
18
- get rasters() {
19
- return [this.raster, this.raster2];
20
- }
21
- clone() {
22
- return new Yt({ raster: this.raster, raster2: this.raster2, operation: this.operation });
23
- }
24
- };
25
- c([m({ json: { write: !0 } })], wt.prototype, "operation", void 0), c([m({ json: { write: !0 } })], wt.prototype, "raster2", void 0), c([m({ readOnly: !0 })], wt.prototype, "rasters", null), wt = Yt = c([A("esri.layers.support.rasterFunctions.ArithmeticFunctionArguments")], wt);
26
- const Es = wt, Vs = /* @__PURE__ */ new Set(["slope", "aspect", "curvature", "hillshade", "shadedrelief", "statistics"]);
27
- let S = class extends $e {
28
- constructor() {
29
- super(...arguments), this.functionArguments = null, this.readingBufferSize = 0, this.id = -1, this.isNoopProcess = !1, this.rawInputBandIds = [], this.rawSourceRasterInfos = null, this.isInputBandIdsSwizzled = !1, this.swizzledBandSelection = [], this.isBranch = !1, this._bindingResult = null;
30
- }
31
- get supportsGPU() {
32
- return this._bindingResult.supportsGPU;
33
- }
34
- get flatWebGLFunctionChain() {
35
- var u;
36
- const t = this.getWebGLProcessorDefinition();
37
- if (!t)
38
- return null;
39
- const e = [t], { parameters: s } = t;
40
- let o = s.rasters || s.raster && [s.raster];
41
- for (; o != null && o.length; ) {
42
- e.unshift(...o);
43
- const l = [];
44
- for (let p = 0; p < o.length; p++) {
45
- const { parameters: h } = o[p], f = h.rasters || h.raster && [h.raster];
46
- f != null && f.length && l.push(...f);
47
- }
48
- o = l;
49
- }
50
- for (let l = e.length - 1; l >= 0; l--)
51
- e[l].isNoopProcess && e.splice(l, 1);
52
- let r = !1;
53
- for (let l = 0; l < e.length; l++) {
54
- const p = e[l];
55
- p.id = e.length - l - 1;
56
- const { rasters: h } = p.parameters;
57
- r = r || h != null && h.length > 1;
58
- }
59
- const a = e.some(({ name: l }) => Vs.has(l.toLowerCase())), { rawSourceRasterInfos: n } = this;
60
- return { functions: e, hasBranches: r, hasFocalFunction: a, isSourceSingleBand: ((u = n == null ? void 0 : n[0]) == null ? void 0 : u.bandCount) === 1 };
61
- }
62
- bind(t, e = !1, s = -1) {
63
- this.id = s + 1;
64
- const o = this._getRasterValues();
65
- let r = !0;
66
- for (let a = 0; a < o.length; a++) {
67
- const n = o[a];
68
- if (n != null && this._isRasterFunctionValue(n)) {
69
- const u = n.bind(t, e, this.id + a);
70
- if (!u.success)
71
- return this._bindingResult = u, u;
72
- r = r && u.supportsGPU;
73
- }
74
- }
75
- return !this.rasterInfo || e ? (this.sourceRasterInfos = this._getSourceRasterInfos(t), this._bindingResult = this._bindSourceRasters(), this._bindingResult.success && this._patchRasterInfo(), this._bindingResult.supportsGPU = r && this._bindingResult.supportsGPU, this.processInputBandIds(), this._bindingResult) : (this._bindingResult = { success: !0, supportsGPU: !0 }, this.processInputBandIds(), this._bindingResult);
76
- }
77
- process(t) {
78
- const e = this._getRasterValues(), s = e.length === 0 ? t.pixelBlocks ?? t.primaryPixelBlocks : e.map((o) => this._readRasterValue(o, t));
79
- return this._processPixels({ ...t, pixelBlocks: s });
80
- }
81
- processInputBandIds() {
82
- const t = this._getRasterValues().filter(this._isRasterFunctionValue);
83
- let e;
84
- if (t.length > 1) {
85
- const r = t.map((n) => n.processInputBandIds()[0]);
86
- this.rawInputBandIds = r, this.isInputBandIdsSwizzled = this.rawInputBandIds.some((n, u) => n !== u);
87
- const a = t.filter((n) => n.functionName === "ExtractBand");
88
- return a.length && a.forEach((n, u) => {
89
- n.isInputBandIdsSwizzled = !0, n.swizzledBandSelection = [u, u, u];
90
- }), this.rawInputBandIds;
91
- }
92
- const s = t[0];
93
- if (s) {
94
- if (e = s.processInputBandIds(), s.isInputBandIdsSwizzled)
95
- return this.rawInputBandIds = e, e;
96
- } else {
97
- e = [];
98
- const { bandCount: r } = this.sourceRasterInfos[0];
99
- for (let a = 0; a < r; a++)
100
- e.push(a);
101
- }
102
- const o = this._getInputBandIds(e);
103
- return this.isInputBandIdsSwizzled = o.some((r, a) => r !== a), this.rawInputBandIds = o, this.rawInputBandIds;
104
- }
105
- getPrimaryRasters() {
106
- const t = [], e = [];
107
- return this._getPrimaryRasters(this, t, e), { rasters: t, rasterIds: e };
108
- }
109
- getWebGLProcessorDefinition() {
110
- const t = this._getWebGLParameters(), { raster: e, rasters: s } = this.functionArguments;
111
- return s && Array.isArray(s) && s.length ? (t.rasters = s.map((o) => this._isRasterFunctionValue(o) ? o.getWebGLProcessorDefinition() : typeof o == "number" ? { name: "Constant", parameters: { value: o }, pixelType: "f32", id: -1, isNoopProcess: !1 } : { name: "Identity", parameters: { value: o }, pixelType: "f32", id: -1, isNoopProcess: !1 }), t.rasters.some((o) => o != null) || (t.rasters = null)) : this._isRasterFunctionValue(e) && (t.raster = e.getWebGLProcessorDefinition()), { name: this.functionName, parameters: t, pixelType: this.outputPixelType, id: this.id, isNoopProcess: this.isNoopProcess };
112
- }
113
- getClippingGeometries() {
114
- const t = [];
115
- this.functionName === "Clip" && t.push(this.functionArguments);
116
- const { raster: e, rasters: s } = this.functionArguments;
117
- if (s && Array.isArray(s) && s.length)
118
- s.forEach((o) => {
119
- if (this._isRasterFunctionValue(o)) {
120
- const r = o.getClippingGeometries();
121
- t.push(...r);
122
- }
123
- });
124
- else if (this._isRasterFunctionValue(e)) {
125
- const o = e.getClippingGeometries();
126
- t.push(...o);
127
- }
128
- return t;
129
- }
130
- _getOutputPixelType(t) {
131
- return this.outputPixelType === "unknown" ? t : this.outputPixelType ?? t;
132
- }
133
- _getWebGLParameters() {
134
- return {};
135
- }
136
- _getInputBandIds(t) {
137
- return t;
138
- }
139
- _removeStatsHistColormapVAT(t) {
140
- t.statistics = null, t.histograms = null, t.colormap = null, t.attributeTable = null;
141
- }
142
- _getRasterValues() {
143
- const { rasterArgumentNames: t } = this;
144
- return t[0] === "rasters" ? this.functionArguments.rasters ?? [] : t.flatMap((e) => this.functionArguments[e]);
145
- }
146
- _getSourceRasterInfos(t) {
147
- const e = this._getRasterValues(), { rasterInfos: s, rasterIds: o } = t;
148
- if (e.length === 0)
149
- return s;
150
- const r = e.map((n) => n && typeof n == "object" && "bind" in n && n.rasterInfo ? n.rasterInfo : typeof n == "string" && o.includes(n) ? s[o.indexOf(n)] : typeof n != "number" ? s[0] : void 0), a = r.find((n) => n) ?? s[0];
151
- return r.forEach((n, u) => {
152
- n === void 0 && (r[u] = a);
153
- }), r;
154
- }
155
- _getPrimaryRasterId(t) {
156
- return t == null ? void 0 : t.rasterId;
157
- }
158
- _getPrimaryRasters(t, e = [], s = []) {
159
- for (let o = 0; o < t.sourceRasters.length; o++) {
160
- const r = t.sourceRasters[o];
161
- if (typeof r != "number")
162
- if ("bind" in r)
163
- this._getPrimaryRasters(r, e, s);
164
- else {
165
- const a = r, n = this._getPrimaryRasterId(a);
166
- if (n == null)
167
- continue;
168
- s.includes(n) || (this.mainPrimaryRasterId === n ? (e.unshift(a), s.unshift(n)) : (e.push(a), s.push(n)));
169
- }
170
- }
171
- }
172
- _isRasterFunctionValue(t) {
173
- return t != null && typeof t == "object" && "getWebGLProcessorDefinition" in t;
174
- }
175
- _readRasterValue(t, e) {
176
- const { primaryPixelBlocks: s } = e;
177
- if (t == null || t === "$$") {
178
- const o = s[0];
179
- return o == null ? null : o.clone();
180
- }
181
- if (typeof t == "string") {
182
- const o = e.primaryRasterIds.indexOf(t);
183
- return o === -1 ? null : s[o];
184
- }
185
- if (typeof t == "number") {
186
- const o = s[0];
187
- if (o == null)
188
- return null;
189
- const { width: r, height: a, pixelType: n } = o, u = new Float32Array(r * a);
190
- u.fill(t);
191
- const l = this.sourceRasterInfos[0].bandCount, p = new Array(l).fill(u);
192
- return new w({ width: r, height: a, pixelType: n, pixels: p });
193
- }
194
- return t.process(e);
195
- }
196
- _patchRasterInfo() {
197
- const { rasterInfo: t } = this;
198
- if (!(t != null && t.keyProperties))
199
- return;
200
- const { bandCount: e, keyProperties: s, statistics: o, histograms: r } = t, a = s.BandProperties;
201
- a && a.length !== e && (t.keyProperties = { ...s, BandProperties: void 0 }), o && o.length !== e && (t.statistics = o.length > e ? o.slice(0, e) : null), r && r.length !== e && (t.histograms = r.length > e ? r.slice(0, e) : null), s.BAND_COUNT && Number(s.BAND_COUNT) !== e && (t.keyProperties = { ...s, BAND_COUNT: typeof s.BAND_COUNT == "string" ? String(e) : e });
202
- }
203
- };
204
- c([m({ json: { write: !0 } })], S.prototype, "functionName", void 0), c([m({ json: { write: !0 } })], S.prototype, "functionArguments", void 0), c([m()], S.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } }), rs((i) => i == null ? void 0 : i.toLowerCase())], S.prototype, "outputPixelType", void 0), c([m({ json: { write: !0 } })], S.prototype, "mainPrimaryRasterId", void 0), c([m()], S.prototype, "sourceRasters", void 0), c([m({ type: [Rs], json: { write: !0 } })], S.prototype, "sourceRasterInfos", void 0), c([m({ json: { write: !0 } })], S.prototype, "rasterInfo", void 0), c([m({ json: { write: !0 } })], S.prototype, "readingBufferSize", void 0), c([m({ json: { write: !0 } })], S.prototype, "id", void 0), c([m()], S.prototype, "isNoopProcess", void 0), c([m()], S.prototype, "supportsGPU", null), c([m()], S.prototype, "rawInputBandIds", void 0), c([m()], S.prototype, "rawSourceRasterInfos", void 0), c([m()], S.prototype, "isInputBandIdsSwizzled", void 0), c([m()], S.prototype, "swizzledBandSelection", void 0), c([m()], S.prototype, "isBranch", void 0), c([m({ readOnly: !0 })], S.prototype, "flatWebGLFunctionChain", null), c([m()], S.prototype, "_bindingResult", void 0), S = c([A("esri.layers.support.rasterFunctions.BaseRasterFunction")], S);
205
- const G = S, $ = { 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 }, Us = { 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 }, U = { 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 }, H = { 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 }, Ls = { 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 }, us = { setNull: 50, conditional: 78 }, Se = { ...Us, ...U, ...H, ...Ls, ...us }, ls = /* @__PURE__ */ new Map([[H.acos, { domain: [0, Math.PI], isInteger: !1 }], [H.asin, { domain: [-Math.PI / 2, Math.PI / 2], isInteger: !1 }], [H.atan, { domain: [-Math.PI / 2, Math.PI / 2], isInteger: !1 }], [H.cos, { domain: [-1, 1], isInteger: !1 }], [H.sin, { domain: [-1, 1], isInteger: !1 }], [U.booleanAnd, { domain: [0, 1], isInteger: !0 }], [U.booleanNot, { domain: [0, 1], isInteger: !0 }], [U.booleanOr, { domain: [0, 1], isInteger: !0 }], [U.booleanXOr, { domain: [0, 1], isInteger: !0 }], [U.equalTo, { domain: [0, 1], isInteger: !0 }], [U.notEqual, { domain: [0, 1], isInteger: !0 }], [U.greaterThan, { domain: [0, 1], isInteger: !0 }], [U.greaterThanEqual, { domain: [0, 1], isInteger: !0 }], [U.lessThan, { domain: [0, 1], isInteger: !0 }], [U.lessThanEqual, { domain: [0, 1], isInteger: !0 }], [U.isNull, { domain: [0, 1], isInteger: !0 }]]);
206
- function Me(i) {
207
- return ls.get(i);
208
- }
209
- const Oe = [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];
210
- function Ws(i, t = !1) {
211
- const e = i.map((n) => n.mask), s = e.filter((n) => n != null), o = i[0].pixels[0].length;
212
- if (s.length === 0 || t && s.length !== e.length)
213
- return new Uint8Array(o).fill(255);
214
- const r = s[0], a = new Uint8Array(r);
215
- if (s.length === 1)
216
- return a;
217
- if (!t) {
218
- for (let n = 1; n < s.length; n++) {
219
- const u = s[n];
220
- for (let l = 0; l < a.length; l++)
221
- a[l] && (a[l] = u[l] ? 255 : 0);
222
- }
223
- return a;
224
- }
225
- for (let n = 1; n < s.length; n++) {
226
- const u = s[n];
227
- for (let l = 0; l < a.length; l++)
228
- a[l] === 0 && (a[l] = u[l] ? 255 : 0);
229
- }
230
- return a;
231
- }
232
- function qs(i, t, e) {
233
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
234
- for (let n = 0; n < r; n++)
235
- t && !t[n] || (a[n] = s[n] + o[n]);
236
- return a;
237
- }
238
- function Hs(i, t, e) {
239
- const [s] = i, o = s.length, r = w.createEmptyBand("f32", o);
240
- return r.set(s), r;
241
- }
242
- function Xs(i, t, e) {
243
- const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
244
- for (let a = 0; a < o; a++)
245
- t && !t[a] || (r[a] = s[a] * s[a]);
246
- return r;
247
- }
248
- function Js(i, t, e) {
249
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
250
- for (let n = 0; n < r; n++)
251
- t && !t[n] || (a[n] = s[n] - o[n]);
252
- return a;
253
- }
254
- function Ks(i, t, e) {
255
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
256
- for (let n = 0; n < r; n++)
257
- t && !t[n] || (a[n] = s[n] * o[n]);
258
- return a;
259
- }
260
- function Ys(i, t, e) {
261
- const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
262
- for (let a = 0; a < o; a++)
263
- t && !t[a] || (r[a] = Math.sign(s[a]) * Math.floor(Math.abs(s[a])));
264
- return r;
265
- }
266
- function cs(i, t, e) {
267
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
268
- for (let n = 0; n < r; n++)
269
- t && !t[n] || (a[n] = s[n] / o[n]);
270
- return a;
271
- }
272
- function Zs(i, t, e) {
273
- return cs(i, t, "f32");
274
- }
275
- function Qs(i, t, e) {
276
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
277
- for (let n = 0; n < r; n++)
278
- t && !t[n] || (a[n] = Math.floor(s[n] / o[n]));
279
- return a;
280
- }
281
- function tn(i, t, e, s) {
282
- const o = i[0], r = o.length, a = w.createEmptyBand(e, r);
283
- if (s === H.atanh) {
284
- for (let u = 0; u < r; u++)
285
- if (t[u]) {
286
- const l = o[u];
287
- Math.abs(l) >= 1 ? t[u] = 0 : a[u] = Math.atanh(l);
288
- }
289
- return a;
290
- }
291
- const n = s === H.asin ? Math.asin : Math.acos;
292
- for (let u = 0; u < r; u++)
293
- if (t[u]) {
294
- const l = o[u];
295
- Math.abs(l) > 1 ? t[u] = 0 : a[u] = n(l);
296
- }
297
- return a;
298
- }
299
- function en(i, t, e, s) {
300
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
301
- for (let n = 0; n < r; n++)
302
- t && !t[n] || (a[n] = s(o[n]));
303
- return a;
304
- }
305
- function sn(i, t, e, s) {
306
- const [o, r] = i, a = o.length, n = w.createEmptyBand(e, a);
307
- for (let u = 0; u < a; u++)
308
- t && !t[u] || (n[u] = s(o[u], r[u]));
309
- return n;
310
- }
311
- function nn(i, t, e) {
312
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
313
- for (let n = 0; n < r; n++)
314
- t && !t[n] || (a[n] = s[n] & o[n]);
315
- return a;
316
- }
317
- function rn(i, t, e) {
318
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
319
- for (let n = 0; n < r; n++)
320
- t && !t[n] || (a[n] = s[n] << o[n]);
321
- return a;
322
- }
323
- function on(i, t, e) {
324
- const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
325
- for (let a = 0; a < o; a++)
326
- t && !t[a] || (r[a] = ~s[a]);
327
- return r;
328
- }
329
- function an(i, t, e) {
330
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
331
- for (let n = 0; n < r; n++)
332
- t && !t[n] || (a[n] = s[n] | o[n]);
333
- return a;
334
- }
335
- function un(i, t, e) {
336
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
337
- for (let n = 0; n < r; n++)
338
- t && !t[n] || (a[n] = s[n] >> o[n]);
339
- return a;
340
- }
341
- function ln(i, t, e) {
342
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
343
- for (let n = 0; n < r; n++)
344
- t && !t[n] || (a[n] = s[n] ^ o[n]);
345
- return a;
346
- }
347
- function cn(i, t, e) {
348
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
349
- for (let n = 0; n < r; n++)
350
- t && !t[n] || (a[n] = s[n] && o[n] ? 1 : 0);
351
- return a;
352
- }
353
- function pn(i, t, e) {
354
- const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
355
- for (let a = 0; a < o; a++)
356
- t && !t[a] || (r[a] = s[a] ? 0 : 1);
357
- return r;
358
- }
359
- function hn(i, t, e) {
360
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
361
- for (let n = 0; n < r; n++)
362
- t && !t[n] || (a[n] = s[n] || o[n] ? 1 : 0);
363
- return a;
364
- }
365
- function mn(i, t, e) {
366
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
367
- for (let n = 0; n < r; n++)
368
- t && !t[n] || (a[n] = (s[n] ? 1 : 0) ^ (o[n] ? 1 : 0));
369
- return a;
370
- }
371
- function fn(i, t, e) {
372
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
373
- for (let n = 0; n < r; n++)
374
- t && !t[n] || (a[n] = s[n] === o[n] ? 1 : 0);
375
- return a;
376
- }
377
- function Ne(i, t, e, s) {
378
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r), n = s === Math.E;
379
- for (let u = 0; u < r; u++)
380
- t && !t[u] || (a[u] = n ? Math.exp(o[u]) : s ** o[u]);
381
- return a;
382
- }
383
- function dn(i, t, e) {
384
- return Ne(i, t, e, 10);
385
- }
386
- function gn(i, t, e) {
387
- return Ne(i, t, e, 2);
388
- }
389
- function yn(i, t, e) {
390
- return Ne(i, t, e, Math.E);
391
- }
392
- function Ie(i, t, e, s) {
393
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
394
- for (let n = 0; n < r; n++)
395
- t && !t[n] || (o[n] <= 0 ? t[n] = 0 : a[n] = s(o[n]));
396
- return a;
397
- }
398
- function xn(i, t, e) {
399
- return Ie(i, t, e, Math.log10);
400
- }
401
- function vn(i, t, e) {
402
- return Ie(i, t, e, Math.log2);
403
- }
404
- function wn(i, t, e) {
405
- return Ie(i, t, e, Math.log);
406
- }
407
- function bn(i, t, e) {
408
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
409
- for (let n = 0; n < r; n++)
410
- t && !t[n] || (a[n] = s[n] > o[n] ? 1 : 0);
411
- return a;
412
- }
413
- function An(i, t, e) {
414
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
415
- for (let n = 0; n < r; n++)
416
- t && !t[n] || (a[n] = s[n] >= o[n] ? 1 : 0);
417
- return a;
418
- }
419
- function Tn(i, t, e) {
420
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
421
- for (let n = 0; n < r; n++)
422
- t && !t[n] || (a[n] = s[n] < o[n] ? 1 : 0);
423
- return a;
424
- }
425
- function Pn(i, t, e) {
426
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
427
- for (let n = 0; n < r; n++)
428
- t && !t[n] || (a[n] = s[n] <= o[n] ? 1 : 0);
429
- return a;
430
- }
431
- function $n(i, t, e) {
432
- const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
433
- if (!t)
434
- return r;
435
- for (let a = 0; a < o; a++)
436
- r[a] = t[a] ? 0 : 1;
437
- return r;
438
- }
439
- function Fn(i, t, e) {
440
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
441
- for (let n = 0; n < r; n++)
442
- t && !t[n] || (a[n] = s[n] % o[n]);
443
- return a;
444
- }
445
- function Nn(i, t, e) {
446
- const [s] = i, o = s.length, r = w.createEmptyBand(e, o);
447
- for (let a = 0; a < o; a++)
448
- t && !t[a] || (r[a] = -s[a]);
449
- return r;
450
- }
451
- function In(i, t, e) {
452
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r);
453
- for (let n = 0; n < r; n++)
454
- t && !t[n] || (a[n] = s[n] === o[n] ? 0 : 1);
455
- return a;
456
- }
457
- function Rn(i, t, e) {
458
- const [s, o] = i, r = s.length, a = w.createEmptyBand(e, r), n = new Uint8Array(r);
459
- for (let u = 0; u < r; u++)
460
- t != null && !t[u] || s[u] !== 0 || (a[u] = o[u], n[u] = 255);
461
- return { band: a, mask: n };
462
- }
463
- function De(i, t, e) {
464
- const [s, o, r] = i, a = s.length, n = w.createEmptyBand(e, a);
465
- for (let u = 0; u < a; u++)
466
- t && !t[u] || (n[u] = s[u] ? o[u] : r[u]);
467
- return n;
468
- }
469
- function Ge(i, t, e) {
470
- const s = i.length;
471
- if (s < 2)
472
- return i[0];
473
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
474
- for (let n = 0; n < r; n++)
475
- if (!t || t[n]) {
476
- let u = o[n];
477
- for (let l = 1; l < s; l++) {
478
- const p = i[l][n];
479
- u < p && (u = p);
480
- }
481
- a[n] = u;
482
- }
483
- return a;
484
- }
485
- function ze(i, t, e) {
486
- const s = i.length;
487
- if (s < 2)
488
- return i[0];
489
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
490
- for (let n = 0; n < r; n++)
491
- if (!t || t[n]) {
492
- let u = o[n];
493
- for (let l = 1; l < s; l++) {
494
- const p = i[l][n];
495
- u > p && (u = p);
496
- }
497
- a[n] = u;
498
- }
499
- return a;
500
- }
501
- function Ee(i, t, e) {
502
- const s = i.length;
503
- if (s < 2)
504
- return i[0];
505
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
506
- for (let n = 0; n < r; n++)
507
- if (!t || t[n]) {
508
- let u = o[n], l = u;
509
- for (let p = 1; p < s; p++) {
510
- const h = i[p][n];
511
- l < h ? l = h : u > h && (u = h);
512
- }
513
- a[n] = l - u;
514
- }
515
- return a;
516
- }
517
- function Ve(i, t, e) {
518
- const s = i.length;
519
- if (s < 2)
520
- return i[0];
521
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
522
- for (let n = 0; n < r; n++)
523
- if (!t || t[n]) {
524
- let u = 0;
525
- for (let l = 0; l < s; l++)
526
- u += i[l][n];
527
- a[n] = u / s;
528
- }
529
- return a;
530
- }
531
- function Ue(i, t, e) {
532
- const s = i.length;
533
- if (s < 2)
534
- return i[0];
535
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
536
- for (let n = 0; n < r; n++)
537
- if (!t || t[n])
538
- for (let u = 0; u < s; u++) {
539
- const l = i[u];
540
- a[n] += l[n];
541
- }
542
- return a;
543
- }
544
- function Le(i, t, e) {
545
- const s = i.length;
546
- if (s < 2)
547
- return i[0];
548
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r);
549
- for (let n = 0; n < r; n++)
550
- if (!t || t[n]) {
551
- const u = new Float32Array(s);
552
- let l = 0;
553
- for (let h = 0; h < s; h++) {
554
- const f = i[h];
555
- l += f[n], u[h] = f[n];
556
- }
557
- l /= s;
558
- let p = 0;
559
- for (let h = 0; h < s; h++)
560
- p += (u[h] - l) ** 2;
561
- a[n] = Math.sqrt(p / s);
562
- }
563
- return a;
564
- }
565
- function We(i, t, e) {
566
- const s = i.length;
567
- if (s < 2)
568
- return i[0];
569
- const o = Math.floor(s / 2), [r] = i, a = r.length, n = w.createEmptyBand(e, a), u = new Float32Array(s), l = s % 2 == 1;
570
- for (let p = 0; p < a; p++)
571
- if (!t || t[p]) {
572
- for (let h = 0; h < s; h++)
573
- u[h] = i[h][p];
574
- u.sort(), n[p] = l ? u[o] : (u[o] + u[o - 1]) / 2;
575
- }
576
- return n;
577
- }
578
- function ps(i, t, e) {
579
- const [s, o] = i;
580
- if (o == null)
581
- return s;
582
- const r = s.length, a = w.createEmptyBand(e, r);
583
- for (let n = 0; n < r; n++)
584
- t[n] && (s[n] === o[n] ? a[n] = s[n] : t[n] = 0);
585
- return a;
586
- }
587
- function qe(i, t, e) {
588
- const s = i.length;
589
- if (s <= 2)
590
- return ps(i, t, e);
591
- const o = i[0].length, r = w.createEmptyBand(e, o), a = /* @__PURE__ */ new Map();
592
- for (let n = 0; n < o; n++)
593
- if (!t || t[n]) {
594
- let u;
595
- a.clear();
596
- for (let h = 0; h < s; h++)
597
- u = i[h][n], a.set(u, a.has(u) ? a.get(u) + 1 : 1);
598
- let l = 0, p = 0;
599
- for (const h of a.keys())
600
- l = a.get(h), l > p && (p = l, u = h);
601
- r[n] = u;
602
- }
603
- return r;
604
- }
605
- function He(i, t, e) {
606
- const s = i.length;
607
- if (s <= 2)
608
- return ps(i, t, e);
609
- const o = i[0].length, r = w.createEmptyBand(e, o), a = /* @__PURE__ */ new Map();
610
- for (let n = 0; n < o; n++)
611
- if (!t || t[n]) {
612
- let u;
613
- a.clear();
614
- for (let h = 0; h < s; h++)
615
- u = i[h][n], a.set(u, a.has(u) ? a.get(u) + 1 : 1);
616
- let l = 0, p = i.length;
617
- for (const h of a.keys())
618
- l = a.get(h), l < p && (p = l, u = h);
619
- r[n] = u;
620
- }
621
- return r;
622
- }
623
- function Xe(i, t, e) {
624
- const s = i.length;
625
- if (s < 2)
626
- return i[0];
627
- const [o] = i, r = o.length, a = w.createEmptyBand(e, r), n = /* @__PURE__ */ new Set();
628
- for (let u = 0; u < r; u++)
629
- if (!t || t[u]) {
630
- let l;
631
- n.clear();
632
- for (let p = 0; p < s; p++)
633
- l = i[p][u], n.add(l);
634
- a[u] = n.size;
635
- }
636
- return a;
637
- }
638
- const O = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map();
639
- function kn() {
640
- O.size || (O.set(4, Math.sqrt), O.set(6, Math.acos), O.set(7, Math.asin), O.set(8, Math.atan), O.set(9, Math.atanh), O.set(10, Math.abs), O.set(21, Math.cos), O.set(22, Math.cosh), O.set(48, Math.floor), O.set(49, Math.ceil), O.set(51, Math.sin), O.set(52, Math.sinh), O.set(56, Math.tan), O.set(57, Math.tanh), O.set(59, Math.acosh), O.set(60, Math.asinh), O.set(65, Math.floor), Ht.set(5, Math.pow), Ht.set(61, Math.atan2), T.set(1, qs), T.set(2, Js), T.set(3, Ks), T.set(11, nn), T.set(12, rn), T.set(13, on), T.set(14, an), T.set(15, un), T.set(16, ln), T.set(17, cn), T.set(18, pn), T.set(19, hn), T.set(20, mn), T.set(23, cs), T.set(24, fn), T.set(25, yn), T.set(26, dn), T.set(27, gn), T.set(28, bn), T.set(29, An), T.set(30, Ys), T.set(31, $n), T.set(32, Hs), T.set(33, Tn), T.set(34, Pn), T.set(35, wn), T.set(36, xn), T.set(37, vn), T.set(44, Fn), T.set(45, Nn), T.set(46, In), T.set(53, Xs), T.set(64, Zs), T.set(65, Qs), T.set(76, De), T.set(78, De), j.set(38, qe), j.set(39, Ge), j.set(40, Ve), j.set(41, We), j.set(42, ze), j.set(43, He), j.set(47, Ee), j.set(54, Le), j.set(55, Ue), j.set(58, Xe), j.set(66, qe), j.set(67, Ge), j.set(68, Ve), j.set(69, We), j.set(70, ze), j.set(71, He), j.set(72, Ee), j.set(73, Le), j.set(74, Ue), j.set(75, Xe));
641
- }
642
- function Cn(i, t, e, s) {
643
- let [o, r] = vt(e);
644
- const a = nt(e);
645
- a && (o -= 1e-5, r += 1e-5);
646
- for (let n = 0; n < t.length; n++)
647
- if (t[n]) {
648
- const u = i[n];
649
- isNaN(u) || u < o || u > r ? t[n] = 0 : s[n] = a ? Math.round(u) : u;
650
- }
651
- }
652
- function hs(i, t, e = {}) {
653
- kn();
654
- let s = Ws(i, t >= 66 && t <= 75);
655
- const { outputPixelType: o = "f32" } = e, r = !j.has(t) || e.processAsMultiband, a = r ? i[0].pixels.length : 1, n = [];
656
- for (let l = 0; l < a; l++) {
657
- const p = j.has(t) && !r ? i.flatMap((g) => g.pixels) : i.map((g) => g.pixels[l]);
658
- let h, f = !0;
659
- if (t === us.setNull) {
660
- const g = Rn(p, s, o);
661
- h = g.band, s = g.mask, f = !1;
662
- } else
663
- T.has(t) ? h = T.get(t)(p, s, "f64") : O.has(t) ? h = t === H.asin || t === H.acos || t === H.atanh ? tn(p, s, "f64", t) : en(p, s, "f64", O.get(t)) : Ht.has(t) ? h = sn(p, s, "f64", Ht.get(t)) : j.has(t) ? h = j.get(t)(p, s, "f64") : (h = p[0], f = !1);
664
- if (f && t !== U.isNull && !ls.has(t)) {
665
- const g = w.createEmptyBand(o, h.length);
666
- s || (s = new Uint8Array(h.length).fill(255)), Cn(h, s, o, g), h = g;
667
- }
668
- n.push(h);
669
- }
670
- const u = i[0];
671
- return new w({ width: u.width, height: u.height, pixelType: o, mask: t === U.isNull ? null : s, pixels: n });
672
- }
673
- function _n(i, t, e) {
674
- return hs(i, t = [null, 1, 2, 3, 23, 5, 44][t] ?? 1, { outputPixelType: e });
675
- }
676
- let bt = class extends G {
677
- constructor() {
678
- super(...arguments), this.functionName = "Arithmetic", this.functionArguments = null, this.rasterArgumentNames = ["raster", "raster2"];
679
- }
680
- _bindSourceRasters() {
681
- const { operation: t } = this.functionArguments;
682
- if (t < 1 || t > 6)
683
- return { success: !1, supportsGPU: !1, error: "unsupported operation" };
684
- const e = this.sourceRasterInfos[0].clone();
685
- return this.outputPixelType = this._getOutputPixelType(e.pixelType), e.pixelType = this.outputPixelType, this._removeStatsHistColormapVAT(e), this.rasterInfo = e, { success: !0, supportsGPU: e.bandCount <= 3 };
686
- }
687
- _processPixels(t) {
688
- const { pixelBlocks: e } = t;
689
- return (e == null ? void 0 : e[0]) == null || (e == null ? void 0 : e[1]) == null ? null : _n(e, this.functionArguments.operation, this.outputPixelType);
690
- }
691
- _getWebGLParameters() {
692
- const { operation: t } = this.functionArguments, e = ["", "plus", "minus", "times", "divide", "power", "mod"][t], s = this.outputPixelType ?? "f32";
693
- let [o, r] = vt(s);
694
- const a = nt(s);
695
- return a && (o -= 1e-4, r += 1e-4), { imageCount: 2, operationName: e, domainRange: [o, r], isOutputRounded: a };
696
- }
697
- };
698
- c([m({ json: { write: !0, name: "rasterFunction" } })], bt.prototype, "functionName", void 0), c([m({ type: Es, json: { write: !0, name: "rasterFunctionArguments" } })], bt.prototype, "functionArguments", void 0), c([m()], bt.prototype, "rasterArgumentNames", void 0), bt = c([A("esri.layers.support.rasterFunctions.ArithmeticFunction")], bt);
699
- const Bn = bt;
700
- var Zt;
701
- let Qt = Zt = class extends D {
702
- clone() {
703
- return new Zt({ raster: this.raster });
704
- }
705
- };
706
- Qt = Zt = c([A("esri.layers.support.rasterFunctions.AspectFunctionArguments")], Qt);
707
- const jn = Qt;
708
- let rt = class extends G {
709
- constructor() {
710
- super(...arguments), this.functionName = "Aspect", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isGCS = !1;
711
- }
712
- _bindSourceRasters() {
713
- var s;
714
- const t = this.sourceRasterInfos[0];
715
- this.isGCS = ((s = t.spatialReference) == null ? void 0 : s.isGeographic) ?? !1, this.outputPixelType = this._getOutputPixelType("f32");
716
- const e = t.clone();
717
- 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 };
718
- }
719
- _processPixels(t) {
720
- var n;
721
- const e = (n = t.pixelBlocks) == null ? void 0 : n[0];
722
- if (e == null)
723
- return null;
724
- const { extent: s, primaryPixelSizes: o } = t, r = o == null ? void 0 : o[0], a = r ?? (s ? { x: s.width / e.width, y: s.height / e.height } : { x: 1, y: 1 });
725
- return ks(e, { resolution: a });
726
- }
727
- };
728
- c([m({ json: { write: !0, name: "rasterFunction" } })], rt.prototype, "functionName", void 0), c([m({ type: jn, json: { write: !0, name: "rasterFunctionArguments" } })], rt.prototype, "functionArguments", void 0), c([m()], rt.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], rt.prototype, "isGCS", void 0), rt = c([A("esri.layers.support.rasterFunctions.AspectFunction")], rt);
729
- const Sn = rt, Mn = /* @__PURE__ */ new Set(["+", "-", "*", "/", "(", ")"]);
730
- function On(i, t) {
731
- (i = i.replaceAll(" ", "")).startsWith("-") && (i = "0" + i), i.startsWith("+") && (i = i.slice(1, i.length));
732
- const e = i.split(""), s = [], o = [];
733
- let r = "";
734
- for (let a = 0; a < e.length; a++) {
735
- const n = e[a];
736
- Mn.has(n) ? (r.length && o.push(Je(r, t)), s.push(n), r = "") : r = r.concat(n);
737
- }
738
- return r.length && o.push(Je(r, t)), { ops: s, nums: o };
739
- }
740
- function Je(i, t) {
741
- return i.toLowerCase().startsWith("b") ? t[parseInt(i.slice(1), 10) - 1] : parseFloat(i);
742
- }
743
- function Dn(i, t, e, s) {
744
- if (typeof e == "number" && typeof s == "number")
745
- return e + s;
746
- let o, r, a;
747
- typeof e == "number" ? (a = s, o = a.length, r = new Float32Array(o), r.fill(e)) : (o = e.length, r = e, s.constructor === Number ? (a = new Float32Array(o), a.fill(s)) : a = s);
748
- const n = new Float32Array(o);
749
- switch (t) {
750
- case "+":
751
- for (let u = 0; u < o; u++)
752
- (i == null || i[u]) && (n[u] = r[u] + a[u]);
753
- break;
754
- case "-":
755
- for (let u = 0; u < o; u++)
756
- (i == null || i[u]) && (n[u] = r[u] - a[u]);
757
- break;
758
- case "*":
759
- for (let u = 0; u < o; u++)
760
- (i == null || i[u]) && (n[u] = r[u] * a[u]);
761
- break;
762
- case "/":
763
- for (let u = 0; u < o; u++)
764
- (i == null || i[u]) && a[u] && (n[u] = r[u] / a[u]);
765
- break;
766
- case "(":
767
- case ")":
768
- throw new Error("encountered error with custom band index equation");
769
- }
770
- return n;
771
- }
772
- function Gn(i, t) {
773
- i.splice(t, 1);
774
- let e = 0, s = 0;
775
- do {
776
- e = 0, s = 0;
777
- for (let o = 0; o < i.length; o++)
778
- if (i[o] === "(")
779
- e = o;
780
- else if (i[o] === ")") {
781
- s = o;
782
- break;
783
- }
784
- s === e + 1 && i.splice(e, 2);
785
- } while (s === e + 1);
786
- return i;
787
- }
788
- function zn(i) {
789
- if (i.length === 1)
790
- return { opIndex: 0, numIndex: 0 };
791
- let t = 0, e = 0;
792
- for (let a = 0; a < i.length; a++)
793
- if (i[a] === "(")
794
- t = a;
795
- else if (i[a] === ")") {
796
- e = a;
797
- break;
798
- }
799
- const s = e === 0 ? i : i.slice(t + 1, e);
800
- let o = -1;
801
- for (let a = 0; a < s.length; a++)
802
- if (s[a] === "*" || s[a] === "/") {
803
- o = a;
804
- break;
805
- }
806
- if (o > -1)
807
- e > 0 && (o += t + 1);
808
- else {
809
- for (let a = 0; a < s.length; a++)
810
- if (s[a] === "+" || s[a] === "-") {
811
- o = a;
812
- break;
813
- }
814
- e > 0 && (o += t + 1);
815
- }
816
- let r = 0;
817
- for (let a = 0; a < o; a++)
818
- i[a] === "(" && r++;
819
- return { opIndex: o, numIndex: o - r };
820
- }
821
- function En(i, t, e) {
822
- let s, { ops: o, nums: r } = On(e, t);
823
- if (o.length === 0) {
824
- const a = r.length === 1 ? r[0] : t[0];
825
- if (a instanceof Float32Array)
826
- return [a];
827
- const n = new Float32Array(t[0].length);
828
- return typeof a == "number" ? n.fill(a) : n.set(a), [n];
829
- }
830
- for (; o.length > 0; ) {
831
- const { numIndex: a, opIndex: n } = zn(o);
832
- if (s = Dn(i, o[n], r[a], r[a + 1]), o.length === 1)
833
- break;
834
- o = Gn(o, n), r.splice(a, 2, s);
835
- }
836
- return [s];
837
- }
838
- const Vn = new jt({ 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 });
839
- function Un(i, t) {
840
- if (!As(i))
841
- return i;
842
- const { equation: e, method: s } = t, o = t.bandIndexes.map((p) => p - 1), { pixels: r, mask: a } = i;
843
- let n;
844
- switch (s) {
845
- case "gndvi":
846
- case "nbr":
847
- case "ndbi":
848
- case "ndvi":
849
- case "ndvi-re":
850
- case "ndsi":
851
- case "ndmi":
852
- case "mndwi":
853
- n = Ke(a, r[o[0]], r[o[1]]);
854
- break;
855
- case "ndwi":
856
- n = Ke(a, r[o[1]], r[o[0]]);
857
- break;
858
- case "sr":
859
- case "sr-re":
860
- case "iron-oxide":
861
- case "ferrous-minerals":
862
- case "clay-minerals":
863
- n = Wn(a, r[o[0]], r[o[1]]);
864
- break;
865
- case "ci-g":
866
- case "ci-re":
867
- n = qn(a, r[o[0]], r[o[1]]);
868
- break;
869
- case "savi":
870
- n = Hn(a, r[o[0]], r[o[1]], o[2] + 1);
871
- break;
872
- case "tsavi":
873
- n = Xn(a, r[o[0]], r[o[1]], o[2] + 1, o[3] + 1, o[4] + 1);
874
- break;
875
- case "msavi":
876
- n = Jn(a, r[o[0]], r[o[1]]);
877
- break;
878
- case "gemi":
879
- n = Kn(a, r[o[0]], r[o[1]]);
880
- break;
881
- case "pvi":
882
- n = Yn(a, r[o[0]], r[o[1]], o[2] + 1, o[3] + 1);
883
- break;
884
- case "gvitm":
885
- n = Zn(a, [r[o[0]], r[o[1]], r[o[2]], r[o[3]], r[o[4]], r[o[5]]]);
886
- break;
887
- case "sultan":
888
- n = Qn(a, [r[o[0]], r[o[1]], r[o[2]], r[o[3]], r[o[4]]]);
889
- break;
890
- case "vari":
891
- n = tr(a, [r[o[0]], r[o[1]], r[o[2]]]);
892
- break;
893
- case "mtvi2":
894
- n = er(a, [r[o[0]], r[o[1]], r[o[2]]]);
895
- break;
896
- case "rtvi-core":
897
- n = sr(a, [r[o[0]], r[o[1]], r[o[2]]]);
898
- break;
899
- case "evi":
900
- n = nr(a, [r[o[0]], r[o[1]], r[o[2]]]);
901
- break;
902
- case "wndwi":
903
- n = rr(a, [r[o[0]], r[o[1]], r[o[2]]], o[3] ? o[3] + 1 : 0.5);
904
- break;
905
- case "bai":
906
- n = or(a, r[o[0]], r[o[1]]);
907
- break;
908
- case "custom":
909
- n = En(a, r, e);
910
- break;
911
- default:
912
- return i;
913
- }
914
- const u = a != null ? new Uint8Array(a.length) : null;
915
- a != null && u != null && u.set(a);
916
- const l = new w({ width: i.width, height: i.height, pixelType: "f32", pixels: n, mask: u });
917
- return l.updateStatistics(), l;
918
- }
919
- function Ln(i, t, e, s) {
920
- const { mask: o, pixels: r, width: a, height: n } = i, u = r[e], l = r[t], p = l.length, h = s ? new Uint8Array(p) : new Float32Array(p), f = s ? 100 : 1, g = s ? 100.5 : 0;
921
- for (let y = 0; y < p; y++)
922
- if (o == null || o[y]) {
923
- const d = u[y], b = l[y], v = d + b;
924
- v && (h[y] = (d - b) / v * f + g);
925
- }
926
- const x = new w({ width: a, height: n, mask: o, pixelType: s ? "u8" : "f32", pixels: [h] });
927
- return x.updateStatistics(), x;
928
- }
929
- function E(i) {
930
- const t = new Float32Array(9);
931
- return t[3 * i[0]] = 1, t[3 * i[1] + 1] = 1, t[3 * i[2] + 2] = 1, t;
932
- }
933
- function Ke(i, t, e) {
934
- const s = e.length, o = new Float32Array(s);
935
- for (let r = 0; r < s; r++)
936
- if (i == null || i[r]) {
937
- const a = t[r], n = e[r], u = a + n;
938
- u && (o[r] = (a - n) / u);
939
- }
940
- return [o];
941
- }
942
- function Wn(i, t, e) {
943
- const s = e.length, o = new Float32Array(s);
944
- for (let r = 0; r < s; r++)
945
- if (i == null || i[r]) {
946
- const a = t[r], n = e[r];
947
- n && (o[r] = a / n);
948
- }
949
- return [o];
950
- }
951
- function qn(i, t, e) {
952
- const s = t.length, o = new Float32Array(s);
953
- for (let r = 0; r < s; r++)
954
- if (i == null || i[r]) {
955
- const a = t[r], n = e[r];
956
- n && (o[r] = a / n - 1);
957
- }
958
- return [o];
959
- }
960
- function Hn(i, t, e, s) {
961
- const o = e.length, r = new Float32Array(o);
962
- for (let a = 0; a < o; a++)
963
- if (i == null || i[a]) {
964
- const n = e[a], u = t[a], l = u + n + s;
965
- l && (r[a] = (u - n) / l * (1 + s));
966
- }
967
- return [r];
968
- }
969
- function Xn(i, t, e, s, o, r) {
970
- const a = e.length, n = new Float32Array(a), u = -o * s + r * (1 + s * s);
971
- for (let l = 0; l < a; l++)
972
- if (i == null || i[l]) {
973
- const p = e[l], h = t[l], f = o * h + p + u;
974
- f && (n[l] = s * (h - s * p - o) / f);
975
- }
976
- return [n];
977
- }
978
- function Jn(i, t, e) {
979
- const s = e.length, o = new Float32Array(s);
980
- for (let r = 0; r < s; r++)
981
- if (i == null || i[r]) {
982
- const a = e[r], n = t[r], u = 2 * n + 1;
983
- o[r] = 0.5 * (u - Math.sqrt(u * u - 8 * (n - a)));
984
- }
985
- return [o];
986
- }
987
- function Kn(i, t, e) {
988
- const s = e.length, o = new Float32Array(s);
989
- for (let r = 0; r < s; r++)
990
- if (i == null || i[r]) {
991
- const a = e[r], n = t[r];
992
- if (a !== 1 && n + a + 0.5 !== 0) {
993
- const u = (2 * (n * n - a * a) + 1.5 * n + 0.5 * a) / (n + a + 0.5);
994
- o[r] = u * (1 - 0.25 * u) - (a - 0.125) / (1 - a);
995
- }
996
- }
997
- return [o];
998
- }
999
- function Yn(i, t, e, s, o) {
1000
- const r = e.length, a = new Float32Array(r), n = 1 / Math.sqrt(1 + s * s);
1001
- for (let u = 0; u < r; u++)
1002
- if (i == null || i[u]) {
1003
- const l = e[u], p = t[u];
1004
- a[u] = (p - s * l - o) * n;
1005
- }
1006
- return [a];
1007
- }
1008
- function Zn(i, t) {
1009
- const [e, s, o, r, a, n] = t, u = e.length, l = new Float32Array(u);
1010
- for (let p = 0; p < u; p++)
1011
- (i == null || i[p]) && (l[p] = -0.2848 * e[p] - 0.2435 * s[p] - 0.5436 * o[p] + 0.7243 * r[p] + 0.084 * a[p] - 0.18 * n[p]);
1012
- return [l];
1013
- }
1014
- function Qn(i, t) {
1015
- const [e, s, o, r, a] = t, n = e.length, u = new Float32Array(n), l = new Float32Array(n), p = new Float32Array(n);
1016
- for (let h = 0; h < n; h++)
1017
- (i == null || i[h]) && (u[h] = a[h] ? r[h] / a[h] * 100 : 0, l[h] = e[h] ? r[h] / e[h] * 100 : 0, p[h] = o[h] ? s[h] / o[h] * (r[h] / o[h]) * 100 : 0);
1018
- return [u, l, p];
1019
- }
1020
- function tr(i, t) {
1021
- const [e, s, o] = t, r = e.length, a = new Float32Array(r);
1022
- for (let n = 0; n < r; n++)
1023
- if (i == null || i[n])
1024
- for (n = 0; n < r; n++) {
1025
- const u = e[n], l = s[n], p = l + u - o[n];
1026
- p && (a[n] = (l - u) / p);
1027
- }
1028
- return [a];
1029
- }
1030
- function er(i, t) {
1031
- const [e, s, o] = t, r = e.length, a = new Float32Array(r);
1032
- for (let n = 0; n < r; n++)
1033
- if (i == null || i[n])
1034
- for (n = 0; n < r; n++) {
1035
- const u = e[n], l = s[n], p = o[n], h = Math.sqrt((2 * u + 1) ** 2 - (6 * u - 5 * Math.sqrt(l)) - 0.5);
1036
- if (h) {
1037
- const f = 1.5 * (1.2 * (u - p) - 2.5 * (l - p));
1038
- a[n] = f / h;
1039
- }
1040
- }
1041
- return [a];
1042
- }
1043
- function sr(i, t) {
1044
- const [e, s, o] = t, r = e.length, a = new Float32Array(r);
1045
- for (let n = 0; n < r; n++)
1046
- if (i == null || i[n])
1047
- for (n = 0; n < r; n++) {
1048
- const u = e[n], l = s[n], p = o[n];
1049
- a[n] = 100 * (u - l) - 10 * (u - p);
1050
- }
1051
- return [a];
1052
- }
1053
- function nr(i, t) {
1054
- const [e, s, o] = t, r = e.length, a = new Float32Array(r);
1055
- for (let n = 0; n < r; n++)
1056
- if (i == null || i[n])
1057
- for (n = 0; n < r; n++) {
1058
- const u = e[n], l = s[n], p = u + 6 * l - 7.5 * o[n] + 1;
1059
- p && (a[n] = 2.5 * (u - l) / p);
1060
- }
1061
- return [a];
1062
- }
1063
- function rr(i, t, e = 0.5) {
1064
- const [s, o, r] = t, a = o.length, n = new Float32Array(a);
1065
- for (let u = 0; u < a; u++)
1066
- if (i == null || i[u])
1067
- for (u = 0; u < a; u++) {
1068
- const l = s[u], p = o[u], h = r[u], f = l + e * p + (1 - e) * h;
1069
- f && (n[u] = (l - e * p - (1 - e) * h) / f);
1070
- }
1071
- return [n];
1072
- }
1073
- function or(i, t, e) {
1074
- const s = e.length, o = new Float32Array(s);
1075
- for (let r = 0; r < s; r++)
1076
- if (i == null || i[r])
1077
- for (r = 0; r < s; r++) {
1078
- const a = (0.1 - t[r]) ** 2 + (0.06 - e[r]) ** 2;
1079
- a && (o[r] = 1 / a);
1080
- }
1081
- return [o];
1082
- }
1083
- var te;
1084
- let Mt = te = class extends D {
1085
- constructor() {
1086
- super(...arguments), this.method = "custom";
1087
- }
1088
- clone() {
1089
- return new te({ method: this.method, bandIndexes: this.bandIndexes, raster: L(this.raster) });
1090
- }
1091
- };
1092
- c([m({ json: { type: String, write: !0 } })], Mt.prototype, "bandIndexes", void 0), c([Y(Vn)], Mt.prototype, "method", void 0), Mt = te = c([A("esri.layers.support.rasterFunctions.BandArithmeticFunctionArguments")], Mt);
1093
- const ir = Mt, ar = /* @__PURE__ */ new Set(["vari", "mtvi2", "rtvi-core", "evi"]);
1094
- let At = class extends G {
1095
- constructor() {
1096
- super(...arguments), this.functionName = "BandArithmetic", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
1097
- }
1098
- _bindSourceRasters() {
1099
- this.outputPixelType = this._getOutputPixelType("f32");
1100
- const t = this.sourceRasterInfos[0];
1101
- if (t.bandCount < 2)
1102
- return { success: !1, supportsGPU: !1, error: "band-arithmetic-function: source raster has insufficient amount of raster bands" };
1103
- const e = t.clone();
1104
- return e.pixelType = this.outputPixelType, e.bandCount = this.functionArguments.method === "sultan" ? 3 : 1, this._removeStatsHistColormapVAT(e), e.keyProperties = { ...e.keyProperties, BandProperties: void 0 }, this.rasterInfo = e, { success: !0, supportsGPU: !["custom", "gvitm", "sultan"].includes(this.functionArguments.method) };
1105
- }
1106
- _processPixels(t) {
1107
- var a;
1108
- const e = (a = t.pixelBlocks) == null ? void 0 : a[0];
1109
- if (e == null)
1110
- return e;
1111
- const { method: s, bandIndexes: o } = this.functionArguments, r = o.split(" ").map((n) => parseFloat(n));
1112
- return Un(e, { method: s, bandIndexes: r, equation: o });
1113
- }
1114
- _getWebGLParameters() {
1115
- const t = this.functionArguments.bandIndexes.split(" ").map((n) => parseFloat(n) - 1);
1116
- t.length === 2 && t.push(0);
1117
- const e = this.isInputBandIdsSwizzled ? [0, 1, 2] : t;
1118
- let s, o;
1119
- const r = new Float32Array(3), { method: a } = this.functionArguments;
1120
- switch (a) {
1121
- case "gndvi":
1122
- case "nbr":
1123
- case "ndbi":
1124
- case "ndvi":
1125
- case "ndvi-re":
1126
- case "ndsi":
1127
- case "ndmi":
1128
- case "mndwi":
1129
- s = E([e[0], e[1], 0]), o = "ndxi";
1130
- break;
1131
- case "ndwi":
1132
- s = E([e[1], e[0], 0]), o = "ndxi";
1133
- break;
1134
- case "sr":
1135
- case "sr-re":
1136
- case "iron-oxide":
1137
- case "ferrous-minerals":
1138
- case "clay-minerals":
1139
- s = E([e[0], e[1], 0]), o = "sr";
1140
- break;
1141
- case "ci-g":
1142
- case "ci-re":
1143
- s = E([e[0], e[1], 0]), o = "ci";
1144
- break;
1145
- case "savi":
1146
- s = E([e[0], e[1], 0]), o = "savi", r[0] = t[2] + 1;
1147
- break;
1148
- case "tsavi":
1149
- s = E([e[0], e[1], 0]), o = "tsavi", r[0] = t[2] + 1, r[1] = t[3] + 1, r[2] = t[4] + 1;
1150
- break;
1151
- case "msavi":
1152
- s = E([e[0], e[1], 0]), o = "msavi";
1153
- break;
1154
- case "gemi":
1155
- s = E([e[0], e[1], 0]), o = "gemi";
1156
- break;
1157
- case "pvi":
1158
- s = E([e[0], e[1], 0]), o = "tsavi", r[0] = t[2] + 1, r[1] = t[3] + 1;
1159
- break;
1160
- case "vari":
1161
- s = E([e[0], e[1], e[2]]), o = "vari";
1162
- break;
1163
- case "mtvi2":
1164
- s = E([e[0], e[1], e[2]]), o = "mtvi";
1165
- break;
1166
- case "rtvi-core":
1167
- s = E([e[0], e[1], e[2]]), o = "rtvicore";
1168
- break;
1169
- case "evi":
1170
- s = E([e[0], e[1], e[2]]), o = "evi";
1171
- break;
1172
- case "wndwi":
1173
- s = E([e[0], e[1], 0]), o = "wndwi", r[0] = t[3] ? t[3] + 1 : 0.5;
1174
- break;
1175
- case "bai":
1176
- s = E([e[1], e[0], 0]), o = "bai";
1177
- break;
1178
- default:
1179
- s = E([0, 1, 2]), o = "custom";
1180
- }
1181
- return { bandIndexMat3: s, indexType: o, adjustments: r };
1182
- }
1183
- _getInputBandIds(t) {
1184
- if (this.functionArguments.method === "custom")
1185
- return t;
1186
- const e = this.functionArguments.bandIndexes.split(" ").map((n) => parseFloat(n) - 1), s = t.length, o = e.map((n) => n >= s ? s - 1 : n), r = ar.has(this.functionArguments.method) ? 3 : 2, a = o.slice(0, r).map((n) => t[n]);
1187
- return a.length === 2 && a.push(0), a;
1188
- }
1189
- };
1190
- c([m({ json: { write: !0, name: "rasterFunction" } })], At.prototype, "functionName", void 0), c([m({ type: ir, json: { write: !0, name: "rasterFunctionArguments" } })], At.prototype, "functionArguments", void 0), c([m()], At.prototype, "rasterArgumentNames", void 0), At = c([A("esri.layers.support.rasterFunctions.BandArithmeticFunction")], At);
1191
- const ur = At;
1192
- var ee;
1193
- const Ye = new jt({ 1: "outside", 2: "inside" }, { useNumericKeys: !0 });
1194
- let Ot = ee = class extends D {
1195
- constructor() {
1196
- super(...arguments), this.clippingType = "outside";
1197
- }
1198
- clone() {
1199
- return new ee({ clippingGeometry: this.clippingGeometry.clone(), clippingType: this.clippingType });
1200
- }
1201
- };
1202
- c([m({ types: vs, json: { read: ws, write: !0 } })], Ot.prototype, "clippingGeometry", void 0), c([m({ json: { read: Ye.read, write: Ye.write } })], Ot.prototype, "clippingType", void 0), Ot = ee = c([A("esri.layers.support.rasterFunctions.ClipFunctionArguments")], Ot);
1203
- const lr = Ot;
1204
- let ot = class extends G {
1205
- constructor() {
1206
- super(...arguments), this.functionName = "Clip", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isNoopProcess = !0;
1207
- }
1208
- _bindSourceRasters() {
1209
- const t = this.sourceRasterInfos[0].clone();
1210
- return this.outputPixelType = this._getOutputPixelType(t.pixelType), t.pixelType = this.outputPixelType, this.rasterInfo = t, { success: !0, supportsGPU: !0 };
1211
- }
1212
- _processPixels(t) {
1213
- var e;
1214
- return (e = t.pixelBlocks) == null ? void 0 : e[0];
1215
- }
1216
- _getWebGLParameters() {
1217
- const { clippingGeometry: t, clippingType: e } = this.functionArguments;
1218
- return { clippingGeometry: t.toJSON(), clippingType: e };
1219
- }
1220
- };
1221
- c([m({ json: { write: !0, name: "rasterFunction" } })], ot.prototype, "functionName", void 0), c([m({ type: lr, json: { write: !0, name: "rasterFunctionArguments" } })], ot.prototype, "functionArguments", void 0), c([m()], ot.prototype, "rasterArgumentNames", void 0), c([m()], ot.prototype, "isNoopProcess", void 0), ot = c([A("esri.layers.support.rasterFunctions.ClipFunction")], ot);
1222
- const cr = ot;
1223
- var se;
1224
- let X = se = class extends D {
1225
- castColormapName(i) {
1226
- if (!i)
1227
- return null;
1228
- const t = i.toLowerCase();
1229
- return Cs.includes(t) ? t : null;
1230
- }
1231
- readColorRamp(i) {
1232
- return zs(i);
1233
- }
1234
- readColorRampName(i, t) {
1235
- if (!i)
1236
- return null;
1237
- const e = Vt.jsonValues.find((s) => s.toLowerCase() === i.toLowerCase());
1238
- return e ? Vt.fromJSON(e) : null;
1239
- }
1240
- clone() {
1241
- var i;
1242
- return new se({ colormap: L(this.colormap), colormapName: this.colormapName, colorRamp: (i = this.colorRamp) == null ? void 0 : i.clone(), colorRampName: this.colorRampName });
1243
- }
1244
- };
1245
- c([m({ type: [[Number]], json: { write: !0 } })], X.prototype, "colormap", void 0), c([m({ type: String, json: { write: !0 } })], X.prototype, "colormapName", void 0), c([rs("colormapName")], X.prototype, "castColormapName", null), c([m({ types: Gs, json: { write: !0 } })], X.prototype, "colorRamp", void 0), c([Ct("colorRamp")], X.prototype, "readColorRamp", null), c([m({ type: Vt.apiValues, json: { type: Vt.jsonValues, write: Vt.write } })], X.prototype, "colorRampName", void 0), c([Ct("colorRampName")], X.prototype, "readColorRampName", null), X = se = c([A("esri.layers.support.rasterFunctions.ColormapFunctionArguments")], X);
1246
- const pr = X, hr = [[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]], mr = [[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]];
1247
- function Re(i, t) {
1248
- const e = [], s = [];
1249
- for (let r = 0; r < i.length - 1; r++)
1250
- e.push({ type: "algorithmic", algorithm: "esriHSVAlgorithm", fromColor: i[r].slice(1), toColor: i[r + 1].slice(1) }), s.push(i[r + 1][0] - i[r][0]);
1251
- const o = i[i.length - 1][0];
1252
- return as({ type: "multipart", colorRamps: e }, { numColors: o, weights: t = t ?? s });
1253
- }
1254
- function fr() {
1255
- return Re([[0, 0, 191, 191], [51, 0, 0, 255], [102, 255, 0, 255], [153, 255, 0, 127], [204, 191, 63, 127], [256, 20, 20, 20]]);
1256
- }
1257
- function dr() {
1258
- const i = Re([[0, 255, 255, 255], [70, 0, 255, 0], [80, 205, 173, 193], [100, 150, 150, 150], [110, 120, 51, 100], [130, 120, 100, 200], [140, 28, 3, 144], [160, 6, 0, 55], [180, 10, 25, 30], [201, 6, 7, 27]]);
1259
- for (let t = i.length; t < 256; t++)
1260
- i.push([6, 27, 7]);
1261
- return i;
1262
- }
1263
- function gr() {
1264
- return as({ type: "algorithmic", algorithm: "esriHSVAlgorithm", fromColor: [0, 0, 0], toColor: [255, 255, 255] });
1265
- }
1266
- function yr() {
1267
- const i = [];
1268
- for (let t = 0; t < 256; t++) {
1269
- const e = [];
1270
- for (let s = 0; s < 3; s++)
1271
- e.push(Math.round(255 * Math.random()));
1272
- i.push(e);
1273
- }
1274
- return i;
1275
- }
1276
- function xr() {
1277
- return Re([[0, 38, 41, 54], [69, 79, 82, 90], [131, 156, 156, 156], [256, 253, 253, 241]], [0.268, 0.238, 0.495]);
1278
- }
1279
- function vr(i) {
1280
- let t;
1281
- switch (i) {
1282
- case "elevation":
1283
- t = fr();
1284
- break;
1285
- case "gray":
1286
- t = gr();
1287
- break;
1288
- case "hillshade":
1289
- t = xr();
1290
- break;
1291
- case "ndvi":
1292
- t = hr;
1293
- break;
1294
- case "ndvi2":
1295
- t = dr();
1296
- break;
1297
- case "ndvi3":
1298
- t = mr;
1299
- break;
1300
- case "random":
1301
- t = yr();
1302
- }
1303
- return t ? (t = t.map((e, s) => [s, ...e]), t) : null;
1304
- }
1305
- let Z = class extends G {
1306
- constructor() {
1307
- super(...arguments), this.functionName = "Colormap", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isNoopProcess = !0;
1308
- }
1309
- _bindSourceRasters() {
1310
- const t = this.sourceRasterInfos[0];
1311
- if (t.bandCount > 1)
1312
- return { success: !1, supportsGPU: !1, error: "colormap-function: source data must be single band" };
1313
- let { colormap: e, colormapName: s, colorRamp: o, colorRampName: r } = this.functionArguments;
1314
- if (!(e != null && e.length))
1315
- if (o)
1316
- e = je(o, { interpolateAlpha: !0 });
1317
- else if (r) {
1318
- const u = _s(r);
1319
- u && (e = je(u));
1320
- } else
1321
- s && (e = vr(s));
1322
- if (!(e != null && e.length))
1323
- return { success: !1, supportsGPU: !1, error: "colormap-function: missing colormap argument" };
1324
- const a = this._getOutputPixelType(t.pixelType);
1325
- this.outputPixelType = a.startsWith("f") ? "s32" : a;
1326
- const n = t.clone();
1327
- return n.pixelType = this.outputPixelType, n.colormap = e, n.bandCount = 1, this.rasterInfo = n, { success: !0, supportsGPU: !0 };
1328
- }
1329
- _processPixels(t) {
1330
- var s;
1331
- let e = (s = t.pixelBlocks) == null ? void 0 : s[0];
1332
- return !e || nt(e.pixelType) || (e = e.clone(), e.clamp(this.outputPixelType)), e;
1333
- }
1334
- };
1335
- c([m({ json: { write: !0, name: "rasterFunction" } })], Z.prototype, "functionName", void 0), c([m({ type: pr, json: { write: !0, name: "rasterFunctionArguments" } })], Z.prototype, "functionArguments", void 0), c([m()], Z.prototype, "rasterArgumentNames", void 0), c([m()], Z.prototype, "isNoopProcess", void 0), c([m({ json: { write: !0 } })], Z.prototype, "indexedColormap", void 0), Z = c([A("esri.layers.support.rasterFunctions.ColormapFunction")], Z);
1336
- const wr = Z;
1337
- var ne;
1338
- let Dt = ne = class extends D {
1339
- constructor() {
1340
- super(...arguments), this.rasters = [];
1341
- }
1342
- writeRasters(i, t) {
1343
- t.rasters = i.map((e) => typeof e == "number" || typeof e == "string" ? e : e.toJSON());
1344
- }
1345
- clone() {
1346
- return new ne({ rasters: L(this.rasters) });
1347
- }
1348
- };
1349
- c([m({ json: { write: !0 } })], Dt.prototype, "rasters", void 0), c([_t("rasters")], Dt.prototype, "writeRasters", null), Dt = ne = c([A("esri.layers.support.rasterFunctions.CompositeBandFunctionArguments")], Dt);
1350
- const br = Dt;
1351
- let Tt = class extends G {
1352
- constructor() {
1353
- super(...arguments), this.functionName = "CompositeBand", this.functionArguments = null, this.rasterArgumentNames = ["rasters"];
1354
- }
1355
- _bindSourceRasters() {
1356
- const { sourceRasterInfos: t } = this, e = t[0];
1357
- this.outputPixelType = this._getOutputPixelType(e.pixelType);
1358
- const s = e.clone();
1359
- if (s.attributeTable = null, s.colormap = null, s.pixelType = this.outputPixelType, s.bandCount = t.map(({ bandCount: r }) => r).reduce((r, a) => r + a), t.every(({ statistics: r }) => r != null && r.length)) {
1360
- const r = [];
1361
- t.forEach(({ statistics: a }) => a != null && r.push(...a)), s.statistics = r;
1362
- }
1363
- if (t.every(({ histograms: r }) => r != null && r.length)) {
1364
- const r = [];
1365
- t.forEach(({ histograms: a }) => a != null && r.push(...a)), s.histograms = r;
1366
- }
1367
- s.bandCount > 1 && (s.colormap = null, s.attributeTable = null);
1368
- const o = t.every((r) => {
1369
- var a;
1370
- return (a = r.keyProperties.BandProperties) == null ? void 0 : a.length;
1371
- }) ? t.flatMap((r) => r.keyProperties.BandProperties) : void 0;
1372
- return s.keyProperties = { ...s.keyProperties, BandProperties: o }, this.rasterInfo = s, { success: !0, supportsGPU: s.bandCount <= 3 };
1373
- }
1374
- _processPixels(t) {
1375
- const { pixelBlocks: e } = t;
1376
- return e ? (e == null ? void 0 : e[0]) == null ? null : Ts(e) : null;
1377
- }
1378
- _getWebGLParameters() {
1379
- return { bandCount: this.rasterInfo.bandCount };
1380
- }
1381
- };
1382
- c([m({ json: { write: !0, name: "rasterFunction" } })], Tt.prototype, "functionName", void 0), c([m({ type: br, json: { write: !0, name: "rasterFunctionArguments" } })], Tt.prototype, "functionArguments", void 0), c([m()], Tt.prototype, "rasterArgumentNames", void 0), Tt = c([A("esri.layers.support.rasterFunctions.CompositeBandFunction")], Tt);
1383
- const Ar = Tt;
1384
- var re;
1385
- let Gt = re = class extends D {
1386
- constructor() {
1387
- super(...arguments), this.contrastOffset = 0, this.brightnessOffset = 0;
1388
- }
1389
- clone() {
1390
- return new re({ contrastOffset: this.contrastOffset, brightnessOffset: this.brightnessOffset, raster: this.raster });
1391
- }
1392
- };
1393
- c([m({ json: { write: !0 } })], Gt.prototype, "contrastOffset", void 0), c([m({ json: { write: !0 } })], Gt.prototype, "brightnessOffset", void 0), Gt = re = c([A("esri.layers.support.rasterFunctions.ContrastBrightnessFunctionArguments")], Gt);
1394
- const Tr = Gt;
1395
- let it = class extends G {
1396
- constructor() {
1397
- super(...arguments), this.functionName = "ContrastBrightness", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.lookup = null;
1398
- }
1399
- _bindSourceRasters() {
1400
- const { sourceRasterInfos: t } = this, e = t[0];
1401
- if (e.pixelType !== "u8")
1402
- return { success: !1, supportsGPU: !1, error: "Only unsigned 8 bit raster is supported by ContrastBrightness function." };
1403
- this.outputPixelType = this._getOutputPixelType("u8");
1404
- const s = e.clone();
1405
- this._removeStatsHistColormapVAT(s), this.rasterInfo = s;
1406
- const { contrastOffset: o, brightnessOffset: r } = this.functionArguments;
1407
- return this.lookup = Bs(o, r), { success: !0, supportsGPU: !0 };
1408
- }
1409
- _processPixels(t) {
1410
- var s;
1411
- const e = (s = t.pixelBlocks) == null ? void 0 : s[0];
1412
- return e == null ? null : Fe(e, { lut: e.pixels.map(() => this.lookup), offset: 0, outputPixelType: "u8" });
1413
- }
1414
- _getWebGLParameters() {
1415
- const { contrastOffset: t, brightnessOffset: e } = this.functionArguments;
1416
- return { contrastOffset: t, brightnessOffset: e };
1417
- }
1418
- };
1419
- c([m({ json: { write: !0, name: "rasterFunction" } })], it.prototype, "functionName", void 0), c([m({ type: Tr, json: { write: !0, name: "rasterFunctionArguments" } })], it.prototype, "functionArguments", void 0), c([m()], it.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], it.prototype, "lookup", void 0), it = c([A("esri.layers.support.rasterFunctions.ContrastBrightnessFunction")], it);
1420
- const Pr = it;
1421
- function ke(i, t, e, s, o) {
1422
- const r = Math.floor(s / 2);
1423
- for (let n = 0; n < r; n++)
1424
- for (let u = 0; u < t; u++)
1425
- i[n * t + u] = i[(o - 1 - n) * t + u], i[(e - 1 - n) * t + u] = i[(e - o + n) * t + u];
1426
- const a = Math.floor(o / 2);
1427
- for (let n = 0; n < e; n++) {
1428
- const u = n * t;
1429
- for (let l = 0; l < a; l++)
1430
- i[u + l] = i[u + o - 1 - l], i[u + t - l - 1] = i[u + t + l - o];
1431
- }
1432
- }
1433
- const B = /* @__PURE__ */ new Map();
1434
- function $r(i) {
1435
- const t = Math.sqrt(i.length), e = i.slice(0, t), s = [1];
1436
- for (let o = 1; o < t; o++) {
1437
- let r = null;
1438
- for (let a = 0; a < t; a++) {
1439
- const n = i[a + o * t], u = i[a];
1440
- if (r == null)
1441
- if (u === 0) {
1442
- if (n)
1443
- return { separable: !1, row: null, col: null };
1444
- } else
1445
- r = n / u;
1446
- else if (n / u !== r)
1447
- return { separable: !1, row: null, col: null };
1448
- }
1449
- if (r == null)
1450
- return { separable: !1, row: null, col: null };
1451
- s.push(r);
1452
- }
1453
- return { separable: !0, row: e, col: s };
1454
- }
1455
- function Ze(i, t, e, s, o, r, a) {
1456
- const n = new Float32Array(t * e), u = r.length, l = a ? 0 : s, p = a ? s : 0, h = a ? 1 : t;
1457
- for (let f = l; f < e - l; f++) {
1458
- const g = f * t;
1459
- for (let x = p; x < t - p; x++) {
1460
- if (o && !o[g + x])
1461
- continue;
1462
- let y = 0;
1463
- for (let d = 0; d < u; d++)
1464
- y += i[g + x + (d - s) * h] * r[d];
1465
- n[g + x] = y;
1466
- }
1467
- }
1468
- return n;
1469
- }
1470
- function Fr(i, t, e, s, o, r, a) {
1471
- const n = new Float32Array(t * e), u = Math.floor(s / 2), l = Math.floor(o / 2);
1472
- for (let p = u; p < e - u; p++) {
1473
- const h = p * t;
1474
- for (let f = l; f < t - l; f++) {
1475
- if (r && !r[h + f])
1476
- continue;
1477
- let g = 0;
1478
- for (let x = 0; x < s; x++)
1479
- for (let y = 0; y < o; y++)
1480
- g += i[h + f + (x - u) * t + y - l] * a[x * o + y];
1481
- n[h + f] = g;
1482
- }
1483
- }
1484
- return n;
1485
- }
1486
- function Nr(i, t, e = !0) {
1487
- const { pixels: s, width: o, height: r, pixelType: a, mask: n } = i, u = s.length, l = [], { kernel: p, rows: h, cols: f } = t;
1488
- for (let g = 0; g < u; g++) {
1489
- const x = Fr(s[g], o, r, h, f, n, p);
1490
- e && ke(x, o, r, h, f), l.push(x);
1491
- }
1492
- return new w({ width: o, height: r, pixelType: a, pixels: l, mask: n });
1493
- }
1494
- function Ir(i, t, e, s = !0) {
1495
- const { pixels: o, width: r, height: a, pixelType: n, mask: u } = i, l = o.length, p = [], h = t.length, f = e.length, g = Math.floor(h / 2), x = Math.floor(f / 2);
1496
- for (let y = 0; y < l; y++) {
1497
- let d = Ze(o[y], r, a, g, u, t, !0);
1498
- d = Ze(d, r, a, x, u, e, !1), s && ke(d, r, a, h, f), p.push(d);
1499
- }
1500
- return new w({ width: r, height: a, pixelType: n, pixels: p, mask: u });
1501
- }
1502
- function Rr(i, t) {
1503
- const e = $r(t.kernel), s = t.mirrorEdges !== !1, o = e.separable ? Ir(i, e.row, e.col, s) : Nr(i, t, s), { outputPixelType: r } = t;
1504
- return r && o.clamp(r), o;
1505
- }
1506
- B.set($.none, [0, 0, 0, 0, 1, 0, 0, 0, 0]), B.set($.lineDetectionHorizontal, [-1, -1, -1, 2, 2, 2, -1, -1, -1]), B.set($.lineDetectionVertical, [-1, 2, -1, -1, 2, -1, -1, 2, -1]), B.set($.lineDetectionLeftDiagonal, [2, -1, -1, -1, 2, -1, -1, -1, 2]), B.set($.lineDetectionRightDiagonal, [-1, -1, 2, -1, 2, -1, 2, -1, -1]), B.set($.gradientNorth, [-1, -2, -1, 0, 0, 0, 1, 2, 1]), B.set($.gradientWest, [-1, 0, 1, -2, 0, 2, -1, 0, 1]), B.set($.gradientEast, [1, 0, -1, 2, 0, -2, 1, 0, -1]), B.set($.gradientSouth, [1, 2, 1, 0, 0, 0, -1, -2, -1]), B.set($.gradientNorthEast, [0, -1, -2, 1, 0, -1, 2, 1, 0]), B.set($.gradientNorthWest, [-2, -1, 0, -1, 0, 1, 0, 1, 2]), B.set($.smoothArithmeticMean, [0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111, 0.111111111111]), B.set($.smoothing3x3, [0.0625, 0.125, 0.0625, 0.125, 0.25, 0.125, 0.0625, 0.125, 0.0625]), B.set($.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]), B.set($.sharpening3x3, [-1, -1, -1, -1, 9, -1, -1, -1, -1]), B.set($.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]), B.set($.laplacian3x3, [0, -1, 0, -1, 4, -1, 0, -1, 0]), B.set($.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]), B.set($.sobelHorizontal, [-1, -2, -1, 0, 0, 0, 1, 2, 1]), B.set($.sobelVertical, [-1, 0, 1, -2, 0, 2, -1, 0, 1]), B.set($.sharpen, [0, -0.25, 0, -0.25, 2, -0.25, 0, -0.25, 0]), B.set($.sharpen2, [-0.25, -0.25, -0.25, -0.25, 3, -0.25, -0.25, -0.25, -0.25]), B.set($.pointSpread, [-0.627, 0.352, -0.627, 0.352, 2.923, 0.352, -0.627, 0.352, -0.627]);
1507
- var oe;
1508
- let at = oe = class extends D {
1509
- constructor() {
1510
- super(...arguments), this.rows = 3, this.cols = 3, this.kernel = [0, 0, 0, 0, 1, 0, 0, 0, 0];
1511
- }
1512
- set convolutionType(i) {
1513
- this._set("convolutionType", i);
1514
- const t = B.get(i);
1515
- if (!t || i === $.userDefined || i === $.none)
1516
- return;
1517
- const e = Math.sqrt(t.length);
1518
- this._set("kernel", t), this._set("cols", e), this._set("rows", e);
1519
- }
1520
- clone() {
1521
- return new oe({ cols: this.cols, rows: this.rows, kernel: [...this.kernel], convolutionType: this.convolutionType, raster: L(this.raster) });
1522
- }
1523
- };
1524
- c([m({ json: { type: Number, write: !0 } })], at.prototype, "rows", void 0), c([m({ json: { type: Number, write: !0 } })], at.prototype, "cols", void 0), c([m({ json: { name: "type", type: Number, write: !0 } })], at.prototype, "convolutionType", null), c([m({ json: { type: [Number], write: !0 } })], at.prototype, "kernel", void 0), at = oe = c([A("esri.layers.support.rasterFunctions.ConvolutionFunctionArguments")], at);
1525
- const kr = at, Qe = 25;
1526
- let ut = class extends G {
1527
- constructor() {
1528
- super(...arguments), this.functionName = "Convolution", this.rasterArgumentNames = ["raster"];
1529
- }
1530
- get _normalizedKernel() {
1531
- const { kernel: t, convolutionType: e } = this.functionArguments, s = t.reduce((o, r) => o + r);
1532
- return e === -1 || s === 0 || s === 1 ? t : t.map((o) => o / s);
1533
- }
1534
- _bindSourceRasters() {
1535
- const { convolutionType: t, rows: e, cols: s, kernel: o } = this.functionArguments;
1536
- if (!Object.values($).includes(t))
1537
- return { success: !1, supportsGPU: !1, error: `convolution-function: the specified kernel type is not supported ${t}` };
1538
- if (t !== $.none && e * s !== o.length)
1539
- return { success: !1, supportsGPU: !1, error: "convolution-function: the specified rows and cols do not match the length of the kernel" };
1540
- const r = this.sourceRasterInfos[0];
1541
- this.outputPixelType = this._getOutputPixelType(r.pixelType);
1542
- const a = r.clone();
1543
- a.pixelType = this.outputPixelType;
1544
- const n = [$.none, $.sharpen, $.sharpen2, $.sharpening3x3, $.sharpening5x5];
1545
- return (t === -1 || this.outputPixelType !== "u8" && !n.includes(t)) && (a.statistics = null, a.histograms = null), a.colormap = null, a.attributeTable = null, this.rasterInfo = a, { success: !0, supportsGPU: o.length <= Qe };
1546
- }
1547
- _processPixels(t) {
1548
- var a;
1549
- const e = (a = t.pixelBlocks) == null ? void 0 : a[0];
1550
- if (e == null || this.functionArguments.convolutionType === $.none)
1551
- return e;
1552
- const { rows: s, cols: o } = this.functionArguments, { _normalizedKernel: r } = this;
1553
- return Rr(e, { kernel: r, rows: s, cols: o, outputPixelType: this.outputPixelType });
1554
- }
1555
- _getWebGLParameters() {
1556
- const t = new Float32Array(Qe);
1557
- return t.set(this._normalizedKernel), { kernelRows: this.functionArguments.rows, kernelCols: this.functionArguments.cols, kernel: t, clampRange: vt(this.outputPixelType) };
1558
- }
1559
- };
1560
- c([m({ json: { write: !0, name: "rasterFunction" } })], ut.prototype, "functionName", void 0), c([m({ type: kr, json: { write: !0, name: "rasterFunctionArguments" } })], ut.prototype, "functionArguments", void 0), c([m()], ut.prototype, "rasterArgumentNames", void 0), c([m()], ut.prototype, "_normalizedKernel", null), ut = c([A("esri.layers.support.rasterFunctions.ConvolutionFunction")], ut);
1561
- const Cr = ut;
1562
- var ie;
1563
- const ms = new jt({ 0: "standard", 1: "platform", 2: "profile" }, { useNumericKeys: !0 });
1564
- let Pt = ie = class extends D {
1565
- constructor() {
1566
- super(...arguments), this.curvatureType = "standard", this.zFactor = 1;
1567
- }
1568
- readCurvatureType(i, t) {
1569
- return ms.fromJSON(t.type ?? t.curvatureType ?? 0);
1570
- }
1571
- clone() {
1572
- return new ie({ curvatureType: this.curvatureType, zFactor: this.zFactor, raster: this.raster });
1573
- }
1574
- };
1575
- c([m({ json: { write: { target: "type" } } }), Y(ms)], Pt.prototype, "curvatureType", void 0), c([Ct("curvatureType", ["type", "curvatureType"])], Pt.prototype, "readCurvatureType", null), c([m({ type: Number, json: { write: !0 } })], Pt.prototype, "zFactor", void 0), Pt = ie = c([A("esri.layers.support.rasterFunctions.CurvatureFunctionArguments")], Pt);
1576
- const _r = Pt;
1577
- let lt = class extends G {
1578
- constructor() {
1579
- super(...arguments), this.functionName = "Curvature", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isGCS = !1;
1580
- }
1581
- _bindSourceRasters() {
1582
- var e;
1583
- this.outputPixelType = this._getOutputPixelType("f32");
1584
- const t = this.sourceRasterInfos[0].clone();
1585
- return t.pixelType = this.outputPixelType, t.bandCount = 1, this._removeStatsHistColormapVAT(t), this.rasterInfo = t, this.isGCS = ((e = t.spatialReference) == null ? void 0 : e.isGeographic) ?? !1, { success: !0, supportsGPU: !0 };
1586
- }
1587
- _processPixels(t) {
1588
- var p;
1589
- const e = (p = t.pixelBlocks) == null ? void 0 : p[0];
1590
- if (e == null)
1591
- return null;
1592
- const { zFactor: s, curvatureType: o } = this.functionArguments, { extent: r, primaryPixelSizes: a } = t, n = a == null ? void 0 : a[0], u = n ?? (r ? { x: r.width / e.width, y: r.height / e.height } : { x: 1, y: 1 }), l = this.isGCS && s >= 1 ? s * Kt : s;
1593
- return js(e, { zFactor: l, curvatureType: o, resolution: u });
1594
- }
1595
- _getWebGLParameters() {
1596
- const { zFactor: t, curvatureType: e } = this.functionArguments;
1597
- return { curvatureType: e, zFactor: this.isGCS && t >= 1 ? t * Kt : t };
1598
- }
1599
- };
1600
- c([m({ json: { write: !0, name: "rasterFunction" } })], lt.prototype, "functionName", void 0), c([m({ type: _r, json: { write: !0, name: "rasterFunctionArguments" } })], lt.prototype, "functionArguments", void 0), c([m()], lt.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], lt.prototype, "isGCS", void 0), lt = c([A("esri.layers.support.rasterFunctions.CurvatureFunction")], lt);
1601
- const Br = lt;
1602
- var ae;
1603
- let J = ae = class extends D {
1604
- constructor() {
1605
- super(...arguments), this.bandIds = [], this.bandNames = [], this.bandWavelengths = [], this.missingBandAction = os.bestMatch;
1606
- }
1607
- clone() {
1608
- var i, t, e;
1609
- return new ae({ bandIds: (i = this.bandIds) == null ? void 0 : i.slice(), bandNames: (t = this.bandNames) == null ? void 0 : t.slice(), bandWavelengths: (e = this.bandWavelengths) == null ? void 0 : e.slice(), missingBandAction: this.missingBandAction, method: this.method, wavelengthMatchTolerance: this.wavelengthMatchTolerance });
1610
- }
1611
- };
1612
- c([m({ json: { write: !0 } })], J.prototype, "bandIds", void 0), c([m({ json: { write: !0 } })], J.prototype, "bandNames", void 0), c([m({ json: { write: !0 } })], J.prototype, "bandWavelengths", void 0), c([Y({ 0: "name", 1: "wavelength", 2: "id" })], J.prototype, "method", void 0), c([m({ json: { write: !0 } })], J.prototype, "missingBandAction", void 0), c([m({ json: { write: !0 } })], J.prototype, "wavelengthMatchTolerance", void 0), J = ae = c([A("esri.layers.support.rasterFunctions.ExtractBandFunctionArguments")], J);
1613
- const jr = J;
1614
- let $t = class extends G {
1615
- constructor() {
1616
- super(...arguments), this.functionName = "ExtractBand", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
1617
- }
1618
- _bindSourceRasters() {
1619
- var b;
1620
- const { functionArguments: t, sourceRasterInfos: e } = this, s = e[0], { method: o, bandNames: r, bandWavelengths: a, bandIds: n, missingBandAction: u } = t, l = (r == null ? void 0 : r.length) && (o === "name" || o !== "id" && !(n != null && n.length)), p = (a == null ? void 0 : a.length) && (o === "wavelength" || o !== "id" && !(n != null && n.length)), h = u === os.fail, f = l ? this._matchBandNames(s, r) : p ? this._matchBandWavelengths(s, a, h) : this._matchBandIds(s, n, h);
1621
- if (f == null)
1622
- return { success: !1, supportsGPU: !1, error: `extract-band-function: Invalid ${l ? "band names" : p ? "band wavelengths" : "band ids"} for the imagery data source` };
1623
- this.functionArguments.bandIds = f, this.functionArguments.method = "id", this.outputPixelType = this._getOutputPixelType("f32");
1624
- const g = s.clone();
1625
- g.pixelType = this.outputPixelType, g.bandCount = f.length;
1626
- const { statistics: x, histograms: y } = g;
1627
- x != null && x.length && (g.statistics = f.map((v) => x[v] || x[x.length - 1])), y != null && y.length && (g.histograms = f.map((v) => y[v] || y[y.length - 1]));
1628
- let d = (b = g.keyProperties) == null ? void 0 : b.BandProperties;
1629
- return d != null && d.length && (d = f.map((v) => v >= d.length ? d[d.length - 1] : d[v]), g.keyProperties = { ...g.keyProperties, BandProperties: d }), this.rasterInfo = g, { success: !0, supportsGPU: g.bandCount <= 3 };
1630
- }
1631
- _processPixels(t) {
1632
- var r;
1633
- const e = (r = t.pixelBlocks) == null ? void 0 : r[0];
1634
- if (e == null)
1635
- return null;
1636
- const s = e.pixels.length, o = this.functionArguments.bandIds.map((a) => a >= s ? s - 1 : a);
1637
- return e.extractBands(o);
1638
- }
1639
- _getWebGLParameters() {
1640
- let t;
1641
- if (this.isInputBandIdsSwizzled)
1642
- t = this.swizzledBandSelection.length ? this.swizzledBandSelection : [0, 1, 2];
1643
- else {
1644
- t = [...this.functionArguments.bandIds], t.length === 0 ? t = [0, 1, 2] : t.length < 3 && (t[1] = t[1] ?? t[0], t[2] = t[2] ?? t[1]);
1645
- for (let e = 0; e < 3; e++)
1646
- t[e] = Math.min(t[e], 2);
1647
- }
1648
- return { bandIndexMat3: E(t) };
1649
- }
1650
- _getInputBandIds(t) {
1651
- const e = t.length;
1652
- return this.functionArguments.bandIds.map((s) => s >= e ? e - 1 : s).map((s) => t[s]);
1653
- }
1654
- _matchBandNames(t, e) {
1655
- const s = t.bandInfos.map(({ name: r }) => r.toLowerCase()), o = [];
1656
- for (let r = 0; r < e.length; r++) {
1657
- const a = e[r].toLowerCase();
1658
- let n = s.indexOf(a);
1659
- if (n === -1 && a === "nearinfrared" && (n = s.findIndex((u) => u.startsWith("nearinfrared_1")), n === -1 && (n = s.findIndex((u) => u.startsWith("nearinfrared")))), n === -1)
1660
- return null;
1661
- o.push(n);
1662
- }
1663
- return o;
1664
- }
1665
- _matchBandIds(t, e, s) {
1666
- const { bandCount: o } = t;
1667
- return !(e != null && e.length) || s && e.some((r) => r < 0 || r >= o) ? null : e;
1668
- }
1669
- _matchBandWavelengths(t, e, s) {
1670
- const { bandInfos: o } = t, r = [];
1671
- for (let u = 0; u < o.length; u++) {
1672
- const { minWavelength: l, maxWavelength: p } = o[u];
1673
- if (!l || !p)
1674
- return null;
1675
- r.push({ minWavelength: l, maxWavelength: p });
1676
- }
1677
- const { wavelengthMatchTolerance: a } = this.functionArguments, n = [];
1678
- for (let u = 0; u < e.length; u++) {
1679
- const l = e[u];
1680
- let p = !1, h = -1, f = Number.MAX_VALUE;
1681
- for (let g = 0; g < r.length; g++) {
1682
- const x = r[g], y = l >= x.minWavelength && l <= x.maxWavelength, d = Math.abs(l - (x.minWavelength + x.maxWavelength) / 2);
1683
- y ? d < f && (p = !0, h = g, f = d) : !p && d < f && (h = g, f = d);
1684
- }
1685
- if (!p && a && f < a && (p = !0), !p && s)
1686
- return null;
1687
- n.push(h);
1688
- }
1689
- return n;
1690
- }
1691
- };
1692
- c([m({ json: { write: !0, name: "rasterFunction" } })], $t.prototype, "functionName", void 0), c([m({ type: jr, json: { write: !0, name: "rasterFunctionArguments" } })], $t.prototype, "functionArguments", void 0), c([m()], $t.prototype, "rasterArgumentNames", void 0), $t = c([A("esri.layers.support.rasterFunctions.ExtractBandFunction")], $t);
1693
- const Sr = $t;
1694
- function Mr(i, t, e) {
1695
- const { pixels: s, width: o, height: r, mask: a, bandMasks: n } = i, u = o * r, l = n != null && n.length ? w.combineBandMasks(n) : a, p = Math.min(t.length, s.length), h = e.startsWith("f"), f = !h && e !== i.pixelType, [g, x] = vt(e), y = w.createEmptyBand(e, u);
1696
- for (let b = 0; b < r; b++) {
1697
- let v = b * o;
1698
- for (let R = 0; R < o; R++, v++)
1699
- if (!l || l[v]) {
1700
- let N = 0;
1701
- for (let z = 0; z < p; z++)
1702
- N += t[z] * s[z][v];
1703
- h || (N = Math.round(N), f && (N = N > x ? x : N < g ? g : N)), y[v] = N;
1704
- }
1705
- }
1706
- const d = new w({ width: o, height: r, pixels: [y], pixelType: e, mask: l });
1707
- return d.updateStatistics(), d;
1708
- }
1709
- var ue;
1710
- let Lt = ue = class extends D {
1711
- clone() {
1712
- return new ue({ conversionParameters: [...this.conversionParameters], raster: this.raster });
1713
- }
1714
- };
1715
- c([m({ type: [Number], json: { write: !0 } })], Lt.prototype, "conversionParameters", void 0), Lt = ue = c([A("esri.layers.support.rasterFunctions.GrayscaleFunctionArguments")], Lt);
1716
- const Or = Lt;
1717
- let ct = class extends G {
1718
- constructor() {
1719
- super(...arguments), this.functionName = "Grayscale", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
1720
- }
1721
- get _normalizedWeights() {
1722
- const { conversionParameters: t } = this.functionArguments, e = t.reduce((s, o) => s + o);
1723
- return t.map((s) => s / e);
1724
- }
1725
- _bindSourceRasters() {
1726
- const { conversionParameters: t } = this.functionArguments;
1727
- if (!(t != null && t.length))
1728
- return { success: !1, supportsGPU: !1, error: "missing valid conversion parameters." };
1729
- const e = this.sourceRasterInfos[0].clone();
1730
- this.outputPixelType = this._getOutputPixelType(e.pixelType), e.pixelType = this.outputPixelType;
1731
- const s = t.length === 3 || e.bandCount === 3 && t.length > 3;
1732
- return e.bandCount = 1, this._removeStatsHistColormapVAT(e), this.rasterInfo = e, { success: !0, supportsGPU: s };
1733
- }
1734
- _processPixels(t) {
1735
- var s;
1736
- const e = (s = t.pixelBlocks) == null ? void 0 : s[0];
1737
- return e == null ? null : Mr(e, this._normalizedWeights, this.outputPixelType);
1738
- }
1739
- _getWebGLParameters() {
1740
- return { weights: this._normalizedWeights };
1741
- }
1742
- };
1743
- c([m({ json: { write: !0, name: "rasterFunction" } })], ct.prototype, "functionName", void 0), c([m({ type: Or, json: { write: !0, name: "rasterFunctionArguments" } })], ct.prototype, "functionArguments", void 0), c([m()], ct.prototype, "rasterArgumentNames", void 0), c([m()], ct.prototype, "_normalizedWeights", null), ct = c([A("esri.layers.support.rasterFunctions.GrayscaleFunction")], ct);
1744
- const Dr = ct;
1745
- var le;
1746
- let pt = le = class extends D {
1747
- constructor() {
1748
- super(...arguments), this.rasters = [], this.processAsMultiband = !0;
1749
- }
1750
- writeRasters(i, t) {
1751
- t.rasters = i.map((e) => typeof e == "number" || typeof e == "string" ? e : e.toJSON());
1752
- }
1753
- clone() {
1754
- return new le({ operation: this.operation, processAsMultiband: this.processAsMultiband, rasters: L(this.rasters) });
1755
- }
1756
- };
1757
- c([m({ json: { write: !0 } })], pt.prototype, "operation", void 0), c([m({ json: { write: !0 } })], pt.prototype, "rasters", void 0), c([_t("rasters")], pt.prototype, "writeRasters", null), c([m({ json: { write: !0 } })], pt.prototype, "processAsMultiband", void 0), pt = le = c([A("esri.layers.support.rasterFunctions.LocalFunctionArguments")], pt);
1758
- const Gr = pt;
1759
- let Ft = class extends G {
1760
- constructor() {
1761
- super(...arguments), this.functionName = "Local", this.functionArguments = null, this.rasterArgumentNames = ["rasters"];
1762
- }
1763
- _bindSourceRasters() {
1764
- const { sourceRasterInfos: t } = this, e = t[0], { bandCount: s } = e, { processAsMultiband: o } = this.functionArguments;
1765
- if (t.some((l) => l.bandCount !== s))
1766
- return { success: !1, supportsGPU: !1, error: "local-function: input rasters do not have same band count" };
1767
- const { operation: r, rasters: a } = this.functionArguments, n = Oe[r];
1768
- if (!(n === 999 || a.length === n || a.length <= 1 && n === 1))
1769
- return { success: !1, supportsGPU: !1, error: `local-function: the length of functionArguments.rasters does not match operation's requirement: ${n}` };
1770
- const u = e.clone();
1771
- return u.bandCount = n !== 999 || o ? s : 1, this._removeStatsHistColormapVAT(u), this._updateStatistics(u), this._updatePixelType(u), this.rasterInfo = u, { success: !0, supportsGPU: u.bandCount === 1 && n <= 3 && (r < 11 || r > 16) };
1772
- }
1773
- _processPixels(t) {
1774
- const { pixelBlocks: e } = t;
1775
- return e == null || e.some((s) => s == null) ? null : hs(e, this.functionArguments.operation, { processAsMultiband: this.functionArguments.processAsMultiband, outputPixelType: this.outputPixelType ?? void 0 });
1776
- }
1777
- _getWebGLParameters() {
1778
- var u;
1779
- const { operation: t } = this.functionArguments, e = Oe[t], s = ((u = Object.keys(Se).find((l) => Se[l] === t)) == null ? void 0 : u.toLowerCase()) ?? "undefined", o = this.outputPixelType ?? "f32";
1780
- let [r, a] = vt(o);
1781
- const n = nt(o);
1782
- return n && (r -= 1e-4, a += 1e-4), { imageCount: e, operationName: s, domainRange: [r, a], isOutputRounded: n };
1783
- }
1784
- _updateStatistics(t) {
1785
- var r, a;
1786
- const e = this.sourceRasterInfos[0], { operation: s } = this.functionArguments, o = (r = Me(s)) == null ? void 0 : r.domain;
1787
- if (o) {
1788
- t.statistics = [];
1789
- for (let n = 0; n < t.bandCount; n++)
1790
- t.statistics[n] = { min: o[0], max: o[1], avg: (o[0] + o[1]) / 2, stddev: (o[0] + o[1]) / 10 };
1791
- } else
1792
- s === 45 && ((a = e.statistics) != null && a.length) && (t.statistics = e.statistics.map((n) => ({ min: -n.max, max: -n.min, avg: n.avg != null ? -n.avg : void 0, stddev: n.stddev != null ? -n.stddev : void 0 })));
1793
- }
1794
- _updatePixelType(t) {
1795
- const { statistics: e, pixelType: s } = this.sourceRasterInfos[0], { operation: o } = this.functionArguments, { domain: r, isInteger: a } = Me(o) ?? { domain: null, isInteger: !1 };
1796
- let n = "f32";
1797
- if (r && a)
1798
- n = Xt(r[0], r[1]);
1799
- else if (o === 30) {
1800
- const u = e == null ? void 0 : e[0];
1801
- n = u ? Xt(u.min, u.max) : nt(s) ? s : "s32";
1802
- } else if (o === 45 && nt(s)) {
1803
- const u = e == null ? void 0 : e.map(({ max: f }) => -f), l = e == null ? void 0 : e.map(({ min: f }) => -f), p = u != null && u.length ? Math.min(...u) : null, h = l != null && l.length ? Math.min(...l) : null;
1804
- n = p != null && h != null ? Xt(p, h) : s.startsWith("s") ? s.replace("s", "u") : s === "u1" || s === "u2" || s === "u4" ? "s8" : s === "u8" ? "s16" : "s32";
1805
- }
1806
- t.pixelType = this.outputPixelType = this._getOutputPixelType(n);
1807
- }
1808
- };
1809
- c([m({ json: { write: !0, name: "rasterFunction" } })], Ft.prototype, "functionName", void 0), c([m({ type: Gr, json: { write: !0, name: "rasterFunctionArguments" } })], Ft.prototype, "functionArguments", void 0), c([m()], Ft.prototype, "rasterArgumentNames", void 0), Ft = c([A("esri.layers.support.rasterFunctions.LocalFunction")], Ft);
1810
- const zr = Ft;
1811
- var ce;
1812
- let ht = ce = class extends D {
1813
- constructor() {
1814
- super(...arguments), this.includedRanges = null, this.noDataValues = null, this.noDataInterpretation = is.matchAny;
1815
- }
1816
- get normalizedNoDataValues() {
1817
- const { noDataValues: i } = this;
1818
- if (!(i != null && i.length))
1819
- return null;
1820
- let t = !1;
1821
- const e = i.map((s) => {
1822
- if (typeof s == "number")
1823
- return t = !0, [s];
1824
- if (typeof s == "string") {
1825
- const o = s.trim().split(" ").filter((r) => r.trim() !== "").map((r) => Number(r));
1826
- return t = t || o.length > 0, o.length === 0 ? null : o;
1827
- }
1828
- return null;
1829
- });
1830
- return t ? e : null;
1831
- }
1832
- clone() {
1833
- var i, t;
1834
- return new ce({ includedRanges: ((i = this.includedRanges) == null ? void 0 : i.slice()) ?? [], noDataValues: ((t = this.noDataValues) == null ? void 0 : t.slice()) ?? [], noDataInterpretation: this.noDataInterpretation });
1835
- }
1836
- };
1837
- c([m({ json: { write: !0 } })], ht.prototype, "includedRanges", void 0), c([m({ json: { write: !0 } })], ht.prototype, "noDataValues", void 0), c([m()], ht.prototype, "normalizedNoDataValues", null), c([m({ json: { write: !0 } })], ht.prototype, "noDataInterpretation", void 0), ht = ce = c([A("esri.layers.support.rasterFunctions.MaskFunctionArguments")], ht);
1838
- const Er = ht;
1839
- let mt = class extends G {
1840
- constructor() {
1841
- super(...arguments), this.functionName = "Mask", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
1842
- }
1843
- _bindSourceRasters() {
1844
- const t = this.sourceRasterInfos[0].clone(), { pixelType: e } = t;
1845
- this.outputPixelType = this._getOutputPixelType(e), t.pixelType = this.outputPixelType, this.rasterInfo = t;
1846
- const { includedRanges: s, normalizedNoDataValues: o } = this.functionArguments;
1847
- if (!(s != null && s.length) && !(o != null && o.length))
1848
- return { success: !1, supportsGPU: !1, error: "missing includedRanges or noDataValues argument" };
1849
- let r = [];
1850
- for (let n = 0; n < t.bandCount; n++) {
1851
- const u = Ps(e, s == null ? void 0 : s.slice(2 * n, 2 * n + 2), o == null ? void 0 : o[n]);
1852
- if (u == null) {
1853
- r = null;
1854
- break;
1855
- }
1856
- r.push(u);
1857
- }
1858
- this.lookups = r;
1859
- const a = o != null && o.every((n) => {
1860
- var u;
1861
- return (n == null ? void 0 : n.length) === ((u = o[0]) == null ? void 0 : u.length);
1862
- });
1863
- return { success: !0, supportsGPU: (!s || s.length <= 2 * K) && (!o || a && o[0].length <= K) };
1864
- }
1865
- _processPixels(t) {
1866
- var l;
1867
- const e = (l = t.pixelBlocks) == null ? void 0 : l[0];
1868
- if (e == null)
1869
- return null;
1870
- const { outputPixelType: s, lookups: o } = this, { includedRanges: r, noDataInterpretation: a, normalizedNoDataValues: n } = this.functionArguments, u = a === is.matchAll;
1871
- return $s(e, { includedRanges: r, noDataValues: n, outputPixelType: s, matchAll: u, lookups: o });
1872
- }
1873
- _getWebGLParameters() {
1874
- var r;
1875
- const { includedRanges: t, normalizedNoDataValues: e } = this.functionArguments, s = new Float32Array(K);
1876
- s.fill(kt), (r = e == null ? void 0 : e[0]) != null && r.length && s.set(e[0]);
1877
- const o = new Float32Array(K);
1878
- for (let a = 0; a < o.length; a += 2)
1879
- o[a] = (t == null ? void 0 : t[a]) ?? -kt, o[a + 1] = (t == null ? void 0 : t[a + 1]) ?? kt;
1880
- return t && t.length && o.set(t), { bandCount: this.sourceRasterInfos[0].bandCount, noDataValues: s, includedRanges: o };
1881
- }
1882
- };
1883
- c([m({ json: { write: !0, name: "rasterFunction" } })], mt.prototype, "functionName", void 0), c([m({ type: Er, json: { write: !0, name: "rasterFunctionArguments" } })], mt.prototype, "functionArguments", void 0), c([m()], mt.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], mt.prototype, "lookups", void 0), mt = c([A("esri.layers.support.rasterFunctions.MaskFunction")], mt);
1884
- const Vr = mt;
1885
- var pe;
1886
- let Nt = pe = class extends D {
1887
- constructor() {
1888
- super(...arguments), this.visibleBandID = 0, this.infraredBandID = 1, this.scientificOutput = !1;
1889
- }
1890
- clone() {
1891
- const { visibleBandID: i, infraredBandID: t, scientificOutput: e } = this;
1892
- return new pe({ visibleBandID: i, infraredBandID: t, scientificOutput: e });
1893
- }
1894
- };
1895
- c([m({ json: { write: !0 } })], Nt.prototype, "visibleBandID", void 0), c([m({ json: { write: !0 } })], Nt.prototype, "infraredBandID", void 0), c([m({ json: { write: !0 } })], Nt.prototype, "scientificOutput", void 0), Nt = pe = c([A("esri.layers.support.rasterFunctions.NDVIFunctionArguments")], Nt);
1896
- const Ur = Nt;
1897
- let It = class extends G {
1898
- constructor() {
1899
- super(...arguments), this.functionName = "NDVI", this.functionArguments = null, this.rasterArgumentNames = ["raster"];
1900
- }
1901
- _bindSourceRasters() {
1902
- const { scientificOutput: t, visibleBandID: e, infraredBandID: s } = this.functionArguments;
1903
- this.outputPixelType = this._getOutputPixelType(t ? "f32" : "u8");
1904
- const o = this.sourceRasterInfos[0], r = Math.max(e, s);
1905
- if (o.bandCount < 2 || r >= o.bandCount)
1906
- return { success: !1, supportsGPU: !1, error: "ndvi-function: source raster has insufficient amount of raster bands" };
1907
- const a = o.clone();
1908
- a.pixelType = this.outputPixelType, a.colormap = null, a.histograms = null, a.bandCount = 1, a.keyProperties = { ...a.keyProperties, BandProperties: void 0 };
1909
- const [n, u, l, p] = t ? [-1, 1, 0, 0.1] : [0, 200, 100, 10];
1910
- return a.statistics = [{ min: n, max: u, avg: l, stddev: p }], this.rasterInfo = a, { success: !0, supportsGPU: !0 };
1911
- }
1912
- _processPixels(t) {
1913
- var a;
1914
- const e = (a = t.pixelBlocks) == null ? void 0 : a[0];
1915
- if (e == null)
1916
- return null;
1917
- const { visibleBandID: s, infraredBandID: o, scientificOutput: r } = this.functionArguments;
1918
- return Ln(e, s, o, !r);
1919
- }
1920
- _getWebGLParameters() {
1921
- const { visibleBandID: t, infraredBandID: e, scientificOutput: s } = this.functionArguments, o = this.isInputBandIdsSwizzled ? [0, 1, 2] : [e, t, 0];
1922
- return { bandIndexMat3: E(o), scaled: !s };
1923
- }
1924
- _getInputBandIds(t) {
1925
- const { visibleBandID: e, infraredBandID: s } = this.functionArguments;
1926
- return [s, e, 0].map((o) => t[o]);
1927
- }
1928
- };
1929
- c([m({ json: { write: !0, name: "rasterFunction" } })], It.prototype, "functionName", void 0), c([m({ type: Ur, json: { write: !0, name: "rasterFunctionArguments" } })], It.prototype, "functionArguments", void 0), c([m()], It.prototype, "rasterArgumentNames", void 0), It = c([A("esri.layers.support.rasterFunctions.NDVIFunction")], It);
1930
- const Lr = It;
1931
- var he;
1932
- let Q = he = class extends D {
1933
- constructor() {
1934
- super(...arguments), this.inputRanges = null, this.outputValues = null, this.noDataRanges = null, this.allowUnmatched = !1, this.isLastInputRangeInclusive = !1;
1935
- }
1936
- clone() {
1937
- return new he({ inputRanges: [...this.inputRanges], outputValues: [...this.outputValues], noDataRanges: [...this.noDataRanges], allowUnmatched: this.allowUnmatched, isLastInputRangeInclusive: this.isLastInputRangeInclusive });
1938
- }
1939
- };
1940
- c([m({ json: { write: !0 } })], Q.prototype, "inputRanges", void 0), c([m({ json: { write: !0 } })], Q.prototype, "outputValues", void 0), c([m({ json: { write: !0 } })], Q.prototype, "noDataRanges", void 0), c([m({ json: { write: !0 } })], Q.prototype, "allowUnmatched", void 0), c([m({ json: { write: !0 } })], Q.prototype, "isLastInputRangeInclusive", void 0), Q = he = c([A("esri.layers.support.rasterFunctions.RemapFunctionArguments")], Q);
1941
- const Wr = Q;
1942
- let ft = class extends G {
1943
- constructor() {
1944
- super(...arguments), this.functionName = "Remap", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.lookup = null;
1945
- }
1946
- _bindSourceRasters() {
1947
- const t = this.sourceRasterInfos[0].clone(), { pixelType: e } = t;
1948
- this.outputPixelType = this._getOutputPixelType(e), t.pixelType = this.outputPixelType, t.colormap = null, t.histograms = null, t.bandCount = 1, t.attributeTable = null;
1949
- const { statistics: s } = t, { allowUnmatched: o, outputValues: r, inputRanges: a, noDataRanges: n, isLastInputRangeInclusive: u } = this.functionArguments;
1950
- if (s != null && s.length && (r != null && r.length))
1951
- if (o) {
1952
- const l = Math.min.apply(null, [...r, s[0].min]), p = Math.max.apply(null, [...r, s[0].max]);
1953
- t.statistics = [{ ...s[0], min: l, max: p }];
1954
- } else {
1955
- let l = r[0], p = l;
1956
- for (let h = 0; h < r.length; h++)
1957
- l = l > r[h] ? r[h] : l, p = p > r[h] ? p : r[h];
1958
- t.statistics = [{ ...s[0], min: l, max: p }];
1959
- }
1960
- return this.rasterInfo = t, this.lookup = o ? null : Fs({ srcPixelType: e, inputRanges: a, outputValues: r, noDataRanges: n, allowUnmatched: o, isLastInputRangeInclusive: u, outputPixelType: this.outputPixelType }), { success: !0, supportsGPU: (!r || r.length <= K) && (!n || n.length <= K) };
1961
- }
1962
- _processPixels(t) {
1963
- var p;
1964
- const e = (p = t.pixelBlocks) == null ? void 0 : p[0];
1965
- if (e == null)
1966
- return null;
1967
- const { lookup: s, outputPixelType: o } = this;
1968
- if (s) {
1969
- const h = Fe(e, { lut: [s.lut], offset: s.offset, outputPixelType: o });
1970
- return h != null && s.mask && (h.mask = Ns(e.pixels[0], e.mask, s.mask, s.offset, "u8")), h;
1971
- }
1972
- const { inputRanges: r, outputValues: a, noDataRanges: n, allowUnmatched: u, isLastInputRangeInclusive: l } = this.functionArguments;
1973
- return Is(e, { inputRanges: r, outputValues: a, noDataRanges: n, outputPixelType: o, allowUnmatched: u, isLastInputRangeInclusive: l });
1974
- }
1975
- _getWebGLParameters() {
1976
- const { allowUnmatched: t, noDataRanges: e, isLastInputRangeInclusive: s } = this.functionArguments, o = new Float32Array(3 * K), r = 1e-5, a = this.functionArguments.inputRanges ?? [], n = this.functionArguments.outputValues ?? [], u = n.length;
1977
- for (let p = 0; p < K; p++)
1978
- o[3 * p] = a[2 * p] ?? kt - 1, o[3 * p + 1] = a[2 * p + 1] ?? kt, o[3 * p + 2] = n[p] ?? 0, p < u && (p > 0 && (o[3 * p] -= r), (p < u - 1 || !s) && (o[3 * p + 1] -= r));
1979
- const l = new Float32Array(2 * K);
1980
- return l.fill(kt), e != null && e.length && l.set(e), { allowUnmatched: t, rangeMaps: o, noDataRanges: l, clampRange: vt(this.outputPixelType) };
1981
- }
1982
- };
1983
- c([m({ json: { write: !0, name: "rasterFunction" } })], ft.prototype, "functionName", void 0), c([m({ type: Wr, json: { write: !0, name: "rasterFunctionArguments" } })], ft.prototype, "functionArguments", void 0), c([m()], ft.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], ft.prototype, "lookup", void 0), ft = c([A("esri.layers.support.rasterFunctions.RemapFunction")], ft);
1984
- const qr = ft;
1985
- var me;
1986
- const Hr = new jt({ 1: "degree", 2: "percent-rise", 3: "adjusted" }, { useNumericKeys: !0 });
1987
- let tt = me = class extends D {
1988
- constructor() {
1989
- super(...arguments), this.slopeType = "degree", this.zFactor = 1, this.pixelSizePower = 0.664, this.pixelSizeFactor = 0.024, this.removeEdgeEffect = !1;
1990
- }
1991
- clone() {
1992
- return new me({ slopeType: this.slopeType, zFactor: this.zFactor, pixelSizePower: this.pixelSizePower, pixelSizeFactor: this.pixelSizeFactor, removeEdgeEffect: this.removeEdgeEffect, raster: this.raster });
1993
- }
1994
- };
1995
- c([Y(Hr)], tt.prototype, "slopeType", void 0), c([m({ type: Number, json: { write: !0 } })], tt.prototype, "zFactor", void 0), c([m({ type: Number, json: { name: "psPower", write: !0 } })], tt.prototype, "pixelSizePower", void 0), c([m({ type: Number, json: { name: "psZFactor", write: !0 } })], tt.prototype, "pixelSizeFactor", void 0), c([m({ type: Boolean, json: { write: !0 } })], tt.prototype, "removeEdgeEffect", void 0), tt = me = c([A("esri.layers.support.rasterFunctions.SlopeFunctionArguments")], tt);
1996
- const Xr = tt;
1997
- let dt = class extends G {
1998
- constructor() {
1999
- super(...arguments), this.functionName = "Slope", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isGCS = !1;
2000
- }
2001
- _bindSourceRasters() {
2002
- var e;
2003
- this.outputPixelType = this._getOutputPixelType("f32");
2004
- const t = this.sourceRasterInfos[0].clone();
2005
- return t.pixelType = this.outputPixelType, t.statistics = this.functionArguments.slopeType !== "percent-rise" ? [{ 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 = ((e = t.spatialReference) == null ? void 0 : e.isGeographic) ?? !1, { success: !0, supportsGPU: !0 };
2006
- }
2007
- _processPixels(t) {
2008
- var f;
2009
- const e = (f = t.pixelBlocks) == null ? void 0 : f[0];
2010
- if (e == null)
2011
- return null;
2012
- const { zFactor: s, slopeType: o, pixelSizePower: r, pixelSizeFactor: a } = this.functionArguments, { isGCS: n } = this, { extent: u, primaryPixelSizes: l } = t, p = l == null ? void 0 : l[0], h = p ?? (u ? { x: u.width / e.width, y: u.height / e.height } : { x: 1, y: 1 });
2013
- return Ss(e, { zFactor: s, slopeType: o, pixelSizePower: r, pixelSizeFactor: a, isGCS: n, resolution: h });
2014
- }
2015
- _getWebGLParameters() {
2016
- const { zFactor: t, slopeType: e, pixelSizeFactor: s, pixelSizePower: o } = this.functionArguments;
2017
- return { zFactor: this.isGCS && t >= 1 ? t * Kt : t, slopeType: e, pixelSizeFactor: s ?? 0, pixelSizePower: o ?? 0 };
2018
- }
2019
- };
2020
- c([m({ json: { write: !0, name: "rasterFunction" } })], dt.prototype, "functionName", void 0), c([m({ type: Xr, json: { write: !0, name: "rasterFunctionArguments" } })], dt.prototype, "functionArguments", void 0), c([m()], dt.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], dt.prototype, "isGCS", void 0), dt = c([A("esri.layers.support.rasterFunctions.SlopeFunction")], dt);
2021
- const Jr = dt, ts = new jt({ 1: "min", 2: "max", 3: "mean", 4: "stddev", 5: "median", 6: "majority", 7: "minority" }, { useNumericKeys: !0 });
2022
- function Kr(i, t) {
2023
- const { fillNoDataOnly: e } = t, { band: s, width: o, height: r, mask: a, outBand: n } = i;
2024
- if (e && !a)
2025
- return void n.set(s);
2026
- const { statisticsType: u, kernelRows: l, kernelCols: p } = t, h = u === "stddev", f = o * r, g = new Float64Array(f), x = new Float64Array(f), y = new Uint32Array(f);
2027
- for (let F = 0; F < r; F++) {
2028
- const P = F * o;
2029
- let I = 0, k = 0, C = 0;
2030
- for (let _ = 0; _ < p; _++)
2031
- a && !a[P + _] || (I += s[P + _], h && (k += s[P + _] ** 2), C++);
2032
- g[P] = I, x[P] = k, y[P] = C;
2033
- for (let _ = 1; _ <= o - p; _++) {
2034
- const W = P + _ - 1, St = W + p;
2035
- a ? (a[W] && (C--, I -= s[W], h && (k -= s[W] ** 2)), a[St] && (C++, I += s[St], h && (k += s[St] ** 2))) : (I -= s[W], I += s[St], h && (k -= s[W] ** 2, k += s[St] ** 2)), g[P + _] = I, y[P + _] = C, h && (x[P + _] = k);
2036
- }
2037
- }
2038
- const d = new Float64Array(f), b = new Float64Array(f), v = new Uint32Array(f), R = l * o;
2039
- for (let F = 0; F <= o - p; F++) {
2040
- let P = 0, I = 0, k = 0;
2041
- for (let C = 0; C < l; C++) {
2042
- const _ = C * o + F;
2043
- P += g[_], k += y[_], h && (I += x[_]);
2044
- }
2045
- d[F] = P, b[F] = I, v[F] = k;
2046
- for (let C = 1; C <= r - l; C++) {
2047
- const _ = (C - 1) * o + F, W = _ + R;
2048
- P -= g[_], P += g[W], k -= y[_], k += y[W], h && (I -= x[_], I += x[W]), d[C * o + F] = P, b[C * o + F] = I, v[C * o + F] = k;
2049
- }
2050
- }
2051
- const N = Math.floor(l / 2), z = Math.floor(p / 2);
2052
- for (let F = N; F < r - N; F++) {
2053
- const P = F * o;
2054
- for (let I = z; I < o - z; I++) {
2055
- const k = (F - N) * o + I - z, C = v[k];
2056
- if (C === 0 || e && (!a || a[P + I]))
2057
- continue;
2058
- const _ = d[k] / C, W = h ? Math.sqrt((b[k] - d[k] * _) / C) : _;
2059
- n[P + I] = W, a && (a[P + I] = 255);
2060
- }
2061
- }
2062
- }
2063
- function Yr(i, t) {
2064
- const { fillNoDataOnly: e } = t, { band: s, width: o, height: r, mask: a, outBand: n } = i;
2065
- if (e && !a)
2066
- return void n.set(s);
2067
- const { kernelRows: u, kernelCols: l, statisticsType: p } = t, h = Math.floor(u / 2), f = Math.floor(l / 2), g = p === "min", x = n.slice(), y = new Uint32Array(o * r);
2068
- for (let d = h; d < r - h; d++) {
2069
- const b = d * o;
2070
- for (let v = f; v < o - f; v++) {
2071
- let R = g ? Number.MAX_VALUE : -Number.MAX_VALUE, N = 0;
2072
- for (let z = 0; z < u; z++)
2073
- for (let F = 0; F < l; F++) {
2074
- const P = b + v + (z - h) * o + F - f;
2075
- a && !a[P] || (R = g ? Math.min(R, s[P]) : Math.max(R, s[P]), N++);
2076
- }
2077
- a ? (x[b + v] = N === 0 ? 0 : R, y[b + v] = N) : n[b + v] = N === 0 ? 0 : R;
2078
- }
2079
- }
2080
- if (a)
2081
- for (let d = h; d < r - h; d++) {
2082
- const b = d * o;
2083
- for (let v = f; v < o - f; v++)
2084
- if (y[b + v]) {
2085
- if (e && a[b + v])
2086
- continue;
2087
- n[b + v] = x[b + v], a[b + v] = 255;
2088
- }
2089
- }
2090
- }
2091
- function Zr(i, t) {
2092
- const { fillNoDataOnly: e } = t, { band: s, width: o, height: r, mask: a, outBand: n } = i;
2093
- if (e && !a)
2094
- return void n.set(s);
2095
- const { kernelRows: u, kernelCols: l } = t, p = Math.floor(u / 2), h = Math.floor(l / 2), f = n.slice(), g = new Uint32Array(o * r);
2096
- for (let x = p; x < r - p; x++) {
2097
- const y = x * o;
2098
- for (let d = h; d < o - h; d++) {
2099
- if (e && a && a[y + d])
2100
- continue;
2101
- const b = [];
2102
- for (let v = 0; v < u; v++)
2103
- for (let R = 0; R < l; R++) {
2104
- const N = y + d + (v - p) * o + R - h;
2105
- a && !a[N] || b.push(s[N]);
2106
- }
2107
- b.length && (b.sort((v, R) => v - R), a ? (f[y + d] = b[Math.floor((b.length - 1) / 2)], g[y + d] = b.length) : n[y + d] = b[Math.floor((b.length - 1) / 2)]);
2108
- }
2109
- }
2110
- if (a)
2111
- for (let x = p; x < r - p; x++) {
2112
- const y = x * o;
2113
- for (let d = h; d < o - h; d++)
2114
- if (g[y + d]) {
2115
- if (e && a[y + d])
2116
- continue;
2117
- n[y + d] = f[y + d], a[y + d] = 255;
2118
- }
2119
- }
2120
- }
2121
- function Qr(i, t) {
2122
- const { fillNoDataOnly: e } = t, { band: s, width: o, height: r, mask: a, outBand: n } = i;
2123
- if (e && !a)
2124
- return void n.set(s);
2125
- const { kernelRows: u, kernelCols: l } = t, p = Math.floor(u / 2), h = Math.floor(l / 2), f = t.statisticsType === "majority", g = u * l, x = n.slice(), y = new Uint32Array(o * r);
2126
- for (let d = p; d < r - p; d++) {
2127
- const b = d * o;
2128
- for (let v = h; v < o - h; v++) {
2129
- if (e && a && a[b + v])
2130
- continue;
2131
- const R = /* @__PURE__ */ new Map();
2132
- for (let P = 0; P < u; P++)
2133
- for (let I = 0; I < l; I++) {
2134
- const k = b + v + (P - p) * o + I - h;
2135
- if (a && !a[k])
2136
- continue;
2137
- const C = s[k];
2138
- R.set(C, R.has(C) ? R.get(C) + 1 : 1);
2139
- }
2140
- if (R.size === 0)
2141
- continue;
2142
- let N = 0, z = 0, F = f ? 0 : g + 1;
2143
- for (const P of R.keys())
2144
- z = R.get(P), f === z > F && (F = z, N = P);
2145
- a ? (x[b + v] = N, y[b + v] = R.size) : n[b + v] = N;
2146
- }
2147
- }
2148
- if (a)
2149
- for (let d = p; d < r - p; d++) {
2150
- const b = d * o;
2151
- for (let v = h; v < o - h; v++)
2152
- if (y[b + v]) {
2153
- if (e && a[b + v])
2154
- continue;
2155
- n[b + v] = x[b + v], a[b + v] = 255;
2156
- }
2157
- }
2158
- }
2159
- function to(i, t) {
2160
- const { mask: e } = i, { fillNoDataOnly: s } = t;
2161
- if (s && !e)
2162
- return i;
2163
- const { pixels: o, width: r, height: a, bandMasks: n, pixelType: u } = i, l = o.length, p = r * a, h = [], { kernelRows: f, kernelCols: g, statisticsType: x, mirrorEdges: y } = t;
2164
- if (s && !e)
2165
- return i;
2166
- const d = t.outputPixelType ?? u, b = [];
2167
- for (let N = 0; N < l; N++) {
2168
- const z = o[N], F = w.createEmptyBand(d, p);
2169
- s && F.set(z);
2170
- const P = (n == null ? void 0 : n[N]) ?? e, I = (P == null ? void 0 : P.slice()) ?? null, k = { band: z, width: r, height: a, mask: I, outBand: F };
2171
- switch (x) {
2172
- case "min":
2173
- case "max":
2174
- Yr(k, t);
2175
- break;
2176
- case "mean":
2177
- case "stddev":
2178
- Kr(k, t);
2179
- break;
2180
- case "median":
2181
- Zr(k, t);
2182
- break;
2183
- case "majority":
2184
- case "minority":
2185
- Qr(k, t);
2186
- }
2187
- y && !s && ke(F, r, a, f, g), h.push(F), I && b.push(I);
2188
- }
2189
- let v = b[0] ?? e;
2190
- b.length !== l && (b.length = 0), l > 1 && (n != null && n.length) && (v = w.combineBandMasks(n));
2191
- const R = new w({ pixelType: d, width: r, height: a, pixels: h, bandMasks: n && b.length ? b : null, mask: v });
2192
- return R.updateStatistics(), R;
2193
- }
2194
- var fe;
2195
- let gt = fe = class extends D {
2196
- constructor() {
2197
- super(...arguments), this.rows = 3, this.cols = 3, this.fillNoDataOnly = !1, this.statisticsType = "min";
2198
- }
2199
- clone() {
2200
- return new fe({ rows: this.rows, cols: this.cols, fillNoDataOnly: this.fillNoDataOnly, statisticsType: this.statisticsType, raster: L(this.raster) });
2201
- }
2202
- };
2203
- c([m({ json: { write: !0, read: { source: ["kernelRows", "rows"], reader: (i, t) => Number(i ?? (t == null ? void 0 : t.kernelRows) ?? 3) } } })], gt.prototype, "rows", void 0), c([m({ json: { write: !0, read: { source: ["kernelCols", "cols"], reader: (i, t) => Number(i ?? (t == null ? void 0 : t.kernelCols) ?? 3) } } })], gt.prototype, "cols", void 0), c([m({ json: { write: !0 } })], gt.prototype, "fillNoDataOnly", void 0), c([m({ json: { read: { source: ["statisticsType", "type"], reader: (i, t) => ts.fromJSON((t == null ? void 0 : t.statisticsType) ?? (t == null ? void 0 : t.type)) ?? "min" }, write: { target: "type" } } }), Y(ts)], gt.prototype, "statisticsType", void 0), gt = fe = c([A("esri.layers.support.rasterFunctions.StatisticsFunctionArguments")], gt);
2204
- const eo = gt;
2205
- let Rt = class extends G {
2206
- constructor() {
2207
- super(...arguments), this.functionName = "Statistics", this.rasterArgumentNames = ["raster"];
2208
- }
2209
- _bindSourceRasters() {
2210
- const { type: t } = this.functionArguments.toJSON();
2211
- if (t < 1 || t > 7)
2212
- return { success: !1, supportsGPU: !1, error: `statistics-function: the given statistics type is not supported ${t}` };
2213
- const e = this.sourceRasterInfos[0];
2214
- this.outputPixelType = this._getOutputPixelType(e.pixelType);
2215
- const s = e.clone();
2216
- s.pixelType = this.outputPixelType;
2217
- const { statisticsType: o } = this.functionArguments;
2218
- return o === "stddev" && this._removeStatsHistColormapVAT(s), this.rasterInfo = s, { success: !0, supportsGPU: s.bandCount <= 3 && t < 5 };
2219
- }
2220
- _processPixels(t) {
2221
- var n;
2222
- const e = (n = t.pixelBlocks) == null ? void 0 : n[0];
2223
- if (e == null)
2224
- return e;
2225
- const { statisticsType: s, rows: o, cols: r, fillNoDataOnly: a } = this.functionArguments;
2226
- return to(e, { kernelRows: o, kernelCols: r, fillNoDataOnly: a, outputPixelType: this.outputPixelType, statisticsType: s, mirrorEdges: !0 });
2227
- }
2228
- _getWebGLParameters() {
2229
- const { rows: t, cols: e, statisticsType: s, fillNoDataOnly: o } = this.functionArguments;
2230
- return { fillNoDataOnly: o, kernelRows: t, kernelCols: e, statisticsType: s, clampRange: vt(this.outputPixelType) };
2231
- }
2232
- };
2233
- c([m({ json: { write: !0, name: "rasterFunction" } })], Rt.prototype, "functionName", void 0), c([m({ type: eo, json: { write: !0, name: "rasterFunctionArguments" } })], Rt.prototype, "functionArguments", void 0), c([m()], Rt.prototype, "rasterArgumentNames", void 0), Rt = c([A("esri.layers.support.rasterFunctions.StatisticsFunction")], Rt);
2234
- const so = Rt;
2235
- var de;
2236
- let yt = de = class extends D {
2237
- constructor() {
2238
- super(...arguments), this.statistics = null, this.histograms = null;
2239
- }
2240
- readStatistics(i, t) {
2241
- if (!(i != null && i.length))
2242
- return null;
2243
- const e = [];
2244
- return i.forEach((s) => {
2245
- const o = { min: s.min, max: s.max, avg: s.avg ?? s.mean, stddev: s.stddev ?? s.standardDeviation };
2246
- e.push(o);
2247
- }), e;
2248
- }
2249
- writeStatistics(i, t, e) {
2250
- if (!(i != null && i.length))
2251
- return;
2252
- const s = [];
2253
- i.forEach((o) => {
2254
- const r = { ...o, mean: o.avg, standardDeviation: o.stddev };
2255
- delete r.avg, delete r.stddev, s.push(r);
2256
- }), t[e] = s;
2257
- }
2258
- clone() {
2259
- return new de({ statistics: L(this.statistics), histograms: L(this.histograms) });
2260
- }
2261
- };
2262
- c([m({ json: { write: !0 } })], yt.prototype, "statistics", void 0), c([Ct("statistics")], yt.prototype, "readStatistics", null), c([_t("statistics")], yt.prototype, "writeStatistics", null), c([m({ json: { write: !0 } })], yt.prototype, "histograms", void 0), yt = de = c([A("esri.layers.support.rasterFunctions.StatisticsHistogramFunctionArguments")], yt);
2263
- const no = yt;
2264
- let et = class extends G {
2265
- constructor() {
2266
- super(...arguments), this.functionName = "StatisticsHistogram", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isNoopProcess = !0;
2267
- }
2268
- _bindSourceRasters() {
2269
- const t = this.sourceRasterInfos[0];
2270
- this.outputPixelType = this._getOutputPixelType("u8");
2271
- const e = t.clone(), { statistics: s, histograms: o } = this.functionArguments;
2272
- return o && (e.histograms = o), s && (e.statistics = s), this.rasterInfo = e, { success: !0, supportsGPU: !0 };
2273
- }
2274
- _processPixels(t) {
2275
- var e;
2276
- return (e = t.pixelBlocks) == null ? void 0 : e[0];
2277
- }
2278
- };
2279
- c([m({ json: { write: !0, name: "rasterFunction" } })], et.prototype, "functionName", void 0), c([m({ type: no, json: { write: !0, name: "rasterFunctionArguments" } })], et.prototype, "functionArguments", void 0), c([m()], et.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], et.prototype, "indexedColormap", void 0), c([m()], et.prototype, "isNoopProcess", void 0), et = c([A("esri.layers.support.rasterFunctions.StatisticsHistogramFunction")], et);
2280
- const ro = et;
2281
- var ge;
2282
- const oo = new jt({ 0: "none", 3: "standard-deviation", 4: "histogram-equalization", 5: "min-max", 6: "percent-clip", 9: "sigmoid" }, { useNumericKeys: !0 });
2283
- let V = ge = class extends D {
2284
- constructor() {
2285
- super(...arguments), this.computeGamma = !1, this.dynamicRangeAdjustment = !1, this.gamma = [], this.histograms = null, this.statistics = null, this.stretchType = "none", this.useGamma = !1;
2286
- }
2287
- writeStatistics(i, t, e) {
2288
- i != null && i.length && (Array.isArray(i[0]) || (i = i.map((s) => [s.min, s.max, s.avg, s.stddev])), t[e] = i);
2289
- }
2290
- clone() {
2291
- return new ge({ stretchType: this.stretchType, outputMin: this.outputMin, outputMax: this.outputMax, useGamma: this.useGamma, computeGamma: this.computeGamma, statistics: L(this.statistics), gamma: L(this.gamma), sigmoidStrengthLevel: this.sigmoidStrengthLevel, numberOfStandardDeviations: this.numberOfStandardDeviations, minPercent: this.minPercent, maxPercent: this.maxPercent, histograms: L(this.histograms), dynamicRangeAdjustment: this.dynamicRangeAdjustment, raster: this.raster });
2292
- }
2293
- };
2294
- c([m({ type: Boolean, json: { write: !0 } })], V.prototype, "computeGamma", void 0), c([m({ type: Boolean, json: { name: "dra", write: !0 } })], V.prototype, "dynamicRangeAdjustment", void 0), c([m({ type: [Number], json: { write: !0 } })], V.prototype, "gamma", void 0), c([m()], V.prototype, "histograms", void 0), c([m({ type: Number, json: { write: !0 } })], V.prototype, "maxPercent", void 0), c([m({ type: Number, json: { write: !0 } })], V.prototype, "minPercent", void 0), c([m({ type: Number, json: { write: !0 } })], V.prototype, "numberOfStandardDeviations", void 0), c([m({ type: Number, json: { name: "max", write: !0 } })], V.prototype, "outputMax", void 0), c([m({ type: Number, json: { name: "min", write: !0 } })], V.prototype, "outputMin", void 0), c([m({ type: Number, json: { write: !0 } })], V.prototype, "sigmoidStrengthLevel", void 0), c([m({ json: { type: [[Number]], write: !0 } })], V.prototype, "statistics", void 0), c([_t("statistics")], V.prototype, "writeStatistics", null), c([Y(oo)], V.prototype, "stretchType", void 0), c([m({ type: Boolean, json: { write: !0 } })], V.prototype, "useGamma", void 0), V = ge = c([A("esri.layers.support.rasterFunctions.StretchFunctionArguments")], V);
2295
- const io = V;
2296
- let st = class extends G {
2297
- constructor() {
2298
- super(...arguments), this.functionName = "Stretch", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.lookup = null, this.cutOffs = null;
2299
- }
2300
- _bindSourceRasters() {
2301
- this.lookup = null, this.cutOffs = null;
2302
- const t = this.sourceRasterInfos[0], { pixelType: e } = t, { functionArguments: s } = this, { dynamicRangeAdjustment: o, gamma: r, useGamma: a } = s;
2303
- if (!o && ["u8", "u16", "s8", "s16"].includes(e)) {
2304
- const u = Jt(s.toJSON(), { rasterInfo: t }), l = nt(this.outputPixelType) ? "round" : "float";
2305
- this.lookup = Ms({ pixelType: e, ...u, gamma: a ? r : null, rounding: l }), this.cutOffs = u;
2306
- } else
2307
- o || (this.cutOffs = Jt(s.toJSON(), { rasterInfo: t }));
2308
- this.outputPixelType = this._getOutputPixelType(e);
2309
- const n = t.clone();
2310
- return n.pixelType = this.outputPixelType, this._removeStatsHistColormapVAT(n), this.outputPixelType === "u8" && (n.keyProperties.DataType = "processed"), this.rasterInfo = n, { success: !0, supportsGPU: !o };
2311
- }
2312
- _processPixels(t) {
2313
- var n;
2314
- const e = (n = t.pixelBlocks) == null ? void 0 : n[0];
2315
- if (e == null)
2316
- return e;
2317
- const { lookup: s } = this;
2318
- if (s)
2319
- return Fe(e, { ...s, outputPixelType: this.rasterInfo.pixelType });
2320
- const { functionArguments: o } = this, r = this.cutOffs || Jt(o.toJSON(), { rasterInfo: this.sourceRasterInfos[0], pixelBlock: e }), a = o.useGamma ? o.gamma : null;
2321
- return Os(e, { ...r, gamma: a, outputPixelType: this.outputPixelType });
2322
- }
2323
- _getWebGLParameters() {
2324
- const { outputMin: t = 0, outputMax: e = 255, gamma: s, useGamma: o } = this.functionArguments, r = this.rasterInfo.bandCount >= 2 ? 3 : 1, a = o && (s != null && s.length) ? Ds(r, s) : [1, 1, 1], { minCutOff: n, maxCutOff: u } = this.cutOffs ?? { minCutOff: [0, 0, 0], maxCutOff: [255, 255, 255] };
2325
- n.length === 1 && (n[1] = n[2] = n[0], u[1] = u[2] = u[0]);
2326
- const l = new Float32Array(r);
2327
- let p;
2328
- for (p = 0; p < r; p++)
2329
- l[p] = (e - t) / (u[p] - n[p]);
2330
- const h = nt(this.outputPixelType);
2331
- return { bandCount: r, outMin: t, outMax: e, minCutOff: n, maxCutOff: u, factor: l, useGamma: o, gamma: o && s ? s : [1, 1, 1], gammaCorrection: o && a ? a : [1, 1, 1], stretchType: this.functionArguments.stretchType, isOutputRounded: h, type: "stretch" };
2332
- }
2333
- };
2334
- c([m({ json: { write: !0, name: "rasterFunction" } })], st.prototype, "functionName", void 0), c([m({ type: io, json: { write: !0, name: "rasterFunctionArguments" } })], st.prototype, "functionArguments", void 0), c([m()], st.prototype, "rasterArgumentNames", void 0), c([m({ json: { write: !0 } })], st.prototype, "lookup", void 0), c([m({ json: { write: !0 } })], st.prototype, "cutOffs", void 0), st = c([A("esri.layers.support.rasterFunctions.StretchFunction")], st);
2335
- const ao = st;
2336
- var ye;
2337
- let Wt = ye = class extends D {
2338
- constructor() {
2339
- super(...arguments), this.attributeTableAsRecordSet = null;
2340
- }
2341
- clone() {
2342
- return new ye({ attributeTableAsRecordSet: L(this.attributeTableAsRecordSet) });
2343
- }
2344
- };
2345
- c([m({ json: { write: !0 } })], Wt.prototype, "attributeTableAsRecordSet", void 0), Wt = ye = c([A("esri.layers.support.rasterFunctions.TableFunctionArguments")], Wt);
2346
- const uo = Wt;
2347
- let xt = class extends G {
2348
- constructor() {
2349
- super(...arguments), this.functionName = "Table", this.functionArguments = null, this.rasterArgumentNames = ["raster"], this.isNoopProcess = !0;
2350
- }
2351
- _bindSourceRasters() {
2352
- const t = this.sourceRasterInfos[0];
2353
- if (t.bandCount > 1 || t.pixelType.startsWith("f"))
2354
- return { success: !1, supportsGPU: !1, error: "table-function: Source data must be single band and integer pixel type." };
2355
- const { attributeTableAsRecordSet: e } = this.functionArguments;
2356
- if (!e)
2357
- return { success: !1, supportsGPU: !1, error: "table-function: Missing attributeTableAsRecordSet argument." };
2358
- this.outputPixelType = this._getOutputPixelType(t.pixelType);
2359
- const s = t.clone();
2360
- return s.pixelType = this.outputPixelType, s.bandCount = 1, s.dataType !== "thematic" && (s.keyProperties = s.keyProperties ? { ...s.keyProperties, DataType: "thematic" } : { DataType: "thematic" }), this.rasterInfo = s, { success: !0, supportsGPU: !0 };
2361
- }
2362
- _processPixels(t) {
2363
- var e;
2364
- return (e = t.pixelBlocks) == null ? void 0 : e[0];
2365
- }
2366
- };
2367
- c([m({ json: { write: !0, name: "rasterFunction" } })], xt.prototype, "functionName", void 0), c([m({ type: uo, json: { write: !0, name: "rasterFunctionArguments" } })], xt.prototype, "functionArguments", void 0), c([m()], xt.prototype, "rasterArgumentNames", void 0), c([m()], xt.prototype, "isNoopProcess", void 0), xt = c([A("esri.layers.support.rasterFunctions.TableFunction")], xt);
2368
- const lo = xt, M = /* @__PURE__ */ new Map();
2369
- function co(i, t) {
2370
- const { rasterFunctionArguments: e } = i;
2371
- e && (e.rasters || [e.raster]).forEach((s) => {
2372
- s && typeof s != "number" && (typeof s == "string" ? s.startsWith("http") && (t.includes(s) || t.push(s)) : "rasterFunctionArguments" in s && co(s, t));
2373
- });
2374
- }
2375
- function Jo(i, t) {
2376
- if (t = t ?? {}, "function" in (i = L(i)) && "arguments" in i && i.arguments) {
2377
- const e = gs(i, /* @__PURE__ */ new Map(), t);
2378
- if (we(e), !e.renderingRule)
2379
- throw new Bt("raster-function-helper", "Unsupported raster function json.");
2380
- i = e.renderingRule;
2381
- }
2382
- if ("rasterFunction" in i)
2383
- return fs(i = xe(i), t);
2384
- throw new Bt("raster-function-helper", "unsupported raster function json.");
2385
- }
2386
- function po(i, t) {
2387
- return t[0] === "rasters" && Array.isArray(i.rasters) ? i.rasters : t.map((e) => i[e]);
2388
- }
2389
- function es(i) {
2390
- return !!(i && typeof i == "object" && i.rasterFunction && i.rasterFunctionArguments);
2391
- }
2392
- function xe(i) {
2393
- var o;
2394
- const { rasterFunction: t, rasterFunctionArguments: e } = i, s = {};
2395
- for (const r in e) {
2396
- let a = e[r];
2397
- const n = r.toLowerCase();
2398
- if (n === "rasters" && Array.isArray(a))
2399
- s.rasters = a.map((u) => es(u) ? xe(u) : u);
2400
- else
2401
- switch (es(a) && (a = xe(a)), n) {
2402
- case "dra":
2403
- s.dra = a;
2404
- break;
2405
- case "pspower":
2406
- s.psPower = a;
2407
- break;
2408
- case "pszfactor":
2409
- s.psZFactor = a;
2410
- break;
2411
- case "bandids":
2412
- s.bandIds = a;
2413
- break;
2414
- default:
2415
- s[r[0].toLowerCase() + r.slice(1)] = a;
2416
- }
2417
- }
2418
- return t !== "Local" || (o = s.rasters) != null && o.length || (s.rasters = ["$$"]), { ...i, rasterFunctionArguments: s };
2419
- }
2420
- function fs(i, t) {
2421
- var f, g;
2422
- const { rasterFunction: e, rasterFunctionArguments: s } = i, o = (f = i.outputPixelType) == null ? void 0 : f.toLowerCase();
2423
- if (e == null || !M.has(e))
2424
- throw new Bt("raster-function-helper", `unsupported raster function: ${e}`);
2425
- const r = M.get(e), a = (typeof r.ctor == "function" ? r.ctor : r.ctor.default).fromJSON({ ...i, outputPixelType: o }), { rasterArgumentNames: n } = a, u = [], l = po(s, n), p = n[0] === "rasters", h = [];
2426
- for (let x = 0; x < l.length; x++) {
2427
- const y = l[x];
2428
- let d;
2429
- y == null || typeof y == "string" && y.startsWith("$") ? u.push(t == null ? void 0 : t.raster) : typeof y == "string" ? t[y] && u.push(t[y]) : typeof y != "number" && "rasterFunction" in y && (d = fs(y, t), p || (a.functionArguments[n[x]] = d), u.push(d)), p && h.push(d ?? y);
2430
- }
2431
- if (p && (a.functionArguments.rasters = h), t) {
2432
- a.sourceRasters = u;
2433
- const x = (g = t.raster) == null ? void 0 : g.url;
2434
- x && (a.mainPrimaryRasterId = x);
2435
- }
2436
- return a;
2437
- }
2438
- function ds(i, t) {
2439
- if (i && t)
2440
- for (const e in i) {
2441
- const s = i[e];
2442
- s && typeof s == "object" && "type" in s && (s.type === "RasterFunctionTemplate" ? ds(s.arguments, t) : s.type === "RasterFunctionVariable" && t[s.name] != null && (s.value = t[s.name]));
2443
- }
2444
- }
2445
- function ve(i, t) {
2446
- var o;
2447
- if (!i || typeof i != "object")
2448
- return i;
2449
- const { value: e } = i;
2450
- if (!e || typeof e != "object")
2451
- return i.isDataset ? "$$" : e;
2452
- if (Array.isArray(e))
2453
- return e.length === 0 ? [] : e.map((r) => typeof r == "object" && r.type === "RasterFunctionVariable" ? ve(r, t) : r);
2454
- if ("value" in e && ["number", "string", "boolean"].includes(typeof e.value))
2455
- return e.value;
2456
- if (i.isDataset && e.type !== "Scalar")
2457
- return "$$";
2458
- if (!("type" in e))
2459
- return e;
2460
- let s = e;
2461
- switch (e.type) {
2462
- case "Scalar":
2463
- s = e.value;
2464
- break;
2465
- case "AlgorithmicColorRamp":
2466
- s = ss(e);
2467
- break;
2468
- case "MultiPartColorRamp":
2469
- s = { type: "multipart", colorRamps: e.ArrayOfColorRamp.map(ss) };
2470
- break;
2471
- case "ArgumentArray":
2472
- if ((o = e.elements) != null && o.length && e.elements[0].type !== "RasterStatistics") {
2473
- const r = [];
2474
- for (let a = 0; a < e.elements.length; a++) {
2475
- const n = e.elements[a], { type: u } = n;
2476
- if (u)
2477
- if (u === "RasterFunctionTemplate") {
2478
- const { renderingRule: l } = gs(n, t);
2479
- r.push(l), n._object_id != null && t.set(n._object_id, l);
2480
- } else {
2481
- if (u !== "RasterFunctionVariable")
2482
- throw new Bt("raster-function-helper", "unsupported raster function json.");
2483
- {
2484
- const l = ve(n, t);
2485
- r.push(l), n._object_id != null && t.set(n._object_id, l);
2486
- }
2487
- }
2488
- else
2489
- r.push(n);
2490
- }
2491
- s = r;
2492
- } else
2493
- s = e.elements;
2494
- }
2495
- return e._object_id != null && t.set(e._object_id, s), s;
2496
- }
2497
- function ss(i) {
2498
- const t = i.algorithm ?? "esriHSVAlgorithm";
2499
- let { FromColor: e, ToColor: s } = i;
2500
- if (!Array.isArray(e)) {
2501
- const { r: o, g: r, b: a } = _e({ h: e.Hue, s: e.Saturation, v: e.Value });
2502
- e = [o, r, a, e.AlphaValue];
2503
- }
2504
- if (!Array.isArray(s)) {
2505
- const { r: o, g: r, b: a } = _e({ h: s.Hue, s: s.Saturation, v: s.Value });
2506
- s = [o, r, a, s.AlphaValue];
2507
- }
2508
- return { type: "algorithmic", algorithm: t, fromColor: e, toColor: s };
2509
- }
2510
- function gs(i, t, e) {
2511
- e && ds(i, e);
2512
- const s = { renderingRule: {}, templates: t };
2513
- return ys(i, s), s;
2514
- }
2515
- function ys(i, t) {
2516
- if (!i || !t.renderingRule)
2517
- return;
2518
- const { renderingRule: e, templates: s } = t, { function: o, arguments: r, _object_id: a } = i;
2519
- if (!o || !r)
2520
- return;
2521
- a != null && s.set(a, e), e.rasterFunction = o.type.replace("Function", ""), e.outputPixelType = o.pixelType;
2522
- const n = {};
2523
- e.rasterFunctionArguments = n;
2524
- for (const u in r) {
2525
- if (u === "type" || u === "object_id" || u === "_object_ref_id")
2526
- continue;
2527
- const l = r[u];
2528
- l && typeof l == "object" && "type" in l && (l.type === "RasterFunctionTemplate" || l.type === "RasterFunctionVariable") ? (l.type === "RasterFunctionVariable" ? n[u] = ve(l, s) : (e.rasterFunctionArguments[u] = {}, ys(l, { renderingRule: e.rasterFunctionArguments[u], templates: s })), l._object_id != null && s.set(l._object_id, n[u])) : n[u] = l;
2529
- }
2530
- switch (n.DEM && !n.Raster && (n.Raster = n.DEM, delete n.DEM), e.rasterFunction) {
2531
- case "Stretch":
2532
- ho(n);
2533
- break;
2534
- case "Colormap":
2535
- mo(n);
2536
- break;
2537
- case "Convolution":
2538
- fo(n);
2539
- break;
2540
- case "Mask":
2541
- go(n);
2542
- }
2543
- }
2544
- function we(i) {
2545
- const { renderingRule: t, templates: e } = i;
2546
- if (typeof t != "object" || !(t != null && t.rasterFunctionArguments) || !e.size)
2547
- return;
2548
- const { rasterFunctionArguments: s } = t;
2549
- for (const o in s) {
2550
- const r = s[o], a = o === "_object_ref_id" ? r : r && typeof r == "object" && "_object_ref_id" in r ? r._object_ref_id : null;
2551
- if (a == null)
2552
- r && typeof r == "object" && (r.rasterFunctionArguments && we({ renderingRule: r, templates: e }), Array.isArray(r) && r.forEach((n, u) => {
2553
- if (typeof n == "object")
2554
- if (n._object_ref_id != null) {
2555
- if (!e.has(n._object_ref_id))
2556
- throw new Bt("raster-function-helper", `unsupported raster function json. _object_ref_id: ${r} does not exist`);
2557
- const l = e.get(a);
2558
- l && typeof l == "object" ? Object.assign(n, l) : r[u] = l;
2559
- } else
2560
- we({ renderingRule: n, templates: e });
2561
- }));
2562
- else {
2563
- if (!e.has(a))
2564
- throw new Bt("raster-function-helper", `unsupported raster function json. _object_ref_id: ${a} does not exist`);
2565
- const n = e.get(a);
2566
- o !== "_object_ref_id" ? s[o] = n : n && typeof n == "object" && Object.assign(s, n);
2567
- }
2568
- }
2569
- }
2570
- function ho(i) {
2571
- var t;
2572
- (t = i.Statistics) != null && t.length && typeof i.Statistics == "object" && (i.Statistics = i.Statistics.map((e) => [e.min, e.max, e.mean, e.standardDeviation])), i.NumberOfStandardDeviation != null && (i.NumberOfStandardDeviations = i.NumberOfStandardDeviation, delete i.NumberOfStandardDeviation);
2573
- }
2574
- function mo(i) {
2575
- var t, e;
2576
- ((e = (t = i.ColorRamp) == null ? void 0 : t.type) == null ? void 0 : e.toLowerCase()) === "randomcolorramp" && (delete i.ColorRamp, i.ColormapName = "Random"), i.ColorSchemeType === 0 && delete i.ColorRamp;
2577
- }
2578
- function fo(i) {
2579
- i.ConvolutionType != null && (i.Type = i.ConvolutionType, delete i.ConvolutionType);
2580
- }
2581
- function go(i) {
2582
- var t;
2583
- (t = i.NoDataValues) != null && t.length && typeof i.NoDataValues[0] == "string" && (i.NoDataValues = i.NoDataValues.filter((e) => e !== "").map((e) => Number(e)));
2584
- }
2585
- M.set("Arithmetic", { desc: "Arithmetic Function", ctor: Bn, rasterArgumentNames: ["rasters"] }), M.set("Aspect", { desc: "Aspect Function", ctor: Sn, rasterArgumentNames: ["raster"] }), M.set("BandArithmetic", { desc: "Band Arithmetic Function", ctor: ur, rasterArgumentNames: ["raster"] }), M.set("Colormap", { desc: "Colormap Function", ctor: wr, rasterArgumentNames: ["raster"] }), M.set("CompositeBand", { desc: "CompositeBand Function", ctor: Ar, rasterArgumentNames: ["rasters"] }), M.set("Convolution", { desc: "Convolution Function", ctor: Cr, rasterArgumentNames: ["raster"] }), M.set("ContrastBrightness", { desc: "Contrast Brightness Function", ctor: Pr, rasterArgumentNames: ["raster"] }), M.set("ExtractBand", { desc: "ExtractBand Function", ctor: Sr, rasterArgumentNames: ["raster"] }), M.set("Curvature", { desc: "Curvature Function", ctor: Br, rasterArgumentNames: ["raster"] }), M.set("Grayscale", { desc: "Grayscale Function", ctor: Dr, rasterArgumentNames: ["raster"] }), M.set("Clip", { desc: "Clip Function", ctor: cr, rasterArgumentNames: ["raster"] }), M.set("Local", { desc: "Local Function", ctor: zr, rasterArgumentNames: ["rasters"] }), M.set("Mask", { desc: "Mask Function", ctor: Vr, rasterArgumentNames: ["raster"] }), M.set("NDVI", { desc: "NDVI Function", ctor: Lr, rasterArgumentNames: ["raster"] }), M.set("Remap", { desc: "Remap Function", ctor: qr, rasterArgumentNames: ["raster"] }), M.set("Slope", { desc: "Slope Function", ctor: Jr, rasterArgumentNames: ["raster"] }), M.set("Statistics", { desc: "Focal Statistics Function", ctor: so, rasterArgumentNames: ["raster"] }), M.set("StatisticsHistogram", { desc: "Statistics Histogram Function", ctor: ro, rasterArgumentNames: ["raster"] }), M.set("Stretch", { desc: "Stretch Function", ctor: ao, rasterArgumentNames: ["raster"] }), M.set("Table", { desc: "Attribute Table Function", ctor: lo, rasterArgumentNames: ["raster"] });
2586
- let zt = class extends $e {
2587
- get affectsPixelSize() {
2588
- return !1;
2589
- }
2590
- forwardTransform(i) {
2591
- return i;
2592
- }
2593
- inverseTransform(i) {
2594
- return i;
2595
- }
2596
- };
2597
- c([m()], zt.prototype, "affectsPixelSize", null), c([m({ json: { write: !0 } })], zt.prototype, "spatialReference", void 0), zt = c([A("esri.layers.support.rasterTransforms.BaseRasterTransform")], zt);
2598
- const Ce = zt;
2599
- var be;
2600
- let Et = be = class extends Ce {
2601
- constructor() {
2602
- super(...arguments), this.type = "gcs-shift", this.tolerance = 1e-8;
2603
- }
2604
- forwardTransform(i) {
2605
- return (i = i.clone()).type === "point" ? (i.x > 180 + this.tolerance && (i.x -= 360), i) : (i.xmin >= 180 - this.tolerance ? (i.xmax -= 360, i.xmin -= 360) : i.xmax > 180 + this.tolerance && (i.xmin = -180, i.xmax = 180), i);
2606
- }
2607
- inverseTransform(i) {
2608
- return (i = i.clone()).type === "point" ? (i.x < -this.tolerance && (i.x += 360), i) : (i.xmin < -this.tolerance && (i.xmin += 360, i.xmax += 360), i);
2609
- }
2610
- clone() {
2611
- return new be({ tolerance: this.tolerance });
2612
- }
2613
- };
2614
- c([Y({ GCSShiftXform: "gcs-shift" })], Et.prototype, "type", void 0), c([m()], Et.prototype, "tolerance", void 0), Et = be = c([A("esri.layers.support.rasterTransforms.GCSShiftTransform")], Et);
2615
- const yo = Et;
2616
- var Ae;
2617
- let qt = Ae = class extends Ce {
2618
- constructor() {
2619
- super(...arguments), this.type = "identity";
2620
- }
2621
- clone() {
2622
- return new Ae();
2623
- }
2624
- };
2625
- c([Y({ IdentityXform: "identity" })], qt.prototype, "type", void 0), qt = Ae = c([A("esri.layers.support.rasterTransforms.IdentityTransform")], qt);
2626
- const xo = qt;
2627
- var Te;
2628
- function Pe(i, t, e) {
2629
- const { x: s, y: o } = t;
2630
- if (e < 2)
2631
- return { x: i[0] + s * i[2] + o * i[4], y: i[1] + s * i[3] + o * i[5] };
2632
- if (e === 2) {
2633
- const f = s * s, g = o * o, x = s * o;
2634
- return { x: i[0] + s * i[2] + o * i[4] + f * i[6] + x * i[8] + g * i[10], y: i[1] + s * i[3] + o * i[5] + f * i[7] + x * i[9] + g * i[11] };
2635
- }
2636
- const r = s * s, a = o * o, n = s * o, u = r * s, l = r * o, p = s * a, h = o * a;
2637
- return { x: i[0] + s * i[2] + o * i[4] + r * i[6] + n * i[8] + a * i[10] + u * i[12] + l * i[14] + p * i[16] + h * i[18], y: i[1] + s * i[3] + o * i[5] + r * i[7] + n * i[9] + a * i[11] + u * i[13] + l * i[15] + p * i[17] + h * i[19] };
2638
- }
2639
- function ns(i, t, e) {
2640
- const { xmin: s, ymin: o, xmax: r, ymax: a, spatialReference: n } = t;
2641
- let u = [];
2642
- if (e < 2)
2643
- u.push({ x: s, y: a }), u.push({ x: r, y: a }), u.push({ x: s, y: o }), u.push({ x: r, y: o });
2644
- else {
2645
- let h = 10;
2646
- for (let f = 0; f < h; f++)
2647
- u.push({ x: s, y: o + (a - o) * f / (h - 1) }), u.push({ x: r, y: o + (a - o) * f / (h - 1) });
2648
- h = 8;
2649
- for (let f = 1; f <= h; f++)
2650
- u.push({ x: s + (r - s) * f / h, y: o }), u.push({ x: s + (r - s) * f / h, y: a });
2651
- }
2652
- u = u.map((h) => Pe(i, h, e));
2653
- const l = u.map((h) => h.x), p = u.map((h) => h.y);
2654
- return new bs({ xmin: Math.min.apply(null, l), xmax: Math.max.apply(null, l), ymin: Math.min.apply(null, p), ymax: Math.max.apply(null, p), spatialReference: n });
2655
- }
2656
- function vo(i) {
2657
- const [t, e, s, o, r, a] = i, n = s * a - r * o, u = r * o - s * a;
2658
- return [(r * e - t * a) / n, (s * e - t * o) / u, a / n, o / u, -r / n, -s / u];
2659
- }
2660
- let q = Te = class extends Ce {
2661
- constructor() {
2662
- super(...arguments), this.polynomialOrder = 1, this.type = "polynomial";
2663
- }
2664
- readForwardCoefficients(i, t) {
2665
- const { coeffX: e, coeffY: s } = t;
2666
- if (!(e != null && e.length) || !(s != null && s.length) || e.length !== s.length)
2667
- return null;
2668
- const o = [];
2669
- for (let r = 0; r < e.length; r++)
2670
- o.push(e[r]), o.push(s[r]);
2671
- return o;
2672
- }
2673
- writeForwardCoefficients(i, t, e) {
2674
- const s = [], o = [];
2675
- for (let r = 0; r < (i == null ? void 0 : i.length); r++)
2676
- r % 2 == 0 ? s.push(i[r]) : o.push(i[r]);
2677
- t.coeffX = s, t.coeffY = o;
2678
- }
2679
- get inverseCoefficients() {
2680
- let i = this._get("inverseCoefficients");
2681
- const t = this._get("forwardCoefficients");
2682
- return !i && t && this.polynomialOrder < 2 && (i = vo(t)), i;
2683
- }
2684
- set inverseCoefficients(i) {
2685
- this._set("inverseCoefficients", i);
2686
- }
2687
- readInverseCoefficients(i, t) {
2688
- const { inverseCoeffX: e, inverseCoeffY: s } = t;
2689
- if (!(e != null && e.length) || !(s != null && s.length) || e.length !== s.length)
2690
- return null;
2691
- const o = [];
2692
- for (let r = 0; r < e.length; r++)
2693
- o.push(e[r]), o.push(s[r]);
2694
- return o;
2695
- }
2696
- writeInverseCoefficients(i, t, e) {
2697
- const s = [], o = [];
2698
- for (let r = 0; r < (i == null ? void 0 : i.length); r++)
2699
- r % 2 == 0 ? s.push(i[r]) : o.push(i[r]);
2700
- t.inverseCoeffX = s, t.inverseCoeffY = o;
2701
- }
2702
- get affectsPixelSize() {
2703
- return this.polynomialOrder > 0;
2704
- }
2705
- forwardTransform(i) {
2706
- if (i.type === "point") {
2707
- const t = Pe(this.forwardCoefficients, i, this.polynomialOrder);
2708
- return new Be({ x: t.x, y: t.y, spatialReference: i.spatialReference });
2709
- }
2710
- return ns(this.forwardCoefficients, i, this.polynomialOrder);
2711
- }
2712
- inverseTransform(i) {
2713
- if (i.type === "point") {
2714
- const t = Pe(this.inverseCoefficients, i, this.polynomialOrder);
2715
- return new Be({ x: t.x, y: t.y, spatialReference: i.spatialReference });
2716
- }
2717
- return ns(this.inverseCoefficients, i, this.polynomialOrder);
2718
- }
2719
- clone() {
2720
- return new Te({ polynomialOrder: this.polynomialOrder, forwardCoefficients: this.forwardCoefficients ? [...this.forwardCoefficients] : null, inverseCoefficients: this.inverseCoefficients ? [...this.inverseCoefficients] : null });
2721
- }
2722
- };
2723
- c([m({ json: { write: !0 } })], q.prototype, "polynomialOrder", void 0), c([m()], q.prototype, "forwardCoefficients", void 0), c([Ct("forwardCoefficients", ["coeffX", "coeffY"])], q.prototype, "readForwardCoefficients", null), c([_t("forwardCoefficients")], q.prototype, "writeForwardCoefficients", null), c([m({ json: { write: !0 } })], q.prototype, "inverseCoefficients", null), c([Ct("inverseCoefficients", ["inverseCoeffX", "inverseCoeffY"])], q.prototype, "readInverseCoefficients", null), c([_t("inverseCoefficients")], q.prototype, "writeInverseCoefficients", null), c([m()], q.prototype, "affectsPixelSize", null), c([Y({ PolynomialXform: "polynomial" })], q.prototype, "type", void 0), q = Te = c([A("esri.layers.support.rasterTransforms.PolynomialTransform")], q);
2724
- const wo = q, xs = { GCSShiftXform: yo, IdentityXform: xo, PolynomialXform: wo }, bo = Object.keys(xs);
2725
- function Ko(i) {
2726
- const t = i == null ? void 0 : i.type;
2727
- return !i || bo.includes(t);
2728
- }
2729
- function Yo(i) {
2730
- if (!(i == null ? void 0 : i.type))
2731
- return null;
2732
- const e = xs[i == null ? void 0 : i.type];
2733
- if (e) {
2734
- const s = new e();
2735
- return s.read(i), s;
2736
- }
2737
- return null;
2738
- }
2739
- export {
2740
- co as N,
2741
- Jo as R,
2742
- yo as c,
2743
- Ko as f,
2744
- Yo as i,
2745
- wo as y
2746
- };