@arcgis/core 5.0.0-next.83 → 5.0.0-next.84

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 (865) hide show
  1. package/WebDocument2D.d.ts +3 -2
  2. package/WebDocument2D.js +1 -1
  3. package/WebScene.d.ts +3 -2
  4. package/WebScene.js +1 -1
  5. package/applications/SceneViewer/layerUtils.d.ts +3 -2
  6. package/applications/SceneViewer/layerUtils.js +1 -1
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/0057d3a9522188090536.js +1 -0
  9. package/assets/esri/core/workers/chunks/008a555ce169640e2a35.js +2 -0
  10. package/assets/esri/core/workers/chunks/00e135dc1b4cb024973d.js +1 -0
  11. package/assets/esri/core/workers/chunks/03da31c7635d077e8d99.js +1 -0
  12. package/assets/esri/core/workers/chunks/04fddd41a8e6a4c1bc57.js +1 -0
  13. package/assets/esri/core/workers/chunks/05a75878baca3a04fee9.js +1 -0
  14. package/assets/esri/core/workers/chunks/05aa22778a85624cfa55.js +1 -0
  15. package/assets/esri/core/workers/chunks/06493efc57cbfbda050a.js +1 -0
  16. package/assets/esri/core/workers/chunks/0674ae3741bc99325879.js +1 -0
  17. package/assets/esri/core/workers/chunks/07c5a9e8f48b3c806ac7.js +1 -0
  18. package/assets/esri/core/workers/chunks/0abb084b8a137f4fcdfc.js +1 -0
  19. package/assets/esri/core/workers/chunks/0b0545538ce355cace52.js +1 -0
  20. package/assets/esri/core/workers/chunks/0c13591347d51d684561.js +1 -0
  21. package/assets/esri/core/workers/chunks/0e7daf348c3e4681dd44.js +1 -0
  22. package/assets/esri/core/workers/chunks/10a5bf887132821beaf0.js +1 -0
  23. package/assets/esri/core/workers/chunks/10b32aff749d3459ddcd.js +1 -0
  24. package/assets/esri/core/workers/chunks/114aecdbd2bd92b24de2.js +1 -0
  25. package/assets/esri/core/workers/chunks/14f8215ab716c6d9d5f8.js +1 -0
  26. package/assets/esri/core/workers/chunks/156c73a948bde11f0d53.js +1 -0
  27. package/assets/esri/core/workers/chunks/165cf8031af160c99d70.js +1 -0
  28. package/assets/esri/core/workers/chunks/1779e6eabc299831fc9f.js +1 -0
  29. package/assets/esri/core/workers/chunks/181fab86394f1f912490.js +1 -0
  30. package/assets/esri/core/workers/chunks/185c97bc63ce546995ce.js +1 -0
  31. package/assets/esri/core/workers/chunks/18cdd268fc921ffd92e2.js +1 -0
  32. package/assets/esri/core/workers/chunks/1a13b472e0cf9f88e8de.js +1 -0
  33. package/assets/esri/core/workers/chunks/1a41c9127ca5a260d5ef.js +1 -0
  34. package/assets/esri/core/workers/chunks/1a62c456e791c82050fe.js +1 -0
  35. package/assets/esri/core/workers/chunks/1c05906d1b5b92441c9b.js +1 -0
  36. package/assets/esri/core/workers/chunks/1cf289446619645487b6.js +1 -0
  37. package/assets/esri/core/workers/chunks/1e318e5cf417c8f13bc7.js +1 -0
  38. package/assets/esri/core/workers/chunks/1eb6f210ae69c317e1f6.js +1 -0
  39. package/assets/esri/core/workers/chunks/1facc1b45345a095b9a7.js +1 -0
  40. package/assets/esri/core/workers/chunks/1fe1a131be1d5e1e23ed.js +1 -0
  41. package/assets/esri/core/workers/chunks/21ac84b5c7dedcfd747d.js +2 -0
  42. package/assets/esri/core/workers/chunks/22503abc06354741d28a.js +1 -0
  43. package/assets/esri/core/workers/chunks/22b1543b1a39db9acfc3.js +1 -0
  44. package/assets/esri/core/workers/chunks/249bc4abaa6482aaf288.js +1 -0
  45. package/assets/esri/core/workers/chunks/25a9ae17dc2ef44a4481.js +1 -0
  46. package/assets/esri/core/workers/chunks/25dead73dfc5a4c19285.js +1 -0
  47. package/assets/esri/core/workers/chunks/2767b69085c9f7a1e1af.js +1 -0
  48. package/assets/esri/core/workers/chunks/286a45e9aec0b2bf32ef.js +1 -0
  49. package/assets/esri/core/workers/chunks/289681e94e93dc1d3512.js +1 -0
  50. package/assets/esri/core/workers/chunks/2a1898c5b8d7757e39e3.js +1 -0
  51. package/assets/esri/core/workers/chunks/2a81f08de9d642485669.js +1 -0
  52. package/assets/esri/core/workers/chunks/2b2283f1ee4bfc1baa18.js +1 -0
  53. package/assets/esri/core/workers/chunks/2bb82ae3ada57c066fdf.js +1 -0
  54. package/assets/esri/core/workers/chunks/2bdd28b4b5ef2c1e111f.js +1 -0
  55. package/assets/esri/core/workers/chunks/2c8b4d54ecf6ea2fecb1.js +1 -0
  56. package/assets/esri/core/workers/chunks/2ce845c990bb4d701362.js +1 -0
  57. package/assets/esri/core/workers/chunks/2f20cca2c5c058afc9af.js +1 -0
  58. package/assets/esri/core/workers/chunks/304ea784c28dc78e5e65.js +1 -0
  59. package/assets/esri/core/workers/chunks/3087910d19959fdc546b.js +1 -0
  60. package/assets/esri/core/workers/chunks/30cfa41017c2d434a89f.js +1 -0
  61. package/assets/esri/core/workers/chunks/33257fbd724ae188e259.js +1 -0
  62. package/assets/esri/core/workers/chunks/338768f94cc49559b209.js +1 -0
  63. package/assets/esri/core/workers/chunks/34073c8e4fc825f060f1.js +1 -0
  64. package/assets/esri/core/workers/chunks/34503f9b26c81e631174.js +1 -0
  65. package/assets/esri/core/workers/chunks/348560f083350ad0bf2e.js +1 -0
  66. package/assets/esri/core/workers/chunks/3606fc5537c4d11b9554.js +1 -0
  67. package/assets/esri/core/workers/chunks/3628e82707e7720c9e4c.js +1 -0
  68. package/assets/esri/core/workers/chunks/36b053decb87c9d32cd2.js +1 -0
  69. package/assets/esri/core/workers/chunks/37f5687dc1147b0a7bc1.js +1 -0
  70. package/assets/esri/core/workers/chunks/380a9b6d75992d6311c3.js +1 -0
  71. package/assets/esri/core/workers/chunks/3849dc35941e569fae5f.js +1 -0
  72. package/assets/esri/core/workers/chunks/388bd41c305d5a11f739.js +1 -0
  73. package/assets/esri/core/workers/chunks/389e2263a540f819d842.js +1 -0
  74. package/assets/esri/core/workers/chunks/38ca539f33e2d977771c.js +1 -0
  75. package/assets/esri/core/workers/chunks/3909217130048b5feeae.js +301 -0
  76. package/assets/esri/core/workers/chunks/39e1b04444389d2987be.js +1 -0
  77. package/assets/esri/core/workers/chunks/3ad7ec46adecf00ae1c2.js +1 -0
  78. package/assets/esri/core/workers/chunks/3aeb3e8220e7d9869652.js +1 -0
  79. package/assets/esri/core/workers/chunks/3afc221b3a9e209cceea.js +1 -0
  80. package/assets/esri/core/workers/chunks/3b67aa46a60e35469bf8.js +1 -0
  81. package/assets/esri/core/workers/chunks/3b6fc34b6d92eef030e5.js +1 -0
  82. package/assets/esri/core/workers/chunks/3bb28b59614fc36b2c50.js +1 -0
  83. package/assets/esri/core/workers/chunks/3eeaec74871e20b433d2.js +1 -0
  84. package/assets/esri/core/workers/chunks/418a778a4cbbb9dabecd.js +1 -0
  85. package/assets/esri/core/workers/chunks/42444285fd79a8d8e564.js +1 -0
  86. package/assets/esri/core/workers/chunks/428ca5900d882d7be499.js +1 -0
  87. package/assets/esri/core/workers/chunks/436c15ac34a205a13a37.js +1 -0
  88. package/assets/esri/core/workers/chunks/43e9eaedf65921b58eb2.js +1 -0
  89. package/assets/esri/core/workers/chunks/4487cf21fa9f0466450d.js +1 -0
  90. package/assets/esri/core/workers/chunks/45dbdf2ff95f7be1eb88.js +1 -0
  91. package/assets/esri/core/workers/chunks/4756f0dbbda129c760b1.js +1 -0
  92. package/assets/esri/core/workers/chunks/4a0760571ce536fbd8c8.js +1 -0
  93. package/assets/esri/core/workers/chunks/4b09d92c51c4619b548a.js +1 -0
  94. package/assets/esri/core/workers/chunks/4b24f72b56edc28bb15e.js +1 -0
  95. package/assets/esri/core/workers/chunks/4bb0c3b009493ea44632.js +1 -0
  96. package/assets/esri/core/workers/chunks/4c0e0beb1534d81ff648.js +1 -0
  97. package/assets/esri/core/workers/chunks/4c54cb80c4dc9bbbd395.js +1 -0
  98. package/assets/esri/core/workers/chunks/4caec60ac0a5851730c6.js +1 -0
  99. package/assets/esri/core/workers/chunks/4db259316b193fcc4541.js +1 -0
  100. package/assets/esri/core/workers/chunks/4f132d758f8b4795c43f.js +1 -0
  101. package/assets/esri/core/workers/chunks/4f4bdf9f5323fa702e6c.js +1 -0
  102. package/assets/esri/core/workers/chunks/4f53071b5eb23d4478c4.js +1 -0
  103. package/assets/esri/core/workers/chunks/4f8895eb57ec6ab4b318.js +1 -0
  104. package/assets/esri/core/workers/chunks/4ff3c03cfbec928c0720.js +1 -0
  105. package/assets/esri/core/workers/chunks/504ab6bf7bfbfd4c4211.js +1 -0
  106. package/assets/esri/core/workers/chunks/5119e3159617b8e1ea13.js +1 -0
  107. package/assets/esri/core/workers/chunks/52684c2abc9e8ce793cf.js +1 -0
  108. package/assets/esri/core/workers/chunks/5298f99c197c8607a690.js +1 -0
  109. package/assets/esri/core/workers/chunks/532935f420ed5f13c011.js +1 -0
  110. package/assets/esri/core/workers/chunks/5348e4dc55428de9bba7.js +1 -0
  111. package/assets/esri/core/workers/chunks/534ed6574e4a1613ba05.js +2 -0
  112. package/assets/esri/core/workers/chunks/53a1c6e008287d1f12f0.js +1 -0
  113. package/assets/esri/core/workers/chunks/53d0b870c080236d82d1.js +1 -0
  114. package/assets/esri/core/workers/chunks/55bf39611ae6028131a3.js +1 -0
  115. package/assets/esri/core/workers/chunks/5659e221e8805bb81210.js +1 -0
  116. package/assets/esri/core/workers/chunks/568fc92333a9ab1c06e6.js +1 -0
  117. package/assets/esri/core/workers/chunks/56bbd86b804cb2a59031.js +1 -0
  118. package/assets/esri/core/workers/chunks/57a749804da9a2b1fae9.js +1 -0
  119. package/assets/esri/core/workers/chunks/59d3f3fbae775fd7686e.js +1 -0
  120. package/assets/esri/core/workers/chunks/59e7a0215791b2b51180.js +1 -0
  121. package/assets/esri/core/workers/chunks/5a706eecd8a988fae6b7.js +1 -0
  122. package/assets/esri/core/workers/chunks/5aee84e827e6fcc9c4c4.js +2 -0
  123. package/assets/esri/core/workers/chunks/5b0ca8d2154ef59da600.js +1 -0
  124. package/assets/esri/core/workers/chunks/5b278b9980752ef495a2.js +1 -0
  125. package/assets/esri/core/workers/chunks/5b3bb636e3bec625e515.js +1 -0
  126. package/assets/esri/core/workers/chunks/5ba2bbbb42ef1920579d.js +1 -0
  127. package/assets/esri/core/workers/chunks/5cc731f161012b63c77a.js +1 -0
  128. package/assets/esri/core/workers/chunks/5e3dd05f1ecfdb21350e.js +1 -0
  129. package/assets/esri/core/workers/chunks/5fa8fe6353dbdda0b06a.js +1 -0
  130. package/assets/esri/core/workers/chunks/5fc6cada83bf8462d54c.js +1 -0
  131. package/assets/esri/core/workers/chunks/6107b58457a70c8de9da.js +1 -0
  132. package/assets/esri/core/workers/chunks/63e930e76a181d54786d.js +1 -0
  133. package/assets/esri/core/workers/chunks/63ee7aa1b169dbec1e37.js +1 -0
  134. package/assets/esri/core/workers/chunks/6440d78ed2af2e7265aa.js +1 -0
  135. package/assets/esri/core/workers/chunks/645e086291b04bc036d7.js +1 -0
  136. package/assets/esri/core/workers/chunks/654eef3ad30f34c42e12.js +1 -0
  137. package/assets/esri/core/workers/chunks/6610d23d8539f06e64ca.js +1 -0
  138. package/assets/esri/core/workers/chunks/681d9a923c0d1ace86e8.js +1 -0
  139. package/assets/esri/core/workers/chunks/68abe4e70ea48e978642.js +1 -0
  140. package/assets/esri/core/workers/chunks/6a083fde0e207625fd0b.js +1 -0
  141. package/assets/esri/core/workers/chunks/6bc7bacf01328ef10ff1.js +1 -0
  142. package/assets/esri/core/workers/chunks/6bcf5d6792e4f09cbc7b.js +1 -0
  143. package/assets/esri/core/workers/chunks/6d7eb784988ee9a33473.js +1 -0
  144. package/assets/esri/core/workers/chunks/6de843d1809cba61ded3.js +1 -0
  145. package/assets/esri/core/workers/chunks/6e04303500a9fbc3f14a.js +1 -0
  146. package/assets/esri/core/workers/chunks/6edcae8ec128c2e86a05.js +1 -0
  147. package/assets/esri/core/workers/chunks/6eeee6e278b5f516d1d2.js +1 -0
  148. package/assets/esri/core/workers/chunks/701775be0dad640a72b4.js +1 -0
  149. package/assets/esri/core/workers/chunks/70df4331ed29d823bf38.js +1 -0
  150. package/assets/esri/core/workers/chunks/7130b09300032d3a5925.js +1 -0
  151. package/assets/esri/core/workers/chunks/72f0e2e5dcddafa2a642.js +1 -0
  152. package/assets/esri/core/workers/chunks/73c87eb9bd8f0f848481.js +1 -0
  153. package/assets/esri/core/workers/chunks/746190bb70aa78ba0bfc.js +1039 -0
  154. package/assets/esri/core/workers/chunks/75d7290c73bb59f2c856.js +1 -0
  155. package/assets/esri/core/workers/chunks/76d6843d56bff0d4c45e.js +1 -0
  156. package/assets/esri/core/workers/chunks/780a1eba9a7f1ca690ce.js +1 -0
  157. package/assets/esri/core/workers/chunks/7815dbf49ef5a06705f3.js +1 -0
  158. package/assets/esri/core/workers/chunks/7892daeed58778453639.js +1 -0
  159. package/assets/esri/core/workers/chunks/7990c828447bc3a29965.js +1 -0
  160. package/assets/esri/core/workers/chunks/799829d0ae17c146196b.js +1 -0
  161. package/assets/esri/core/workers/chunks/7a31717dafbd820bc2bf.js +1 -0
  162. package/assets/esri/core/workers/chunks/7b2f848947b296c7c785.js +1 -0
  163. package/assets/esri/core/workers/chunks/7d76a2245ac973efe1ed.js +1 -0
  164. package/assets/esri/core/workers/chunks/7f76566d9b3801742387.js +1 -0
  165. package/assets/esri/core/workers/chunks/8008bca4ef04c9424579.js +1 -0
  166. package/assets/esri/core/workers/chunks/815a25a5a8dba7921f8b.js +1 -0
  167. package/assets/esri/core/workers/chunks/8184c34b2c4969f14f3d.js +1 -0
  168. package/assets/esri/core/workers/chunks/81e395a93c67749c6487.js +1 -0
  169. package/assets/esri/core/workers/chunks/8351012ceb466f01b8fd.js +1 -0
  170. package/assets/esri/core/workers/chunks/83ddc0f6bfe68756f26f.js +1 -0
  171. package/assets/esri/core/workers/chunks/841058de8bc6e328fd68.js +1 -0
  172. package/assets/esri/core/workers/chunks/84a4390b1c277c415d44.js +1 -0
  173. package/assets/esri/core/workers/chunks/854adab6a06af861c104.js +1 -0
  174. package/assets/esri/core/workers/chunks/8765fe036d9664c25b1d.js +37 -0
  175. package/assets/esri/core/workers/chunks/88c3b60b403e2454b56e.js +1 -0
  176. package/assets/esri/core/workers/chunks/8a0a13f398ab488dbbe9.js +1 -0
  177. package/assets/esri/core/workers/chunks/8cb13b3776f07536c79f.js +1 -0
  178. package/assets/esri/core/workers/chunks/{51093e552e31344cefa5.js → 8d9ec752136cbc5cb29a.js} +1 -1
  179. package/assets/esri/core/workers/chunks/8deae3a426eceae73186.js +1 -0
  180. package/assets/esri/core/workers/chunks/8f4ca0dfd9635eb10e02.js +1 -0
  181. package/assets/esri/core/workers/chunks/8faa0122d0a6e2e39153.js +1 -0
  182. package/assets/esri/core/workers/chunks/90a53bfe95ed687c28c1.js +2 -0
  183. package/assets/esri/core/workers/chunks/911912b0ef7ffed875be.js +1 -0
  184. package/assets/esri/core/workers/chunks/913c417ad278ce1caaf9.js +1 -0
  185. package/assets/esri/core/workers/chunks/9184089e72c24d91d23b.js +1 -0
  186. package/assets/esri/core/workers/chunks/91e307ca0d11804a7a1d.js +2 -0
  187. package/assets/esri/core/workers/chunks/9279a5361bf6a54784ef.js +1 -0
  188. package/assets/esri/core/workers/chunks/92a42bbb8b9b39f3211c.js +1 -0
  189. package/assets/esri/core/workers/chunks/934ce3f004c54d542d2c.js +1 -0
  190. package/assets/esri/core/workers/chunks/93caf6fb8afab3dd8a46.js +1 -0
  191. package/assets/esri/core/workers/chunks/97148a9966f55e69421e.js +1 -0
  192. package/assets/esri/core/workers/chunks/9748b8c35d56a5ee9c64.js +1 -0
  193. package/assets/esri/core/workers/chunks/97ad3eb25ad003c16148.js +1 -0
  194. package/assets/esri/core/workers/chunks/982e709d2cef971ecd82.js +1 -0
  195. package/assets/esri/core/workers/chunks/98e04c2382fa5ba382fc.js +1 -0
  196. package/assets/esri/core/workers/chunks/9919b3c345785e910c38.js +1 -0
  197. package/assets/esri/core/workers/chunks/9c6d34bb666f630d511f.js +1 -0
  198. package/assets/esri/core/workers/chunks/9cd7205bbc711914d74b.js +1 -0
  199. package/assets/esri/core/workers/chunks/9d17524f5f935b7b60bf.js +1 -0
  200. package/assets/esri/core/workers/chunks/9de8149ae0a0726a4ab2.js +1 -0
  201. package/assets/esri/core/workers/chunks/9fac9eda0a41f7f4c2c6.js +1 -0
  202. package/assets/esri/core/workers/chunks/9ff1e650ce0912afa780.js +1 -0
  203. package/assets/esri/core/workers/chunks/a0d52a819302ed6f401e.js +1 -0
  204. package/assets/esri/core/workers/chunks/a1908b3fa61f02425a94.js +1 -0
  205. package/assets/esri/core/workers/chunks/a2046f85b9964693f053.js +1 -0
  206. package/assets/esri/core/workers/chunks/a24627400b3b9fe8431d.js +1 -0
  207. package/assets/esri/core/workers/chunks/a27c74fd2029583de933.js +1 -0
  208. package/assets/esri/core/workers/chunks/a2c0c1bb5e775abefc90.js +1 -0
  209. package/assets/esri/core/workers/chunks/a3184fb1ac7ce9af1a7e.js +1 -0
  210. package/assets/esri/core/workers/chunks/a4ee92867ad5cde25aed.js +1 -0
  211. package/assets/esri/core/workers/chunks/a56a5e00964d4cd59a66.js +1 -0
  212. package/assets/esri/core/workers/chunks/a774b4fc7df801503bea.js +1 -0
  213. package/assets/esri/core/workers/chunks/a9521578c0e21aaddbc7.js +1 -0
  214. package/assets/esri/core/workers/chunks/a9b30c3b604e314f1706.js +1 -0
  215. package/assets/esri/core/workers/chunks/aa0c648bd37787f62b1f.js +1 -0
  216. package/assets/esri/core/workers/chunks/aa1b8c06bdf8453a02d7.js +1 -0
  217. package/assets/esri/core/workers/chunks/aaac4eee709cd6d24910.js +1 -0
  218. package/assets/esri/core/workers/chunks/aafa33f661462f5afd2b.js +1 -0
  219. package/assets/esri/core/workers/chunks/ab3e457c82fa9bd0203f.js +1 -0
  220. package/assets/esri/core/workers/chunks/ac0949ea3d2cf3eb7383.js +1 -0
  221. package/assets/esri/core/workers/chunks/ac5da65af5da254acb16.js +1 -0
  222. package/assets/esri/core/workers/chunks/ae5798399607cb043ed2.js +1 -0
  223. package/assets/esri/core/workers/chunks/af3d4eba6fe24db3ceba.js +1 -0
  224. package/assets/esri/core/workers/chunks/b1015e1f25b60c08d2cf.js +1 -0
  225. package/assets/esri/core/workers/chunks/b1085fa91724e2d3b24f.js +1 -0
  226. package/assets/esri/core/workers/chunks/b12dc8fd3f2a2ff8073d.js +1 -0
  227. package/assets/esri/core/workers/chunks/b1c6a1759febad66927f.js +1 -0
  228. package/assets/esri/core/workers/chunks/b482a24c9567d8926897.js +1 -0
  229. package/assets/esri/core/workers/chunks/b48b0f512a1cd7226bdc.js +1 -0
  230. package/assets/esri/core/workers/chunks/b586d7e608e8ba8b88fe.js +1 -0
  231. package/assets/esri/core/workers/chunks/b599c6d4fa3189ed1762.js +1 -0
  232. package/assets/esri/core/workers/chunks/b6acf67316107902e31d.js +1 -0
  233. package/assets/esri/core/workers/chunks/b7576a5195615c465ea7.js +1 -0
  234. package/assets/esri/core/workers/chunks/b7e40118b4d645e9f8e1.js +1 -0
  235. package/assets/esri/core/workers/chunks/b8005b1996f42dee8237.js +1 -0
  236. package/assets/esri/core/workers/chunks/b91a157fb5f729de6597.js +1 -0
  237. package/assets/esri/core/workers/chunks/b9226dd0342cfd30ece0.js +1 -0
  238. package/assets/esri/core/workers/chunks/b977b9f5f50ae8027443.js +1 -0
  239. package/assets/esri/core/workers/chunks/bab6dee8f4715d05d984.js +1 -0
  240. package/assets/esri/core/workers/chunks/bbb409e54db77bfabdee.js +1 -0
  241. package/assets/esri/core/workers/chunks/bc4f513ea3a8f344c8da.js +1 -0
  242. package/assets/esri/core/workers/chunks/be26f8175a76e7dc8f7a.js +1 -0
  243. package/assets/esri/core/workers/chunks/befedcb6d8d1ff88125f.js +1 -0
  244. package/assets/esri/core/workers/chunks/bf73352b3366de82abbe.js +1 -0
  245. package/assets/esri/core/workers/chunks/c0265669fb616f052b65.js +1 -0
  246. package/assets/esri/core/workers/chunks/c133e57f2201b9bc6cbc.js +1 -0
  247. package/assets/esri/core/workers/chunks/c16115cfbca879dd6717.js +1 -0
  248. package/assets/esri/core/workers/chunks/c2d7b32f0c8eb965fcf7.js +1 -0
  249. package/assets/esri/core/workers/chunks/c45a5bcf26659daf02a1.js +1 -0
  250. package/assets/esri/core/workers/chunks/c46a4681cbba638b58c1.js +1 -0
  251. package/assets/esri/core/workers/chunks/c477b0ce55211339c4cb.js +1 -0
  252. package/assets/esri/core/workers/chunks/c500b59cd7da54fe72ec.js +1 -0
  253. package/assets/esri/core/workers/chunks/c5c1b189b91e199e8b82.js +1 -0
  254. package/assets/esri/core/workers/chunks/c65a138c14a4c540cd3b.js +1 -0
  255. package/assets/esri/core/workers/chunks/c66a9477e1c30a5ca03f.js +1 -0
  256. package/assets/esri/core/workers/chunks/{d79d29b52a65fb6bf94d.js → c71fe727224da0aba6ca.js} +1 -1
  257. package/assets/esri/core/workers/chunks/c741f7bc5693ae7e5019.js +1 -0
  258. package/assets/esri/core/workers/chunks/c75a41a5c8c5bd40ae91.js +1 -0
  259. package/assets/esri/core/workers/chunks/c825ca22894bdb4d01ba.js +1 -0
  260. package/assets/esri/core/workers/chunks/c8f1075c45ecf9fef00f.js +1 -0
  261. package/assets/esri/core/workers/chunks/ca06811e636f1d96f3cb.js +1 -0
  262. package/assets/esri/core/workers/chunks/cb66a74448a6c0c20d5d.js +1 -0
  263. package/assets/esri/core/workers/chunks/cbab45550b06bcc38524.js +1 -0
  264. package/assets/esri/core/workers/chunks/cc2606b8e600eeaf4bc8.js +1 -0
  265. package/assets/esri/core/workers/chunks/cdf711afbaaf345101f0.js +1 -0
  266. package/assets/esri/core/workers/chunks/ce87a6e24e9c64d90da3.js +1 -0
  267. package/assets/esri/core/workers/chunks/ce9467dc1ff695d795e5.js +1 -0
  268. package/assets/esri/core/workers/chunks/d0c831a473642d1bd9d1.js +1 -0
  269. package/assets/esri/core/workers/chunks/d0d6f818851d9a2d7938.js +1 -0
  270. package/assets/esri/core/workers/chunks/d1dd1787b3bf27834a9e.js +1 -0
  271. package/assets/esri/core/workers/chunks/d28169816c768d55aa09.js +1 -0
  272. package/assets/esri/core/workers/chunks/d2d4bce67c711a404b73.js +1 -0
  273. package/assets/esri/core/workers/chunks/d31f62ecbb54bffc54f2.js +1 -0
  274. package/assets/esri/core/workers/chunks/d37f03714c9591fb2b06.js +1 -0
  275. package/assets/esri/core/workers/chunks/d3c69c9cb3d9c3f5c67a.js +1 -0
  276. package/assets/esri/core/workers/chunks/d436e1694f4b5bf05a90.js +1 -0
  277. package/assets/esri/core/workers/chunks/d4770dddfbfdc3845749.js +1 -0
  278. package/assets/esri/core/workers/chunks/d477def8bfd8482596d1.js +1 -0
  279. package/assets/esri/core/workers/chunks/d4c4dad52da5dcf4432c.js +1 -0
  280. package/assets/esri/core/workers/chunks/d4f4c0201d8b641709c0.js +1 -0
  281. package/assets/esri/core/workers/chunks/d525b3fa719a688d4899.js +1 -0
  282. package/assets/esri/core/workers/chunks/d6e11f05db698d14f21d.js +1 -0
  283. package/assets/esri/core/workers/chunks/d7c275717a2405b6ff87.js +1 -0
  284. package/assets/esri/core/workers/chunks/d8c8f54532714d4db2cd.js +1 -0
  285. package/assets/esri/core/workers/chunks/d9d2178d436597b1afaf.js +1 -0
  286. package/assets/esri/core/workers/chunks/da808dfb22c6de29e560.js +1 -0
  287. package/assets/esri/core/workers/chunks/db9a9712038df76e3eda.js +1 -0
  288. package/assets/esri/core/workers/chunks/dc57400b835724204909.js +2 -0
  289. package/assets/esri/core/workers/chunks/dd0e65b18c634b64582e.js +1 -0
  290. package/assets/esri/core/workers/chunks/dd30c1f5da0af72becd1.js +1 -0
  291. package/assets/esri/core/workers/chunks/de216922b36267ab4aa1.js +1 -0
  292. package/assets/esri/core/workers/chunks/de6b3f80070abdd61d0f.js +1 -0
  293. package/assets/esri/core/workers/chunks/dea2e8caaf6e53ec56f8.js +1 -0
  294. package/assets/esri/core/workers/chunks/ded589862c22ea12d47a.js +1 -0
  295. package/assets/esri/core/workers/chunks/dedd9d47ccc019ffc484.js +1 -0
  296. package/assets/esri/core/workers/chunks/df40be5a050b8d20617a.js +1 -0
  297. package/assets/esri/core/workers/chunks/dfef6e3d7bbf099de498.js +1 -0
  298. package/assets/esri/core/workers/chunks/e1b677a135e164a29605.js +1 -0
  299. package/assets/esri/core/workers/chunks/e201bfe3158c025edc99.js +1 -0
  300. package/assets/esri/core/workers/chunks/e337b8d69d89f597cb58.js +1 -0
  301. package/assets/esri/core/workers/chunks/e370d213c307ad8bfaec.js +1 -0
  302. package/assets/esri/core/workers/chunks/e3a73d9acebccd3ba49b.js +1 -0
  303. package/assets/esri/core/workers/chunks/e3d3fc87789fd711f161.js +2 -0
  304. package/assets/esri/core/workers/chunks/e43c6058c793d43fa5f3.js +1 -0
  305. package/assets/esri/core/workers/chunks/e462b167841fddaa80b8.js +1 -0
  306. package/assets/esri/core/workers/chunks/e51e35b5cef89b0e0db1.js +1 -0
  307. package/assets/esri/core/workers/chunks/e58ec49a5cd852cb46cb.js +1 -0
  308. package/assets/esri/core/workers/chunks/e7d28ebf684db4ecb8cb.js +1 -0
  309. package/assets/esri/core/workers/chunks/e881629bf230a148963d.js +1 -0
  310. package/assets/esri/core/workers/chunks/e8f6305744f87bbed961.js +1 -0
  311. package/assets/esri/core/workers/chunks/e9f8115c049f168d3c2b.js +1 -0
  312. package/assets/esri/core/workers/chunks/ea32a8478f3ccb19aced.js +1 -0
  313. package/assets/esri/core/workers/chunks/ea734de7d5271c487171.js +1 -0
  314. package/assets/esri/core/workers/chunks/eb765db525f4e2e2bda2.js +1 -0
  315. package/assets/esri/core/workers/chunks/ebbcd6196ef5c5ab233d.js +1 -0
  316. package/assets/esri/core/workers/chunks/ec00fa313794f177d9d3.js +1 -0
  317. package/assets/esri/core/workers/chunks/ec03d59984782529031a.js +1 -0
  318. package/assets/esri/core/workers/chunks/ec7f4e459c7466805f72.js +1 -0
  319. package/assets/esri/core/workers/chunks/ecf7d34b37ce6f0877af.js +1 -0
  320. package/assets/esri/core/workers/chunks/ed1c92a24a167e57e36e.js +1 -0
  321. package/assets/esri/core/workers/chunks/ed69b19366e3ce5805ac.js +1 -0
  322. package/assets/esri/core/workers/chunks/ee25d1eae52c8be82898.js +1 -0
  323. package/assets/esri/core/workers/chunks/ee905e24320241959965.js +1 -0
  324. package/assets/esri/core/workers/chunks/eea91681bae00819a5e9.js +1 -0
  325. package/assets/esri/core/workers/chunks/eed24607e9b5312b417f.js +1 -0
  326. package/assets/esri/core/workers/chunks/ef519984fa691aad8d87.js +2 -0
  327. package/assets/esri/core/workers/chunks/f0eb2bfe5a8607b251f5.js +1 -0
  328. package/assets/esri/core/workers/chunks/f370e60dc81d41368e0c.js +1 -0
  329. package/assets/esri/core/workers/chunks/f3fdf9970b3c7acd071d.js +1 -0
  330. package/assets/esri/core/workers/chunks/f40e413c68d99cf54d42.js +1 -0
  331. package/assets/esri/core/workers/chunks/f5b32bc3f7ee911e3c59.js +1 -0
  332. package/assets/esri/core/workers/chunks/f5dbffd5e8b3c16336a1.js +1 -0
  333. package/assets/esri/core/workers/chunks/f5ed6953a9255f0bed6a.js +2 -0
  334. package/assets/esri/core/workers/chunks/f627017adc9469144507.js +1 -0
  335. package/assets/esri/core/workers/chunks/f7ad285944e0e5164384.js +1 -0
  336. package/assets/esri/core/workers/chunks/f872d34d4236f8bedbd9.js +1 -0
  337. package/assets/esri/core/workers/chunks/f88adc930506ac2d5c90.js +1 -0
  338. package/assets/esri/core/workers/chunks/f890cfa4932955ecd4e7.js +1 -0
  339. package/assets/esri/core/workers/chunks/fd4bd04f85458cad849c.js +1 -0
  340. package/assets/esri/core/workers/chunks/fe98a068536e904ce257.js +1 -0
  341. package/assets/esri/core/workers/chunks/ffa9cc09e82f2e515993.js +1 -0
  342. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  343. package/assets/esri/themes/base/widgets/_Compass.scss +1 -1
  344. package/assets/esri/themes/base/widgets/_Feature.scss +1 -1
  345. package/assets/esri/themes/base/widgets/_Features.scss +1 -1
  346. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -4
  347. package/assets/esri/themes/base/widgets/_Widget.scss +1 -1
  348. package/assets/esri/themes/dark/main.css +1 -1
  349. package/assets/esri/themes/light/main.css +1 -1
  350. package/assets/esri/themes/light/view.css +1 -1
  351. package/config.js +1 -1
  352. package/core/MultiOriginJSONSupport.d.ts +8 -0
  353. package/core/MultiOriginJSONSupport.js +1 -1
  354. package/core/ReadOnlyMultiOriginJSONSupport.d.ts +40 -0
  355. package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
  356. package/core/WriteableMultiOriginJSONMixin.js +1 -1
  357. package/core/accessorSupport/decorators/subclass.js +1 -1
  358. package/core/accessorSupport/types.d.ts +2 -0
  359. package/kernel.js +1 -1
  360. package/layers/BingMapsLayer.d.ts +3 -2
  361. package/layers/BingMapsLayer.js +1 -1
  362. package/layers/BuildingSceneLayer.d.ts +3 -2
  363. package/layers/BuildingSceneLayer.js +1 -1
  364. package/layers/CSVLayer.js +1 -1
  365. package/layers/CatalogLayer.d.ts +3 -2
  366. package/layers/CatalogLayer.js +1 -1
  367. package/layers/DimensionLayer.d.ts +3 -2
  368. package/layers/DimensionLayer.js +1 -1
  369. package/layers/ElevationLayer.d.ts +3 -2
  370. package/layers/ElevationLayer.js +1 -1
  371. package/layers/FeatureLayer.d.ts +3 -2
  372. package/layers/FeatureLayer.js +1 -1
  373. package/layers/GaussianSplatLayer.d.ts +3 -2
  374. package/layers/GaussianSplatLayer.js +1 -1
  375. package/layers/GeoJSONLayer.d.ts +3 -2
  376. package/layers/GeoJSONLayer.js +1 -1
  377. package/layers/GeoRSSLayer.d.ts +3 -2
  378. package/layers/GeoRSSLayer.js +1 -1
  379. package/layers/GroupLayer.d.ts +3 -2
  380. package/layers/GroupLayer.js +1 -1
  381. package/layers/ImageryLayer.d.ts +3 -2
  382. package/layers/ImageryLayer.js +1 -1
  383. package/layers/ImageryTileLayer.d.ts +3 -2
  384. package/layers/ImageryTileLayer.js +1 -1
  385. package/layers/IntegratedMesh3DTilesLayer.d.ts +3 -2
  386. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  387. package/layers/IntegratedMeshLayer.d.ts +3 -2
  388. package/layers/IntegratedMeshLayer.js +1 -1
  389. package/layers/KMLLayer.d.ts +3 -2
  390. package/layers/KMLLayer.js +1 -1
  391. package/layers/KnowledgeGraphLayer.d.ts +3 -2
  392. package/layers/KnowledgeGraphLayer.js +1 -1
  393. package/layers/LineOfSightLayer.d.ts +3 -2
  394. package/layers/LineOfSightLayer.js +1 -1
  395. package/layers/LinkChartLayer.d.ts +3 -2
  396. package/layers/LinkChartLayer.js +1 -1
  397. package/layers/MapImageLayer.d.ts +3 -2
  398. package/layers/MapImageLayer.js +1 -1
  399. package/layers/MapNotesLayer.d.ts +3 -2
  400. package/layers/MapNotesLayer.js +1 -1
  401. package/layers/MediaLayer.d.ts +3 -2
  402. package/layers/MediaLayer.js +1 -1
  403. package/layers/OGCFeatureLayer.d.ts +3 -2
  404. package/layers/OGCFeatureLayer.js +1 -1
  405. package/layers/ParquetLayer.d.ts +3 -2
  406. package/layers/ParquetLayer.js +1 -1
  407. package/layers/PointCloudLayer.d.ts +3 -2
  408. package/layers/PointCloudLayer.js +1 -1
  409. package/layers/RouteLayer.d.ts +3 -2
  410. package/layers/RouteLayer.js +1 -1
  411. package/layers/SceneLayer.d.ts +6 -2
  412. package/layers/SceneLayer.js +1 -1
  413. package/layers/StreamLayer.d.ts +3 -2
  414. package/layers/StreamLayer.js +1 -1
  415. package/layers/SubtypeGroupLayer.d.ts +3 -2
  416. package/layers/SubtypeGroupLayer.js +1 -1
  417. package/layers/TileLayer.d.ts +3 -2
  418. package/layers/TileLayer.js +1 -1
  419. package/layers/UnknownLayer.d.ts +3 -2
  420. package/layers/UnknownLayer.js +1 -1
  421. package/layers/UnsupportedLayer.d.ts +3 -2
  422. package/layers/UnsupportedLayer.js +1 -1
  423. package/layers/VectorTileLayer.d.ts +3 -2
  424. package/layers/VectorTileLayer.js +1 -1
  425. package/layers/VideoLayer.d.ts +3 -2
  426. package/layers/VideoLayer.js +1 -1
  427. package/layers/ViewshedLayer.d.ts +3 -2
  428. package/layers/ViewshedLayer.js +1 -1
  429. package/layers/VoxelLayer.d.ts +3 -2
  430. package/layers/VoxelLayer.js +1 -1
  431. package/layers/WCSLayer.d.ts +3 -2
  432. package/layers/WCSLayer.js +1 -1
  433. package/layers/WFSLayer.d.ts +3 -2
  434. package/layers/WFSLayer.js +1 -1
  435. package/layers/WMSLayer.d.ts +3 -2
  436. package/layers/WMSLayer.js +1 -1
  437. package/layers/WMTSLayer.d.ts +3 -2
  438. package/layers/WMTSLayer.js +1 -1
  439. package/layers/WebTileLayer.d.ts +3 -2
  440. package/layers/WebTileLayer.js +1 -1
  441. package/layers/buildingSublayers/BuildingSublayer.d.ts +3 -2
  442. package/layers/buildingSublayers/BuildingSublayer.js +1 -1
  443. package/layers/catalog/CatalogDynamicGroupLayer.d.ts +3 -2
  444. package/layers/catalog/CatalogDynamicGroupLayer.js +1 -1
  445. package/layers/catalog/CatalogFootprintLayer.d.ts +3 -2
  446. package/layers/catalog/CatalogFootprintLayer.js +1 -1
  447. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +3 -2
  448. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  449. package/layers/media/types.d.ts +31 -5
  450. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  451. package/layers/support/ElevationQuery.js +1 -1
  452. package/layers/support/MediaElementBase.d.ts +5 -3
  453. package/layers/support/MediaElementBase.js +1 -1
  454. package/layers/support/Sublayer.d.ts +3 -2
  455. package/layers/support/Sublayer.js +1 -1
  456. package/layers/support/SubtypeSublayer.d.ts +3 -2
  457. package/layers/support/SubtypeSublayer.js +1 -1
  458. package/layers/support/WMSSublayer.d.ts +3 -2
  459. package/layers/support/WMSSublayer.js +1 -1
  460. package/layers/support/layerOriginUtils.js +1 -1
  461. package/linkChart/LinkChartProperties.d.ts +5 -3
  462. package/linkChart/LinkChartProperties.js +1 -1
  463. package/networks/Network.d.ts +4 -2
  464. package/networks/Network.js +1 -1
  465. package/networks/support/NamedTraceConfiguration.d.ts +5 -3
  466. package/networks/support/NamedTraceConfiguration.js +1 -1
  467. package/package.json +3 -3
  468. package/support/revision.js +1 -1
  469. package/views/2d/engine/BitmapTileContainer.js +1 -1
  470. package/views/2d/engine/DisplayObject.js +1 -1
  471. package/views/2d/engine/Stage.js +1 -1
  472. package/views/2d/engine/imagery/RasterTileContainer.js +1 -1
  473. package/views/2d/engine/imagery/RasterVFTileContainer.js +1 -1
  474. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  475. package/views/2d/engine/vectorTiles/decluttering/SymbolDeclutterer.js +1 -1
  476. package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
  477. package/views/2d/engine/webgl/RenderingDevice.js +1 -1
  478. package/views/2d/engine/webgl/TileContainer.js +1 -1
  479. package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
  480. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueProgramCache.js +1 -1
  481. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  482. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  483. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
  484. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
  485. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  486. package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
  487. package/views/2d/layers/TileLayerView2D.js +1 -1
  488. package/views/2d/layers/WMTSLayerView2D.js +1 -1
  489. package/views/2d/layers/features/FeatureContainer.js +1 -1
  490. package/views/2d/layers/features/Processor.js +1 -1
  491. package/views/2d/layers/features/support/Tile.js +1 -1
  492. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  493. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  494. package/views/2d/layers/imagery/VectorFieldTileView2D.js +1 -1
  495. package/views/2d/layers/support/imageUtils.js +1 -1
  496. package/views/2d/tiling/TileCache.js +1 -1
  497. package/views/2d/tiling/TileInfoView.js +1 -1
  498. package/views/2d/tiling/TileInfoViewPOT.js +1 -1
  499. package/views/3d/FocusAreasView.js +1 -1
  500. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  501. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  502. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  503. package/views/3d/layers/graphics/ElevationQuery.js +1 -1
  504. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  505. package/views/3d/layers/graphics/extrudeUtils.js +5 -0
  506. package/widgets/Attribution.d.ts +1 -0
  507. package/widgets/FeatureForm.js +1 -1
  508. package/widgets/FeatureTable/FieldColumn.js +1 -1
  509. package/widgets/FeatureTable/Grid/EditorColumn.js +1 -1
  510. package/widgets/FeatureTable/support/tableUtils.js +1 -1
  511. package/widgets/FeatureTable.js +1 -1
  512. package/widgets/Legend/LegendViewModel.d.ts +6 -0
  513. package/widgets/Legend/styles/card/CardView.d.ts +19 -3
  514. package/widgets/Legend/styles/classic/ClassicView.d.ts +1 -0
  515. package/widgets/Legend.d.ts +15 -0
  516. package/widgets/smartMapping/BinaryColorSizeSlider.js +1 -1
  517. package/widgets/smartMapping/ClassedColorSlider.js +1 -1
  518. package/widgets/smartMapping/ClassedSizeSlider.d.ts +1 -1
  519. package/widgets/smartMapping/ClassedSizeSlider.js +1 -1
  520. package/widgets/smartMapping/ColorSizeSlider.js +1 -1
  521. package/widgets/smartMapping/ColorSlider.js +1 -1
  522. package/widgets/smartMapping/OpacitySlider.js +1 -1
  523. package/widgets/smartMapping/SizeSlider.js +1 -1
  524. package/assets/esri/core/workers/chunks/00c77f03dd511c6dbff2.js +0 -1
  525. package/assets/esri/core/workers/chunks/015492d609c28077d66c.js +0 -1
  526. package/assets/esri/core/workers/chunks/04176244b0a3539c9681.js +0 -1
  527. package/assets/esri/core/workers/chunks/0429ca6ba562ae29897e.js +0 -1
  528. package/assets/esri/core/workers/chunks/04958494022f82dca473.js +0 -1
  529. package/assets/esri/core/workers/chunks/049c125085028ffdd0dd.js +0 -1
  530. package/assets/esri/core/workers/chunks/05e3bfd07a7a227862fd.js +0 -1
  531. package/assets/esri/core/workers/chunks/095c1b88cdcb91ab837e.js +0 -1
  532. package/assets/esri/core/workers/chunks/09b77f82c22530b44daa.js +0 -1
  533. package/assets/esri/core/workers/chunks/0a39c6dc57bd60d5587e.js +0 -1
  534. package/assets/esri/core/workers/chunks/0b679d5a1bfdbd006d6e.js +0 -1
  535. package/assets/esri/core/workers/chunks/0b7bbdc0d71ee6721751.js +0 -2
  536. package/assets/esri/core/workers/chunks/0d9e1ccc3ba8b5ed3287.js +0 -1
  537. package/assets/esri/core/workers/chunks/0f4e9846d074864b39c2.js +0 -1
  538. package/assets/esri/core/workers/chunks/0fc22ad791d3ec0a9c5e.js +0 -1
  539. package/assets/esri/core/workers/chunks/1037b38aade2a847bf24.js +0 -1
  540. package/assets/esri/core/workers/chunks/108a4ab28b6586e281d9.js +0 -1
  541. package/assets/esri/core/workers/chunks/12f9a55253084a910b2e.js +0 -1
  542. package/assets/esri/core/workers/chunks/13137f35b9ab299d07e3.js +0 -1
  543. package/assets/esri/core/workers/chunks/13839d220e5c62404923.js +0 -1
  544. package/assets/esri/core/workers/chunks/1484a7ef4fcbd748b197.js +0 -1
  545. package/assets/esri/core/workers/chunks/14dedd80fb797303f91f.js +0 -1
  546. package/assets/esri/core/workers/chunks/1694b9154df3eccf602e.js +0 -1
  547. package/assets/esri/core/workers/chunks/16a7edb381621085a631.js +0 -1
  548. package/assets/esri/core/workers/chunks/16cfa7031d6dbf5aa09b.js +0 -1
  549. package/assets/esri/core/workers/chunks/18ab5959ebf8689f8fe8.js +0 -1
  550. package/assets/esri/core/workers/chunks/18b0ce0bc2a9737ffb1b.js +0 -1
  551. package/assets/esri/core/workers/chunks/1a6d2f525dd30d08cf9b.js +0 -1
  552. package/assets/esri/core/workers/chunks/1b284a6f32effe28aafc.js +0 -1
  553. package/assets/esri/core/workers/chunks/1c58bd3275c849d44b13.js +0 -1
  554. package/assets/esri/core/workers/chunks/1c742018eb7dfd5d23e3.js +0 -1
  555. package/assets/esri/core/workers/chunks/1dfa949cc4f4c18ed4cf.js +0 -1
  556. package/assets/esri/core/workers/chunks/1e848d9da1c61a27cf18.js +0 -1
  557. package/assets/esri/core/workers/chunks/20f4c6d8b310ecab97be.js +0 -1
  558. package/assets/esri/core/workers/chunks/218b2b767b40d85fb713.js +0 -1
  559. package/assets/esri/core/workers/chunks/22c115ec003351c7d8ee.js +0 -1
  560. package/assets/esri/core/workers/chunks/23545a9adc75564ecf6e.js +0 -1
  561. package/assets/esri/core/workers/chunks/23cf4cbc389d2b50e968.js +0 -1
  562. package/assets/esri/core/workers/chunks/24527b61c8c216becbc4.js +0 -1
  563. package/assets/esri/core/workers/chunks/24dab877047369de13e2.js +0 -1
  564. package/assets/esri/core/workers/chunks/25f3ee666f545a7a7993.js +0 -2
  565. package/assets/esri/core/workers/chunks/29471e0b3f7296dee096.js +0 -1
  566. package/assets/esri/core/workers/chunks/2b27499fa9de22970b7a.js +0 -1
  567. package/assets/esri/core/workers/chunks/2bd59ece927b5c1c9f80.js +0 -1
  568. package/assets/esri/core/workers/chunks/2c7038a7ffaf75344b02.js +0 -1
  569. package/assets/esri/core/workers/chunks/2d8b8880e6bff4414e95.js +0 -1
  570. package/assets/esri/core/workers/chunks/2dfa7abf2d39fa5a3874.js +0 -1
  571. package/assets/esri/core/workers/chunks/2e6ae1ca07df442fc966.js +0 -1
  572. package/assets/esri/core/workers/chunks/2e6bd743b88e83d43137.js +0 -1
  573. package/assets/esri/core/workers/chunks/3001568a99fdd14aada9.js +0 -1
  574. package/assets/esri/core/workers/chunks/30dd4a7c93b33988a270.js +0 -1
  575. package/assets/esri/core/workers/chunks/312b3cc1c91d5b419faf.js +0 -1
  576. package/assets/esri/core/workers/chunks/31fa3dd983e9e73fcb65.js +0 -1
  577. package/assets/esri/core/workers/chunks/33a13e80badd20ed8de2.js +0 -1
  578. package/assets/esri/core/workers/chunks/355c8d0eadfff9f62dfb.js +0 -1
  579. package/assets/esri/core/workers/chunks/35c98ea99000f411175f.js +0 -1
  580. package/assets/esri/core/workers/chunks/35e1d0cfc3c5a484422f.js +0 -1
  581. package/assets/esri/core/workers/chunks/360f263f32aa2342a897.js +0 -1
  582. package/assets/esri/core/workers/chunks/369f37060608342a4262.js +0 -1
  583. package/assets/esri/core/workers/chunks/36ecf951c0c7dad84b69.js +0 -1
  584. package/assets/esri/core/workers/chunks/37002a46f03a9fc5f644.js +0 -2
  585. package/assets/esri/core/workers/chunks/37258b702fe06bbcf748.js +0 -1
  586. package/assets/esri/core/workers/chunks/37a3e91791a18ed8b8da.js +0 -1
  587. package/assets/esri/core/workers/chunks/3a04153ca9d8e4f01185.js +0 -1
  588. package/assets/esri/core/workers/chunks/3b1982bf7b44ff897a35.js +0 -1
  589. package/assets/esri/core/workers/chunks/3b25f5d9c8f78bb6e011.js +0 -1
  590. package/assets/esri/core/workers/chunks/3c5f07ebe1b09dcdc958.js +0 -1
  591. package/assets/esri/core/workers/chunks/3c66dd52ad156711a6a2.js +0 -1
  592. package/assets/esri/core/workers/chunks/3ed317900f0edf635508.js +0 -1
  593. package/assets/esri/core/workers/chunks/3f0959b1abafe516146e.js +0 -1
  594. package/assets/esri/core/workers/chunks/41f487713c6278d389a1.js +0 -1
  595. package/assets/esri/core/workers/chunks/4319b89cfa02894a8cae.js +0 -1
  596. package/assets/esri/core/workers/chunks/43e2c1d72cd9c8beed2f.js +0 -2
  597. package/assets/esri/core/workers/chunks/44c228388a95fa958827.js +0 -1
  598. package/assets/esri/core/workers/chunks/45a9cd722e98dd1548ae.js +0 -1
  599. package/assets/esri/core/workers/chunks/46daa1ff5b412a97edc9.js +0 -1
  600. package/assets/esri/core/workers/chunks/46e547691bca424f2bc9.js +0 -1
  601. package/assets/esri/core/workers/chunks/4750f55a289bc0cf3d77.js +0 -1
  602. package/assets/esri/core/workers/chunks/47d2103b876b01bc26fd.js +0 -1
  603. package/assets/esri/core/workers/chunks/495af366ec1defd89a72.js +0 -1
  604. package/assets/esri/core/workers/chunks/4b14ee37b5ac50a734f9.js +0 -1
  605. package/assets/esri/core/workers/chunks/4bcd74951477e8977ba1.js +0 -1
  606. package/assets/esri/core/workers/chunks/4cbe78d6a5ff617e15d6.js +0 -1
  607. package/assets/esri/core/workers/chunks/4ce28c936eaffe57c448.js +0 -1
  608. package/assets/esri/core/workers/chunks/4d5591c1b4ef37075921.js +0 -1
  609. package/assets/esri/core/workers/chunks/4ef97eb67dc42e0052d6.js +0 -1
  610. package/assets/esri/core/workers/chunks/4fa230dc6e5e87b0dec1.js +0 -1
  611. package/assets/esri/core/workers/chunks/4fcf035582fa6e93d264.js +0 -1
  612. package/assets/esri/core/workers/chunks/509307a2ef990ad1da8f.js +0 -301
  613. package/assets/esri/core/workers/chunks/50eb381b18b84b9c75a3.js +0 -1
  614. package/assets/esri/core/workers/chunks/50f03813fba4b752ca9f.js +0 -1
  615. package/assets/esri/core/workers/chunks/52a14266fe239b95c5ce.js +0 -1
  616. package/assets/esri/core/workers/chunks/52bcfb3ea563c1a301d4.js +0 -1
  617. package/assets/esri/core/workers/chunks/53b5c77832df7df4d4e3.js +0 -1
  618. package/assets/esri/core/workers/chunks/558822b700e8bd844052.js +0 -1
  619. package/assets/esri/core/workers/chunks/55a9ea536c64976c3409.js +0 -1
  620. package/assets/esri/core/workers/chunks/563933a84fc9b0e021f6.js +0 -1
  621. package/assets/esri/core/workers/chunks/56569d0c2cf5c5167651.js +0 -1
  622. package/assets/esri/core/workers/chunks/575a33924ec900f9e537.js +0 -1
  623. package/assets/esri/core/workers/chunks/584c4602d97a008afb83.js +0 -1
  624. package/assets/esri/core/workers/chunks/58b3a776ef129f7f86dc.js +0 -1
  625. package/assets/esri/core/workers/chunks/590a7fd4f5476224ec89.js +0 -1
  626. package/assets/esri/core/workers/chunks/59a45533e96cedf1c480.js +0 -1
  627. package/assets/esri/core/workers/chunks/5a66b7f1f4da75da8e7f.js +0 -1
  628. package/assets/esri/core/workers/chunks/5b9f2aa3ba1bf12c3240.js +0 -2
  629. package/assets/esri/core/workers/chunks/5bbf20135c87a1cc8a18.js +0 -1
  630. package/assets/esri/core/workers/chunks/5cc217f188fd56006158.js +0 -1
  631. package/assets/esri/core/workers/chunks/5dc2f2e28c30386efadf.js +0 -1
  632. package/assets/esri/core/workers/chunks/5df49e1f283e2e83de46.js +0 -1
  633. package/assets/esri/core/workers/chunks/60764ea501a3a1aacc63.js +0 -1
  634. package/assets/esri/core/workers/chunks/6087d5dc40bb62ec48c8.js +0 -1
  635. package/assets/esri/core/workers/chunks/6094bba52ddada48c7ed.js +0 -1
  636. package/assets/esri/core/workers/chunks/60eeeea671a523bb6b15.js +0 -1
  637. package/assets/esri/core/workers/chunks/60f363ee2add089e8f0b.js +0 -1
  638. package/assets/esri/core/workers/chunks/6387308c4add226e5b83.js +0 -1
  639. package/assets/esri/core/workers/chunks/63b8193ad90b2ebe6884.js +0 -1
  640. package/assets/esri/core/workers/chunks/657602e6a84e8b4576fb.js +0 -1
  641. package/assets/esri/core/workers/chunks/65fd971d0574d69cbc26.js +0 -1
  642. package/assets/esri/core/workers/chunks/679cd6424e0e2d7f372b.js +0 -1
  643. package/assets/esri/core/workers/chunks/6800647240b7968be225.js +0 -1
  644. package/assets/esri/core/workers/chunks/68074a484d7f9bc713c0.js +0 -1
  645. package/assets/esri/core/workers/chunks/680f9c29ca96ea8e01da.js +0 -1
  646. package/assets/esri/core/workers/chunks/68cb43f2fa8cc826e99b.js +0 -1
  647. package/assets/esri/core/workers/chunks/69a68a6d6736c4b97a27.js +0 -1
  648. package/assets/esri/core/workers/chunks/6a3d66d7c92f90cc2a17.js +0 -1
  649. package/assets/esri/core/workers/chunks/6a544fb44f7da0e80f43.js +0 -1
  650. package/assets/esri/core/workers/chunks/6a782e8475bff4d56dbc.js +0 -1
  651. package/assets/esri/core/workers/chunks/6b85a8776ec2beff63cb.js +0 -1
  652. package/assets/esri/core/workers/chunks/6be530ab81291745485b.js +0 -2
  653. package/assets/esri/core/workers/chunks/6d3ae7969ea86a2e0b13.js +0 -1
  654. package/assets/esri/core/workers/chunks/6df484faf54e90a6cc77.js +0 -1
  655. package/assets/esri/core/workers/chunks/6ea6ad894ac634aa4391.js +0 -1
  656. package/assets/esri/core/workers/chunks/6ffc1a0400298fca00ee.js +0 -1
  657. package/assets/esri/core/workers/chunks/729c2d26ae23d9c86547.js +0 -1
  658. package/assets/esri/core/workers/chunks/73bee5659414b3687cfc.js +0 -1
  659. package/assets/esri/core/workers/chunks/73c416ae0ec5a1815591.js +0 -2
  660. package/assets/esri/core/workers/chunks/74b825d4f0e7ab567b10.js +0 -1
  661. package/assets/esri/core/workers/chunks/75c66e38bdc1c786c599.js +0 -1
  662. package/assets/esri/core/workers/chunks/75fd2ef1236a9364ca7f.js +0 -1
  663. package/assets/esri/core/workers/chunks/760a759f9697adde6dd4.js +0 -1
  664. package/assets/esri/core/workers/chunks/77509bd20ac5bc190c94.js +0 -1039
  665. package/assets/esri/core/workers/chunks/7763cf4a9a4343c28591.js +0 -1
  666. package/assets/esri/core/workers/chunks/7972954801b82e7afc72.js +0 -1
  667. package/assets/esri/core/workers/chunks/798d227205bd958de6a7.js +0 -1
  668. package/assets/esri/core/workers/chunks/7bc09e80bf45fe137055.js +0 -1
  669. package/assets/esri/core/workers/chunks/7be9bbae23895d1cfa92.js +0 -1
  670. package/assets/esri/core/workers/chunks/7bf30c254228f9b7f224.js +0 -1
  671. package/assets/esri/core/workers/chunks/7bf491b468cd74a4166c.js +0 -1
  672. package/assets/esri/core/workers/chunks/7d631ebf8f79225cf0f6.js +0 -1
  673. package/assets/esri/core/workers/chunks/7d744554d14057d9b2b1.js +0 -1
  674. package/assets/esri/core/workers/chunks/7d8664aeff66e34138bd.js +0 -1
  675. package/assets/esri/core/workers/chunks/7db52d2451494835c160.js +0 -1
  676. package/assets/esri/core/workers/chunks/818b5b8027d6fe8999d6.js +0 -1
  677. package/assets/esri/core/workers/chunks/8195310b4c53db902fc1.js +0 -1
  678. package/assets/esri/core/workers/chunks/82ace0195b63790b22c9.js +0 -1
  679. package/assets/esri/core/workers/chunks/83117d2747bdaf480c7b.js +0 -1
  680. package/assets/esri/core/workers/chunks/83c5dea24e36ac2e3497.js +0 -1
  681. package/assets/esri/core/workers/chunks/84440efe2cc337dab81f.js +0 -1
  682. package/assets/esri/core/workers/chunks/84ec8ea3e40e0864798f.js +0 -1
  683. package/assets/esri/core/workers/chunks/852007720e3bc29532db.js +0 -1
  684. package/assets/esri/core/workers/chunks/85c92726121cb43a2216.js +0 -1
  685. package/assets/esri/core/workers/chunks/86832d94190150c70c11.js +0 -1
  686. package/assets/esri/core/workers/chunks/873008572c1f21cea122.js +0 -2
  687. package/assets/esri/core/workers/chunks/87c6470ee295d736b06d.js +0 -1
  688. package/assets/esri/core/workers/chunks/88379cd8e8e1c7ae3c7c.js +0 -1
  689. package/assets/esri/core/workers/chunks/88cbaa91c495d86f4bb0.js +0 -1
  690. package/assets/esri/core/workers/chunks/89853fccdf2bfcc290c0.js +0 -1
  691. package/assets/esri/core/workers/chunks/8c1f1eb36198ce40ef13.js +0 -1
  692. package/assets/esri/core/workers/chunks/8d58e59ea13ecafdd45c.js +0 -1
  693. package/assets/esri/core/workers/chunks/8db723b8468e408dda46.js +0 -1
  694. package/assets/esri/core/workers/chunks/8dca61f8ba6689379f86.js +0 -1
  695. package/assets/esri/core/workers/chunks/8e354c7b4858db5880a9.js +0 -1
  696. package/assets/esri/core/workers/chunks/8e556ff730ae96290a69.js +0 -1
  697. package/assets/esri/core/workers/chunks/8e62a5fcc4c7e83a903a.js +0 -1
  698. package/assets/esri/core/workers/chunks/9086a4933d3d3d9ffa72.js +0 -1
  699. package/assets/esri/core/workers/chunks/91d9ade78854f40a962d.js +0 -1
  700. package/assets/esri/core/workers/chunks/91fba3bebd78cb956941.js +0 -1
  701. package/assets/esri/core/workers/chunks/920b4def081c78c0d586.js +0 -1
  702. package/assets/esri/core/workers/chunks/92928c56b312e1514600.js +0 -1
  703. package/assets/esri/core/workers/chunks/92a4f56232f81ca457fa.js +0 -1
  704. package/assets/esri/core/workers/chunks/92ef6071ea87b7f940e2.js +0 -1
  705. package/assets/esri/core/workers/chunks/9319d57494482668ab19.js +0 -1
  706. package/assets/esri/core/workers/chunks/9361834d2c3064eb41fc.js +0 -1
  707. package/assets/esri/core/workers/chunks/9382af94bf6bf1b09c8c.js +0 -1
  708. package/assets/esri/core/workers/chunks/942c80c425b1f13cced5.js +0 -1
  709. package/assets/esri/core/workers/chunks/95cb062cae4c31c07124.js +0 -1
  710. package/assets/esri/core/workers/chunks/968335b28b895e19913b.js +0 -1
  711. package/assets/esri/core/workers/chunks/979bc762ccc0d3fc2467.js +0 -1
  712. package/assets/esri/core/workers/chunks/9828b07b5f8fd9f40935.js +0 -1
  713. package/assets/esri/core/workers/chunks/98739414c107ad78e4d8.js +0 -1
  714. package/assets/esri/core/workers/chunks/988f5e003377d734d282.js +0 -1
  715. package/assets/esri/core/workers/chunks/9921c8d4487a0f580b93.js +0 -1
  716. package/assets/esri/core/workers/chunks/9a6bdcedcb7d2798ba30.js +0 -1
  717. package/assets/esri/core/workers/chunks/9afe220b5b60cfa44c95.js +0 -1
  718. package/assets/esri/core/workers/chunks/9ba8a2e1c0fb4e1efc7c.js +0 -1
  719. package/assets/esri/core/workers/chunks/9c93eadbd19bef1191b4.js +0 -1
  720. package/assets/esri/core/workers/chunks/9c9d359caf8354a8ec52.js +0 -1
  721. package/assets/esri/core/workers/chunks/9cc2832d5f625f81c08d.js +0 -1
  722. package/assets/esri/core/workers/chunks/9ccabf8142fb5de4d3e2.js +0 -2
  723. package/assets/esri/core/workers/chunks/9cec9d09f3aa5c21660d.js +0 -37
  724. package/assets/esri/core/workers/chunks/9d258f14199181dee424.js +0 -1
  725. package/assets/esri/core/workers/chunks/9e869fd6450cf874783a.js +0 -1
  726. package/assets/esri/core/workers/chunks/9f34cf024231f574009c.js +0 -1
  727. package/assets/esri/core/workers/chunks/a1594486177015e8a6c3.js +0 -1
  728. package/assets/esri/core/workers/chunks/a16e75ff5cd9b22be197.js +0 -1
  729. package/assets/esri/core/workers/chunks/a1b8722c6acafdf1c2bf.js +0 -1
  730. package/assets/esri/core/workers/chunks/a3407ca77b0ff62c0e75.js +0 -1
  731. package/assets/esri/core/workers/chunks/a41073263af5eba3c16d.js +0 -1
  732. package/assets/esri/core/workers/chunks/a623676c74745e040a2a.js +0 -1
  733. package/assets/esri/core/workers/chunks/a64cd02ca959d511101c.js +0 -1
  734. package/assets/esri/core/workers/chunks/a6742abe3ebe371e85f1.js +0 -1
  735. package/assets/esri/core/workers/chunks/a6d4256c327f07221117.js +0 -1
  736. package/assets/esri/core/workers/chunks/a6f29d1a6356e2de5a79.js +0 -1
  737. package/assets/esri/core/workers/chunks/a79fad422d41019c8232.js +0 -1
  738. package/assets/esri/core/workers/chunks/a8dfd246c797f3b979f5.js +0 -1
  739. package/assets/esri/core/workers/chunks/ab0275669e28e7a34c38.js +0 -1
  740. package/assets/esri/core/workers/chunks/ab5e2f823960c33cefe4.js +0 -1
  741. package/assets/esri/core/workers/chunks/acdbe0299024d58e1421.js +0 -1
  742. package/assets/esri/core/workers/chunks/ad253136c1e12f733d15.js +0 -1
  743. package/assets/esri/core/workers/chunks/adc68e2c6d2698a52bfe.js +0 -1
  744. package/assets/esri/core/workers/chunks/adff1791ae44631ad34a.js +0 -1
  745. package/assets/esri/core/workers/chunks/ae16fe50a54b5c0f9811.js +0 -1
  746. package/assets/esri/core/workers/chunks/ae18de425548bb865702.js +0 -1
  747. package/assets/esri/core/workers/chunks/ae6066ea6cb373dc6db3.js +0 -1
  748. package/assets/esri/core/workers/chunks/aeb524eded012217a865.js +0 -1
  749. package/assets/esri/core/workers/chunks/af00081b78fc30ac556c.js +0 -1
  750. package/assets/esri/core/workers/chunks/b211b53aa7616a093b90.js +0 -1
  751. package/assets/esri/core/workers/chunks/b28e0b89603d8b03f9e1.js +0 -1
  752. package/assets/esri/core/workers/chunks/b4349db7155673329432.js +0 -1
  753. package/assets/esri/core/workers/chunks/b48033645091c91e0d88.js +0 -1
  754. package/assets/esri/core/workers/chunks/b5e4a36784d598ae6679.js +0 -1
  755. package/assets/esri/core/workers/chunks/b64cfd86d9204be743c6.js +0 -1
  756. package/assets/esri/core/workers/chunks/b8988771bfa4e785ebd6.js +0 -1
  757. package/assets/esri/core/workers/chunks/ba6452acee3d6defb37e.js +0 -1
  758. package/assets/esri/core/workers/chunks/bb92a9daa0c5b019561f.js +0 -1
  759. package/assets/esri/core/workers/chunks/bc731ec9d5136f1d9253.js +0 -1
  760. package/assets/esri/core/workers/chunks/bd1d159dce4094694c93.js +0 -1
  761. package/assets/esri/core/workers/chunks/bd2a28b14e5c0a55d783.js +0 -1
  762. package/assets/esri/core/workers/chunks/bdbb5b33f0f49661bf6d.js +0 -1
  763. package/assets/esri/core/workers/chunks/befeca51530bba5e8073.js +0 -1
  764. package/assets/esri/core/workers/chunks/bf05164b7a3e4f31e9db.js +0 -1
  765. package/assets/esri/core/workers/chunks/bf88bd763fd6442a95fd.js +0 -1
  766. package/assets/esri/core/workers/chunks/bfe052b386ec4874f350.js +0 -1
  767. package/assets/esri/core/workers/chunks/c042269586921e337be9.js +0 -1
  768. package/assets/esri/core/workers/chunks/c0b15510a8cab98df77f.js +0 -1
  769. package/assets/esri/core/workers/chunks/c27842a34e73ccb46116.js +0 -1
  770. package/assets/esri/core/workers/chunks/c3272b09bff886b08ce1.js +0 -1
  771. package/assets/esri/core/workers/chunks/c38a07e936226b361b63.js +0 -1
  772. package/assets/esri/core/workers/chunks/c59c1e52acb5ac8f78f9.js +0 -1
  773. package/assets/esri/core/workers/chunks/c5cc0fc652432a9264cc.js +0 -1
  774. package/assets/esri/core/workers/chunks/c605bf7d1e12917ac482.js +0 -1
  775. package/assets/esri/core/workers/chunks/c743e561e7d73a100576.js +0 -1
  776. package/assets/esri/core/workers/chunks/c7838ac0db8570a2d2c1.js +0 -1
  777. package/assets/esri/core/workers/chunks/c8182c2cbb0ead202af6.js +0 -1
  778. package/assets/esri/core/workers/chunks/c91ef3814e7f024043cf.js +0 -1
  779. package/assets/esri/core/workers/chunks/c96083838f919a8f64cd.js +0 -1
  780. package/assets/esri/core/workers/chunks/cad1d7e5ce89f51b3ac9.js +0 -1
  781. package/assets/esri/core/workers/chunks/cade149fa19b4d06dd24.js +0 -1
  782. package/assets/esri/core/workers/chunks/cc50f96321a7c12f300b.js +0 -1
  783. package/assets/esri/core/workers/chunks/ccc743e41854eb225c23.js +0 -1
  784. package/assets/esri/core/workers/chunks/cd788ed111e1e35cf9c8.js +0 -1
  785. package/assets/esri/core/workers/chunks/ce3870db25566cd93d8e.js +0 -1
  786. package/assets/esri/core/workers/chunks/cfbe9993263fa6f69363.js +0 -1
  787. package/assets/esri/core/workers/chunks/d129a5a34e9ad09bd39e.js +0 -1
  788. package/assets/esri/core/workers/chunks/d14e75b160aa432233c6.js +0 -1
  789. package/assets/esri/core/workers/chunks/d21480925a8bc9c7de96.js +0 -1
  790. package/assets/esri/core/workers/chunks/d32aad968798948946e4.js +0 -1
  791. package/assets/esri/core/workers/chunks/d364096493ceeff34c10.js +0 -1
  792. package/assets/esri/core/workers/chunks/d373986588f6b1b8f2d5.js +0 -1
  793. package/assets/esri/core/workers/chunks/d3b1d1c389d70919fb02.js +0 -1
  794. package/assets/esri/core/workers/chunks/d52a0c3a855029c48bd2.js +0 -1
  795. package/assets/esri/core/workers/chunks/d66973e926bc03e2359a.js +0 -1
  796. package/assets/esri/core/workers/chunks/d7cd1d879768df629716.js +0 -1
  797. package/assets/esri/core/workers/chunks/d7df5e4028d502712317.js +0 -1
  798. package/assets/esri/core/workers/chunks/d90564fbafc00df2d56d.js +0 -1
  799. package/assets/esri/core/workers/chunks/d9ca754f51b9812bb179.js +0 -1
  800. package/assets/esri/core/workers/chunks/d9ef0b3341e2744d8f2f.js +0 -1
  801. package/assets/esri/core/workers/chunks/da5ce19ecf3a5e92a2a9.js +0 -1
  802. package/assets/esri/core/workers/chunks/da7685ec2b6eaf00fd2d.js +0 -1
  803. package/assets/esri/core/workers/chunks/dae715b2b0094641e42f.js +0 -1
  804. package/assets/esri/core/workers/chunks/db04b0a30cce9e476551.js +0 -1
  805. package/assets/esri/core/workers/chunks/db28d00171240b4fffac.js +0 -1
  806. package/assets/esri/core/workers/chunks/db4661fd82dc61162115.js +0 -1
  807. package/assets/esri/core/workers/chunks/dbd382546837aa7709e2.js +0 -1
  808. package/assets/esri/core/workers/chunks/dddb6cb44cbe4dc1af97.js +0 -1
  809. package/assets/esri/core/workers/chunks/de60421029fbcebe2950.js +0 -1
  810. package/assets/esri/core/workers/chunks/df33d5a08e1b6dc00f45.js +0 -1
  811. package/assets/esri/core/workers/chunks/e0369ce0d729c9656488.js +0 -1
  812. package/assets/esri/core/workers/chunks/e03c706e327f4989280a.js +0 -1
  813. package/assets/esri/core/workers/chunks/e0648f5aed9d939928dc.js +0 -1
  814. package/assets/esri/core/workers/chunks/e071b912539304564b69.js +0 -1
  815. package/assets/esri/core/workers/chunks/e10d6e511921394474ca.js +0 -1
  816. package/assets/esri/core/workers/chunks/e34b7acc963288ca0f04.js +0 -1
  817. package/assets/esri/core/workers/chunks/e4b6aa8f67c2bd285020.js +0 -1
  818. package/assets/esri/core/workers/chunks/e572ffc1d000e4e6325f.js +0 -1
  819. package/assets/esri/core/workers/chunks/e615a935bbf1168fac43.js +0 -1
  820. package/assets/esri/core/workers/chunks/e8bf362b2631f977b1cb.js +0 -1
  821. package/assets/esri/core/workers/chunks/e8e4d48ab4024e17108d.js +0 -1
  822. package/assets/esri/core/workers/chunks/e97787de88e2992add13.js +0 -1
  823. package/assets/esri/core/workers/chunks/eaadcc43837c465342cc.js +0 -1
  824. package/assets/esri/core/workers/chunks/eb7eb3b3b8800fd73f3e.js +0 -1
  825. package/assets/esri/core/workers/chunks/ecb4c223c0278971cdc9.js +0 -1
  826. package/assets/esri/core/workers/chunks/ed7e353e290b3a272457.js +0 -1
  827. package/assets/esri/core/workers/chunks/ee361690b456c12c30d8.js +0 -1
  828. package/assets/esri/core/workers/chunks/ef639d31c94d2b55b8d4.js +0 -1
  829. package/assets/esri/core/workers/chunks/ef977be20a647aeded0a.js +0 -1
  830. package/assets/esri/core/workers/chunks/efb631371b6bb3f043bb.js +0 -1
  831. package/assets/esri/core/workers/chunks/f0100b34f8b13fb37157.js +0 -1
  832. package/assets/esri/core/workers/chunks/f0914715e90e43466f8c.js +0 -1
  833. package/assets/esri/core/workers/chunks/f0a667d8d33bc51c795d.js +0 -1
  834. package/assets/esri/core/workers/chunks/f1e5d52e550326e49d1e.js +0 -1
  835. package/assets/esri/core/workers/chunks/f25bebd2b6eb0d0f6626.js +0 -2
  836. package/assets/esri/core/workers/chunks/f2b63597ae956db74eb3.js +0 -1
  837. package/assets/esri/core/workers/chunks/f32d4813b450a3eb4262.js +0 -1
  838. package/assets/esri/core/workers/chunks/f3b2c81f5ad26a58a4bd.js +0 -1
  839. package/assets/esri/core/workers/chunks/f54ec21fa67db6fef5a6.js +0 -1
  840. package/assets/esri/core/workers/chunks/f57b5720ce827f5845cd.js +0 -1
  841. package/assets/esri/core/workers/chunks/f5a695dc51793b138b23.js +0 -1
  842. package/assets/esri/core/workers/chunks/f5f584d325f8f2ea825f.js +0 -1
  843. package/assets/esri/core/workers/chunks/f65d26588d2d80680a26.js +0 -1
  844. package/assets/esri/core/workers/chunks/f65f1798f398bc549463.js +0 -1
  845. package/assets/esri/core/workers/chunks/f72e6c903f55ce95a6c5.js +0 -1
  846. package/assets/esri/core/workers/chunks/f77b93bef06bae03c1c6.js +0 -1
  847. package/assets/esri/core/workers/chunks/f7dfbf24859f4ac2421b.js +0 -1
  848. package/assets/esri/core/workers/chunks/f8438642a9bdd8980b4b.js +0 -1
  849. package/assets/esri/core/workers/chunks/f98689562017583f73ee.js +0 -1
  850. package/assets/esri/core/workers/chunks/fdb5b5d8a7c99a0bf5f9.js +0 -1
  851. package/assets/esri/core/workers/chunks/fdbe16e3b23e01655c0c.js +0 -1
  852. package/assets/esri/core/workers/chunks/fe07390e27f8cd5e93a8.js +0 -1
  853. package/assets/esri/core/workers/chunks/fe33b11ec3f58a0f541a.js +0 -1
  854. package/assets/esri/core/workers/chunks/ff8e2f998169ca3a7a68.js +0 -1
  855. package/assets/esri/core/workers/chunks/ffdba51e7256ebf8ebd3.js +0 -1
  856. /package/assets/esri/core/workers/chunks/{43e2c1d72cd9c8beed2f.js.LICENSE.txt → 008a555ce169640e2a35.js.LICENSE.txt} +0 -0
  857. /package/assets/esri/core/workers/chunks/{6be530ab81291745485b.js.LICENSE.txt → 21ac84b5c7dedcfd747d.js.LICENSE.txt} +0 -0
  858. /package/assets/esri/core/workers/chunks/{5b9f2aa3ba1bf12c3240.js.LICENSE.txt → 534ed6574e4a1613ba05.js.LICENSE.txt} +0 -0
  859. /package/assets/esri/core/workers/chunks/{37002a46f03a9fc5f644.js.LICENSE.txt → 5aee84e827e6fcc9c4c4.js.LICENSE.txt} +0 -0
  860. /package/assets/esri/core/workers/chunks/{73c416ae0ec5a1815591.js.LICENSE.txt → 90a53bfe95ed687c28c1.js.LICENSE.txt} +0 -0
  861. /package/assets/esri/core/workers/chunks/{873008572c1f21cea122.js.LICENSE.txt → 91e307ca0d11804a7a1d.js.LICENSE.txt} +0 -0
  862. /package/assets/esri/core/workers/chunks/{25f3ee666f545a7a7993.js.LICENSE.txt → dc57400b835724204909.js.LICENSE.txt} +0 -0
  863. /package/assets/esri/core/workers/chunks/{f25bebd2b6eb0d0f6626.js.LICENSE.txt → e3d3fc87789fd711f161.js.LICENSE.txt} +0 -0
  864. /package/assets/esri/core/workers/chunks/{0b7bbdc0d71ee6721751.js.LICENSE.txt → ef519984fa691aad8d87.js.LICENSE.txt} +0 -0
  865. /package/assets/esri/core/workers/chunks/{9ccabf8142fb5de4d3e2.js.LICENSE.txt → f5ed6953a9255f0bed6a.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8948],{6518(e,t,i){i.d(t,{F:()=>a});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((i,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,s.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8460(e,t,i){i.d(t,{$C:()=>y,Hh:()=>o,Tu:()=>c,Wg:()=>h,Xq:()=>f,i6:()=>g,pM:()=>u,vJ:()=>m});var n=i(2741);let r,s=null;function o(){return r||(r=i.e(3666).then(i.bind(i,3666)).then(e=>e.l).then(({default:e})=>e({locateFile:e=>(0,n.s)(`esri/libs/linkchartlayout/${e}`)})).then(e=>{!function(e){s=e}(e)}),r)}const a={right:0,left:1,top:2,bottom:3},l={none:0,"start-only":1,"start-and-end":2};function p(e){const t={timeDirection:"right",timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:"start-and-end",showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0,...e?.toJSON(),eventsTicksVisualization:e?.eventsTicksVisualization??"start-and-end"};return{...t,timeDirection:{value:a[t.timeDirection]??a.right},eventsTicksVisualization:{value:l[t.eventsTicksVisualization]??l["start-and-end"]}}}function d(e,t,i,n,r,o){const a=i.length,l=r.length,p=Float64Array.BYTES_PER_ELEMENT,d=Uint32Array.BYTES_PER_ELEMENT,u=Uint8Array.BYTES_PER_ELEMENT,c=16+a*(u+2*p)+l*(2*d),h=s._malloc(c);try{const u=h+16-h%16,c=u+a*p,y=c+a*p,m=y+l*d,f=m+l*d,g=()=>[s.HEAPF64.subarray(u>>3,(u>>3)+a),s.HEAPF64.subarray(c>>3,(c>>3)+a),s.HEAPU32.subarray(y>>2,(y>>2)+l),s.HEAPU32.subarray(m>>2,(m>>2)+l),s.HEAPU8.subarray(f,f+a)],[b,w,_,M,I]=g();b.set(i),w.set(n),_.set(r),M.set(o),I.set(t);const T=e(a,f,u,c,l,y,m);let C=null,v=null;if(0===T.value){const e=s.getLayoutLinksTypes(),t=s.getLayoutLinksVerticesEndIndices(),i=s.getLayoutLinksVertices(),n=s.countLayoutLinksVertices();!l||e&&t?n&&!i?T.value=1:(C={types:new Uint8Array(s.HEAPU8.subarray(e,e+l)),vertexEndIndex:new Uint32Array(s.HEAPU32.subarray(t>>2,(t>>2)+l)),vertices:new Float64Array(s.HEAPF64.subarray(i>>3,(i>>3)+2*n))},v=s.getAuxiliaryGraphicElements()):T.value=1}const[E,A,x,S,k]=g();return i.set(E),n.set(A),r.set(x),o.set(S),t.set(k),{status:T.value,links:C,graphics:v}}finally{s._free(h),s.cleanupLayout()}}var u,c,h,y,m,f,g,b;(b=u||(u={})).getMinIdealEdgeLength=function(){return s.getMinIdealEdgeLength()},b.apply=function(e,t,i,n,r,o,a=2,l=1,p=-1){return d((t,i,n,r,o,d,u)=>s.applyForceDirectedLayout(e,t,i,n,r,o,d,u,a,l,p),t,i,n,r,o)},function(e){e.apply=function(e,t,i,n,r,o,a=2,l=1,p=-1){return d((t,i,n,r,o,d,u)=>s.applyCommunityLayout(e,t,i,n,r,o,d,u,a,l,p),t,i,n,r,o)}}(c||(c={})),function(e){e.apply=function(e,t,i,n,r,o){return d((t,i,n,r,o,a,l)=>s.applySimpleLayout(e,t,i,n,r,o,a,l),t,i,n,r,o)}}(h||(h={})),function(e){e.apply=function(e,t,i,n,r,o){return d((t,i,n,r,o,a,l)=>s.applyHierarchicalLayout(e,t,i,n,r,o,a,l),t,i,n,r,o)}}(y||(y={})),function(e){e.apply=function(e,t,i,n,r,o){return d((t,i,n,r,o,a,l)=>s.applyRadialTreeLayout(e,t,i,n,r,o,a,l),t,i,n,r,o)}}(m||(m={})),function(e){e.apply=function(e,t,i,n,r,o){return d((t,i,n,r,o,a,l)=>s.applySmartTreeLayout(e,t,i,n,r,o,a,l),t,i,n,r,o)}}(f||(f={})),function(e){e.apply=function(e,t,i,n,r,o,a,l,u,c,h,y){return d((t,i,n,a,l,d,m)=>{if(r.length!==t)return{value:1};if(o.length!==t)return{value:1};if(u.length!==l)return{value:1};if(c.length!==l)return{value:1};const f=Float64Array.BYTES_PER_ELEMENT,g=16,b=s._malloc(g+t*f),w=s._malloc(g+t*f),_=s._malloc(g+l*f),M=s._malloc(g+l*f),I=b+g-b%g,T=w+g-w%g,C=_+g-_%g,v=M+g-M%g;try{return s.HEAPF64.subarray(I>>3,(I>>3)+t).set(r),s.HEAPF64.subarray(T>>3,(T>>3)+t).set(o),s.HEAPF64.subarray(C>>3,(C>>3)+l).set(u),s.HEAPF64.subarray(v>>3,(v>>3)+l).set(c),s.applyChronologicalLayout(e,t,i,n,a,I,T,l,d,m,C,v,h,p(y))}finally{s._free(b),s._free(w),s._free(_),s._free(M)}},t,i,n,a,l)}}(g||(g={}))},10407(e,t,i){i.d(t,{It:()=>h,LG:()=>o,OM:()=>p,Sm:()=>d,Y:()=>a,bK:()=>l,mm:()=>c,sQ:()=>u});var n=i(91218),r=i(16930),s=i(28735);function o(e,t){if(!a(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,c.HOSTED_SERVICE)}function p(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function d(e,t,i){i?o(e,t):p(e,t)}async function u(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const i=r.A.WGS84;return await(0,n.initializeProjection)(t,i),(0,n.project)(e,i)}(i)}const c={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:i,itemControl:n}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!i&&!!r?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}},15375(e,t,i){i.d(t,{BL:()=>l,Cz:()=>r,KQ:()=>s,M1:()=>a,T1:()=>o,dr:()=>n});const n="ESRI__ID",r="ESRI__OriginID",s="ESRI__DestID",o="ESRI__LayoutGeometry",a="ESRI__AggregationCount",l="LC.ESRI__IsSpatial"},23150(e,t,i){i.d(t,{A:()=>a});var n=i(31635),r=i(91429),s=i(82799),o=i(54238);let a=class extends o.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"originId",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"destinationId",void 0),(0,n.Cg)([(0,r.MZ)({type:s.A,json:{write:!0}})],a.prototype,"layoutGeometry",void 0),a=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.Relationship")],a)},24137(e,t,i){i.d(t,{P:()=>I});var n=i(31635),r=i(69622),s=i(49186),o=i(53966),a=i(91869),l=i(74887),p=i(39516),d=i(91429),u=i(5443),c=i(39829),h=i(91218),y=i(21325),m=i(15375);const f=(e,t)=>{if("column-reference"===e.type)return e.column===t.systemOidFieldName?"ID(n)":`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&t.supportedSqlTypes.has(e.left.type)&&t.supportedSqlTypes.has(e.right.type)&&t.supportedSqlOperators.has(e.operator))return`${f(e.left,t)} ${e.operator} ${f(e.right,t)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let i="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)i+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return t.unsupportedOperationFound=!0,"";i+=`lower(n.${e.left.column})`}if(i+=" CONTAINS (","string"!==e.right.type)return t.unsupportedOperationFound=!0,"";{let t=e.right.value;t.startsWith("%")&&(t=t.slice(1)),t.endsWith("%")&&(t=t.slice(0,-1)),i+=`'${t.toLowerCase()}')`}return i}return t.unsupportedOperationFound=!0,""};var g=i(69860),b=i(30504),w=i(48441),_=i(42538),M=i(61956);let I=class extends r.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;const t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach(i=>{i.name&&(t.set(i.name,"entity"),this._processingCacheUpdatesLookup.set(i.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.entityTypeNames.add(i.name),i.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(i.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.knowledgeGraph.dataModel.relationshipTypes?.forEach(i=>{i.name&&(t.set(i.name,"relationship"),this._processingCacheUpdatesLookup.set(i.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.relationshipTypeNames.add(i.name),i.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(i.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.inclusionModeDefinition?.namedTypeDefinitions.forEach((i,n)=>{if("entity"===t.get(n))this.entityTypeNames.add(n);else{if("relationship"!==t.get(n))return o.A.getLogger(this).warn(`A named type, ${n}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(n);this.relationshipTypeNames.add(n)}const r=new Map;i.members?.forEach(e=>{(0,a.tE)(this.memberIdTypeLookup,e.id,()=>new Set).add(n)}),this.sublayerCaches.set(n,r)})}addToLayer(e){e.forEach(({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new s.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){const i=this.inclusionModeDefinition.namedTypeDefinitions.get(e);i.members||(i.members=new Map),i.members.set(t,{id:t}),(0,a.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}}else{const i=new Map;i.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:i}),(0,a.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}})}getById(e){return g.A.getInstance().readFromStoreById(e)}async getData(e,t,i){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return[];let n;if(n=e||new M.A({where:"1=1",outFields:["*"]}),"link-chart"===t.parentCompositeLayer.type){const e=t.parentCompositeLayer,i=this._processingCacheUpdatesLookup.get(t.objectType.name??""),r=n.outFields;r&&1===r.length&&r[0]===m.dr&&"1=1"===n.where||await Promise.all(i??[]);const s=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return s.forEach(i=>{if(this.relationshipTypeNames.has(t.objectType.name)){i.geometry=e.relationshipLinkChartDiagramLookup.get(i.attributes[t.objectIdField]);const n=this.memberIdTypeLookup.get(i.attributes[m.Cz]),r=this.memberIdTypeLookup.get(i.attributes[m.KQ]),s=this._isEndEntitySpatial(n,i,m.Cz),o=this._isEndEntitySpatial(r,i,m.KQ);i.attributes[m.BL]=Number(s&&o)}else{i.geometry=e.entityLinkChartDiagramLookup.get(i.attributes[t.objectIdField]);const n=this.geographicLookup.get(t.objectType.name);n&&i.attributes[n.name]?i.attributes[m.BL]=1:i.attributes[m.BL]=0}i.attributes[m.T1]=i.geometry,o.push(i)}),o}return this.retrieveDataFromService(n,t,i)}async getConnectedRecordIds(e,t,i){const n=[];let r="";const s=this._getNamedTypeIdMapFromNodeIds(e);if(t&&0!==t?.length){for(const e of t)r=r+e+"|";r=r.slice(0,-1)}const o={},a=[];for(const[e,i]of s){const n=`${e}_ids`;o[n]=i,t&&0!==t?.length?a.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r:${r}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`):a.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`)}if(!a.length)return n;const l=a.join(" UNION "),p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:l,bindParameters:o}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){const i=t[e];n.push({id:i[0],typeName:i[1]}),n.push({id:i[2],typeName:i[3]})}}return n}async getRelationshipsBetweenNodes(e,t,i){const n=this._getNamedTypeIdMapFromNodeIds(e);if(0===n.size)return[];const r={relationshipExclusionIds:t,possibleConnectionEntityIds:e},s=[];for(const[e,t]of n.entries()){const i=`${e}_ids`;r[i]=t,s.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]->(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const o=s.join(" UNION "),a=[],l=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:o,bindParameters:r}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await l.read();if(e)break;for(let e=0;e<t.length;e++){const i=t[e];a.push({id:i[0],typeName:i[1]})}}return a}async getRelationshipsFromNodes(e,t,i,n){const r=this._getNamedTypeIdMapFromNodeIds(e);if(0===r.size||0===t.length)return[];const s={relationshipExclusionIds:i,possibleConnectionEntityIds:t},o=[];for(const[e,t]of r.entries()){const i=`${e}_ids`;s[i]=t,o.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]-(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const a=o.join(" UNION "),l=new Map,p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:a,bindParameters:s}),{signal:n?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){const i=t[e];let n=l.get(i[1]);n||(n=new Set,l.set(i[1],n)),n.add(i[0])}}const d=[];for(const[e,t]of l)for(const i of t)d.push({id:i,typeName:e});return d}async refreshCacheContent(e,t,i,n=!0,r){const o=g.A.getInstance(),p=[],d=new Map,u=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&u.set(e.name,e)}),this.knowledgeGraph.dataModel.relationshipTypes?.forEach(e=>{e.name&&u.set(e.name,e)}),e||this.inclusionModeDefinition?e?e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e))d.has(t)?d.get(t)?.push(e):d.set(t,[e])}):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{e.useAllData?d.set(t,null):e.members&&e.members.forEach(e=>{d.has(t)&&null!==d.get(t)?d.get(t)?.push(e.id):d.set(t,[e.id])})}):(this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&d.set(e.name,null)}),this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&d.set(e.name,null)}));for(const[e,l]of d){const d=new Set(l),c=new Promise((p,c)=>{(async()=>{const p=new Set,c=[];let h,y="",f=!1;if(t||u.get(e)?.properties?.forEach(e=>{e.name&&p.add(e.name)}),i&&this.geographicLookup.has(e)){const t=this.geographicLookup.get(e)?.name;t&&p.add(t)}if(this.entityTypeNames.has(e))y=`MATCH (n:${e}) ${l?"WHERE id(n) IN $ids ":""}return ID(n)`,p.forEach(e=>{y+=`, n.${e}`,c.push(e)});else{if(!this.relationshipTypeNames.has(e))throw new s.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);f=!0,y=`MATCH ()-[n:${e}]->() ${l?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,p.forEach(e=>{y+=`, n.${e}`,c.push(e)})}h=new _.A(l?{openCypherQuery:y,bindParameters:{ids:l}}:{openCypherQuery:y});const g=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,h,{signal:r?.signal})).resultRowsStream.getReader();for(;;){const{done:t,value:i}=await g.read();if(t)break;const r=[];for(let e=0;e<i.length;e++){const t=i[e];let n=0,s=0;const o={properties:{}};for(o.id=t[n],n++,s++,f&&(o.originId=t[n],n++,s++,o.destinationId=t[n],n++,s++,(0,a.tE)(this.nodeConnectionsLookup,o.originId,()=>new Set).add(o.id),(0,a.tE)(this.nodeConnectionsLookup,o.destinationId,()=>new Set).add(o.id),(0,a.tE)(this.relationshipConnectionsLookup,o.id,()=>[o.originId,o.destinationId]));n<t.length;n++)o.properties[c[n-s]]=t[n];d.delete(o.id),r.push(o)}const s=o.writeToStore(r,m.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),n&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),n&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);const l=this.sublayerCaches.get(e);s.forEach(t=>{l?.set(t.attributes[m.dr],t),n&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[m.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[m.dr],{id:t.attributes[m.dr]}),(0,a.tE)(this.memberIdTypeLookup,t.attributes[m.dr],()=>new Set).add(e))})}const b=this.inclusionModeDefinition?.namedTypeDefinitions.get(e);if(b)for(const e of d)b.members?.delete(e)})().then(()=>{p(null)}).catch(e=>{"AbortError"===e.name?p(null):c(e)})});p.push(c),this._processingCacheUpdatesLookup.get(e)?.push(c)}if(await Promise.all(p),r?.signal?.aborted)throw(0,l.NK)()}removeFromLayer(e){const t=new Set,i=new Set(e.map(e=>e.id));for(const i of e)t.add(i.typeName),1===this.memberIdTypeLookup.get(i.id)?.size?this.memberIdTypeLookup.delete(i.id):this.memberIdTypeLookup.get(i.id)?.delete(i.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach((e,t)=>{t===i.typeName&&e.members?.has(i.id)&&e.members.delete(i.id)});t.forEach(e=>{this.sublayerCaches.get(e)?.forEach((t,n)=>{i.has(n)&&this.sublayerCaches.get(e)?.delete(n)})})}async retrieveDataFromService(e,t,i){const n=g.A.getInstance(),r=new Set,o=[];let a,l="",d=[];const M="relationship"===t.graphType,I=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,T=t.parentCompositeLayer.sublayerIdsCache.get(t.objectType.name);let C=!I&&T?Array.from(T).sort():null;if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(C=e.objectIds);else if(null!=e.objectIds&&C&&C.length>0){const t=e.objectIds;e.objectIds=C.filter(e=>t.includes(e))}else if(null!=e.objectIds)C=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],[];e.objectIds=C}if(null!=e.outFields){const i=e.outFields;i.includes("*")?t.fields.forEach(e=>{r.add(e.name)}):i.forEach(e=>{e!==m.dr&&e!==t.geometryFieldName&&r.add(e)})}if(null!=e.geometry){const i=e.geometry;let n;const d=t.parentCompositeLayer.dataManager.knowledgeGraph.serviceDefinition,m=d?.spatialReference,f=d?.serviceCapabilities?.geometryCapabilities;let g=f?.geometryMaxBoundingRectangleSizeX,w=f?.geometryMaxBoundingRectangleSizeY;if("point"===i.type){let e=i;e.spatialReference?.isWGS84||(await(0,h.initializeProjection)(e.spatialReference,y.KK),e=(0,h.project)(e,y.KK)),n=new u.A({spatialReference:y.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else i?.extent?.spatialReference&&!i.spatialReference?.isWGS84?(await(0,h.initializeProjection)(i.extent.spatialReference,y.KK),n=(0,h.project)(i.extent,y.KK)):n=i.extent;if(g&&w&&m){if(4326!==m.wkid){const e=new u.A({spatialReference:m,xmax:g,ymax:w}),t=(0,h.project)(e,y.KK);g=t.xmax,w=t.ymax}if(n.xmax-n.xmin>g)throw new s.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${g}° latitude, limit exceeded`);if(n.ymax-n.ymin>w)throw new s.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${w}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){const i=await(0,p.GP)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach(e=>{i.fieldNames.includes(e.name)&&r.add(e.name)})}l=M?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach(e=>{l+=`, n.${e}`,o.push(e)}),a=new _.A({openCypherQuery:l,bindParameters:{param_filter_geom:new c.A({rings:(0,b.Wq)(n)})}})}else{let i="";if(null!=e.where&&"1=1"!==e.where){const n=await(0,p.GP)(e.where,t.fieldsIndex);t.fields.forEach(e=>{n.fieldNames.includes(e.name)&&r.add(e.name)});const s={systemOidFieldName:m.dr,supportedSqlTypes:new Set(["column-reference","string","number","binary-expression"]),supportedSqlOperators:new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]),unsupportedOperationFound:!1};i=f(n.parseTree,s),s.unsupportedOperationFound&&(i="")}let n="";n=M?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let s=!1;C&&(s=!0,n+=" WHERE ID(n) IN $ids"),i&&(n+=s?" AND":" WHERE",n+=` ${i}`),n+=" return ID(n)",M&&(n+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach(e=>{n+=`, n.${e}`,o.push(e)}),a=new _.A(C?{openCypherQuery:n,bindParameters:{ids:C}}:{openCypherQuery:n})}const v=(await(0,w.executeQueryStreaming)(t.parentCompositeLayer.dataManager.knowledgeGraph,a,i)).resultRowsStream.getReader();for(;;){const{done:e,value:i}=await v.read();if(e)break;const r=[];for(let e=0;e<i.length;e++){const t=i[e];let n=0,s=0;const a={properties:{}};for(a.id=t[n],n++,s++,M&&(a.originId=t[n],n++,s++,a.destinationId=t[n],n++,s++);n<t.length;n++)a.properties[o[n-s]]=t[n];r.push(a)}d=d.concat(n.writeToStore(r,m.dr,t.parentCompositeLayer.dataManager.geographicLookup.get(t.objectType.name)?.name))}return d}_isEndEntitySpatial(e,t,i){for(const n of e??[])if(this.entityTypeNames.has(n)){const e=this.geographicLookup.get(n),r=e&&this.sublayerCaches.get(n)?.get(t.attributes[i]);if(e&&r?.attributes[e.name])return!0}return!1}_getNamedTypeIdMapFromNodeIds(e){const t=new Map;return e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(const i of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(i))return;t.has(i)?t.get(i)?.push(e):t.set(i,[e])}}),t}};(0,n.Cg)([(0,d.MZ)()],I.prototype,"knowledgeGraph",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"inclusionModeDefinition",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"entityTypeNames",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"relationshipTypeNames",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"geographicLookup",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"sublayerCaches",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"nodeConnectionsLookup",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"relationshipConnectionsLookup",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"memberIdTypeLookup",void 0),I=(0,n.Cg)([(0,d.$K)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],I)},25927(e,t,i){i.d(t,{A:()=>a});var n=i(31635),r=i(91429),s=i(86738),o=i(54238);let a=class extends o.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n.Cg)([(0,r.MZ)({type:s.A,json:{write:!0}})],a.prototype,"layoutGeometry",void 0),a=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.Entity")],a)},30504(e,t,i){i.d(t,{k5:()=>p,aq:()=>l,Wq:()=>d}),i(52106);var n=i(49186),r=(i(86738),i(39829),i(82799),i(94194),i(69860),i(8460),i(66552));(0,r.O)()({none:"none",startAndEnd:"start-and-end",startOnly:"start-only"}),(0,r.O)()({absoluteValue:"absolute-value",multiplier:"multiplier"});const s=new Map([["basic-grid","basic-grid"],["geographic-organic-standard","geographic-organic-standard"],["hierarchical-bottom-to-top","hierarchical-bottom-to-top"],["hierarchical-top-to-bottom","hierarchical-bottom-to-top"],["organic-community","organic-community"],["organic-fusiform","organic-standard"],["organic-leaf-circle","organic-standard"],["organic-standard","organic-standard"],["radial-node-centric","radial-root-centric"],["radial-root-centric","radial-root-centric"],["tree-bottom-to-top","tree-left-to-right"],["tree-left-to-right","tree-left-to-right"],["tree-right-to-left","tree-left-to-right"],["tree-top-to-bottom","tree-left-to-right"],["chronological-mono-timeline","chronological-mono-timeline"],["chronological-multi-timeline","chronological-multi-timeline"]]);var o=i(48441),a=i(42538);async function l(e,t,i){const n=[],r=function(e,t){const i=new Map;if(t.dataModel?.relationshipTypes)for(const e of t.dataModel.relationshipTypes)e.name&&i.set(e.name,[]);for(const t of e)i.has(t.typeName)&&i.get(t.typeName)?.push(t.id);return i}(e,t),s={},l=[];for(const[e,t]of r){if(t.length<1)continue;const i=`${e}_ids`;s[i]=t,l.push(`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $${i} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===l.length)return[];const p=l.join(" UNION "),d=new a.A({openCypherQuery:p,bindParameters:s}),u=(await(0,o.executeQueryStreaming)(t,d,i?.requestOptions)).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await u.read();if(e)break;for(const e of t)n.push({id:e[0],typeName:e[1]}),n.push({id:e[2],typeName:e[3]})}return n}i(40863),i(94985),i(68249);const p=e=>s.get(e)??"radial-root-centric";function d(e){if(!e.spatialReference.isWGS84)throw new n.A("knowledge-graph:layer-support-utils","The utilsExtentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}},37531(e,t,i){i.d(t,{dt:()=>c,GG:()=>g,UQ:()=>f,Sx:()=>d});var n=i(68197),r=i(60999),s=i(51850),o=(i(76369),i(62046)),a=(i(2741),i(11254),i(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new a.q(1e3),new n.A([128,128,128]);var l=i(28975),p=i(33910);function d(e,t){if(!e)return null;let i=null;return(0,p.wk)(e)?i=function(e){const t=e.symbolLayers;if(!t)return null;let i=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(i="water"===e.type?e.color:e.material?e.material.color:null)}),i?new n.A(i):null}(e):(0,p.$y)(e)&&(i="cim"===e.type?(0,o.Nk)(e):e.color?new n.A(e.color):null),i?u(i,t):null}function u(e,t){if(null==t||null==e)return e;const i=e.toRgba();return i[3]=i[3]*t,new n.A(i)}function c(e,t,i){e&&(t||null!=i)&&(t&&(t=new n.A(t)),(0,p.wk)(e)?function(e,t,i){const r=e.symbolLayers;if(!r)return;const s=(e,r=!1)=>{let s=t??e??null;return null!=i?.override&&(!s&&r&&(s=new n.A([255,255,255])),s&&(s.a=i.override)),u(s,i?.add)};r.forEach(e=>{if("water"===e.type)return void(e.color=u(e.color,i?.add));const t=null!=e.material?e.material.color:null,n=s(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.A({color:n}):e.material.color=n,"outline"in e&&e.outline?.color&&null!=i?.add&&(e.outline.color=u(e.outline.color,i.add)),"marker"in e&&null!=e.marker&&(e.marker.color=s(e.marker.color))})}(e,t,i):(0,p.$y)(e)&&function(e,t,i){t=t??e.color,null!=i?.override&&t&&(t.a=i.override),t&&(e.color=u(t,i?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=u(e.outline.color,i?.add))}(e,t,i))}function h(e){for(const t of e)if("number"==typeof t)return t;return null}function y(e,t,i){for(let n=0;n<3;n++){const r=e[n];switch(r){case"symbol-value":{const e=i[n];return null!=e?e/t[n]:1}case"proportional":break;default:if(r&&t[n])return r/t[n]}}return null}function m(e,t,i,n){switch(e){case"proportional":return i*n;case"symbol-value":return null!=t?t:i;default:return e}}async function f(e,t){if(e&&t)return(0,p.wk)(e)?async function(e,t){const n=e.symbolLayers;n&&await(0,r.jJ)(n,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const i=t[2];"number"==typeof i&&(e.size=i)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const i=h(t);null!=i&&(e.size=i)}(e,t);break;case"path":!function(e,t){const i=y(t,s.Un,[e.width,void 0,e.height]);null!=i&&(e.width=m(t[0],e.width,1,i),e.height=m(t[2],e.height,1,i))}(e,t);break;case"object":await async function(e,t){const{resourceSize:n,symbolSize:r}=await async function(e){const{computeObjectLayerResourceSize:t}=await i.e(5404).then(i.bind(i,95404)),n=await t(e,10),{width:r,height:s,depth:o}=e,a=[r,o,s];let l=1;for(let e=0;e<3;e++){const t=a[e];if(null!=t){l=t/n[e];break}}for(let e=0;e<3;e++)null==a[e]&&(a[e]=n[e]*l);return{resourceSize:n,symbolSize:a}}(e),s=y(t,n,r);null!=s&&(e.width=m(t[0],r[0],n[0],s),e.depth=m(t[1],r[1],n[1],s),e.height=m(t[2],r[2],n[2],s))}(e,t)}}(e,t))}(e,t):void((0,p.$y)(e)&&function(e,t){const i=h(t);if(null!=i)switch(e.type){case"simple-marker":e.size=i;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=i,e.height=i*t):(e.width=i*t,e.height=i);break}case"simple-line":e.width=i;break;case"text":e.font.size=i}}(e,t))}function g(e,t,i){if(e&&null!=t)if((0,p.wk)(e)){const n=e.symbolLayers;n&&n.forEach(e=>{if("object"===e.type)switch(i){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,p.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,o.KU)(e,t,!0)}}},37730(e,t,i){i.d(t,{T:()=>r});var n=i(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new n.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},40662(e,t,i){i.d(t,{A:()=>o});var n=i(31635),r=i(91429),s=i(77901);let o=class extends s.A{constructor(e){super(e)}};o=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.ObjectValue")],o)},40736(e,t,i){i.d(t,{Gz:()=>U,O9:()=>$,hZ:()=>Z,CP:()=>z,dD:()=>q,UT:()=>F,MY:()=>B,Td:()=>D,iW:()=>O,e$:()=>j,N1:()=>P,qN:()=>N});var n=i(68197),r=i(92602),s=i(70333),o=(i(49186),i(91869)),a=i(74887),l=i(78247),p=i(58769),d=i(91218),u=i(16930),c=i(17136),h=i(99352),y=i(15375),m=i(29005),f=i(46499),g=i(73913),b=i(77548),w=i(80812),_=i(10407),M=i(48441),I=i(25927),T=i(31635),C=i(69622),v=i(91429);let E=class extends C.A{constructor(e){super(e),this.entityAdds=void 0,this.entityUpdates=void 0,this.entityDeletes=void 0,this.relationshipAdds=void 0,this.relationshipUpdates=void 0,this.relationshipDeletes=void 0,this.options=void 0}};(0,T.Cg)([(0,v.MZ)()],E.prototype,"entityAdds",void 0),(0,T.Cg)([(0,v.MZ)()],E.prototype,"entityUpdates",void 0),(0,T.Cg)([(0,v.MZ)()],E.prototype,"entityDeletes",void 0),(0,T.Cg)([(0,v.MZ)()],E.prototype,"relationshipAdds",void 0),(0,T.Cg)([(0,v.MZ)()],E.prototype,"relationshipUpdates",void 0),(0,T.Cg)([(0,v.MZ)()],E.prototype,"relationshipDeletes",void 0),(0,T.Cg)([(0,v.MZ)()],E.prototype,"options",void 0),E=(0,T.Cg)([(0,v.$K)("esri.rest.knowledgeGraph.GraphApplyEdits")],E);var A=i(23150),x=i(54218),S=i(40863),k=i(68249);const L=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function N(e,t,i){return(async(e,t,i)=>{if(t||(t=[...e.layers,...e.tables].map(e=>e.graphTypeName)),0===t?.length)return;const n=new Map;for(const i of t)n.set(i,L(e,i));const r=await(0,M.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(n.values()),{requestOptions:{signal:i?.signal}});for(const t of[...e.layers,...e.tables]){const i=t.objectType.name;if(null==i)continue;const n=r.get(L(e,i));if(n){const e=JSON.parse(n);null===e||"object"!=typeof e||e.hasOwnProperty("showLabels")||(e.showLabels=!1),t.read(e,{origin:"service"})}}})(e,t,i)}const R=["#4a0932","#b31515","#18382e","#a64f1b","#102432","#8c213f","#ed9310","#2c6954","#144d59","#ffc730","#75351e","#454f4b","#78b1c2","#191921","#8f8f82","#9be0c0","#dbb658","#87b051","#11495c","#c43541","#9c5596","#44498b","#ad9d63","#86afb3","#5c98ca","#b0bfa2","#73241f","#b86b53","#d9d78c","#3e756d","#f260a1","#a0d17d","#c27c30","#eb82eb","#ffdf3c","#ffb259","#ab52b3","#3cccb4","#0095ba","#d92b30"];function D(e){return e<0||e>=R.length?new n.A("#8f8f82"):new n.A(R[e])}function F(e){const t=e.toArray();return new S.A({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,style:"solid",width:.75,color:t},{type:"CIMVectorMarker",enable:!0,size:6,markerPlacement:{type:"CIMMarkerPlacementOnLine",angleToLine:!0,relativeTo:"LineMiddle"},frame:{xmin:-10,ymin:-5,xmax:0,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[-12,-3.47],[-12,3.6],[1.96,-.03],[-12,-3.47]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:t}]}}]}]}}})}function B(e){let t="ESRI__ID",i=4;for(const n of e)if(n.name){if("name"===n.name.toLowerCase()){t=n.name;break}n.name.toLowerCase().includes("name")?(t=n.name,i=2):"esriFieldTypeString"===n.fieldType&&i>3&&(t=n.name,i=3)}return t}function O(e,t,i){const n={color:[80,80,80],haloColor:[255,255,255],haloSize:.7,font:{size:10,weight:"normal"}},r=new f.A({labelExpressionInfo:new g.A({expression:"ESRI__ID"===i?`${t}`:`$feature.${i}`}),labelPlacement:"above-center",symbol:new k.A(n)}),s=new f.A({labelExpressionInfo:new g.A({expression:`'${t}' + IIf($feature.ESRI__AggregationCount>1, ' (' + $feature.ESRI__AggregationCount + ')', '')`}),labelPlacement:"center-along",labelPosition:"parallel",repeatLabel:!1,symbol:new k.A({...n,yoffset:"12px"})});return"entity"===e?[r]:[s]}function j(e,t,i){const n={color:[255,255,255],haloColor:[0,0,0],haloSize:.7,font:{size:10,weight:"bold"}},r="ESRI__ID"===i?`${e}`:`$feature.${i}`;return"point"===t?[new f.A({labelExpressionInfo:new g.A({expression:r}),labelPlacement:"above-center",symbol:new k.A(n)})]:"polyline"===t?[new f.A({labelExpressionInfo:new g.A({expression:r}),labelPlacement:"center-along",repeatLabel:!0,symbol:new k.A(n)})]:"polygon"===t?[new f.A({labelExpressionInfo:new g.A({expression:r}),labelPlacement:"always-horizontal",symbol:new k.A(n)})]:null}async function P(e,t,i){return(async(e,t,i)=>{let n=!0,o=!1,a=!1;if(!r.A.userPrivilegesApplied)return{edit:n,fullEdit:o,updateItem:a};const l=await(0,b.wI)(t,i);if(!l)return{edit:n,fullEdit:o,updateItem:a};const p=s.id?.getCredential(`${l}/sharing`,{...i,prompt:!1});if(!p)return{edit:n,fullEdit:o,updateItem:a};const d=new w.default({id:e,portal:{url:l}});return await d.load(i),({features:{edit:n,fullEdit:o},content:{updateItem:a}}=(0,_.It)(d)),{edit:n,fullEdit:o,updateItem:a}})(e,t,i).catch(e=>((0,a.QP)(e),{edit:!0,fullEdit:!1,updateItem:!1}))}const G={capabilities:[],allowGeometryUpdates:!1,serviceCapabilities:{geometryCapabilities:{supportsZValues:!1,supportsMValues:!1}}};function Z(e){const{capabilities:t,allowGeometryUpdates:i,serviceCapabilities:{geometryCapabilities:{supportsZValues:n,supportsMValues:r}}}=e?.serviceDefinition||G,s=e?.dataModel.arcgisManaged?t:t.filter(e=>"Query"===e),o=new Set(s);return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:r,supportsTrueCurve:!1,supportsZ:n},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:o.has("Create"),supportsDelete:o.has("Delete"),supportsEditing:o.has("Editing"),supportsChangeTracking:!1,supportsQuery:o.has("Query"),supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:o.has("Update"),supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:h.F,queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:h.P,editing:{supportsGeometryUpdate:!!e?.dataModel.arcgisManaged&&i,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:o.has("Delete"),supportsUpdateByAnonymous:!1,supportsUpdateByOthers:o.has("Update"),supportsAsyncApplyEdits:!1,zDefault:void 0}}}async function $(e,t){const i=new E,n=t.graphTypeName,r=t.graphType,s="knowledge-graph"===t.parentCompositeLayer.type?t.geometryFieldName:null,a=!!t.fieldsIndex.get(s)?.editable,l=e=>{const i={...e};for(const e of t.fields)e.editable||delete i[e.name];for(const t of Object.keys(e))t.includes("ESRI__")&&delete i[t];return i},p=async e=>{await(0,d.initializeProjection)(e.spatialReference,u.A.WGS84);const t=(0,d.project)(e,u.A.WGS84);return"point"===t.type?t.normalize():(await(0,c.el)(t))[0]};for(const t of e.addFeatures??[]){const e=l(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===r?(i.entityAdds||(i.entityAdds=[]),s&&t.geometry&&(e[s]=await p(t.geometry)),i.entityAdds.push(new I.A({properties:e,typeName:n}))):(i.relationshipAdds||(i.relationshipAdds=[]),i.relationshipAdds.push(new A.A({properties:e,typeName:n}))))}for(const t of e.updateFeatures??[]){const e=t.attributes[y.dr],o=l(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===r?(i.entityUpdates||(i.entityUpdates=[]),s&&a&&t.geometry&&(o[s]=await p(t.geometry)),i.entityUpdates.push(new I.A({id:e,properties:o,typeName:n}))):(i.relationshipUpdates||(i.relationshipUpdates=[]),i.relationshipUpdates.push(new A.A({id:e,properties:o,typeName:n}))))}const h=new Map;for(const t of e.deleteFeatures??[])if((0,x.DU)(t)){const e=t,i=(0,o.tE)(h,e.sourceLayer.graphTypeName,()=>({typeName:e.sourceLayer.graphTypeName,ids:[]}));e.sourceLayer.graphTypeName===n&&i.ids.push(e.attributes[y.dr])}else t.objectId&&"string"==typeof t.objectId&&(0,o.tE)(h,n,()=>({typeName:n,ids:[]})).ids.push(t.objectId);for(const e of h.values())e.ids.length>0&&("entity"===r?(i.entityDeletes||(i.entityDeletes=[]),i.entityDeletes.push({typeName:e.typeName,ids:e.ids})):(i.relationshipDeletes||(i.relationshipDeletes=[]),i.relationshipDeletes.push({typeName:e.typeName,ids:e.ids})));return i}function U(e,t){const i={addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]};for(const n of e.editResults)if(n.typeName===t){for(const e of n.adds)i.addFeatureResults.push({objectId:e.id,globalId:e.id});for(const e of n.updates)i.updateFeatureResults.push({objectId:e.id,globalId:e.id});for(const e of n.deletes)i.deleteFeatureResults.push({objectId:e.id,globalId:e.id})}return i}function q(e){if(!e.objectType)return null;const t=[];for(const i of e.fields)!i.name.includes("ESRI__")&&i.editable&&"geometry"!==i.type&&t.push(new p.A({fieldName:i.name}));return new l.A({elements:t})}function z(e){if(!e.objectType)return null;let t=null;switch(e.geometryType){case"point":case"multipoint":t="point";break;case"polyline":t="line";break;case"polygon":t="polygon";break;default:t=null}return[new m.A({name:e.graphTypeName,drawingTool:t,prototype:{}})]}},42095(e,t,i){i.d(t,{A:()=>a});var n=i(31635),r=i(25482),s=i(91429),o=i(77901);let a=class extends r.o{constructor(e){super(e),this.path=[]}};(0,n.Cg)([(0,s.MZ)({type:[o.A],json:{write:!0}})],a.prototype,"path",void 0),a=(0,n.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.Path")],a)},42538(e,t,i){i.d(t,{A:()=>l});var n=i(31635),r=i(91429),s=i(16930),o=i(69622);let a=class extends o.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n.Cg)([(0,r.MZ)()],a.prototype,"openCypherQuery",void 0),a=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.GraphQuery")],a);let l=class extends a{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n.Cg)([(0,r.MZ)()],l.prototype,"bindParameters",void 0),(0,n.Cg)([(0,r.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,n.Cg)([(0,r.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,n.Cg)([(0,r.MZ)({type:s.A})],l.prototype,"outputSpatialReference",void 0),(0,n.Cg)([(0,r.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},54238(e,t,i){i.d(t,{A:()=>o});var n=i(31635),r=i(91429),s=i(77901);let o=class extends s.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],o.prototype,"typeName",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],o.prototype,"id",void 0),o=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.GraphNamedObject")],o)},62046(e,t,i){i.d(t,{Fe:()=>d,KU:()=>y,Nk:()=>s});var n=i(68197),r=i(93397);function s(e){const t=[];return o((0,r.lW)(e),t),t.length?new n.A((0,r.e6)(t[0])):null}function o(e,t){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;const n="CIMPolygonSymbol"===e.type;if(i?.symbolLayers)for(const e of i.symbolLayers)if(!(e.colorLocked||n&&((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&a(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{o(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":a(t,e.color);break;case"CIMGradientFill":l(t,e);break;case"CIMHatchFill":o(e.lineSymbol,t)}}function a(e,t){for(const i of e)if(i.join(".")===t.join("."))return;e.push(t)}function l(e,t){const i=t.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&p(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":p(e,t.colorRamp)}}function p(e,t){t&&(t.fromColor&&a(e,t.fromColor),t.toColor&&a(e,t.toColor))}function d(e,t,i){t instanceof n.A||(t=new n.A(t));const s=(0,r.lW)(e);s&&u(s,t,i)}function u(e,t,i){if(!e)return;let n;n="CIMTextSymbol"===e.type?e.symbol:e;const s="CIMPolygonSymbol"===n?.type;if(n?.symbolLayers)for(const e of n.symbolLayers){if(e.colorLocked)continue;if(s)if(i){const{layersToColor:t}=i;if(((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))&&"fill"===t||(0,r.jn)(e)&&"outline"===t)continue}else if((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))continue;const n=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=n;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{u(e.symbol,t,i)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=n;break;case"CIMGradientFill":c(e,t);break;case"CIMHatchFill":u(e.lineSymbol,t,i)}}}function c(e,t){const i=e.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&h(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":h(e.colorRamp,t)}}function h(e,t){if(e&&(e.fromColor&&(e.fromColor=t.toArray()),e.toColor)){const i=t.clone();i.a=0,e.toColor=i.toArray()}}function y(e,t,i=!1){const n=(0,r.lW)(e);if(i&&(t=360-t),"CIMTextSymbol"!==n?.type){if("CIMPointSymbol"===n?.type&&n.symbolLayers){const e=t-(n.angle||0);for(const t of n.symbolLayers)if((0,r.MM)(t)){let i=t.rotation||0;t.rotateClockwise?i-=e:i+=e,t.rotation=i}n.angle=t}}else n.angle=t}},62796(e,t,i){i.d(t,{A:()=>me});var n=i(31635),r=i(37838),s=i(49186),o=i(4718),a=i(53966),l=i(25728),p=i(91429),d=(i(29953),i(78247)),u=i(5443),c=i(86738),h=i(39829),y=i(82799),m=i(91218),f=i(16930),g=i(21325),b=i(50498),w=i(55156),_=i(60950),M=i(89808),I=i(99959);const T=Symbol("isKnowledgeGraphGraphicOriginSymbol");var C;class v extends I.A{get[(C=T,_.ym)](){return this.sublayer}get[w.e](){return this.sublayer}get[M.Q](){return this.sublayer}constructor(e,t){super(),this[C]=!0,this.type="knowledge-graph",this.layer=e,this.sublayer=t}get id(){return this.layer.id}}const E=Symbol("isLinkChartGraphicOriginSymbol");var A;class x extends I.A{get[(A=E,M.Q)](){return this.layer}constructor(e,t){super(),this[A]=!0,this.type="link-chart",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var S=i(4146),k=i(83221),L=i(56390),N=i(64714),R=i(15375);const D=(0,i(17036).p)(),F=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,n.Cg)([(0,p.MZ)(D.fields)],i.prototype,"fields",void 0),(0,n.Cg)([(0,p.MZ)(D.fieldsIndex)],i.prototype,"fieldsIndex",void 0),i=(0,n.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],i),i};var B=i(40736),O=i(63074),j=i(6455),P=i(87718),G=i(56658),Z=i(32756),$=i(54310),U=i(25036),q=i(82935),z=i(10873),Q=i(13213),H=i(29005),Y=i(20437),W=i(30524),K=i(46499),V=i(39383),X=i(96184),J=i(96576),ee=i(65494),te=i(41214),ie=i(48441),ne=i(22671),re=i(61956),se=i(30291),oe=i(88625),ae=i(37531),le=i(61322),pe=i(43937);function de(e){if(!e.json)return e;e.json.write=ue(e.json.write);const t=e.json.origins;if(!t)return e;let i;for(i in t){const e=t[i];e&&(e.write=ue(e.write))}return e}function ue(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){const{target:t,writer:i,overridePolicy:n,...r}=e;return function(e,t){const i=he.call(this,e,t);return i.enabled?{...r,...i}:i}}(e)),e):!0===e?ce():e}function ce(){return{overridePolicy:he}}function he(e,t){const i=!!this.geometryType;let n={enabled:i};return i&&(n={...n,...ye.call(this,e,t)}),n}function ye(e,t){return{ignoreOrigin:this.originIdOf(t)>0}}let me=class extends(F((0,j.FJ)((0,G.J)((0,P.F)((0,O.dM)((0,Z.fY)((0,q.e)((0,U.j)((0,$.J)((0,l.M)(S.A))))))))))){constructor(e){super(e),this.blendMode="normal",this.charts=null,this.definitionExpression=null,this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=R.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then(()=>{const e=new MessageChannel;return new le.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{const i=re.A.fromJSON(e);return this.queryFeaturesJSON(i,t)}}}),[e.port2]})},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get capabilities(){return this.parent?this.parent.sublayerCapabilities:(0,B.hZ)(null)}get isTable(){return"link-chart"!==this.parentCompositeLayer?.type&&null==this.geometryFieldName}get defaultPopupTemplate(){return this.createPopupTemplate()}get editingEnabled(){return this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveCapabilities(){const e=(0,o.o8)(this.capabilities),{operations:t,editing:i}=e;return this.userHasUpdateItemPrivileges&&(t.supportsAdd=t.supportsDelete=t.supportsEditing=t.supportsQuery=t.supportsUpdate=i.supportsDeleteByOthers=i.supportsGeometryUpdate=i.supportsUpdateByOthers=!0),this.userHasFullEditingPrivileges&&t.supportsEditing&&(t.supportsAdd=t.supportsDelete=t.supportsUpdate=i.supportsGeometryUpdate=!0),e}get effectiveEditingEnabled(){return this.userHasUpdateItemPrivileges||this.editingEnabled}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){const e=[],t=new Map;for(const e of this.parent?.knowledgeGraph.dataModel.domains??[])t.set(e.name,e);return this.objectType?.properties?.forEach(i=>{const n="esriFieldTypeOID"===i.fieldType?"esriFieldTypeInteger":i.fieldType,r=Y.A.fromJSON({name:i.name,type:n,alias:i.alias,defaultValue:i.defaultValue,editable:i.editable,nullable:i.nullable,domain:i.domain&&t.has(i.domain)?t.get(i.domain).toJSON():void 0});e.push(r)}),e.push(Y.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),Y.A.fromJSON({name:R.M1,type:"esriFieldTypeInteger",alias:R.M1,editable:!1}),Y.A.fromJSON({name:R.BL,type:"esriFieldTypeInteger",alias:R.BL,editable:!1})),e}get formTemplate(){return this._isOverridden("formTemplate")?this._get("formTemplate"):(0,B.dD)(this)}set formTemplate(e){this._overrideIfSome("formTemplate",e)}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.geometryType;return t&&"esriGeometryNull"!==t?b.gy.fromJSON(t):null}get geometryFieldName(){if("link-chart"===this.parentCompositeLayer?.type)return R.T1;const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name);return e?.name??null}get graphicOrigin(){if(!this.parent)return null;switch(this.parent.type){case"knowledge-graph":return new v(this.parent,this);case"link-chart":return new x(this.parent,this)}}get graphTypeName(){return this.objectType?.name}set graphTypeName(e){this._set("graphTypeName",e)}get hasM(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,i=t?this.objectType?.properties?.[t]:null;return i?.hasM??!1}get hasZ(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,i=t?this.objectType?.properties?.[t]:null;return i?.hasZ??!1}set labelingInfo(e){this._set("labelingInfo",e)}get labelingInfo(){if(this._isOverridden("labelingInfo"))return this._get("labelingInfo");if(!this.objectType||!this.parentCompositeLayer||!this.graphTypeName)return null;const e=this.objectType.properties?(0,B.MY)(this.objectType.properties):"ESRI__ID";return"link-chart"===this.parentCompositeLayer.type?(0,B.iW)(this.graphType,this.graphTypeName,e):(0,B.e$)(this.graphTypeName,this.geometryType,e)}set renderer(e){(0,W.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map(e=>e.name).indexOf(this.graphTypeName),i=(0,B.Td)(t);if("link-chart"===this.parentCompositeLayer?.type){if("relationship"===this.graphType)return new J.A({type:"simple",symbol:(0,B.UT)(i)});const e=(0,ee.r)((0,N.F0)(b.gy.toJSON("point")).renderer);return(0,ae.dt)(e.symbol,i),e}const n=(0,ee.r)((0,N.F0)(b.gy.toJSON(this.geometryType)).renderer);return(0,ae.dt)(n.symbol,i),n}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??f.A.WGS84}get templates(){return this._isOverridden("templates")?this._get("templates"):(0,B.CP)(this)}set templates(e){this._overrideIfSome("templates",e)}set timeInfo(e){this._set("timeInfo",e)}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}get userHasEditingPrivileges(){return!this.parent||this.parent.userHasEditingPrivileges}get userHasFullEditingPrivileges(){return!!this.parent&&this.parent.userHasFullEditingPrivileges}get userHasUpdateItemPrivileges(){return!!this.parent&&this.parent.userHasUpdateItemPrivileges}createPopupTemplate(e){return(0,se.tn)(this,e)}createQuery(){return new re.A({where:"1=1",outFields:["*"]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return this.fields.find(t=>t.name===e)?.domain||null}async queryFeatures(e,t){await this.load();const{resolvedQuery:i,queryEngine:n}=await this._setupQueryObjects(e),r=this.graphicOrigin,s=ne.A.fromJSON(await n.executeQuery(i.toJSON(),t?.signal));return s.features.forEach(e=>{e.sourceLayer=this,e.origin=r}),s}async queryFeaturesJSON(e,t){await this.load();const{resolvedQuery:i,queryEngine:n}=await this._setupQueryObjects(e);return await n.executeQuery(i.toJSON(),t?.signal)}async queryFeatureCount(e,t){await this.load();const{resolvedQuery:i,queryEngine:n}=await this._setupQueryObjects(e);return n.executeQueryForCount(i.toJSON(),t?.signal)}async queryExtent(e={},t){await this.load();const i={...e,returnGeometry:!0},{resolvedQuery:n,queryEngine:r}=await this._setupQueryObjects(i),s=await r.executeQueryForExtent(n.toJSON(),t?.signal);let o;return o=null!=s.extent?.xmin&&null!=s.extent?.xmax&&null!=s.extent?.ymin&&null!=s.extent?.ymax?new u.A(s.extent):new u.A,{count:s.count,extent:o}}async queryObjectIds(e,t){await this.load();const i=re.A.from(e);let n;if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)n=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(i,this,t);n=this.loadQueryEngine(e)}return await n.executeQueryForIds(i.toJSON(),t?.signal)}async applyEdits(e){if(!this.parentCompositeLayer.dataManager.knowledgeGraph)throw new s.A("knowledge-graph-sublayer:no-knowledge-graph","ApplyEdits cannot be executed because the parent does not have a Knowledge Graph model. This is usually caused by the layer not yet being loaded");const t=await(0,B.O9)(e,this);t.options={cascadeDelete:!0,cascadeProvenanceDelete:!!this.parent?.knowledgeGraph.serviceDefinition.supportsProvenance||void 0};const i=await(0,ie.executeApplyEdits)(this.parentCompositeLayer.dataManager.knowledgeGraph,t),n=(0,B.Gz)(i,this.graphTypeName),r={addedFeatures:n.addFeatureResults,updatedFeatures:n.updateFeatureResults,deletedFeatures:n.deleteFeatureResults,addedAttachments:n.addAttachmentResults,deletedAttachments:n.deleteAttachmentResults,updatedAttachments:n.updateAttachmentResults,exceededTransferLimit:!1,historicMoment:new Date,edits:void 0};return this.emit("edits",r),this.emit("apply-edits",{result:Promise.resolve(r)}),"link-chart"===this.parentCompositeLayer.type&&await this.parentCompositeLayer.refreshLinkChartCache([...r.addedFeatures.map(e=>e.globalId),...r.updatedFeatures.map(e=>e.globalId),...r.deletedFeatures.map(e=>e.globalId)]),n}loadQueryEngine(e){const t=new k.A({geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),i=new L.do({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,featureIdInfo:{type:"object-id",fieldName:this.objectIdField},spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return i.featureStore.addMany(e),i}async refreshCachedQueryEngine(){const e=await this.parentCompositeLayer.dataManager.getData(new re.A({where:"1=1",outFields:[R.dr]}),this);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then(()=>(0,W.sv)(this.timeInfo,this.fieldsIndex))),Promise.resolve(this)}async _setupQueryObjects(e,t){const i=re.A.from(e),n=i.geometry;if(n&&!n.spatialReference?.isWGS84&&(await(0,m.initializeProjection)(n.spatialReference,g.KK),i.geometry=(0,m.project)(n instanceof h.A||n instanceof y.A||n instanceof c.A?n:n.extent,g.KK)),"link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)return{resolvedQuery:i,queryEngine:this._cachedQueryEngine};const r=await this.parentCompositeLayer.dataManager.getData(i,this,t);return{resolvedQuery:i,queryEngine:this.loadQueryEngine(r)}}};(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(O.sU)))],me.prototype,"blendMode",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"capabilities",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"isTable",null),(0,n.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:ce()}})],me.prototype,"charts",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],me.prototype,"definitionExpression",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(j.Dp)))],me.prototype,"displayFilterEnabled",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(j.KV)))],me.prototype,"displayFilterInfo",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"editingEnabled",null),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(O.LF)))],me.prototype,"effect",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"effectiveCapabilities",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"effectiveEditingEnabled",null),(0,n.Cg)([(0,p.MZ)({type:oe.A})],me.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(P.Y)))],me.prototype,"featureEffect",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(Q.d)))],me.prototype,"featureReduction",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"fields",null),(0,n.Cg)([(0,p.MZ)({type:d.A})],me.prototype,"formTemplate",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"geometryType",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"geometryFieldName",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"graphicOrigin",null),(0,n.Cg)([(0,p.MZ)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],me.prototype,"graphType",void 0),(0,n.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],me.prototype,"graphTypeName",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"hasM",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"hasZ",null),(0,n.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],me.prototype,"id",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],me.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:[K.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:function(e,t,i){const n=[["ESRI__AGGREGATION_COUNT",R.M1],["ESRI__ORIGIN_ID",R.Cz],["ESRI__DESTINATION_ID",R.KQ],["ESRI__LAYOUT_GEOMETRY",R.T1]];try{for(const t of e)for(const[e,i]of n)t.labelExpression=t.labelExpression?.replaceAll(e,i),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,i))}catch(e){a.A.getLogger(this).warn("Error updating labelingInfo",e)}return(0,V.w)(e,t,i)},write:ce()}})],me.prototype,"labelingInfo",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer?.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],me.prototype,"layerType",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.fV)))],me.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.hG)))],me.prototype,"maxScale",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.hn)))],me.prototype,"minScale",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"objectIdField",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"objectType",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.ke)))],me.prototype,"opacity",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(Z.ne)))],me.prototype,"orderBy",void 0),(0,n.Cg)([(0,p.MZ)({clonable:!1})],me.prototype,"parent",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"parentCompositeLayer",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.M6)))],me.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:r.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],me.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:ye}}})],me.prototype,"refreshInterval",void 0),(0,n.Cg)([(0,p.MZ)({types:te.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:ce()}})],me.prototype,"renderer",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"source",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"spatialReference",null),(0,n.Cg)([(0,p.MZ)({type:H.A})],me.prototype,"templates",null),(0,n.Cg)([(0,p.MZ)({type:X.A,json:{name:"layerDefinition.timeInfo",write:{overridePolicy:ye},origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:ye}},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:ye}}}}})],me.prototype,"timeInfo",null),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],me.prototype,"title",null),(0,n.Cg)([(0,pe.K)("title")],me.prototype,"writeTitle",null),(0,n.Cg)([(0,p.MZ)({json:{read:!1}})],me.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(q.B)))],me.prototype,"useViewTime",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"userHasEditingPrivileges",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"userHasFullEditingPrivileges",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"userHasUpdateItemPrivileges",null),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:ce()}})],me.prototype,"visible",void 0),me=(0,n.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],me)},64714(e,t,i){i.d(t,{F0:()=>a,Vx:()=>d,e2:()=>c,f:()=>h});var n=i(44208),r=i(4718),s=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function d(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let i=`this${u(t)} = null;`;for(const t in e)i+=`this${u(t)} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch(i){return()=>({[t]:null,...e})}}function u(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}function h(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},67996(e,t,i){i.d(t,{cZ:()=>S,XW:()=>R,fe:()=>k});var n=i(11254),r=i(49186),s=i(91869),o=(i(90708),i(92722)),a=i(16930);class l{constructor(){this.version="",this.queryResult=new p}}class p{constructor(){this.featureResult=new d}}class d{constructor(){this.objectIdFieldName="",this.uniqueIdField=new u,this.globalIdFieldName="",this.geohashFieldName="",this.geometryProperties=new c,this.geometryType=null,this.spatialReference=new a.A,this.exceededTransferLimit=!1,this.hasZ=!1,this.hasM=!1,this.transform=new h,this.fields=[],this.fieldNameToAttributeIndexMap={},this.values=[],this.features=[],this.geometryFields=[]}}class u{constructor(){this.name="",this.isSystemMaintained=!1}}class c{constructor(){this.shapeAreaFieldName="",this.shapeLengthFieldName="",this.units=""}}class h{constructor(){this.quantizeOriginPosition="upperLeft",this.scale=new y,this.translate=new m}}class y{constructor(){this.xScale=0,this.yScale=0,this.mScale=0,this.zScale=0}}class m{constructor(){this.xTranslate=0,this.yTranslate=0,this.mTranslate=0,this.zTranslate=0}}class f{constructor(){this.name="",this.fieldType="esriFieldTypeString",this.alias="",this.sqlType="sqlTypeVarchar",this.domain="",this.defaultValue=""}}class g{constructor(){this.attributes=[],this.compressedGeometry=new b,this.centroid=new b,this.aggregateGeometries=[]}}class b{constructor(){this.geometryType=null,this.lengths=[],this.coords=[]}}const w=["ELEMENTUID","TYPENAME"];var _=i(45724),M=i(35448);const I={upperLeft:0,lowerLeft:1},T={sqlTypeBigInt:0,sqlTypeBinary:1,sqlTypeBit:2,sqlTypeChar:3,sqlTypeDate:4,sqlTypeDecimal:5,sqlTypeDouble:6,sqlTypeFloat:7,sqlTypeGeometry:8,sqlTypeGUID:9,sqlTypeInteger:10,sqlTypeLongNVarchar:11,sqlTypeLongVarbinary:12,sqlTypeLongVarchar:13,sqlTypeNChar:14,sqlTypeNVarChar:15,sqlTypeOther:16,sqlTypeReal:17,sqlTypeSmallInt:18,sqlTypeSqlXml:19,sqlTypeTime:20,sqlTypeTimestamp:21,sqlTypeTimestamp2:22,sqlTypeTinyInt:23,sqlTypeVarbinary:24,sqlTypeVarchar:25};var C=i(93637);function v(e){const t=new b;t.geometryType=(0,C.i7)(M.bV,e.geometry_type.value);const i=[],n=[];for(let t=0;t<e.lengths.length;t++)i.push(e.lengths[t]);for(let t=0;t<e.coords.length;t++)n.push(e.coords[t]);return t.lengths=i,t.coords=n,t}function E(e){const t=new f;return t.name=e.name,t.alias=e.alias,t.fieldType=(0,C.i7)(M.r5,e.field_type.value),t.sqlType=(0,C.i7)(T,e.sql_type.value),t.domain=e.domain,t.defaultValue=e.default_value,t}function A(e){const t=E(e);return t.geometryType=(0,C.i7)(M.bV,e.geometry_type.value),t}function x(e){const t=new h;t.quantizeOriginPosition=(0,C.i7)(I,e.quantizeOriginPosition.value);const i=t.scale,n=e.scale;i.xScale=n.xScale,i.yScale=n.yScale,i.mScale=n.mScale,i.zScale=n.zScale;const r=t.translate,s=e.translate;return r.xTranslate=s.xTranslate,r.yTranslate=s.yTranslate,r.mTranslate=s.mTranslate,r.zTranslate=s.zTranslate,t}async function S(e,t,i){t??=!1;const o={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e,t){const i=await(0,n.A)(e,{responseType:"array-buffer",signal:t?.signal}),s=await i.data;return async function(e){const t=new((await(0,_.I)()).MapOfObjectIdentifierSetsDecoder),i=t.decode(new Uint8Array(e)),n=new Map;if(0!==i.error_code)throw new r.A("knowledge-graph:layer-support-utils",i.error_message);const s=t.get_map_of_identifier_sets(),o=s.keys,a=o.size();for(let e=0;e<a;e++){const t=o.get(e),i=s.query_identifier_set(t),a=[];if(1===i.id_array_type.value){const e=i.get_globalid_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_globalid_at(i))}else if(3===i.id_array_type.value){const e=i.get_identifier_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_identifier_at(i).toString())}else if(2===i.id_array_type.value){const e=i.get_string_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_string_at(i))}else{if(0!==i.id_array_type.value)throw new r.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{const e=i.get_oid_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_objectid_at(i).toString())}}n.set(t,a)}return t.delete(),n}(new Uint8Array(s))}(e,i).then(e=>{!function(e,t){for(const[i,n]of e){const e=(0,s.tE)(t.namedTypeDefinitions,i,()=>({useAllData:!1,members:new Map}));for(const t of n)e.members.has(t)||e.members.set(t,{id:t})}}(e,o)}),o}async function k(e){const t=await(0,_.I)(),i=new t.MapOfObjectIdentifierSets;!function(e,t,i){for(const[n,r]of i.namedTypeDefinitions){if(!r.members||r.useAllData)continue;const i=r.members.keys();let s=!1,o=!0;const a=new t.ObjectIdArray,l=new t.StringArray,p=new t.GlobalIdArray,d=new t.IdentifierArray,u=new t.ObjectIdentifierSet;for(const e of i)o&&(s=!isNaN(Number(e)),o=!1),s?a.add_objectid(Number(e)):(l.add_string(e),p.add_globalid(e)),d.add_identifier(e);u.set_oid_array(a),u.set_string_array(l),u.set_globalid_array(p),u.set_identifier_array(d),a.delete(),l.delete(),p.delete(),d.delete(),e.put_identifier_set(n,u),u.delete()}}(i,t,e);const n=new t.MapOfObjectIdentifierSetsEncoder;try{n.set_map_of_identifier_sets(i),n.encode();const e=n.get_encoding_result();if(0!==e.error.error_code)throw new r.A("knowledge-graph:layer-support-utils",e.error.error_message);const t=structuredClone(e.get_byte_buffer());return n.delete(),t}finally{i.delete()}}async function L(e,t){const i=await(0,n.A)(e,{responseType:"array-buffer",signal:t?.signal});return async function(e){const t=new((await(0,_.I)()).FeatureCollectionDecoder),i=t.decode(new Uint8Array(e));if(0!==i.error_code)throw new r.A("knowledge-graph:layer-support-utils",i.error_message);const n=function(e){const t=new l;t.version=e.version;const i=e.get_query_result();if(0!==i.results_type.value)throw new Error("Got a non-feature collection type");const n=i.get_feature_result(),r=t.queryResult.featureResult;r.objectIdFieldName=n.objectid_field_name,r.exceededTransferLimit=n.exceeded_transfer_limit,r.hasM=n.has_m,r.hasZ=n.has_z,r.geometryType=(0,C.i7)(M.bV,n.geometry_type.value),r.globalIdFieldName=n.globalid_field_name,r.geohashFieldName=n.geohash_field_name;const s=r.uniqueIdField,o=n.unique_id_field;s.name=o.name,s.isSystemMaintained=o.isSystemMaintained;const a=r.geometryProperties,p=n.geometry_properties;a.shapeAreaFieldName=p.shapeAreaFieldName,a.shapeLengthFieldName=p.shapeLengthFieldName,a.units=p.units;const d=r.spatialReference,u=n.spatial_reference;d.wkid=u.wkid,d.latestWkid=u.latestWkid,d.vcsWkid=u.vcsWkid,d.latestVcsWkid=u.latestVcsWkid,d.wkt=u.wkt,r.transform=x(n.transform);const c=r.fields,h=r.fieldNameToAttributeIndexMap,y=n.fields,m=y.size();for(let e=0;e<m;e++){const t=y.get(e),i=E(t);c.push(i),h[i.name]=e,t.delete()}y.delete();const f=r.values,b=n.values_count();for(let e=0;e<b;e++)f.push(n.get_value_at(e));const _=r.features,I=n.features,T=I.size();if(T>0)for(const e of w)if(void 0===h[e])throw new Error(`Feature collection missing required attribute: ${e}`);for(let e=0;e<T;e++){const t=new g,i=I.get(e),n=t.attributes,r=i.attributes_count();for(let e=0;e<r;e++)n.push(i.get_attribute_at(e));const s=i.get_compressed_geometry();s&&(t.compressedGeometry=v(s),t.centroid=v(i.get_centroid()));const o=t.aggregateGeometries,a=i.aggregate_geometries,l=a.size();for(let e=0;e<l;e++){const t=a.get(e),i=v(t);o.push(i),t.delete()}a.delete(),_.push(t),i.delete()}I.delete();const S=r.geometryFields,k=n.geometry_fields,L=k.size();for(let e=0;e<L;e++){const t=k.get(e),i=A(t);S.push(i),t.delete()}return k.delete(),t}(t.get_feature_collection());return t.delete(),n}(await i.data)}function N(e,t){if(!e?.queryResult?.featureResult)return t;const{hasZ:i,hasM:n}=e.queryResult.featureResult,r=e.queryResult.featureResult.fieldNameToAttributeIndexMap;for(const a of e.queryResult.featureResult.features){const e=a.attributes[r.TYPENAME],l=(0,s.tE)(t.namedTypeDefinitions,e,()=>({useAllData:!1,members:new Map})),p=a.attributes[r.ELEMENTUID];if(a.compressedGeometry?.coords?.length>0){let e=a.compressedGeometry.lengths;"esriGeometryPoint"===a.compressedGeometry.geometryType&&(e=[]),l.members.set(p,{id:p,linkChartLocation:new o.A(e,a.compressedGeometry.coords,i,n)})}else l.members.set(p,{id:p})}return t}const R={fetchAndConvertSerializedLinkChart:(e,t)=>async function(e,t){const i=[],n={generateAllSublayers:!1,namedTypeDefinitions:new Map};return e.entitiesUrl&&i.push(L(e.entitiesUrl,t).then(e=>{N(e,n)})),e.relationshipsUrl&&i.push(L(e.relationshipsUrl,t).then(e=>{N(e,n)})),await Promise.all(i),n}(e,t)}},69860(e,t,i){i.d(t,{A:()=>a});var n=i(65864),r=i(90708),s=i(43334),o=i(15375);class a{constructor(){this._featureLookup=new Map}static getInstance(){return a.instance||(a.instance=new a),a.instance}static resetInstance(){a.instance&&(a.instance=null)}deleteFromStore(e){e.forEach(e=>{this._featureLookup.delete(e)})}readFromStoreByList(e){const t=[];return e.forEach(e=>{const i=this.readFromStoreById(e);i&&t.push(i)}),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,i){const a=[];return e.forEach(e=>{if(!e?.id)return;e.properties||(e.properties=[]);let l=null;i&&e.properties[i]&&(l=(0,r.Ux)(e.properties[i])),"originId"in e&&"destinationId"in e&&(e.properties[o.Cz]=e.originId,e.properties[o.KQ]=e.destinationId),e.properties[t]=e.id;let p=e.properties;if(e.id){const t=this._featureLookup.get(e.id);if(t?.attributes){p={...t.attributes,...p};const e=i&&p[i];null!=e&&(p[i]=(0,n.rS)(e)),l=l??t.geometry}}const d=new s.Om(l?.clone(),p,null,e.id);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,d),a.push(d)}),a}}},75503(e,t,i){i.d(t,{EC:()=>v,wq:()=>a});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),M.prune(),I.prune(),T.prune(),C.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data;const n=this._toBBox;if(w(e,i))for(M.clear();i;){for(let r=0,s=i.children.length;r<s;r++){const s=i.children[r],o=i.leaf?n(s):s;w(e,o)&&(i.leaf?t(s):b(e,o)?l(s,t):M.push(s))}i=M.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!w(e,t))return!1;for(M.clear();t;){for(let n=0,r=t.children.length;n<r;n++){const r=t.children[n],s=t.leaf?i(r):r;if(w(e,s)){if(t.leaf||b(e,s))return!0;M.push(r)}}t=M.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,i=this._data,s=null,o=0,a=!1;const l=this._toBBox(e);for(T.clear(),C.clear();i||T.length>0;){if(i||(i=T.pop(),s=T.data[T.length-1],o=C.pop()??0,a=!0),i.leaf&&(t=(0,n.qh)(i.children,(0,r.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),T.push(i),this._condense(T),this;a||i.leaf||!b(i,l)?s?(o++,i=s.children[o],a=!1):i=null:(T.push(i),C.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,n){const r=i-t+1;let s=this._maxEntries;if(r<=s){const n=new A(e.slice(t,i+1));return p(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));const o=new x([]);o.height=n;const a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));_(e,t,i,l,this._compareMinX);for(let r=t;r<=i;r+=l){const t=Math.min(r+l-1,i);_(e,r,t,a,this._compareMinY);for(let i=r;i<=t;i+=a){const r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,n-1))}}return p(o,this._toBBox),o}_insert(e,t,i){const n=this._toBBox,r=i?e:n(e);T.clear();const s=function(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){const o=t.children[s],a=y(o),l=f(e,o)-a;l<r?(r=l,n=a<n?a:n,i=o):l===r&&a<n&&(n=a,i=o)}t=i||t.children[0]}return t}(r,this._data,t,T);for(s.children.push(e),u(s,r);t>=0&&T.data[t].children.length>this._maxEntries;)this._split(T,t),t--;!function(e,t,i){for(let n=i;n>=0;n--)u(t.data[n],e)}(r,T,t)}_split(e,t){const i=e.data[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);const s=this._chooseSplitIndex(i,r,n);if(!s)return;const o=i.children.splice(s,i.children.length-s),a=i.leaf?new A(o):new x(o);a.height=i.height,p(i,this._toBBox),p(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new x([e,t]),this._data.height=e.height+1,p(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,r,s;n=r=1/0;for(let o=t;o<=i-t;o++){const t=d(e,0,o,this._toBBox),a=d(e,o,i,this._toBBox),l=g(t,a),p=y(t)+y(a);l<n?(n=l,s=o,r=p<r?p:r):l===n&&p<r&&(r=p,s=o)}return s}_chooseSplitAxis(e,t,i){const n=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:h;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)}_allDistMargin(e,t,i,n){e.children.sort(n);const r=this._toBBox,s=d(e,0,t,r),o=d(e,i-t,i,r);let a=m(s)+m(o);for(let n=t;n<i-t;n++){const t=e.children[n];u(s,e.leaf?r(t):t),a+=m(s)}for(let n=i-t-1;n>=t;n--){const t=e.children[n];u(o,e.leaf?r(t):t),a+=m(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const r=e.data[t-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else p(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(I.clear();i;){if(!0===i.leaf)for(const e of i.children)t((0,r.z)(e));else I.pushArray(i.children);i=I.pop()??null}}function p(e,t){d(e,0,e.children.length,t,e)}function d(e,t,i,n,r){r||(r=new A([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<i;o++)s=e.children[o],u(r,e.leaf?n(s):s);return r}function u(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function b(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e,t,i,n,r){const s=[t,i];for(;s.length;){const t=s.pop(),i=s.pop();if(t-i<=n)continue;const a=i+Math.ceil((t-i)/n/2)*n;(0,o.q)(e,a,i,t,r),s.push(i,a,a,t)}}const M=new s.A,I=new s.A,T=new s.A,C=new s.A({deallocator:void 0});class v{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class E extends v{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class A extends E{constructor(e){super(),this.children=e,this.leaf=!0}}class x extends E{constructor(e){super(),this.children=e,this.leaf=!1}}},77901(e,t,i){i.d(t,{A:()=>o});var n=i(31635),r=i(25482),s=i(91429);let o=class extends r.o{constructor(e){super(e),this.properties={}}};(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],o.prototype,"properties",void 0),o=(0,n.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.GraphObject")],o)},83221(e,t,i){i.d(t,{A:()=>y});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),a=i(70328),l=i(19419),p=i(90708),d=i(6518),u=i(51441),c=i(37730);const h=(0,a.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new d.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,n,r]=this.fullBounds;return{xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:(0,u.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(h,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let n;if(i?(e.displayId=i.displayId,n=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);n=(0,p.jQ)(null!=n?n:(0,l.vt)(),e.geometry),null!=n&&this._boundsStore.set(t,n),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:n,attributes:s}=e;for(const e in s)i.attributes[e]=s[e];return n&&(i.geometry=n,this._boundsStore.set(t,(0,p.jQ)((0,l.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 21ac84b5c7dedcfd747d.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[224],{87843(e,t,n){n.r(t),n.d(t,{Label:()=>r});var l=n(34088),a=n(46337),i=n(98268),c=n(8348),s=n(93174);const o=a.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class r extends i.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,c.c)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=o}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(s.l))}willUpdate(e){e.has("for")&&(0,s.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(s.b))}labelClickHandler(e){"Range"!==window.getSelection()?.type&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return a.qy`<div class=${(0,i.CP)("container")}><slot></slot></div>`}}(0,l.c)("calcite-label",r)},93174(e,t,n){n.d(t,{a:()=>y,b:()=>c,c:()=>u,d:()=>m,g:()=>p,l:()=>i});var l=n(79e3);const a="calciteInternalLabelClick",i="calciteInternalLabelConnected",c="calciteInternalLabelDisconnected",s="calcite-label",o=new WeakMap,r=new WeakMap,d=new WeakMap,b=new WeakMap,h=new Set;function u(e){if(!e)return;const t=(e=>{const{id:t}=e,n=t&&(0,l.q)(e,{selector:`${s}[for="${t}"]`});if(n)return n;const a=(0,l.o)(e,s);return!a||function(e,t){let n;const l="custom-element-ancestor-check",a=l=>{l.stopImmediatePropagation();const a=l.composedPath();n=a.slice(a.indexOf(t),a.indexOf(e))};return e.addEventListener(l,a,{once:!0}),t.dispatchEvent(new CustomEvent(l,{composed:!0,bubbles:!0})),e.removeEventListener(l,a),n.filter(n=>n!==t&&n!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a})(e.el);if(r.has(t)&&t===e.labelEl||!t&&h.has(e))return;const n=E.bind(e);if(t){e.labelEl=t;const l=o.get(t)||[];l.push(e),o.set(t,l.sort(f)),r.has(e.labelEl)||(r.set(e.labelEl,g),e.labelEl.addEventListener(a,g)),h.delete(e),document.removeEventListener(i,d.get(e)),b.set(e,n),document.addEventListener(c,n)}else h.has(e)||(n(),document.removeEventListener(c,b.get(e)))}function m(e){if(!e)return;if(h.delete(e),document.removeEventListener(i,d.get(e)),document.removeEventListener(c,b.get(e)),d.delete(e),b.delete(e),!e.labelEl)return;const t=o.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(a,r.get(e.labelEl)),r.delete(e.labelEl)),o.set(e.labelEl,t.filter(t=>t!==e).sort(f)),e.labelEl=null}function f(e,t){return(0,l.p)(e.el,t.el)?-1:1}function p(e){return e.label||e.labelEl?.textContent?.trim()||""}function g(e){const t=e.detail.sourceEvent.target,n=o.get(this),l=n.find(e=>e.el===t);if(n.includes(l))return;const a=n[0];a.disabled||a.onLabelClick(e)}function v(){h.has(this)&&u(this)}function E(){h.add(this);const e=d.get(this)||v.bind(this);d.set(this,e),document.addEventListener(i,e)}async function y(e){if(await e.componentOnReady(),o.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of h)if(e.el===t){u(e);break}})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8144],{8144(t,e,n){n.d(e,{vt:()=>Gs,UD:()=>Zs});var s=n(85334),r=n(49186),o=n(4718),i=n(31635),a=n(91429),u=n(94778),l=n(25482);let c=class extends l.o{constructor(){super(...arguments),this.raster=void 0}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"raster",void 0),c=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.BaseFunctionArguments")],c);const p=c;var h;let m=h=class extends p{constructor(){super(...arguments),this.raster2=void 0}get rasters(){return[this.raster,this.raster2]}clone(){return new h({raster:this.raster,raster2:this.raster2,operation:this.operation})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"operation",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"raster2",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"rasters",null),m=h=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ArithmeticFunctionArguments")],m);const f=m;var g=n(14140),d=n(87186);const y=new Set(["slope","aspect","curvature","hillshade","shadedrelief","statistics"]);let x=class extends l.o{constructor(){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.isRoot=!1,this._bindingResult=null}get supportsGPU(){return this._bindingResult.supportsGPU}get flatWebGLFunctionChain(){const t=this.getWebGLProcessorDefinition();if(!t)return null;const e=[t],{parameters:n}=t;let s=n.rasters||n.raster&&[n.raster];for(;s?.length;){e.unshift(...s);const t=[];for(let e=0;e<s.length;e++){const{parameters:n}=s[e],r=n.rasters||n.raster&&[n.raster];r?.length&&t.push(...r)}s=t}for(let t=e.length-1;t>=0;t--)e[t].isNoopProcess&&e.splice(t,1);let r=!1;for(let t=0;t<e.length;t++){const n=e[t];n.id=e.length-t-1;const{rasters:s}=n.parameters;r=r||null!=s&&s.length>1}const o=e.some(({name:t})=>y.has(t.toLowerCase())),{rawSourceRasterInfos:i}=this;return{functions:e,hasBranches:r,hasFocalFunction:o,isSourceSingleBand:1===i?.[0]?.bandCount}}bind(t,e=!1,n=-1){this.id=n+1;const s=this._getRasterValues();let r=!0;for(let n=0;n<s.length;n++){const o=s[n];if(null!=o&&this._isRasterFunctionValue(o)){const s=o.bind(t,e,this.id+n);if(!s.success)return this._bindingResult=s,s;r=r&&s.supportsGPU}}return!this.rasterInfo||e?(this.sourceRasterInfos=this._getSourceRasterInfos(t),this._bindingResult=this._bindSourceRasters(),r&&=this._bindingResult.supportsGPU,this._bindingResult.success&&(this._patchRasterInfo(),r&&this.isRoot)&&(this.processInputBandIds(),this.swizzleInputBandIds(this.rawInputBandIds)||(r=this.rawInputBandIds.length<=3)),this._bindingResult.supportsGPU=r,this._bindingResult):(this._bindingResult={success:!0,supportsGPU:!0},this._bindingResult)}process(t){const e=this._getRasterValues(),n=0===e.length?t.pixelBlocks??t.primaryPixelBlocks:e.map(e=>this._readRasterValue(e,t));return this._processPixels({...t,pixelBlocks:n})}processInputBandIds(){const t=this._getRasterValues().filter(this._isRasterFunctionValue);if(t.length>1){const e=t.map(t=>t.processInputBandIds());return this.rawInputBandIds=[...new Set(e.flat())],this.rawInputBandIds}const e=t[0];if(e)return this.rawInputBandIds=e.processInputBandIds(),this.rawInputBandIds;const{bandCount:n}=this.sourceRasterInfos[0],s=Array.from({length:n},(t,e)=>e);return this.rawInputBandIds=this._getInputBandIds(s),this.rawInputBandIds}swizzleInputBandIds(t){const e=this._getRasterValues().filter(this._isRasterFunctionValue);let n=!0;for(const s of e)n=s.swizzleInputBandIds(t)&&n;return!!n&&this._swizzleBandIds(t)}getPrimaryRasters(){const t=[],e=[];return this._getPrimaryRasters(this,t,e),{rasters:t,rasterIds:e}}getWebGLProcessorDefinition(){const t=this._getWebGLParameters(),{raster:e,rasters:n}=this.functionArguments;return n&&Array.isArray(n)&&n.length?(t.rasters=n.map(t=>this._isRasterFunctionValue(t)?t.getWebGLProcessorDefinition():"number"==typeof t?{name:"Constant",parameters:{value:t},pixelType:"f32",id:-1,isNoopProcess:!1}:{name:"Identity",parameters:{value:t},pixelType:"f32",id:-1,isNoopProcess:!1}),t.rasters.some(t=>null!=t)||(t.rasters=null)):this._isRasterFunctionValue(e)&&(t.raster=e.getWebGLProcessorDefinition()),{name:this.functionName,parameters:t,pixelType:this.outputPixelType,id:this.id,isNoopProcess:this.isNoopProcess}}getClippingGeometries(){const t=[];"Clip"===this.functionName&&t.push(this.functionArguments);const{raster:e,rasters:n}=this.functionArguments;if(n&&Array.isArray(n)&&n.length)n.forEach(e=>{if(this._isRasterFunctionValue(e)){const n=e.getClippingGeometries();t.push(...n)}});else if(this._isRasterFunctionValue(e)){const n=e.getClippingGeometries();t.push(...n)}return t}_getOutputPixelType(t){return"unknown"===this.outputPixelType?t:this.outputPixelType??t}_getWebGLParameters(){return{}}_getInputBandIds(t){return t}_swizzleBandIds(t){return!0}_isInputRasterPrimaryOrConstant(){return!this._getRasterValues().some(t=>t&&"object"==typeof t&&"rasterFunction"in t&&t.rasterFunction)}_removeStatsHistColormapVAT(t){t.statistics=null,t.histograms=null,t.colormap=null,t.attributeTable=null,t.multidimensionalInfo?.variables.forEach(t=>{t.statistics=void 0,t.histograms=void 0})}_getRasterValues(){const{rasterArgumentNames:t}=this;return"rasters"===t[0]?this.functionArguments.rasters??[]:t.flatMap(t=>this.functionArguments[t])}_getSourceRasterInfos(t){const e=this._getRasterValues(),{rasterInfos:n,rasterIds:s}=t;if(0===e.length)return n;const r=e.map(t=>t&&"object"==typeof t&&"bind"in t&&t.rasterInfo?t.rasterInfo:"string"==typeof t&&s.includes(t)?n[s.indexOf(t)]:"number"!=typeof t?n[0]:void 0),o=r.find(t=>t)??n[0];return r.forEach((t,e)=>{void 0===t&&(r[e]=o)}),r}_getPrimaryRasterId(t){return t?.rasterId}_getPrimaryRasters(t,e=[],n=[]){for(let s=0;s<t.sourceRasters.length;s++){const r=t.sourceRasters[s];if("number"!=typeof r)if("bind"in r)this._getPrimaryRasters(r,e,n);else{const t=r,s=this._getPrimaryRasterId(t);if(null==s)continue;n.includes(s)||(this.mainPrimaryRasterId===s?(e.unshift(t),n.unshift(s)):(e.push(t),n.push(s)))}}}_isRasterFunctionValue(t){return null!=t&&"object"==typeof t&&"getWebGLProcessorDefinition"in t}_readRasterValue(t,e){const{primaryPixelBlocks:n}=e;if(null==t||"$$"===t){const t=n[0];return null==t?null:t.clone()}if("string"==typeof t){const s=e.primaryRasterIds.indexOf(t);return-1===s?null:n[s]}if("number"==typeof t){const e=n[0];if(null==e)return null;const{width:s,height:r,pixelType:o}=e,i=new Float32Array(s*r);i.fill(t);const a=this.sourceRasterInfos[0].bandCount,u=new Array(a).fill(i);return new g.A({width:s,height:r,pixelType:o,pixels:u})}return t.process(e)}_patchRasterInfo(){const{rasterInfo:t}=this;if(!t?.keyProperties)return;const{bandCount:e,keyProperties:n,statistics:s,histograms:r}=t,o=n.BandProperties;o&&o.length!==e&&(t.keyProperties={...n,BandProperties:void 0}),s&&s.length!==e&&(t.statistics=s.length>e?s.slice(0,e):null),r&&r.length!==e&&(t.histograms=r.length>e?r.slice(0,e):null),n.BAND_COUNT&&Number(n.BAND_COUNT)!==e&&(t.keyProperties={...n,BAND_COUNT:"string"==typeof n.BAND_COUNT?String(e):e})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],x.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}}),(0,a.wg)(t=>t?.toLowerCase())],x.prototype,"outputPixelType",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"mainPrimaryRasterId",void 0),(0,i.Cg)([(0,a.MZ)()],x.prototype,"sourceRasters",void 0),(0,i.Cg)([(0,a.MZ)({type:[d.A],json:{write:!0}})],x.prototype,"sourceRasterInfos",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"rasterInfo",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"readingBufferSize",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)()],x.prototype,"isNoopProcess",void 0),(0,i.Cg)([(0,a.MZ)()],x.prototype,"supportsGPU",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"rawInputBandIds",void 0),(0,i.Cg)([(0,a.MZ)()],x.prototype,"rawSourceRasterInfos",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"isInputBandIdsSwizzled",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"swizzledBandSelection",void 0),(0,i.Cg)([(0,a.MZ)()],x.prototype,"isBranch",void 0),(0,i.Cg)([(0,a.MZ)()],x.prototype,"isRoot",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],x.prototype,"flatWebGLFunctionChain",null),(0,i.Cg)([(0,a.MZ)()],x.prototype,"_bindingResult",void 0),x=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.BaseRasterFunction")],x);const w=x,A={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},v={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},b={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},C={setNull:50,conditional:78},M={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,...v,...b,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,...C},P=new Map([[b.acos,{domain:[0,Math.PI],isInteger:!1}],[b.asin,{domain:[-Math.PI/2,Math.PI/2],isInteger:!1}],[b.atan,{domain:[-Math.PI/2,Math.PI/2],isInteger:!1}],[b.cos,{domain:[-1,1],isInteger:!1}],[b.sin,{domain:[-1,1],isInteger:!1}],[v.booleanAnd,{domain:[0,1],isInteger:!0}],[v.booleanNot,{domain:[0,1],isInteger:!0}],[v.booleanOr,{domain:[0,1],isInteger:!0}],[v.booleanXOr,{domain:[0,1],isInteger:!0}],[v.equalTo,{domain:[0,1],isInteger:!0}],[v.notEqual,{domain:[0,1],isInteger:!0}],[v.greaterThan,{domain:[0,1],isInteger:!0}],[v.greaterThanEqual,{domain:[0,1],isInteger:!0}],[v.lessThan,{domain:[0,1],isInteger:!0}],[v.lessThanEqual,{domain:[0,1],isInteger:!0}],[v.isNull,{domain:[0,1],isInteger:!0}]]);function T(t){return P.get(t)}const R=[0,2,2,2,1,2,1,1,1,1,1,2,2,1,2,2,2,2,1,2,2,1,1,2,2,1,1,1,2,2,1,1,1,2,2,1,1,1,999,999,999,999,999,999,2,1,2,999,1,1,2,1,1,1,999,999,1,1,999,1,1,2,999,999,2,2,999,999,999,999,999,999,999,999,999,999,3,999,3];function N(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]+r[t]);return i}function k(t,e,n){const[s]=t,r=s.length,o=g.A.createEmptyBand("f32",r);return o.set(s),o}function I(t,e,n){const[s]=t,r=s.length,o=g.A.createEmptyBand(n,r);for(let t=0;t<r;t++)e&&!e[t]||(o[t]=s[t]*s[t]);return o}function S(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]-r[t]);return i}function _(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]*r[t]);return i}function F(t,e,n){const[s]=t,r=s.length,o=g.A.createEmptyBand(n,r);for(let t=0;t<r;t++)e&&!e[t]||(o[t]=Math.sign(s[t])*Math.floor(Math.abs(s[t])));return o}function B(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]/r[t]);return i}function j(t,e,n){return B(t,e,"f32")}function Z(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=Math.floor(s[t]/r[t]));return i}function G(t,e,n,s){const r=t[0],o=r.length,i=g.A.createEmptyBand(n,o);if(s===b.atanh){for(let t=0;t<o;t++)if(e[t]){const n=r[t];Math.abs(n)>=1?e[t]=0:i[t]=Math.atanh(n)}return i}const a=s===b.asin?Math.asin:Math.acos;for(let t=0;t<o;t++)if(e[t]){const n=r[t];Math.abs(n)>1?e[t]=0:i[t]=a(n)}return i}function z(t,e,n,s){const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s(r[t]));return i}function O(t,e,n,s){const[r,o]=t,i=r.length,a=g.A.createEmptyBand(n,i);for(let t=0;t<i;t++)e&&!e[t]||(a[t]=s(r[t],o[t]));return a}function E(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]&r[t]);return i}function D(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]<<r[t]);return i}function V(t,e,n){const[s]=t,r=s.length,o=g.A.createEmptyBand(n,r);for(let t=0;t<r;t++)e&&!e[t]||(o[t]=~s[t]);return o}function U(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]|r[t]);return i}function L(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]>>r[t]);return i}function W(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]^r[t]);return i}function $(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]&&r[t]?1:0);return i}function K(t,e,n){const[s]=t,r=s.length,o=g.A.createEmptyBand(n,r);for(let t=0;t<r;t++)e&&!e[t]||(o[t]=s[t]?0:1);return o}function H(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]||r[t]?1:0);return i}function q(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=(s[t]?1:0)^(r[t]?1:0));return i}function J(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]===r[t]?1:0);return i}function X(t,e,n,s){const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o),a=s===Math.E;for(let t=0;t<o;t++)e&&!e[t]||(i[t]=a?Math.exp(r[t]):s**r[t]);return i}function Y(t,e,n){return X(t,e,n,10)}function Q(t,e,n){return X(t,e,n,2)}function tt(t,e,n){return X(t,e,n,Math.E)}function et(t,e,n,s){const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(r[t]<=0?e[t]=0:i[t]=s(r[t]));return i}function nt(t,e,n){return et(t,e,n,Math.log10)}function st(t,e,n){return et(t,e,n,Math.log2)}function rt(t,e,n){return et(t,e,n,Math.log)}function ot(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]>r[t]?1:0);return i}function it(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]>=r[t]?1:0);return i}function at(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]<r[t]?1:0);return i}function ut(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]<=r[t]?1:0);return i}function lt(t,e,n){const[s]=t,r=s.length,o=g.A.createEmptyBand(n,r);if(!e)return o;for(let t=0;t<r;t++)o[t]=e[t]?0:1;return o}function ct(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]%r[t]);return i}function pt(t,e,n){const[s]=t,r=s.length,o=g.A.createEmptyBand(n,r);for(let t=0;t<r;t++)e&&!e[t]||(o[t]=-s[t]);return o}function ht(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]===r[t]?0:1);return i}function mt(t,e,n){const[s,r]=t,o=s.length,i=g.A.createEmptyBand(n,o),a=new Uint8Array(o);for(let t=0;t<o;t++)null!=e&&!e[t]||0!==s[t]||(i[t]=r[t],a[t]=255);return{band:i,mask:a}}function ft(t,e,n){const[s,r,o]=t,i=s.length,a=g.A.createEmptyBand(n,i);for(let t=0;t<i;t++)e&&!e[t]||(a[t]=s[t]?r[t]:o[t]);return a}function gt(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){let e=r[n];for(let r=1;r<s;r++){const s=t[r][n];e<s&&(e=s)}i[n]=e}return i}function dt(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){let e=r[n];for(let r=1;r<s;r++){const s=t[r][n];e>s&&(e=s)}i[n]=e}return i}function yt(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){let e=r[n],o=e;for(let r=1;r<s;r++){const s=t[r][n];o<s?o=s:e>s&&(e=s)}i[n]=o-e}return i}function xt(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){let e=0;for(let r=0;r<s;r++)e+=t[r][n];i[n]=e/s}return i}function wt(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n])for(let e=0;e<s;e++){const s=t[e];i[n]+=s[n]}return i}function At(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o);for(let n=0;n<o;n++)if(!e||e[n]){const e=new Float32Array(s);let r=0;for(let o=0;o<s;o++){const s=t[o];r+=s[n],e[o]=s[n]}r/=s;let o=0;for(let t=0;t<s;t++)o+=(e[t]-r)**2;i[n]=Math.sqrt(o/s)}return i}function vt(t,e,n){const s=t.length;if(s<2)return t[0];const r=Math.floor(s/2),[o]=t,i=o.length,a=g.A.createEmptyBand(n,i),u=new Float32Array(s),l=s%2==1;for(let n=0;n<i;n++)if(!e||e[n]){for(let e=0;e<s;e++)u[e]=t[e][n];u.sort(),a[n]=l?u[r]:(u[r]+u[r-1])/2}return a}function bt(t,e,n){const[s,r]=t;if(null==r)return s;const o=s.length,i=g.A.createEmptyBand(n,o);for(let t=0;t<o;t++)e&&!e[t]||(i[t]=s[t]<r[t]?s[t]:r[t]);return i}function Ct(t,e,n){const s=t.length;if(s<=2)return bt(t,e,n);const r=t[0].length,o=g.A.createEmptyBand(n,r),i=new Map;for(let n=0;n<r;n++)if(!e||e[n]){i.clear();for(let e=0;e<s;e++){const s=t[e][n];i.set(s,i.has(s)?i.get(s)+1:1)}let e=0,r=0;const a=[];for(const t of i.keys())e=i.get(t),e>r?(r=e,a.length=0,a.push(t)):e===r&&a.push(t);a.length>1&&a.sort((t,e)=>t-e),o[n]=a[0]}return o}function Mt(t,e,n){const s=t.length;if(s<=2)return bt(t,e,n);const r=t[0].length,o=g.A.createEmptyBand(n,r),i=new Map;for(let n=0;n<r;n++)if(!e||e[n]){i.clear();for(let e=0;e<s;e++){const s=t[e][n];i.set(s,i.has(s)?i.get(s)+1:1)}let e=0,r=t.length;const a=[];for(const t of i.keys())e=i.get(t),e<r?(r=e,a.length=0,a.push(t)):e===r&&a.push(t);a.length>1&&a.sort((t,e)=>t-e),o[n]=a[0]}return o}function Pt(t,e,n){const s=t.length;if(s<2)return t[0];const[r]=t,o=r.length,i=g.A.createEmptyBand(n,o),a=new Set;for(let n=0;n<o;n++)if(!e||e[n]){let e;a.clear();for(let r=0;r<s;r++)e=t[r][n],a.add(e);i[n]=a.size}return i}const Tt=new Map,Rt=new Map,Nt=new Map,kt=new Map;function It(){Tt.size||(Tt.set(4,Math.sqrt),Tt.set(6,Math.acos),Tt.set(7,Math.asin),Tt.set(8,Math.atan),Tt.set(9,Math.atanh),Tt.set(10,Math.abs),Tt.set(21,Math.cos),Tt.set(22,Math.cosh),Tt.set(48,Math.floor),Tt.set(49,Math.ceil),Tt.set(51,Math.sin),Tt.set(52,Math.sinh),Tt.set(56,Math.tan),Tt.set(57,Math.tanh),Tt.set(59,Math.acosh),Tt.set(60,Math.asinh),Tt.set(65,Math.floor),Rt.set(5,Math.pow),Rt.set(61,Math.atan2),Nt.set(1,N),Nt.set(2,S),Nt.set(3,_),Nt.set(11,E),Nt.set(12,D),Nt.set(13,V),Nt.set(14,U),Nt.set(15,L),Nt.set(16,W),Nt.set(17,$),Nt.set(18,K),Nt.set(19,H),Nt.set(20,q),Nt.set(23,B),Nt.set(24,J),Nt.set(25,tt),Nt.set(26,Y),Nt.set(27,Q),Nt.set(28,ot),Nt.set(29,it),Nt.set(30,F),Nt.set(31,lt),Nt.set(32,k),Nt.set(33,at),Nt.set(34,ut),Nt.set(35,rt),Nt.set(36,nt),Nt.set(37,st),Nt.set(44,ct),Nt.set(45,pt),Nt.set(46,ht),Nt.set(53,I),Nt.set(64,j),Nt.set(65,Z),Nt.set(76,ft),Nt.set(78,ft),kt.set(38,Ct),kt.set(39,gt),kt.set(40,xt),kt.set(41,vt),kt.set(42,dt),kt.set(43,Mt),kt.set(47,yt),kt.set(54,At),kt.set(55,wt),kt.set(58,Pt),kt.set(66,Ct),kt.set(67,gt),kt.set(68,xt),kt.set(69,vt),kt.set(70,dt),kt.set(71,Mt),kt.set(72,yt),kt.set(73,At),kt.set(74,wt),kt.set(75,Pt))}function St(t,e,n={}){It();let s=function(t,e=!1){const n=t.map(t=>t.mask),s=n.filter(t=>null!=t),r=t[0].pixels[0].length;if(0===s.length||e&&s.length!==n.length)return new Uint8Array(r).fill(255);const o=s[0],i=new Uint8Array(o);if(1===s.length)return i;if(!e){for(let t=1;t<s.length;t++){const e=s[t];for(let t=0;t<i.length;t++)i[t]&&(i[t]=e[t]?255:0)}return i}for(let t=1;t<s.length;t++){const e=s[t];for(let t=0;t<i.length;t++)0===i[t]&&(i[t]=e[t]?255:0)}return i}(t,e>=66&&e<=75);const{outputPixelType:r="f32"}=n,o=!kt.has(e)||n.processAsMultiband,i=o?t[0].pixels.length:1,a=[];for(let n=0;n<i;n++){const i=kt.has(e)&&!o?t.flatMap(t=>t.pixels):t.map(t=>t.pixels[n]);let l,c=!0;if(e===C.setNull){const t=mt(i,s,r);l=t.band,s=t.mask,c=!1}else Nt.has(e)?l=Nt.get(e)(i,s,"f64"):Tt.has(e)?l=e===b.asin||e===b.acos||e===b.atanh?G(i,s,"f64",e):z(i,s,"f64",Tt.get(e)):Rt.has(e)?l=O(i,s,"f64",Rt.get(e)):kt.has(e)?l=kt.get(e)(i,s,"f64"):(l=i[0],c=!1);if(c&&e!==v.isNull&&!P.has(e)){const t=g.A.createEmptyBand(r,l.length);s||(s=new Uint8Array(l.length).fill(255)),(0,u.$p)(l,s),(0,u.yM)(l,s,r,t),l=t}a.push(l)}const l=t[0];return new g.A({width:l.width,height:l.height,pixelType:r,mask:e===v.isNull?null:s,pixels:a})}let _t=class extends w{constructor(){super(...arguments),this.functionName="Arithmetic",this.functionArguments=null,this.rasterArgumentNames=["raster","raster2"]}_bindSourceRasters(){const{operation:t}=this.functionArguments;if(t<1||t>6)return{success:!1,supportsGPU:!1,error:"unsupported operation"};const e=this.sourceRasterInfos[0].clone();return this.outputPixelType=this._getOutputPixelType(e.pixelType),e.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(e),this.rasterInfo=e,{success:!0,supportsGPU:e.bandCount<=3}}_processPixels(t){const{pixelBlocks:e}=t;return null==e?.[0]||null==e?.[1]?null:function(t,e,n){return St(t,e=[null,1,2,3,23,5,44][e]??1,{outputPixelType:n})}(e,this.functionArguments.operation,this.outputPixelType)}_getWebGLParameters(){const{operation:t}=this.functionArguments,e=["","plus","minus","times","divide","power","mod"][t],n=this.outputPixelType??"f32";let[s,r]=(0,u.hP)(n);const o=(0,u.zw)(n);return o&&(s-=1e-4,r+=1e-4),{imageCount:2,operationName:e,domainRange:[s,r],isOutputRounded:o}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],_t.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:f,json:{write:!0,name:"rasterFunctionArguments"}})],_t.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],_t.prototype,"rasterArgumentNames",void 0),_t=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ArithmeticFunction")],_t);const Ft=_t;var Bt;let jt=Bt=class extends p{clone(){return new Bt({raster:this.raster})}};jt=Bt=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.AspectFunctionArguments")],jt);const Zt=jt;var Gt=n(51181);let zt=class extends w{constructor(){super(...arguments),this.functionName="Aspect",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){const t=this.sourceRasterInfos[0];this.isGCS=t.spatialReference?.isGeographic??!1,this.outputPixelType=this._getOutputPixelType("f32");const e=t.clone();return e.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(e),e.statistics=[{min:-1,max:360,avg:180,stddev:30}],e.bandCount=1,this.rasterInfo=e,{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{extent:n,primaryPixelSizes:s}=t,r=s?.[0],o=r??(n?{x:n.width/e.width,y:n.height/e.height}:{x:1,y:1});return(0,Gt.di)(e,{resolution:o})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],zt.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:Zt,json:{write:!0,name:"rasterFunctionArguments"}})],zt.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],zt.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],zt.prototype,"isGCS",void 0),zt=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.AspectFunction")],zt);const Ot=zt;var Et=n(66552);const Dt=new Set(["+","-","*","/","(",")"]);function Vt(t,e){return t.toLowerCase().startsWith("b")?e[parseInt(t.slice(1),10)-1]:parseFloat(t)}function Ut(t,e,n,s){if("number"==typeof n&&"number"==typeof s)return n+s;let r,o,i;"number"==typeof n?(i=s,r=i.length,o=new Float32Array(r),o.fill(n)):(r=n.length,o=n,s.constructor===Number?(i=new Float32Array(r),i.fill(s)):i=s);const a=new Float32Array(r);switch(e){case"+":for(let e=0;e<r;e++)(null==t||t[e])&&(a[e]=o[e]+i[e]);break;case"-":for(let e=0;e<r;e++)(null==t||t[e])&&(a[e]=o[e]-i[e]);break;case"*":for(let e=0;e<r;e++)(null==t||t[e])&&(a[e]=o[e]*i[e]);break;case"/":for(let e=0;e<r;e++)(null==t||t[e])&&i[e]&&(a[e]=o[e]/i[e]);break;case"(":case")":throw new Error("encountered error with custom band index equation")}return a}function Lt(t,e){t.splice(e,1);let n=0,s=0;do{n=0,s=0;for(let e=0;e<t.length;e++)if("("===t[e])n=e;else if(")"===t[e]){s=e;break}s===n+1&&t.splice(n,2)}while(s===n+1);return t}function Wt(t){if(1===t.length)return{opIndex:0,numIndex:0};let e=0,n=0;for(let s=0;s<t.length;s++)if("("===t[s])e=s;else if(")"===t[s]){n=s;break}const s=0===n?t:t.slice(e+1,n);let r=-1;for(let t=0;t<s.length;t++)if("*"===s[t]||"/"===s[t]){r=t;break}if(r>-1)n>0&&(r+=e+1);else{for(let t=0;t<s.length;t++)if("+"===s[t]||"-"===s[t]){r=t;break}n>0&&(r+=e+1)}let o=0;for(let e=0;e<r;e++)"("===t[e]&&o++;return{opIndex:r,numIndex:r-o}}var $t=n(47520);const Kt=new Et.J({0:"custom",1:"ndvi",2:"savi",3:"tsavi",4:"msavi",5:"gemi",6:"pvi",7:"gvitm",8:"sultan",9:"vari",10:"gndvi",11:"sr",12:"ndvi-re",13:"sr-re",14:"mtvi2",15:"rtvi-core",16:"ci-re",17:"ci-g",18:"ndwi",19:"evi",20:"iron-oxide",21:"ferrous-minerals",22:"clay-minerals",23:"wndwi",24:"bai",25:"nbr",26:"ndbi",27:"ndmi",28:"ndsi",29:"mndwi"},{useNumericKeys:!0});function Ht(t,e){if(!(0,$t.AB)(t))return t;const{equation:n,method:s}=e,r=e.bandIndexes.map(t=>t-1),{pixels:o,mask:i}=t;let a;switch(s){case"gndvi":case"nbr":case"ndbi":case"ndvi":case"ndvi-re":case"ndsi":case"ndmi":case"mndwi":a=Jt(i,o[r[0]],o[r[1]]);break;case"ndwi":a=Jt(i,o[r[1]],o[r[0]]);break;case"sr":case"sr-re":case"iron-oxide":case"ferrous-minerals":case"clay-minerals":a=function(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=e[o],s=n[o];s&&(r[o]=t/s)}return[r]}(i,o[r[0]],o[r[1]]);break;case"ci-g":case"ci-re":a=function(t,e,n){const s=e.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=e[o],s=n[o];s&&(r[o]=t/s-1)}return[r]}(i,o[r[0]],o[r[1]]);break;case"savi":a=function(t,e,n,s){const r=n.length,o=new Float32Array(r);for(let i=0;i<r;i++)if(null==t||t[i]){const t=n[i],r=e[i],a=r+t+s;a&&(o[i]=(r-t)/a*(1+s))}return[o]}(i,o[r[0]],o[r[1]],r[2]+1);break;case"tsavi":a=function(t,e,n,s,r,o){const i=n.length,a=new Float32Array(i),u=-r*s+o*(1+s*s);for(let o=0;o<i;o++)if(null==t||t[o]){const t=n[o],i=e[o],l=r*i+t+u;l&&(a[o]=s*(i-s*t-r)/l)}return[a]}(i,o[r[0]],o[r[1]],r[2]+1,r[3]+1,r[4]+1);break;case"msavi":a=function(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=n[o],s=e[o],i=2*s+1;r[o]=.5*(i-Math.sqrt(i*i-8*(s-t)))}return[r]}(i,o[r[0]],o[r[1]]);break;case"gemi":a=function(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=n[o],s=e[o];if(1!==t&&s+t+.5!==0){const e=(2*(s*s-t*t)+1.5*s+.5*t)/(s+t+.5);r[o]=e*(1-.25*e)-(t-.125)/(1-t)}}return[r]}(i,o[r[0]],o[r[1]]);break;case"pvi":a=function(t,e,n,s,r){const o=n.length,i=new Float32Array(o),a=1/Math.sqrt(1+s*s);for(let u=0;u<o;u++)if(null==t||t[u]){const t=n[u],o=e[u];i[u]=(o-s*t-r)*a}return[i]}(i,o[r[0]],o[r[1]],r[2]+1,r[3]+1);break;case"gvitm":a=function(t,e){const[n,s,r,o,i,a]=e,u=n.length,l=new Float32Array(u);for(let e=0;e<u;e++)(null==t||t[e])&&(l[e]=-.2848*n[e]-.2435*s[e]-.5436*r[e]+.7243*o[e]+.084*i[e]-.18*a[e]);return[l]}(i,[o[r[0]],o[r[1]],o[r[2]],o[r[3]],o[r[4]],o[r[5]]]);break;case"sultan":a=function(t,e){const[n,s,r,o,i]=e,a=n.length,u=new Float32Array(a),l=new Float32Array(a),c=new Float32Array(a);for(let e=0;e<a;e++)(null==t||t[e])&&(u[e]=i[e]?o[e]/i[e]*100:0,l[e]=n[e]?o[e]/n[e]*100:0,c[e]=r[e]?s[e]/r[e]*(o[e]/r[e])*100:0);return[u,l,c]}(i,[o[r[0]],o[r[1]],o[r[2]],o[r[3]],o[r[4]]]);break;case"vari":a=function(t,e){const[n,s,r]=e,o=n.length,i=new Float32Array(o);for(let e=0;e<o;e++)if(null==t||t[e])for(e=0;e<o;e++){const t=n[e],o=s[e],a=o+t-r[e];a&&(i[e]=(o-t)/a)}return[i]}(i,[o[r[0]],o[r[1]],o[r[2]]]);break;case"mtvi2":a=function(t,e){const[n,s,r]=e,o=n.length,i=new Float32Array(o);for(let e=0;e<o;e++)if(null==t||t[e])for(e=0;e<o;e++){const t=n[e],o=s[e],a=r[e],u=Math.sqrt((2*t+1)**2-(6*t-5*Math.sqrt(o))-.5);if(u){const n=1.5*(1.2*(t-a)-2.5*(o-a));i[e]=n/u}}return[i]}(i,[o[r[0]],o[r[1]],o[r[2]]]);break;case"rtvi-core":a=function(t,e){const[n,s,r]=e,o=n.length,i=new Float32Array(o);for(let e=0;e<o;e++)if(null==t||t[e])for(e=0;e<o;e++){const t=n[e],o=s[e],a=r[e];i[e]=100*(t-o)-10*(t-a)}return[i]}(i,[o[r[0]],o[r[1]],o[r[2]]]);break;case"evi":a=function(t,e){const[n,s,r]=e,o=n.length,i=new Float32Array(o);for(let e=0;e<o;e++)if(null==t||t[e])for(e=0;e<o;e++){const t=n[e],o=s[e],a=t+6*o-7.5*r[e]+1;a&&(i[e]=2.5*(t-o)/a)}return[i]}(i,[o[r[0]],o[r[1]],o[r[2]]]);break;case"wndwi":a=function(t,e,n=.5){const[s,r,o]=e,i=r.length,a=new Float32Array(i);for(let e=0;e<i;e++)if(null==t||t[e])for(e=0;e<i;e++){const t=s[e],i=r[e],u=o[e],l=t+n*i+(1-n)*u;l&&(a[e]=(t-n*i-(1-n)*u)/l)}return[a]}(i,[o[r[0]],o[r[1]],o[r[2]]],r[3]?r[3]+1:.5);break;case"bai":a=function(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o])for(o=0;o<s;o++){const t=(.1-e[o])**2+(.06-n[o])**2;t&&(r[o]=1/t)}return[r]}(i,o[r[0]],o[r[1]]);break;case"custom":a=function(t,e,n){let s,{ops:r,nums:o}=function(t,e){(t=t.replaceAll(" ","")).startsWith("-")&&(t="0"+t),t.startsWith("+")&&(t=t.slice(1));const n=t.split(""),s=[],r=[];let o="";for(let t=0;t<n.length;t++){const i=n[t];Dt.has(i)?(o.length&&r.push(Vt(o,e)),s.push(i),o=""):o=o.concat(i)}return o.length&&r.push(Vt(o,e)),{ops:s,nums:r}}(n,e);if(0===r.length){const t=1===o.length?o[0]:e[0];if(t instanceof Float32Array)return[t];const n=new Float32Array(e[0].length);return"number"==typeof t?n.fill(t):n.set(t),[n]}for(;r.length>0;){const{numIndex:e,opIndex:n}=Wt(r);if(s=Ut(t,r[n],o[e],o[e+1]),1===r.length)break;r=Lt(r,n),o.splice(e,2,s)}return[s]}(i,o,n);break;default:return t}const{outputPixelType:l="f32"}=e,c=null!=l&&(0,u.zw)(l);let p;i?(p=new Uint8Array(t.width*t.height),p.set(i)):c&&(p=new Uint8Array(t.width*t.height).fill(255)),c&&(a=a.map(t=>{const e=g.A.createEmptyBand(l,t.length);return(0,u.yM)(t,p,l,e),e}));const h=new g.A({width:t.width,height:t.height,pixelType:l,pixels:a,mask:p});return h.updateStatistics(),h}function qt(t){const e=new Float32Array(9);return e[3*t[0]]=1,e[3*t[1]+1]=1,e[3*t[2]+2]=1,e}function Jt(t,e,n){const s=n.length,r=new Float32Array(s);for(let o=0;o<s;o++)if(null==t||t[o]){const t=e[o],s=n[o],i=t+s;i&&(r[o]=(t-s)/i)}return[r]}var Xt,Yt=n(93223);let Qt=Xt=class extends p{constructor(){super(...arguments),this.method="custom"}clone(){return new Xt({method:this.method,bandIndexes:this.bandIndexes,raster:(0,o.o8)(this.raster)})}};(0,i.Cg)([(0,a.MZ)({json:{type:String,write:!0}})],Qt.prototype,"bandIndexes",void 0),(0,i.Cg)([(0,Yt.e)(Kt)],Qt.prototype,"method",void 0),Qt=Xt=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.BandArithmeticFunctionArguments")],Qt);const te=Qt,ee=new Set(["vari","mtvi2","rtvi-core","evi"]);let ne=class extends w{constructor(){super(...arguments),this.functionName="BandArithmetic",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){this.outputPixelType=this._getOutputPixelType("f32");const t=this.sourceRasterInfos[0];if(t.bandCount<2)return{success:!1,supportsGPU:!1,error:"band-arithmetic-function: source raster has insufficient amount of raster bands"};const e=t.clone();return e.pixelType=this.outputPixelType,e.bandCount="sultan"===this.functionArguments.method?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)}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return e;const{method:n,bandIndexes:s}=this.functionArguments,r=s.split(" ").map(t=>parseFloat(t));if(this.rasterInfo.storageInfo.isBsqTile){const{rawInputBandIds:t}=this,e=ee.has(this.functionArguments.method)?3:2,n=r.slice(0,e).map(e=>t.indexOf(e-1));r.splice(0,e,...n)}return Ht(e,{method:n,bandIndexes:r,equation:s,outputPixelType:this.outputPixelType})}_getWebGLParameters(){const t=this.functionArguments.bandIndexes.split(" ").map(t=>parseFloat(t)-1);2===t.length&&t.push(0);const e=this.isInputBandIdsSwizzled?[0,1,2]:t;let n,s;const r=new Float32Array(3),{method:o}=this.functionArguments;switch(o){case"gndvi":case"nbr":case"ndbi":case"ndvi":case"ndvi-re":case"ndsi":case"ndmi":case"mndwi":n=qt([e[0],e[1],0]),s="ndxi";break;case"ndwi":n=qt([e[1],e[0],0]),s="ndxi";break;case"sr":case"sr-re":case"iron-oxide":case"ferrous-minerals":case"clay-minerals":n=qt([e[0],e[1],0]),s="sr";break;case"ci-g":case"ci-re":n=qt([e[0],e[1],0]),s="ci";break;case"savi":n=qt([e[0],e[1],0]),s="savi",r[0]=t[2]+1;break;case"tsavi":n=qt([e[0],e[1],0]),s="tsavi",r[0]=t[2]+1,r[1]=t[3]+1,r[2]=t[4]+1;break;case"msavi":n=qt([e[0],e[1],0]),s="msavi";break;case"gemi":n=qt([e[0],e[1],0]),s="gemi";break;case"pvi":n=qt([e[0],e[1],0]),s="tsavi",r[0]=t[2]+1,r[1]=t[3]+1;break;case"vari":n=qt([e[0],e[1],e[2]]),s="vari";break;case"mtvi2":n=qt([e[0],e[1],e[2]]),s="mtvi";break;case"rtvi-core":n=qt([e[0],e[1],e[2]]),s="rtvicore";break;case"evi":n=qt([e[0],e[1],e[2]]),s="evi";break;case"wndwi":n=qt([e[0],e[1],0]),s="wndwi",r[0]=t[3]?t[3]+1:.5;break;case"bai":n=qt([e[1],e[0],0]),s="bai";break;default:n=qt([0,1,2]),s="custom"}return{bandIndexMat3:n,indexType:s,adjustments:r,isOutputRounded:(0,u.zw)(this.outputPixelType)}}_getInputBandIds(t){if("custom"===this.functionArguments.method)return t;const e=this.functionArguments.bandIndexes.split(" ").map(t=>parseFloat(t)-1),n=t.length,s=e.map(t=>t>=n?n-1:t),r=ee.has(this.functionArguments.method)?3:2,o=s.slice(0,r).map(e=>t[e]);return 2===o.length&&o.push(0),o}_swizzleBandIds(t){const e=this.functionArguments.bandIndexes.split(" ").map(t=>parseFloat(t)-1);2===e.length&&e.push(0);const{method:n}=this.functionArguments,s=(["vari","mtvi2","rtvi-core","evi"].includes(n)?e.slice(0,3):"bai"===n||"ndwi"===n?[e[1],e[0]]:e.slice(0,2)).map(e=>t.indexOf(e));return s[2]??=s[1],this.isInputBandIdsSwizzled=!0,this.swizzledBandSelection=s,!1}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],ne.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:te,json:{write:!0,name:"rasterFunctionArguments"}})],ne.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],ne.prototype,"rasterArgumentNames",void 0),ne=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.BandArithmeticFunction")],ne);const se=ne;var re,oe=n(65864),ie=n(50498);const ae=new Et.J({1:"outside",2:"inside"},{useNumericKeys:!0});let ue=re=class extends p{constructor(){super(...arguments),this.clippingType="outside"}clone(){return new re({clippingGeometry:this.clippingGeometry.clone(),clippingType:this.clippingType})}};(0,i.Cg)([(0,a.MZ)({types:ie.yR,json:{read:oe.rS,write:!0}})],ue.prototype,"clippingGeometry",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:ae.read,write:ae.write}})],ue.prototype,"clippingType",void 0),ue=re=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ClipFunctionArguments")],ue);const le=ue;var ce=n(34930),pe=n(37373);let he=class extends w{constructor(){super(...arguments),this.functionName="Clip",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){const t=this.sourceRasterInfos[0].clone();this.outputPixelType=this._getOutputPixelType(t.pixelType),t.pixelType=this.outputPixelType,this.rasterInfo=t;const{functionArguments:e}=this,{clippingGeometry:n,clippingType:s}=e;if(!n)return{success:!1,supportsGPU:!1,error:"missing clipping geometry"};if("outside"===s)try{const{spatialReference:e}=t,s="extent"===n.type?(0,pe._l)(n,e):(0,pe.uk)(n,e).extent;s&&(0,ce.Sd)(t,s)}catch{}return{success:!0,supportsGPU:!0}}_processPixels(t){return t.pixelBlocks?.[0]}_getWebGLParameters(){const{clippingGeometry:t,clippingType:e}=this.functionArguments;return{clippingGeometry:t.toJSON(),clippingType:e}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],he.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:le,json:{write:!0,name:"rasterFunctionArguments"}})],he.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],he.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)()],he.prototype,"isNoopProcess",void 0),he=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ClipFunction")],he);const me=he;var fe,ge=n(67369),de=n(95349),ye=n(36005);let xe=fe=class extends p{castColormapName(t){if(!t)return null;const e=t.toLowerCase();return ge.L7.includes(e)?e:null}readColorRamp(t){return(0,de.r)(t)}readColorRampName(t,e){if(!t)return null;const n=ge.kH.jsonValues.find(e=>e.toLowerCase()===t.toLowerCase());return n?ge.kH.fromJSON(n):null}clone(){return new fe({colormap:(0,o.o8)(this.colormap),colormapName:this.colormapName,colorRamp:this.colorRamp?.clone(),colorRampName:this.colorRampName})}};(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:!0}})],xe.prototype,"colormap",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],xe.prototype,"colormapName",void 0),(0,i.Cg)([(0,a.wg)("colormapName")],xe.prototype,"castColormapName",null),(0,i.Cg)([(0,a.MZ)({types:de.g,json:{write:!0}})],xe.prototype,"colorRamp",void 0),(0,i.Cg)([(0,ye.w)("colorRamp")],xe.prototype,"readColorRamp",null),(0,i.Cg)([(0,a.MZ)({type:ge.kH.apiValues,json:{type:ge.kH.jsonValues,write:ge.kH.write}})],xe.prototype,"colorRampName",void 0),(0,i.Cg)([(0,ye.w)("colorRampName")],xe.prototype,"readColorRampName",null),xe=fe=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ColormapFunctionArguments")],xe);const we=xe,Ae=[[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]],ve=[[36,0,255],[36,0,255],[36,0,255],[36,0,255],[245,20,0],[245,24,0],[245,29,0],[245,31,0],[247,33,0],[247,33,0],[247,37,0],[247,41,0],[247,41,0],[247,41,0],[247,45,0],[247,45,0],[247,47,0],[247,49,0],[247,49,0],[247,54,0],[247,54,0],[247,56,0],[247,58,0],[247,58,0],[250,62,0],[250,62,0],[250,62,0],[250,67,0],[250,67,0],[250,67,0],[250,69,0],[250,71,0],[250,71,0],[250,75,0],[250,75,0],[250,78,0],[250,79,0],[250,79,0],[250,79,0],[250,81,0],[250,83,0],[250,83,0],[250,87,0],[250,87,0],[250,90,0],[250,92,0],[252,93,0],[252,93,0],[252,97,0],[252,97,0],[252,97,0],[252,97,0],[252,101,0],[252,101,0],[252,101,0],[252,101,0],[252,105,0],[252,105,0],[252,107,0],[252,109,0],[252,109,0],[252,113,13],[255,118,20],[255,119,23],[255,121,25],[255,126,33],[255,132,38],[255,133,40],[255,135,43],[255,141,48],[255,144,54],[255,150,59],[255,152,61],[255,153,64],[255,159,69],[255,163,77],[255,165,79],[255,168,82],[255,174,87],[255,176,92],[255,181,97],[255,183,99],[255,186,102],[255,191,107],[255,197,115],[255,201,120],[255,203,123],[255,205,125],[255,209,130],[255,214,138],[255,216,141],[255,218,143],[255,224,150],[255,228,156],[255,234,163],[255,236,165],[255,238,168],[255,243,173],[255,248,181],[255,252,186],[253,252,186],[250,252,187],[244,250,180],[238,247,176],[234,246,173],[231,245,169],[223,240,163],[217,237,157],[211,235,150],[205,233,146],[200,230,142],[195,227,136],[189,224,132],[184,222,126],[180,220,123],[174,217,119],[169,214,114],[163,212,108],[160,210,105],[154,207,101],[148,204,96],[143,201,93],[138,199,88],[134,197,84],[130,194,81],[126,191,77],[117,189,70],[115,186,68],[112,184,64],[106,181,60],[100,179,55],[94,176,49],[92,174,47],[90,173,45],[81,168,37],[75,166,33],[71,163,28],[66,160,24],[62,158,21],[56,156,14],[51,153,0],[51,153,0],[51,153,0],[50,150,0],[50,150,0],[50,150,0],[50,150,0],[49,148,0],[49,148,0],[49,148,0],[48,145,0],[48,145,0],[48,145,0],[48,145,0],[48,143,0],[48,143,0],[48,143,0],[48,143,0],[47,140,0],[47,140,0],[47,140,0],[47,140,0],[46,138,0],[46,138,0],[46,138,0],[46,138,0],[45,135,0],[45,135,0],[45,135,0],[45,135,0],[44,133,0],[44,133,0],[44,133,0],[43,130,0],[43,130,0],[43,130,0],[43,130,0],[43,130,0],[43,130,0],[42,128,0],[42,128,0],[42,128,0],[42,125,0],[42,125,0],[42,125,0],[42,125,0],[41,122,0],[41,122,0],[41,122,0],[41,122,0],[40,120,0],[40,120,0],[40,120,0],[40,120,0],[40,120,0],[39,117,0],[39,117,0],[39,117,0],[39,117,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0],[38,115,0]];function be(t,e){const n=[],s=[];for(let e=0;e<t.length-1;e++)n.push({type:"algorithmic",algorithm:"esriHSVAlgorithm",fromColor:t[e].slice(1),toColor:t[e+1].slice(1)}),s.push(t[e+1][0]-t[e][0]);const r=t[t.length-1][0];return(0,ge.iv)({type:"multipart",colorRamps:n},{numColors:r,weights:e=e??s})}let Ce=class extends w{constructor(){super(...arguments),this.functionName="Colormap",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){const t=this.sourceRasterInfos[0];if(t.bandCount>1)return{success:!1,supportsGPU:!1,error:"colormap-function: source data must be single band"};let{colormap:e,colormapName:n,colorRamp:s,colorRampName:r}=this.functionArguments;if(!e?.length)if(s)this.colorRamp=s,e=(0,ge.R8)(s,{interpolateAlpha:!0});else if(r){const t=(0,ge.M5)(r);t&&(e=(0,ge.R8)(t),this.colorRamp=(0,de.r)(t))}else n&&(e=function(t){let e;switch(t){case"elevation":e=be([[0,0,191,191],[51,0,0,255],[102,255,0,255],[153,255,0,127],[204,191,63,127],[256,20,20,20]]);break;case"gray":e=(0,ge.iv)({type:"algorithmic",algorithm:"esriHSVAlgorithm",fromColor:[0,0,0],toColor:[255,255,255]});break;case"hillshade":e=be([[0,38,41,54],[69,79,82,90],[131,156,156,156],[256,253,253,241]],[.268,.238,.495]);break;case"ndvi":e=Ae;break;case"ndvi2":e=function(){const t=be([[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]]);for(let e=t.length;e<256;e++)t.push([6,27,7]);return t}();break;case"ndvi3":e=ve;break;case"random":e=function(){const t=[];for(let e=0;e<256;e++){const e=[];for(let t=0;t<3;t++)e.push(Math.round(255*Math.random()));t.push(e)}return t}()}return e?(e=e.map((t,e)=>[e,...t]),e):null}(n));if(!e?.length)return{success:!1,supportsGPU:!1,error:"colormap-function: missing colormap argument"};const o=this._getOutputPixelType(t.pixelType);this.outputPixelType=o.startsWith("f")?"s32":o;const i=t.clone();return i.pixelType=this.outputPixelType,i.colormap=e,i.bandCount=1,this.rasterInfo=i,{success:!0,supportsGPU:!0}}_processPixels(t){let e=t.pixelBlocks?.[0];return!e||(0,u.zw)(e.pixelType)||(e=e.clone(),e.clamp(this.outputPixelType)),e}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Ce.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:we,json:{write:!0,name:"rasterFunctionArguments"}})],Ce.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Ce.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)()],Ce.prototype,"isNoopProcess",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Ce.prototype,"indexedColormap",void 0),(0,i.Cg)([(0,a.MZ)()],Ce.prototype,"colorRamp",void 0),Ce=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ColormapFunction")],Ce);const Me=Ce;var Pe;let Te=Pe=class extends p{clone(){return new Pe({raster:this.raster})}};Te=Pe=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ColormapToRGBFunctionArguments")],Te);const Re=Te;var Ne=n(4151),ke=n(88178);let Ie=class extends w{constructor(){super(...arguments),this.functionName="ColormapToRGB",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const t=this.sourceRasterInfos[0];if(t.bandCount>1||!t.colormap?.length)return{success:!1,supportsGPU:!1,error:"colormap-to-rgb-function: source data must be single band with a colormap"};const e=t.clone();e.pixelType=this.outputPixelType=this._getOutputPixelType("u8"),this._removeStatsHistColormapVAT(e),e.bandCount=3,e.statistics=[{min:0,max:255,avg:100,stddev:20},{min:0,max:255,avg:100,stddev:20},{min:0,max:255,avg:100,stddev:20}],this.rasterInfo=e;const n=[...t.colormap].sort((t,e)=>t[0]-e[0]),{indexedColormap:s,offset:r}=(0,$t.zg)({colormap:n});return s?(this.lookup={indexedColormap:s,offset:r},{success:!0,supportsGPU:(0,ke.WN)(s)}):{success:!1,supportsGPU:!1,error:"colormap-to-rgb-function: the colormap is not supported"}}_processPixels(t){let e=t.pixelBlocks?.[0];if(!e||!this.lookup)return e;e=e.clone();const n=e.pixels[0],s=e.mask??new Uint8Array(n.length).fill(255),r=new Uint8Array(n.length),o=new Uint8Array(n.length),i=new Uint8Array(n.length),{indexedColormap:a,offset:u}=this.lookup,l=a.length;for(let t=0;t<n.length;t++)if(s[t]){let e=4*(n[t]-u);e<0||e>l-4?s[t]=0:(r[t]=a[e++],o[t]=a[e++],i[t]=a[e++])}return e.pixels=[r,o,i],e.statistics=[new Ne.A(0,255),new Ne.A(0,255),new Ne.A(0,255)],e.pixelType=this.outputPixelType,e}_getWebGLParameters(){return this.lookup}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Ie.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:Re,json:{write:!0,name:"rasterFunctionArguments"}})],Ie.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Ie.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Ie.prototype,"lookup",void 0),Ie=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ColormapToRGBFunction")],Ie);const Se=Ie;var _e,Fe=n(43937);let Be=_e=class extends p{constructor(){super(...arguments),this.rasters=[]}writeRasters(t,e){e.rasters=t.map(t=>"number"==typeof t||"string"==typeof t?t:t.toJSON())}clone(){return new _e({rasters:(0,o.o8)(this.rasters)})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Be.prototype,"rasters",void 0),(0,i.Cg)([(0,Fe.K)("rasters")],Be.prototype,"writeRasters",null),Be=_e=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.CompositeBandFunctionArguments")],Be);const je=Be;let Ze=class extends w{constructor(){super(...arguments),this.functionName="CompositeBand",this.functionArguments=null,this.rasterArgumentNames=["rasters"]}_bindSourceRasters(){const{sourceRasterInfos:t}=this,e=t[0];this.outputPixelType=this._getOutputPixelType(e.pixelType);const n=e.clone();if(n.attributeTable=null,n.colormap=null,n.pixelType=this.outputPixelType,n.bandCount=t.map(({bandCount:t})=>t).reduce((t,e)=>t+e),t.every(({statistics:t})=>null!=t&&t.length)){const e=[];t.forEach(({statistics:t})=>null!=t&&e.push(...t)),n.statistics=e}if(t.every(({histograms:t})=>null!=t&&t.length)){const e=[];t.forEach(({histograms:t})=>null!=t&&e.push(...t)),n.histograms=e}n.multidimensionalInfo&&n.multidimensionalInfo.variables.forEach(e=>{const n=t.map(t=>t.multidimensionalInfo?.variables.find(({name:t})=>t===e.name)),s=n.map(t=>t?.statistics?.length?t.statistics:null),r=n.map(t=>t?.histograms?.length?t.histograms:null);e.statistics=s.every(t=>null!=t)?s.flat():null,e.histograms=r.every(t=>null!=t)?r.flat():null}),n.bandCount>1&&(n.colormap=null,n.attributeTable=null);const s=t.every(t=>t.keyProperties.BandProperties?.length)?t.flatMap(t=>t.keyProperties.BandProperties):void 0;return n.keyProperties={...n.keyProperties,BandProperties:s},this.rasterInfo=n,{success:!0,supportsGPU:n.bandCount<=3}}_processPixels(t){const{pixelBlocks:e}=t;if(!e)return null;const n=e?.[0];return null==n?null:(0,$t.Wy)(e)}_getWebGLParameters(){return{bandCount:this.rasterInfo.bandCount}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Ze.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:je,json:{write:!0,name:"rasterFunctionArguments"}})],Ze.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Ze.prototype,"rasterArgumentNames",void 0),Ze=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.CompositeBandFunction")],Ze);const Ge=Ze,ze=new Et.J({0:"difference",1:"relative-difference",2:"categorical",3:"euclidean-distance",4:"angle-difference",5:"band-with-most-change"},{useNumericKeys:!0}),Oe=new Et.J({0:"all",1:"changed",2:"unchanged"},{useNumericKeys:!0});var Ee;let De=Ee=class extends p{constructor(){super(...arguments),this.method="difference",this.keepMethod="all",this.raster2=void 0}get rasters(){return[this.raster,this.raster2]}clone(){return new Ee({raster:this.raster,raster2:this.raster2,method:this.method,keepMethod:this.keepMethod})}};(0,i.Cg)([(0,Yt.e)(ze)],De.prototype,"method",void 0),(0,i.Cg)([(0,Yt.e)(Oe)],De.prototype,"keepMethod",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],De.prototype,"raster2",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],De.prototype,"rasters",null),De=Ee=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ComputeChangeFunctionArguments")],De);const Ve=De;var Ue=n(20437);let Le=class extends w{constructor(){super(...arguments),this.functionName="ComputeChange",this.functionArguments=null,this.rasterArgumentNames=["raster","raster2"]}_bindSourceRasters(){const{method:t}=this.functionArguments,e=this.sourceRasterInfos[0].clone();if(this.outputPixelType=this._getOutputPixelType(e.pixelType),e.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(e),"categorical"===t){const t=this.sourceRasterInfos.map(t=>t.attributeTable),n=this._getFieldNames(t,"value"),s=t.map(t=>this._getClassFieldName(t));if(null==n[0]||null==n[1]||null==s[0]||null==s[1])return{success:!1,supportsGPU:!1,error:"both inputs must have proper attribute table with value and class fields"};this._updateAttributeTable(e,n,s)}return e.bandCount=1,this.rasterInfo=e,{success:!0,supportsGPU:"difference"===t||"relative-difference"===t}}_processPixels(t){const{pixelBlocks:e}=t;if(null==e?.[0]||null==e?.[1])return null;const{method:n}=this.functionArguments;return function(t,e,n,s){const[r,o]=t,i=(0,u.zw)(n)&&!(0,u.zw)(r.pixelType)&&!(0,u.zw)(o.pixelType),a=[r.mask,o.mask].filter(t=>t),l=g.A.combineBandMasks(a),c=t.map(t=>t.pixels[0]),{width:p,height:h}=r,m=g.A.createEmptyBand(n,p*h);switch(e){case"difference":case"relative-difference":!function(t){const{bands:[e,n],mask:s,isRelative:r,isRoundingNeeded:o,outBand:i}=t,a=e.length;for(let t=0;t<a;t++)if(!s||s[t]){let s=e[t]-n[t];if(r){const r=Math.max(Math.abs(e[t])-Math.abs(n[t]));s=r>0?s/r:0}i[t]=o?Math.round(s):s}}({bands:c,mask:l,outBand:m,isRoundingNeeded:i,isRelative:"relative-difference"===e});break;case"categorical":!function(t){const{bands:[e,n],categoryIndexLookups:[s,r],classNames:[o,i],mask:a,keepMethod:u,outBand:l}=t,c=e.length,p=o.length,h=i.length,m=p*h,f=m+1,g=m+2;for(let t=0;t<c;t++)if(!a||a[t]){const a=e[t],c=n[t],p=s[a],d=r[c],y=o[p],x=i[d];l[t]=null==p||null==d?m:"changed"===u&&y===x?f:"unchanged"===u&&y!==x?g:p*h+d}}({bands:c,mask:l,outBand:m,...s});break;case"euclidean-distance":!function(t){const{pixels:[e,n],mask:s,outBand:r}=t,o=e[0].length,i=e.length;for(let t=0;t<o;t++)if(!s||s[t]){let s=0;for(let r=0;r<i;r++){const o=e[r][t]-n[r][t];s+=o*o}r[t]=Math.sqrt(s)}}({pixels:t.map(t=>t.pixels),mask:l,outBand:m});break;case"angle-difference":!function(t){const{pixels:[e,n],mask:s,outBand:r}=t,o=e[0].length,i=e.length;for(let t=0;t<o;t++)if(!s||s[t]){let s=0,o=0,a=0;for(let r=0;r<i;r++){const i=e[r][t],u=n[r][t];s+=i*u,o+=i*i,a+=u*u}const u=Math.sqrt(o*a);r[t]=u?Math.acos(s/u):1.5707963267948966}}({pixels:t.map(t=>t.pixels),mask:l,outBand:m});break;case"band-with-most-change":!function(t){const{pixels:[e,n],mask:s,outBand:r}=t,o=e[0].length,i=e.length;for(let t=0;t<o;t++)if(!s||s[t]){let s=0,o=0;for(let r=0;r<i;r++){const i=Math.abs(e[r][t]-n[r][t]);i>s&&(s=i,o=r)}r[t]=o}}({pixels:t.map(t=>t.pixels),mask:l,outBand:m})}const f=new g.A({width:p,height:h,pixels:[m],pixelType:n,mask:l});return f.updateStatistics(),f}(e,n,this.outputPixelType,this._categoryConfig)}_getWebGLParameters(){const t=this.outputPixelType??"f32";let[e,n]=(0,u.hP)(t);const s=(0,u.zw)(t);return s&&(e-=1e-4,n+=1e-4),{method:this.functionArguments.method,domainRange:[e,n],isOutputRounded:s}}_updateAttributeTable(t,e,n){const s=this.sourceRasterInfos.map(t=>t.attributeTable),r=s.map((t,n)=>t.features.map(t=>t.attributes[e[n]])),o=s.map((t,e)=>t.features.map(t=>t.attributes[n[e]])),i=r.map(t=>{const e=[];return t.forEach((t,n)=>e[t]=n),e}),{keepMethod:a}=this.functionArguments;this._categoryConfig={categoryIndexLookups:i,classNames:o,keepMethod:a};const u=s[0].clone();u.fields=[new Ue.A({name:"OID",type:"oid"}),new Ue.A({name:"Value",type:"integer"}),new Ue.A({name:"ClassName",type:"string"}),new Ue.A({name:"Class_From",type:"string"}),new Ue.A({name:"Class_To",type:"string"})];const l=this._getFieldNames(s,"red"),c=this._getFieldNames(s,"green"),p=this._getFieldNames(s,"blue"),h=[],m=2===l.length&&2===c.length&&2===p.length;m&&(h.push(...s.map((t,e)=>t.features.map(t=>[t.attributes[l[e]],t.attributes[c[e]],t.attributes[p[e]]]))),u.fields.push(new Ue.A({name:"Red",type:"integer"}),new Ue.A({name:"Green",type:"integer"}),new Ue.A({name:"Blue",type:"integer"})));const f=u.features[0].clone();f.geometry=null;const g=[],[d,y]=r.map(t=>t.length);let x=1;for(let t=0;t<d;t++){const e=o[0][t];for(let n=0;n<y;n++){const s=o[1][n];if("changed"===a&&e===s||"unchanged"===a&&e!==s)continue;const r=f.clone();r.attributes={OID:x++,Value:t*y+n,ClassName:e===s?e:`${e} -> ${s}`,Class_From:e,Class_To:s},m&&(r.attributes.Red=h[0][t][0]+h[1][n][0]>>1,r.attributes.Green=h[0][t][1]+h[1][n][1]>>1,r.attributes.Blue=h[0][t][2]+h[1][n][2]>>1),g.push(r)}}if("changed"===a){const t=f.clone();t.attributes={OID:x++,Value:d*y+1,ClassName:"No Change",Class_From:"Same",Class_To:"Same"},g.push(t)}else if("unchanged"===a){const t=f.clone();t.attributes={OID:x++,Value:d*y+2,ClassName:"Changed",Class_From:"Any",Class_To:"Any"},g.push(t)}u.features=g,t.attributeTable=u}_getFieldNames(t,e){return t.map(({fields:t})=>t.find(t=>t.name.toLowerCase()===e)?.name).filter(t=>t)}_getClassFieldName(t){const e=t.fields.find(t=>"string"===t.type&&t.name.toLowerCase().startsWith("class"))??t.fields.find(t=>"string"===t.type&&t.name.toLowerCase().includes("class")||t.name.toLowerCase().includes("type")||t.name.toLowerCase().includes("name"))??t.fields.find(t=>"string"===t.type);return e?.name}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Le.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:Ve,json:{write:!0,name:"rasterFunctionArguments"}})],Le.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Le.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Le.prototype,"_categoryConfig",void 0),Le=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ComputeChangeFunction")],Le);const We=Le;var $e;let Ke=$e=class extends p{constructor(){super(...arguments),this.contrastOffset=0,this.brightnessOffset=0}clone(){return new $e({contrastOffset:this.contrastOffset,brightnessOffset:this.brightnessOffset,raster:this.raster})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Ke.prototype,"contrastOffset",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Ke.prototype,"brightnessOffset",void 0),Ke=$e=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ContrastBrightnessFunctionArguments")],Ke);const He=Ke;var qe=n(51927);let Je=class extends w{constructor(){super(...arguments),this.functionName="ContrastBrightness",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null}_bindSourceRasters(){const{sourceRasterInfos:t}=this,e=t[0];if("u8"!==e.pixelType)return{success:!1,supportsGPU:!1,error:"Only unsigned 8 bit raster is supported by ContrastBrightness function."};this.outputPixelType=this._getOutputPixelType("u8");const n=e.clone();this._removeStatsHistColormapVAT(n),this.rasterInfo=n;const{contrastOffset:s,brightnessOffset:r}=this.functionArguments;return this.lookup=(0,qe.zj)(s,r),{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];return null==e?null:(0,$t.eH)(e,{lut:e.pixels.map(()=>this.lookup),offset:0,outputPixelType:"u8"})}_getWebGLParameters(){const{contrastOffset:t,brightnessOffset:e}=this.functionArguments;return{contrastOffset:t,brightnessOffset:e}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Je.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:He,json:{write:!0,name:"rasterFunctionArguments"}})],Je.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Je.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Je.prototype,"lookup",void 0),Je=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ContrastBrightnessFunction")],Je);const Xe=Je;function Ye(t,e,n,s,r){const o=Math.floor(s/2);for(let s=0;s<o;s++)for(let o=0;o<e;o++)t[s*e+o]=t[(r-1-s)*e+o],t[(n-1-s)*e+o]=t[(n-r+s)*e+o];const i=Math.floor(r/2);for(let s=0;s<n;s++){const n=s*e;for(let s=0;s<i;s++)t[n+s]=t[n+r-1-s],t[n+e-s-1]=t[n+e+s-r]}}const Qe=new Map;function tn(t,e,n,s,r,o,i){const a=new Float32Array(e*n),u=o.length,l=i?0:s,c=i?s:0,p=i?1:e;for(let i=l;i<n-l;i++){const n=i*e;for(let i=c;i<e-c;i++){if(r&&!r[n+i])continue;let e=0;for(let r=0;r<u;r++)e+=t[n+i+(r-s)*p]*o[r];a[n+i]=e}}return a}function en(t,e,n,s,r,o,i){const a=new Float32Array(e*n),u=Math.floor(s/2),l=Math.floor(r/2);for(let c=u;c<n-u;c++){const n=c*e;for(let c=l;c<e-l;c++){if(o&&!o[n+c])continue;let p=0;for(let o=0;o<s;o++)for(let s=0;s<r;s++)p+=t[n+c+(o-u)*e+s-l]*i[o*r+s];a[n+c]=p}}return a}var nn;Qe.set(A.none,[0,0,0,0,1,0,0,0,0]),Qe.set(A.lineDetectionHorizontal,[-1,-1,-1,2,2,2,-1,-1,-1]),Qe.set(A.lineDetectionVertical,[-1,2,-1,-1,2,-1,-1,2,-1]),Qe.set(A.lineDetectionLeftDiagonal,[2,-1,-1,-1,2,-1,-1,-1,2]),Qe.set(A.lineDetectionRightDiagonal,[-1,-1,2,-1,2,-1,2,-1,-1]),Qe.set(A.gradientNorth,[-1,-2,-1,0,0,0,1,2,1]),Qe.set(A.gradientWest,[-1,0,1,-2,0,2,-1,0,1]),Qe.set(A.gradientEast,[1,0,-1,2,0,-2,1,0,-1]),Qe.set(A.gradientSouth,[1,2,1,0,0,0,-1,-2,-1]),Qe.set(A.gradientNorthEast,[0,-1,-2,1,0,-1,2,1,0]),Qe.set(A.gradientNorthWest,[-2,-1,0,-1,0,1,0,1,2]),Qe.set(A.smoothArithmeticMean,[.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111,.111111111111]),Qe.set(A.smoothing3x3,[.0625,.125,.0625,.125,.25,.125,.0625,.125,.0625]),Qe.set(A.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]),Qe.set(A.sharpening3x3,[-1,-1,-1,-1,9,-1,-1,-1,-1]),Qe.set(A.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]),Qe.set(A.laplacian3x3,[0,-1,0,-1,4,-1,0,-1,0]),Qe.set(A.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]),Qe.set(A.sobelHorizontal,[-1,-2,-1,0,0,0,1,2,1]),Qe.set(A.sobelVertical,[-1,0,1,-2,0,2,-1,0,1]),Qe.set(A.sharpen,[0,-.25,0,-.25,2,-.25,0,-.25,0]),Qe.set(A.sharpen2,[-.25,-.25,-.25,-.25,3,-.25,-.25,-.25,-.25]),Qe.set(A.pointSpread,[-.627,.352,-.627,.352,2.923,.352,-.627,.352,-.627]);let sn=nn=class extends p{constructor(){super(...arguments),this.rows=3,this.cols=3,this.kernel=[0,0,0,0,1,0,0,0,0]}set convolutionType(t){this._set("convolutionType",t);const e=Qe.get(t);if(!e||t===A.userDefined||t===A.none)return;const n=Math.sqrt(e.length);this._set("kernel",e),this._set("cols",n),this._set("rows",n)}clone(){return new nn({cols:this.cols,rows:this.rows,kernel:[...this.kernel],convolutionType:this.convolutionType,raster:(0,o.o8)(this.raster)})}};(0,i.Cg)([(0,a.MZ)({json:{type:Number,write:!0}})],sn.prototype,"rows",void 0),(0,i.Cg)([(0,a.MZ)({json:{type:Number,write:!0}})],sn.prototype,"cols",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"type",type:Number,write:!0}})],sn.prototype,"convolutionType",null),(0,i.Cg)([(0,a.MZ)({json:{type:[Number],write:!0}})],sn.prototype,"kernel",void 0),sn=nn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ConvolutionFunctionArguments")],sn);const rn=sn;let on=class extends w{constructor(){super(...arguments),this.functionName="Convolution",this.rasterArgumentNames=["raster"]}get _normalizedKernel(){const{kernel:t,convolutionType:e}=this.functionArguments,n=t.reduce((t,e)=>t+e);return-1===e||0===n||1===n?t:t.map(t=>t/n)}_bindSourceRasters(){const{convolutionType:t,rows:e,cols:n,kernel:s}=this.functionArguments;if(!Object.values(A).includes(t))return{success:!1,supportsGPU:!1,error:`convolution-function: the specified kernel type is not supported ${t}`};if(t!==A.none&&e*n!==s.length)return{success:!1,supportsGPU:!1,error:"convolution-function: the specified rows and cols do not match the length of the kernel"};const r=this.sourceRasterInfos[0];this.outputPixelType=this._getOutputPixelType(r.pixelType);const o=r.clone();o.pixelType=this.outputPixelType;const i=[A.none,A.sharpen,A.sharpen2,A.sharpening3x3,A.sharpening5x5];return(-1===t||"u8"!==this.outputPixelType&&!i.includes(t))&&(o.statistics=null,o.histograms=null),o.colormap=null,o.attributeTable=null,this.rasterInfo=o,{success:!0,supportsGPU:s.length<=25}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e||this.functionArguments.convolutionType===A.none)return e;const{rows:n,cols:s}=this.functionArguments,{_normalizedKernel:r}=this;return function(t,e){const n=function(t){const e=Math.sqrt(t.length),n=t.slice(0,e),s=[1];for(let n=1;n<e;n++){let r=null;for(let s=0;s<e;s++){const o=t[s+n*e],i=t[s];if(null==r)if(0===i){if(o)return{separable:!1,row:null,col:null}}else r=o/i;else if(o/i!==r)return{separable:!1,row:null,col:null}}if(null==r)return{separable:!1,row:null,col:null};s.push(r)}return{separable:!0,row:n,col:s}}(e.kernel),s=!1!==e.mirrorEdges,r=n.separable?function(t,e,n,s=!0){const{pixels:r,width:o,height:i,pixelType:a,mask:u}=t,l=r.length,c=[],p=e.length,h=n.length,m=Math.floor(p/2),f=Math.floor(h/2);for(let t=0;t<l;t++){let a=tn(r[t],o,i,m,u,e,!0);a=tn(a,o,i,f,u,n,!1),s&&Ye(a,o,i,p,h),c.push(a)}return new g.A({width:o,height:i,pixelType:a,pixels:c,mask:u})}(t,n.row,n.col,s):function(t,e,n=!0){const{pixels:s,width:r,height:o,pixelType:i,mask:a}=t,u=s.length,l=[],{kernel:c,rows:p,cols:h}=e;for(let t=0;t<u;t++){const e=en(s[t],r,o,p,h,a,c);n&&Ye(e,r,o,p,h),l.push(e)}return new g.A({width:r,height:o,pixelType:i,pixels:l,mask:a})}(t,e,s),{outputPixelType:o}=e;return o&&r.clamp(o),r}(e,{kernel:r,rows:n,cols:s,outputPixelType:this.outputPixelType})}_getWebGLParameters(){const t=new Float32Array(25),{rows:e,cols:n}=this.functionArguments,{_normalizedKernel:s}=this;for(let r=0;r<e;r++)for(let e=0;e<n;e++)t[5*r+e]=s[r*n+e];return{kernelRows:e,kernelCols:n,kernel:t,clampRange:(0,u.hP)(this.outputPixelType)}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],on.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:rn,json:{write:!0,name:"rasterFunctionArguments"}})],on.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],on.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)()],on.prototype,"_normalizedKernel",null),on=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ConvolutionFunction")],on);const an=on;var un;const ln=new Et.J({0:"standard",1:"planform",2:"profile"},{useNumericKeys:!0});let cn=un=class extends p{constructor(){super(...arguments),this.curvatureType="standard",this.zFactor=1}readCurvatureType(t,e){return ln.fromJSON(e.type??e.curvatureType??0)}clone(){return new un({curvatureType:this.curvatureType,zFactor:this.zFactor,raster:this.raster})}};(0,i.Cg)([(0,a.MZ)({json:{write:{target:"type"}}}),(0,Yt.e)(ln)],cn.prototype,"curvatureType",void 0),(0,i.Cg)([(0,ye.w)("curvatureType",["type","curvatureType"])],cn.prototype,"readCurvatureType",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],cn.prototype,"zFactor",void 0),cn=un=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.CurvatureFunctionArguments")],cn);const pn=cn;let hn=class extends w{constructor(){super(...arguments),this.functionName="Curvature",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){this.outputPixelType=this._getOutputPixelType("f32");const t=this.sourceRasterInfos[0].clone();return t.pixelType=this.outputPixelType,t.bandCount=1,this._removeStatsHistColormapVAT(t),this.rasterInfo=t,this.isGCS=t.spatialReference?.isGeographic??!1,{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{zFactor:n,curvatureType:s}=this.functionArguments,{extent:r,primaryPixelSizes:o}=t,i=o?.[0],a=i??(r?{x:r.width/e.width,y:r.height/e.height}:{x:1,y:1}),u=this.isGCS&&n>=1?n*Gt.rk:n;return(0,Gt.E0)(e,{zFactor:u,curvatureType:s,resolution:a})}_getWebGLParameters(){const{zFactor:t,curvatureType:e}=this.functionArguments;return{curvatureType:e,zFactor:this.isGCS&&t>=1?t*Gt.rk:t}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],hn.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:pn,json:{write:!0,name:"rasterFunctionArguments"}})],hn.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],hn.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],hn.prototype,"isGCS",void 0),hn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.CurvatureFunction")],hn);const mn=hn;var fn;let gn=fn=class extends p{constructor(){super(...arguments),this.bandIds=[],this.bandNames=[],this.bandWavelengths=[],this.missingBandAction=0}clone(){return new fn({bandIds:this.bandIds?.slice(),bandNames:this.bandNames?.slice(),bandWavelengths:this.bandWavelengths?.slice(),missingBandAction:this.missingBandAction,method:this.method,wavelengthMatchTolerance:this.wavelengthMatchTolerance})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],gn.prototype,"bandIds",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],gn.prototype,"bandNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],gn.prototype,"bandWavelengths",void 0),(0,i.Cg)([(0,Yt.e)({0:"name",1:"wavelength",2:"id"})],gn.prototype,"method",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],gn.prototype,"missingBandAction",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],gn.prototype,"wavelengthMatchTolerance",void 0),gn=fn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ExtractBandFunctionArguments")],gn);const dn=gn;let yn=class extends w{constructor(){super(...arguments),this.functionName="ExtractBand",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const{functionArguments:t,sourceRasterInfos:e}=this,n=e[0],{method:s,bandNames:r,bandWavelengths:o,bandIds:i,missingBandAction:a}=t,u=r?.length&&("name"===s||"id"!==s&&!i?.length),l=o?.length&&("wavelength"===s||"id"!==s&&!i?.length),c=1===a,p=u?function(t,e){const n=t.bandInfos.map(({name:t})=>t.toLowerCase()),s=[];for(let t=0;t<e.length;t++){const r=e[t].toLowerCase();let o=n.indexOf(r);if(-1===o&&"nearinfrared"===r&&(o=n.findIndex(t=>t.startsWith("nearinfrared_1")),-1===o&&(o=n.findIndex(t=>t.startsWith("nearinfrared")))),-1===o)return null;s.push(o)}return s}(n,r):l?function(t,e,{wavelengthMatchTolerance:n},s){const{bandInfos:r}=t,o=[];for(let t=0;t<r.length;t++){const{minWavelength:e,maxWavelength:n}=r[t];if(!e||!n)return null;o.push({minWavelength:e,maxWavelength:n})}const i=[];for(let t=0;t<e.length;t++){const r=e[t];let a=!1,u=-1,l=Number.MAX_VALUE;for(let t=0;t<o.length;t++){const e=o[t],n=r>=e.minWavelength&&r<=e.maxWavelength,s=Math.abs(r-(e.minWavelength+e.maxWavelength)/2);n?s<l&&(a=!0,u=t,l=s):!a&&s<l&&(u=t,l=s)}if(!a&&n&&l<n&&(a=!0),!a&&s)return null;i.push(u)}return i}(n,o,this.functionArguments,c):function(t,e,n){const{bandCount:s}=t;return!e?.length||n&&e.some(t=>t<0||t>=s)?null:e}(n,i,c);if(null==p)return{success:!1,supportsGPU:!1,error:`extract-band-function: Invalid ${u?"band names":l?"band wavelengths":"band ids"} for the imagery data source`};this.functionArguments.bandIds=p,this.functionArguments.method="id",this.outputPixelType=this._getOutputPixelType("f32");const h=n.clone();h.pixelType=this.outputPixelType,h.bandCount=p.length;const{statistics:m,histograms:f}=h;null!=m&&m.length&&(h.statistics=p.map(t=>m[t]||m[m.length-1])),null!=f&&f.length&&(h.histograms=p.map(t=>f[t]||f[f.length-1])),h.multidimensionalInfo&&h.multidimensionalInfo.variables.forEach(t=>{const{statistics:e,histograms:n}=t;null!=e&&e.length&&(t.statistics=p.map(t=>e[t]||e[e.length-1])),null!=n&&n.length&&(t.histograms=p.map(t=>n[t]||n[n.length-1]))});let g=h.keyProperties?.BandProperties;return g?.length&&(g=p.map(t=>t>=g.length?g[g.length-1]:g[t]),h.keyProperties={...h.keyProperties,BandProperties:g}),this.rasterInfo=h,{success:!0,supportsGPU:h.bandCount<=3}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;let{bandIds:n}=this.functionArguments;if(this.rasterInfo.storageInfo.isBsqTile){const{rawInputBandIds:t}=this;n=n.map(e=>t.indexOf(e))}else{const t=e.pixels.length;n=n.map(e=>e>=t?t-1:e)}return e.extractBands(n)}_getWebGLParameters(){let t;if(this.isInputBandIdsSwizzled)t=this.swizzledBandSelection.length?this.swizzledBandSelection:[0,1,2];else{t=[...this.functionArguments.bandIds],0===t.length?t=[0,1,2]:t.length<3&&(t[1]=t[1]??t[0],t[2]=t[2]??t[1]);for(let e=0;e<3;e++)t[e]=Math.min(t[e],2)}return{bandIndexMat3:qt(t)}}_getInputBandIds(t){const e=t.length;return this.functionArguments.bandIds.map(t=>t>=e?e-1:t).map(e=>t[e])}_swizzleBandIds(t){const e=this.functionArguments.bandIds.map(e=>t.indexOf(e));return this.isInputBandIdsSwizzled=!0,e[1]??=e[0],e[2]??=e[1],this.swizzledBandSelection=e,!1}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],yn.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:dn,json:{write:!0,name:"rasterFunctionArguments"}})],yn.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],yn.prototype,"rasterArgumentNames",void 0),yn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ExtractBandFunction")],yn);const xn=yn;var wn;let An=wn=class extends p{clone(){return new wn({conversionParameters:[...this.conversionParameters],raster:this.raster})}};(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],An.prototype,"conversionParameters",void 0),An=wn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.GrayscaleFunctionArguments")],An);const vn=An;let bn=class extends w{constructor(){super(...arguments),this.functionName="Grayscale",this.functionArguments=null,this.rasterArgumentNames=["raster"]}get _normalizedWeights(){const{conversionParameters:t}=this.functionArguments,e=t.reduce((t,e)=>t+e);return t.map(t=>t/e)}_bindSourceRasters(){const{conversionParameters:t}=this.functionArguments;if(!t?.length)return{success:!1,supportsGPU:!1,error:"missing valid conversion parameters."};const e=this.sourceRasterInfos[0].clone();this.outputPixelType=this._getOutputPixelType(e.pixelType),e.pixelType=this.outputPixelType;const n=3===t.length||3===e.bandCount&&t.length>3;return e.bandCount=1,this._removeStatsHistColormapVAT(e),this.rasterInfo=e,{success:!0,supportsGPU:n}}_processPixels(t){const e=t.pixelBlocks?.[0];return null==e?null:function(t,e,n){const{pixels:s,width:r,height:o,mask:i,bandMasks:a}=t,l=r*o,c=a?.length?g.A.combineBandMasks(a):i,p=Math.min(e.length,s.length),h=n.startsWith("f"),m=!h&&n!==t.pixelType,[f,d]=(0,u.hP)(n),y=g.A.createEmptyBand(n,l);for(let t=0;t<o;t++){let n=t*r;for(let t=0;t<r;t++,n++)if(!c||c[n]){let t=0;for(let r=0;r<p;r++)t+=e[r]*s[r][n];h||(t=Math.round(t),m&&(t=t>d?d:t<f?f:t)),y[n]=t}}const x=new g.A({width:r,height:o,pixels:[y],pixelType:n,mask:c});return x.updateStatistics(),x}(e,this._normalizedWeights,this.outputPixelType)}_getWebGLParameters(){return{weights:this._normalizedWeights}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],bn.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:vn,json:{write:!0,name:"rasterFunctionArguments"}})],bn.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],bn.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)()],bn.prototype,"_normalizedWeights",null),bn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.GrayscaleFunction")],bn);const Cn=bn;var Mn;const Pn=new Et.J({0:"traditional",1:"multi-directional"},{useNumericKeys:!0}),Tn=new Et.J({1:"degree",2:"percent-rise",3:"scaled"},{useNumericKeys:!0});let Rn=Mn=class extends p{constructor(){super(...arguments),this.altitude=45,this.azimuth=315,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.slopeType="degree",this.zFactor=1,this.removeEdgeEffect=!1}clone(){return new Mn({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,slopeType:this.slopeType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,removeEdgeEffect:this.removeEdgeEffect,raster:this.raster})}};(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Rn.prototype,"altitude",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Rn.prototype,"azimuth",void 0),(0,i.Cg)([(0,a.MZ)(),(0,Yt.e)(Pn)],Rn.prototype,"hillshadeType",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0,name:"psPower"}})],Rn.prototype,"pixelSizePower",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0,name:"psZFactor"}})],Rn.prototype,"pixelSizeFactor",void 0),(0,i.Cg)([(0,a.MZ)(),(0,Yt.e)(Tn)],Rn.prototype,"slopeType",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Rn.prototype,"zFactor",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],Rn.prototype,"removeEdgeEffect",void 0),Rn=Mn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.HillshadeFunctionArguments")],Rn);const Nn=Rn;let kn=class extends w{constructor(){super(...arguments),this.functionName="Hillshade",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){const t=this.sourceRasterInfos[0];if(t.bandCount>1)return{success:!1,supportsGPU:!1,error:"hillshade-function: source data must be single band"};this.outputPixelType=this._getOutputPixelType("u8");const e=t.clone();return this._removeStatsHistColormapVAT(e),e.pixelType=this.outputPixelType,e.bandCount=1,e.statistics=[{min:0,max:255,avg:60,stddev:10}],this.rasterInfo=e,this.isGCS=e.spatialReference?.isGeographic??!1,{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];if(!e)return null;const{extent:n,primaryPixelSizes:s}=t,r=s?.[0],o=r??(n?{x:n.width/e.width,y:n.height/e.height}:{x:1,y:1}),i=(0,Gt.PP)(this.functionArguments,o,this.isGCS),a=(0,Gt.fw)(e,i);return a.pixelType=this.outputPixelType,a}_getWebGLParameters(){const t=(0,Gt.PP)(this.functionArguments,{x:1,y:1},this.isGCS),e=(0,Gt.ng)(t),{slopeType:n,zFactor:s,pixelSizeFactor:r,pixelSizePower:o}=this.functionArguments,i="scaled"===n,a=(0,u.zw)(this.outputPixelType);return{...e,zFactor:s,gcsFactor:this.isGCS?Gt.rk:1,pixelSizeFactor:i?r:0,pixelSizePower:i?o:0,isOutputRounded:a}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],kn.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:Nn,json:{write:!0,name:"rasterFunctionArguments"}})],kn.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],kn.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],kn.prototype,"isGCS",void 0),kn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.HillshadeFunction")],kn);const In=kn;var Sn;let _n=Sn=class extends p{constructor(){super(...arguments),this.rasters=[],this.processAsMultiband=!0}writeRasters(t,e){e.rasters=t.map(t=>"number"==typeof t||"string"==typeof t?t:t.toJSON())}clone(){return new Sn({operation:this.operation,processAsMultiband:this.processAsMultiband,rasters:(0,o.o8)(this.rasters)})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],_n.prototype,"operation",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],_n.prototype,"rasters",void 0),(0,i.Cg)([(0,Fe.K)("rasters")],_n.prototype,"writeRasters",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],_n.prototype,"processAsMultiband",void 0),_n=Sn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.LocalFunctionArguments")],_n);const Fn=_n;let Bn=class extends w{constructor(){super(...arguments),this.functionName="Local",this.functionArguments=null,this.rasterArgumentNames=["rasters"]}_bindSourceRasters(){const{sourceRasterInfos:t}=this,e=t[0],{bandCount:n}=e,{processAsMultiband:s}=this.functionArguments;if(t.some(t=>t.bandCount!==n))return{success:!1,supportsGPU:!1,error:"local-function: input rasters do not have same band count"};const{operation:r,rasters:o}=this.functionArguments,i=R[r];if(!(999===i||o.length===i||o.length<=1&&1===i))return{success:!1,supportsGPU:!1,error:`local-function: the length of functionArguments.rasters does not match operation's requirement: ${i}`};const a=e.clone();return a.bandCount=999!==i||s?n:1,this._removeStatsHistColormapVAT(a),this._updateStatistics(a),this._updatePixelType(a),this.rasterInfo=a,{success:!0,supportsGPU:1===a.bandCount&&i<=3}}_processPixels(t){const{pixelBlocks:e}=t;return null==e||e.some(t=>null==t)?null:St(e,this.functionArguments.operation,{processAsMultiband:this.functionArguments.processAsMultiband,outputPixelType:this.outputPixelType??void 0})}_getWebGLParameters(){const{operation:t}=this.functionArguments,e=R[t],n=Object.keys(M).find(e=>M[e]===t)?.toLowerCase()??"undefined",s=this.outputPixelType??"f32";let[r,o]=(0,u.hP)(s);const i=(0,u.zw)(s);return i&&(r-=1e-4,o+=1e-4),{imageCount:e,operationName:n,domainRange:[r,o],isOutputRounded:i}}_updateStatistics(t){const e=this.sourceRasterInfos[0],{operation:n}=this.functionArguments,s=T(n)?.domain;if(s){t.statistics=[];for(let e=0;e<t.bandCount;e++)t.statistics[e]={min:s[0],max:s[1],avg:(s[0]+s[1])/2,stddev:(s[0]+s[1])/10}}else 45===n&&e.statistics?.length&&(t.statistics=e.statistics.map(t=>({min:-t.max,max:-t.min,avg:null!=t.avg?-t.avg:void 0,stddev:null!=t.stddev?-t.stddev:void 0})))}_updatePixelType(t){const{statistics:e,pixelType:n}=this.sourceRasterInfos[0],{operation:s}=this.functionArguments,{domain:r,isInteger:o}=T(s)??{domain:null,isInteger:!1};let i="f32";if(r&&o)i=(0,u.X1)(r[0],r[1]);else if(30===s){const t=e?.[0];i=t?(0,u.X1)(t.min,t.max):(0,u.zw)(n)?n:"s32"}else if(45===s&&(0,u.zw)(n)){const t=e?.map(({max:t})=>-t),s=e?.map(({min:t})=>-t),r=t?.length?Math.min(...t):null,o=s?.length?Math.min(...s):null;i=null!=r&&null!=o?(0,u.X1)(r,o):n.startsWith("s")?n.replace("s","u"):"u1"===n||"u2"===n||"u4"===n?"s8":"u8"===n?"s16":"s32"}t.pixelType=this.outputPixelType=this._getOutputPixelType(i)}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Bn.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:Fn,json:{write:!0,name:"rasterFunctionArguments"}})],Bn.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Bn.prototype,"rasterArgumentNames",void 0),Bn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.LocalFunction")],Bn);const jn=Bn;var Zn,Gn=n(34727);let zn=Zn=class extends p{constructor(){super(...arguments),this.includedRanges=null,this.noDataValues=null,this.noDataInterpretation=0}get normalizedNoDataValues(){const{noDataValues:t}=this;if(!t?.length)return null;let e=!1;const n=t.map(t=>{if("number"==typeof t)return e=!0,[t];if("string"==typeof t){const n=t.trim().split(" ").filter(t=>""!==t.trim()).map(t=>Number(t));return e=e||n.length>0,0===n.length?null:n}return null});return e?n:null}clone(){return new Zn({includedRanges:this.includedRanges?.slice()??[],noDataValues:this.noDataValues?.slice()??[],noDataInterpretation:this.noDataInterpretation})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],zn.prototype,"includedRanges",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],zn.prototype,"noDataValues",void 0),(0,i.Cg)([(0,a.MZ)()],zn.prototype,"normalizedNoDataValues",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],zn.prototype,"noDataInterpretation",void 0),zn=Zn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.MaskFunctionArguments")],zn);const On=zn;let En=class extends w{constructor(){super(...arguments),this.functionName="Mask",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const t=this.sourceRasterInfos[0].clone(),{pixelType:e}=t;this.outputPixelType=this._getOutputPixelType(e),t.pixelType=this.outputPixelType,this.rasterInfo=t;const{includedRanges:n,normalizedNoDataValues:s}=this.functionArguments;if(!n?.length&&!s?.length)return{success:!1,supportsGPU:!1,error:"missing includedRanges or noDataValues argument"};let r=[];for(let o=0;o<t.bandCount;o++){const t=(0,$t.Wt)(e,n?.slice(2*o,2*o+2),s?.[o]);if(null==t){r=null;break}r.push(t)}this.lookups=r;const o=null!=s&&s.every(t=>t?.length===s[0]?.length);return{success:!0,supportsGPU:(!n||n.length<=2*$t.et)&&(!s||o&&s[0].length<=$t.et)}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{outputPixelType:n,lookups:s}=this,{includedRanges:r,noDataInterpretation:o,normalizedNoDataValues:i}=this.functionArguments;return(0,$t.dK)(e,{includedRanges:r,noDataValues:i,outputPixelType:n,matchAll:1===o,lookups:s})}_getWebGLParameters(){const{includedRanges:t,normalizedNoDataValues:e}=this.functionArguments,n=new Float32Array($t.et);n.fill(Gn.pq),e?.[0]?.length&&n.set(e[0]);const s=new Float32Array(6);for(let e=0;e<s.length;e+=2)s[e]=t?.[e]??-Gn.pq,s[e+1]=t?.[e+1]??Gn.pq;return t?.length&&s.set(t),{bandCount:this.sourceRasterInfos[0].bandCount,noDataValues:n,includedRanges:s}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],En.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:On,json:{write:!0,name:"rasterFunctionArguments"}})],En.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],En.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],En.prototype,"lookups",void 0),En=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.MaskFunction")],En);const Dn=En;var Vn;let Un=Vn=class extends p{constructor(){super(...arguments),this.visibleBandID=0,this.infraredBandID=1,this.scientificOutput=!1}clone(){const{visibleBandID:t,infraredBandID:e,scientificOutput:n}=this;return new Vn({visibleBandID:t,infraredBandID:e,scientificOutput:n})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Un.prototype,"visibleBandID",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Un.prototype,"infraredBandID",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Un.prototype,"scientificOutput",void 0),Un=Vn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.NDVIFunctionArguments")],Un);const Ln=Un;let Wn=class extends w{constructor(){super(...arguments),this.functionName="NDVI",this.functionArguments=null,this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const{scientificOutput:t,visibleBandID:e,infraredBandID:n}=this.functionArguments;this.outputPixelType=this._getOutputPixelType(t?"f32":"u8");const s=this.sourceRasterInfos[0],r=Math.max(e,n);if(s.bandCount<2||r>=s.bandCount)return{success:!1,supportsGPU:!1,error:"ndvi-function: source raster has insufficient amount of raster bands"};if(e<0||n<0)return{success:!1,supportsGPU:!1,error:"ndvi-function: invalid visible or infrared band id"};const o=s.clone();o.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(o),o.bandCount=1,o.keyProperties={...o.keyProperties,BandProperties:void 0};const[i,a,u,l]=t?[-1,1,0,.1]:[0,200,100,10];return o.statistics=[{min:i,max:a,avg:u,stddev:l}],this.rasterInfo=o,{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;let{visibleBandID:n,infraredBandID:s,scientificOutput:r}=this.functionArguments;if(this.rasterInfo.storageInfo.isBsqTile){const{rawInputBandIds:t}=this;s=t.indexOf(s),n=t.indexOf(n)}return function(t,e,n,s){const{mask:r,pixels:o,width:i,height:a}=t,u=o[n],l=o[e],c=l.length,p=s?new Uint8Array(c):new Float32Array(c),h=s?100:1,m=s?100.5:0;for(let t=0;t<c;t++)if(null==r||r[t]){const e=u[t],n=l[t],s=e+n;s&&(p[t]=(e-n)/s*h+m)}const f=new g.A({width:i,height:a,mask:r,pixelType:s?"u8":"f32",pixels:[p]});return f.updateStatistics(),f}(e,n,s,!r)}_getWebGLParameters(){const{visibleBandID:t,infraredBandID:e,scientificOutput:n}=this.functionArguments;return{bandIndexMat3:qt(this.isInputBandIdsSwizzled?[0,1,2]:[e,t,0]),scaled:!n}}_getInputBandIds(t){const{visibleBandID:e,infraredBandID:n}=this.functionArguments;return[n,e,0].map(e=>t[e])}_swizzleBandIds(t){const{visibleBandID:e,infraredBandID:n}=this.functionArguments,s=[e,n].map(e=>t.indexOf(e));return s[2]=s[1],this.isInputBandIdsSwizzled=!0,this.swizzledBandSelection=s,!1}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Wn.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:Ln,json:{write:!0,name:"rasterFunctionArguments"}})],Wn.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Wn.prototype,"rasterArgumentNames",void 0),Wn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.NDVIFunction")],Wn);const $n=Wn;var Kn;let Hn=Kn=class extends p{constructor(){super(...arguments),this.inputRanges=null,this.outputValues=null,this.noDataRanges=null,this.allowUnmatched=!1,this.isLastInputRangeInclusive=!1}clone(){return new Kn({inputRanges:[...this.inputRanges],outputValues:[...this.outputValues],noDataRanges:[...this.noDataRanges],allowUnmatched:this.allowUnmatched,isLastInputRangeInclusive:this.isLastInputRangeInclusive})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Hn.prototype,"inputRanges",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Hn.prototype,"outputValues",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Hn.prototype,"noDataRanges",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Hn.prototype,"allowUnmatched",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Hn.prototype,"replacementValue",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Hn.prototype,"isLastInputRangeInclusive",void 0),Hn=Kn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.RemapFunctionArguments")],Hn);const qn=Hn;let Jn=class extends w{constructor(){super(...arguments),this.functionName="Remap",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null}_bindSourceRasters(){const t=this.sourceRasterInfos[0].clone(),{pixelType:e}=t;t.bandCount=1;const{statistics:n}=t;this._removeStatsHistColormapVAT(t);const{allowUnmatched:s,replacementValue:r,outputValues:o,inputRanges:i,noDataRanges:a,isLastInputRangeInclusive:l}=this.functionArguments,c="unknown"===this.outputPixelType||null==this.outputPixelType;if(this.outputPixelType=this._getOutputPixelType(e),o?.length){const i=n?.[0];if(s&&null==r){let e=i?.min??o[0],n=i?.max??o[0];e=Math.min.apply(null,[...o,e]),n=Math.max.apply(null,[...o,n]),t.statistics=[{min:e,max:n,avg:i?.avg??0,stddev:i?.stddev??-1}]}else{let e=o[0],n=e;for(let t=0;t<o.length;t++)e=e>o[t]?o[t]:e,n=n>o[t]?n:o[t];s&&null!=r&&(e=Math.min(e,r),n=Math.max(n,r)),t.statistics=[{min:e,max:n,avg:i?.avg??0,stddev:i?.stddev??-1}]}if(c){const{min:n,max:i}=t.statistics[0],a=["u8","s8","u16","s16","u32","s32","f32"],l=a.find(t=>{const[e,s]=(0,u.hP)(t);return n>=e&&i<=s})??"f64";o.some(t=>Math.floor(t)!==t)?this.outputPixelType="f64"===l?"f64":"f32":this.outputPixelType=s&&null==r&&a.indexOf(e)>a.indexOf(l)?e:l}}return t.pixelType=this.outputPixelType,this.rasterInfo=t,this.lookup=s?null:(0,$t.XU)({srcPixelType:e,inputRanges:i,outputValues:o,noDataRanges:a,allowUnmatched:s,isLastInputRangeInclusive:l,outputPixelType:this.outputPixelType}),{success:!0,supportsGPU:(!o||o.length<=$t.et)&&(!a||a.length<=$t.et)}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{lookup:n,outputPixelType:s}=this;if(n){const t=(0,$t.eH)(e,{lut:[n.lut],offset:n.offset,outputPixelType:s});return null!=t&&n.mask&&(t.mask=(0,$t.UK)(e.pixels[0],e.mask,n.mask,n.offset,"u8")),t}const{inputRanges:r,outputValues:o,noDataRanges:i,allowUnmatched:a,isLastInputRangeInclusive:u,replacementValue:l}=this.functionArguments;return(0,$t.Ew)(e,{inputRanges:r,outputValues:o,noDataRanges:i,outputPixelType:s,allowUnmatched:a,isLastInputRangeInclusive:u,replacementValue:l})}_getWebGLParameters(){const{allowUnmatched:t,noDataRanges:e,isLastInputRangeInclusive:n}=this.functionArguments,s=this.functionArguments.inputRanges??[],r=this.functionArguments.outputValues??[],o=(0,$t.bL)(s,r,n),i=new Float32Array(2*$t.et);return i.fill(Gn.pq),e?.length&&i.set(e),{allowUnmatched:t,rangeMaps:o,noDataRanges:i,clampRange:(0,u.hP)(this.outputPixelType),replacementValue:this.functionArguments.replacementValue}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Jn.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:qn,json:{write:!0,name:"rasterFunctionArguments"}})],Jn.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Jn.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Jn.prototype,"lookup",void 0),Jn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.RemapFunction")],Jn);const Xn=Jn;var Yn;let Qn=Yn=class extends Nn{readColorRamp(t){if("string"==typeof t){const e=ge.kH.jsonValues.find(e=>e.toLowerCase()===t.toLowerCase());return e?(0,ge.M5)(ge.kH.fromJSON(e)):null}return"toJSON"in t?t.toJSON():t}clone(){return new Yn({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,slopeType:this.slopeType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,removeEdgeEffect:this.removeEdgeEffect,colorRamp:this.colorRamp,colormap:this.colormap,raster:this.raster})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Qn.prototype,"colorRamp",void 0),(0,i.Cg)([(0,ye.w)("colorRamp")],Qn.prototype,"readColorRamp",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:!0}})],Qn.prototype,"colormap",void 0),Qn=Yn=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ShadedReliefFunctionArguments")],Qn);const ts=Qn;let es=class extends w{constructor(){super(...arguments),this.functionName="ShadedRelief",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){const t=this.sourceRasterInfos[0];if(t.bandCount>1)return{success:!1,supportsGPU:!1,error:"shadedrelief-function: source data must be single band"};let{colorRamp:e,colormap:n}=this.functionArguments;if(!e&&!n?.length)return{success:!1,supportsGPU:!1,error:"shadedrelief-function: a color ramp argument must be specified"};this.outputPixelType=this._getOutputPixelType("u8");const s=t.clone();this._removeStatsHistColormapVAT(s),s.pixelType=this.outputPixelType,s.bandCount=3,s.statistics=[{min:0,max:255,avg:60,stddev:10},{min:0,max:255,avg:60,stddev:10},{min:0,max:255,avg:60,stddev:10}],this.rasterInfo=s,this.isGCS=s.spatialReference?.isGeographic??!1,n?.length||(n=(0,ge.R8)(e,{interpolateAlpha:!0}));const{indexedColormap:r,offset:o}=(0,$t.zg)({colormap:n});if(!r?.length)return{success:!1,supportsGPU:!1,error:"shadedrelief-function: a valid colorramp is required"};const i=(0,ge.S2)(r);return this.lookup={indexedColormap:r,offset:o,hsvMap:i},{success:!0,supportsGPU:(0,ke.WN)(r)}}_processPixels(t){const e=t.pixelBlocks?.[0];if(!e||!this.lookup)return null;let n=t.primaryPixelSizes?.[0];if(null==n){const{extent:s}=t;n=s?{x:s.width/e.width,y:s.height/e.height}:{x:1,y:1}}const s=(0,Gt.PP)(this.functionArguments,n,this.isGCS),r=(0,Gt.fw)(e,s),o=this.sourceRasterInfos[0].statistics?.[0]??{min:0,max:8e3};return(0,Gt.SC)(r,e,this.lookup.hsvMap,o),r.pixelType=this.outputPixelType,r}_getWebGLParameters(){const t=(0,Gt.PP)(this.functionArguments,{x:1,y:1},this.isGCS),e=(0,Gt.ng)(t),{slopeType:n,zFactor:s,pixelSizeFactor:r,pixelSizePower:o}=this.functionArguments,i="scaled"===n,{indexedColormap:a,offset:l}=this.lookup,c=this.sourceRasterInfos[0].statistics?.[0],p=(0,u.zw)(this.outputPixelType);return{...e,indexedColormap:a,offset:l,zFactor:s,gcsFactor:this.isGCS?Gt.rk:1,pixelSizeFactor:i?r:0,pixelSizePower:i?o:0,minValue:c?.min??0,maxValue:c?.max??8e3,isOutputRounded:p}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],es.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:ts,json:{write:!0,name:"rasterFunctionArguments"}})],es.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],es.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],es.prototype,"isGCS",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],es.prototype,"lookup",void 0),es=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.ShadedReliefFunction")],es);const ns=es;var ss;const rs=new Et.J({1:"degree",2:"percent-rise",3:"adjusted"},{useNumericKeys:!0});let os=ss=class extends p{constructor(){super(...arguments),this.slopeType="degree",this.zFactor=1,this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.removeEdgeEffect=!1}clone(){return new ss({slopeType:this.slopeType,zFactor:this.zFactor,pixelSizePower:this.pixelSizePower,pixelSizeFactor:this.pixelSizeFactor,removeEdgeEffect:this.removeEdgeEffect,raster:this.raster})}};(0,i.Cg)([(0,Yt.e)(rs)],os.prototype,"slopeType",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],os.prototype,"zFactor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"psPower",write:!0}})],os.prototype,"pixelSizePower",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"psZFactor",write:!0}})],os.prototype,"pixelSizeFactor",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],os.prototype,"removeEdgeEffect",void 0),os=ss=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.SlopeFunctionArguments")],os);const is=os;let as=class extends w{constructor(){super(...arguments),this.functionName="Slope",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isGCS=!1}_bindSourceRasters(){this.outputPixelType=this._getOutputPixelType("f32");const t=this.sourceRasterInfos[0].clone();return t.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(t),t.statistics="percent-rise"!==this.functionArguments.slopeType?[{min:0,max:90,avg:1,stddev:1}]:null,t.bandCount=1,this.rasterInfo=t,this.isGCS=t.spatialReference?.isGeographic??!1,{success:!0,supportsGPU:!0}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return null;const{zFactor:n,slopeType:s,pixelSizePower:r,pixelSizeFactor:o}=this.functionArguments,{isGCS:i}=this,{extent:a,primaryPixelSizes:u}=t,l=u?.[0],c=l??(a?{x:a.width/e.width,y:a.height/e.height}:{x:1,y:1});return(0,Gt.yy)(e,{zFactor:n,slopeType:s,pixelSizePower:r,pixelSizeFactor:o,isGCS:i,resolution:c})}_getWebGLParameters(){const{zFactor:t,slopeType:e,pixelSizeFactor:n,pixelSizePower:s}=this.functionArguments;return{zFactor:this.isGCS&&t>=1?t*Gt.rk:t,slopeType:e,pixelSizeFactor:n??0,pixelSizePower:s??0,isOutputRounded:(0,u.zw)(this.outputPixelType)}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],as.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:is,json:{write:!0,name:"rasterFunctionArguments"}})],as.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],as.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],as.prototype,"isGCS",void 0),as=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.SlopeFunction")],as);const us=as,ls=new Et.J({1:"min",2:"max",3:"mean",4:"stddev",5:"median",6:"majority",7:"minority"},{useNumericKeys:!0});function cs(t,e){const{fillNoDataOnly:n}=e,{band:s,width:r,height:o,mask:i,outBand:a}=t;if(n&&!i)return void a.set(s);const{statisticsType:u,kernelRows:l,kernelCols:c}=e,p="stddev"===u,h=r*o,m=new Float64Array(h),f=new Float64Array(h),g=new Uint32Array(h);for(let t=0;t<o;t++){const e=t*r;let n=0,o=0,a=0;for(let t=0;t<c;t++)i&&!i[e+t]||(n+=s[e+t],p&&(o+=s[e+t]**2),a++);m[e]=n,f[e]=o,g[e]=a;for(let t=1;t<=r-c;t++){const r=e+t-1,u=r+c;i?(i[r]&&(a--,n-=s[r],p&&(o-=s[r]**2)),i[u]&&(a++,n+=s[u],p&&(o+=s[u]**2))):(n-=s[r],n+=s[u],p&&(o-=s[r]**2,o+=s[u]**2)),m[e+t]=n,g[e+t]=a,p&&(f[e+t]=o)}}const d=new Float64Array(h),y=new Float64Array(h),x=new Uint32Array(h),w=l*r;for(let t=0;t<=r-c;t++){let e=0,n=0,s=0;for(let o=0;o<l;o++){const i=o*r+t;e+=m[i],s+=g[i],p&&(n+=f[i])}d[t]=e,y[t]=n,x[t]=s;for(let i=1;i<=o-l;i++){const o=(i-1)*r+t,a=o+w;e-=m[o],e+=m[a],s-=g[o],s+=g[a],p&&(n-=f[o],n+=f[a]),d[i*r+t]=e,y[i*r+t]=n,x[i*r+t]=s}}const A=Math.floor(l/2),v=Math.floor(c/2);for(let t=A;t<o-A;t++){const e=t*r;for(let s=v;s<r-v;s++){const o=(t-A)*r+s-v,u=x[o];if(0===u||n&&(!i||i[e+s]))continue;const l=d[o]/u,c=p?Math.sqrt((y[o]-d[o]*l)/u):l;a[e+s]=c,i&&(i[e+s]=255)}}}function ps(t,e){const{fillNoDataOnly:n}=e,{band:s,width:r,height:o,mask:i,outBand:a}=t;if(n&&!i)return void a.set(s);const{kernelRows:u,kernelCols:l,statisticsType:c}=e,p=Math.floor(u/2),h=Math.floor(l/2),m="min"===c,f=a.slice(),g=new Uint32Array(r*o);for(let t=p;t<o-p;t++){const e=t*r;for(let t=h;t<r-h;t++){let n=m?Number.MAX_VALUE:-Number.MAX_VALUE,o=0;for(let a=0;a<u;a++)for(let u=0;u<l;u++){const l=e+t+(a-p)*r+u-h;i&&!i[l]||(n=m?Math.min(n,s[l]):Math.max(n,s[l]),o++)}i?(f[e+t]=0===o?0:n,g[e+t]=o):a[e+t]=0===o?0:n}}if(i)for(let t=p;t<o-p;t++){const e=t*r;for(let t=h;t<r-h;t++)if(g[e+t]){if(n&&i[e+t])continue;a[e+t]=f[e+t],i[e+t]=255}}}function hs(t,e){const{fillNoDataOnly:n}=e,{band:s,width:r,height:o,mask:i,outBand:a}=t;if(n&&!i)return void a.set(s);const{kernelRows:u,kernelCols:l}=e,c=Math.floor(u/2),p=Math.floor(l/2),h=a.slice(),m=new Uint32Array(r*o);for(let t=c;t<o-c;t++){const e=t*r;for(let t=p;t<r-p;t++){if(n&&i?.[e+t])continue;const o=[];for(let n=0;n<u;n++)for(let a=0;a<l;a++){const u=e+t+(n-c)*r+a-p;i&&!i[u]||o.push(s[u])}o.length&&(o.sort((t,e)=>t-e),i?(h[e+t]=o[Math.floor((o.length-1)/2)],m[e+t]=o.length):a[e+t]=o[Math.floor((o.length-1)/2)])}}if(i)for(let t=c;t<o-c;t++){const e=t*r;for(let t=p;t<r-p;t++)if(m[e+t]){if(n&&i[e+t])continue;a[e+t]=h[e+t],i[e+t]=255}}}function ms(t,e){const{fillNoDataOnly:n}=e,{band:s,width:r,height:o,mask:i,outBand:a}=t;if(n&&!i)return void a.set(s);const{kernelRows:u,kernelCols:l}=e,c=Math.floor(u/2),p=Math.floor(l/2),h="majority"===e.statisticsType,m=u*l,f=a.slice(),g=new Uint32Array(r*o);for(let t=c;t<o-c;t++){const e=t*r;for(let t=p;t<r-p;t++){if(n&&i?.[e+t])continue;const o=new Map;for(let n=0;n<u;n++)for(let a=0;a<l;a++){const u=e+t+(n-c)*r+a-p;if(i&&!i[u])continue;const l=s[u];o.set(l,o.has(l)?o.get(l)+1:1)}if(0===o.size)continue;let d=0,y=0,x=h?0:m+1;for(const t of o.keys())y=o.get(t),h===y>x&&(x=y,d=t);i?(f[e+t]=d,g[e+t]=o.size):a[e+t]=d}}if(i)for(let t=c;t<o-c;t++){const e=t*r;for(let t=p;t<r-p;t++)if(g[e+t]){if(n&&i[e+t])continue;a[e+t]=f[e+t],i[e+t]=255}}}var fs;let gs=fs=class extends p{constructor(){super(...arguments),this.rows=3,this.cols=3,this.fillNoDataOnly=!1,this.statisticsType="min"}clone(){return new fs({rows:this.rows,cols:this.cols,fillNoDataOnly:this.fillNoDataOnly,statisticsType:this.statisticsType,raster:(0,o.o8)(this.raster)})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,read:{source:["kernelRows","rows"],reader:(t,e)=>Number(t??e?.kernelRows??3)}}})],gs.prototype,"rows",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0,read:{source:["kernelCols","cols"],reader:(t,e)=>Number(t??e?.kernelCols??3)}}})],gs.prototype,"cols",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],gs.prototype,"fillNoDataOnly",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:{source:["statisticsType","type"],reader:(t,e)=>ls.fromJSON(e?.statisticsType??e?.type)??"min"},write:{target:"type"}}}),(0,Yt.e)(ls)],gs.prototype,"statisticsType",void 0),gs=fs=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.StatisticsFunctionArguments")],gs);const ds=gs;let ys=class extends w{constructor(){super(...arguments),this.functionName="Statistics",this.rasterArgumentNames=["raster"]}_bindSourceRasters(){const{type:t}=this.functionArguments.toJSON();if(t<1||t>7)return{success:!1,supportsGPU:!1,error:`statistics-function: the given statistics type is not supported ${t}`};const e=this.sourceRasterInfos[0];this.outputPixelType=this._getOutputPixelType(e.pixelType);const n=e.clone();n.pixelType=this.outputPixelType;const{statisticsType:s}=this.functionArguments;return"stddev"===s&&this._removeStatsHistColormapVAT(n),this.rasterInfo=n,{success:!0,supportsGPU:n.bandCount<=3&&t<5}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return e;const{statisticsType:n,rows:s,cols:r,fillNoDataOnly:o}=this.functionArguments;return function(t,e){const{mask:n}=t,{fillNoDataOnly:s}=e;if(s&&!n)return t;const{pixels:r,width:o,height:i,bandMasks:a,pixelType:u}=t,l=r.length,c=o*i,p=[],{kernelRows:h,kernelCols:m,statisticsType:f,mirrorEdges:d}=e;if(s&&!n)return t;const y=e.outputPixelType??u,x=[];for(let t=0;t<l;t++){const u=r[t],l=g.A.createEmptyBand(y,c);s&&l.set(u);const w=a?.[t]??n,A=w?.slice()??null,v={band:u,width:o,height:i,mask:A,outBand:l};switch(f){case"min":case"max":ps(v,e);break;case"mean":case"stddev":cs(v,e);break;case"median":hs(v,e);break;case"majority":case"minority":ms(v,e)}d&&!s&&Ye(l,o,i,h,m),p.push(l),A&&x.push(A)}let w=x[0]??n;x.length!==l&&(x.length=0),l>1&&a?.length&&(w=g.A.combineBandMasks(a));const A=new g.A({pixelType:y,width:o,height:i,pixels:p,bandMasks:a&&x.length?x:null,mask:w});return A.updateStatistics(),A}(e,{kernelRows:s,kernelCols:r,fillNoDataOnly:o,outputPixelType:this.outputPixelType,statisticsType:n,mirrorEdges:!0})}_getWebGLParameters(){const{rows:t,cols:e,statisticsType:n,fillNoDataOnly:s}=this.functionArguments;return{fillNoDataOnly:s,kernelRows:t,kernelCols:e,statisticsType:n,clampRange:(0,u.hP)(this.outputPixelType)}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],ys.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:ds,json:{write:!0,name:"rasterFunctionArguments"}})],ys.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],ys.prototype,"rasterArgumentNames",void 0),ys=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.StatisticsFunction")],ys);const xs=ys;var ws;let As=ws=class extends p{constructor(){super(...arguments),this.statistics=null,this.histograms=null}readStatistics(t,e){if(!t?.length)return null;const n=[];return t.forEach(t=>{const e={min:t.min,max:t.max,avg:t.avg??t.mean,stddev:t.stddev??t.standardDeviation};n.push(e)}),n}writeStatistics(t,e,n){if(!t?.length)return;const s=[];t.forEach(t=>{const e={...t,mean:t.avg,standardDeviation:t.stddev};delete e.avg,delete e.stddev,s.push(e)}),e[n]=s}clone(){return new ws({statistics:(0,o.o8)(this.statistics),histograms:(0,o.o8)(this.histograms)})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],As.prototype,"statistics",void 0),(0,i.Cg)([(0,ye.w)("statistics")],As.prototype,"readStatistics",null),(0,i.Cg)([(0,Fe.K)("statistics")],As.prototype,"writeStatistics",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],As.prototype,"histograms",void 0),As=ws=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.StatisticsHistogramFunctionArguments")],As);const vs=As;let bs=class extends w{constructor(){super(...arguments),this.functionName="StatisticsHistogram",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){const t=this.sourceRasterInfos[0];this.outputPixelType=this._getOutputPixelType("u8");const e=t.clone(),{statistics:n,histograms:s}=this.functionArguments;return s&&(e.histograms=s),n&&(e.statistics=n),this.rasterInfo=e,{success:!0,supportsGPU:!0}}_processPixels(t){return t.pixelBlocks?.[0]}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],bs.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:vs,json:{write:!0,name:"rasterFunctionArguments"}})],bs.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],bs.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],bs.prototype,"indexedColormap",void 0),(0,i.Cg)([(0,a.MZ)()],bs.prototype,"isNoopProcess",void 0),bs=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.StatisticsHistogramFunction")],bs);const Cs=bs;var Ms;const Ps=new Et.J({0:"none",3:"standard-deviation",4:"histogram-equalization",5:"min-max",6:"percent-clip",9:"sigmoid"},{useNumericKeys:!0});let Ts=Ms=class extends p{constructor(){super(...arguments),this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.histograms=null,this.statistics=null,this.stretchType="none",this.useGamma=!1}writeStatistics(t,e,n){t?.length&&(Array.isArray(t[0])||(t=t.map(t=>[t.min,t.max,t.avg,t.stddev])),e[n]=t)}clone(){return new Ms({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,statistics:(0,o.o8)(this.statistics),gamma:(0,o.o8)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,histograms:(0,o.o8)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment,raster:this.raster})}};(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],Ts.prototype,"computeGamma",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"dra",write:!0}})],Ts.prototype,"dynamicRangeAdjustment",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],Ts.prototype,"gamma",void 0),(0,i.Cg)([(0,a.MZ)()],Ts.prototype,"histograms",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Ts.prototype,"maxPercent",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Ts.prototype,"minPercent",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Ts.prototype,"numberOfStandardDeviations",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"max",write:!0}})],Ts.prototype,"outputMax",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"min",write:!0}})],Ts.prototype,"outputMin",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Ts.prototype,"sigmoidStrengthLevel",void 0),(0,i.Cg)([(0,a.MZ)({json:{type:[[Number]],write:!0}})],Ts.prototype,"statistics",void 0),(0,i.Cg)([(0,Fe.K)("statistics")],Ts.prototype,"writeStatistics",null),(0,i.Cg)([(0,Yt.e)(Ps)],Ts.prototype,"stretchType",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],Ts.prototype,"useGamma",void 0),Ts=Ms=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.StretchFunctionArguments")],Ts);const Rs=Ts;let Ns=class extends w{constructor(){super(...arguments),this.functionName="Stretch",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.lookup=null,this.cutOffs=null}_bindSourceRasters(){this.lookup=null,this.cutOffs=null;const t=this.sourceRasterInfos[0],{pixelType:e}=t,{functionArguments:n}=this,{dynamicRangeAdjustment:s,gamma:r,useGamma:o}=n;if(!s&&["u8","u16","s8","s16"].includes(e)){const s=(0,qe.DP)(n.toJSON(),{rasterInfo:t}),i=(0,u.zw)(this.outputPixelType)?"round":"float";this.lookup=(0,qe.RP)({pixelType:e,...s,gamma:o?r:null,rounding:i}),this.cutOffs=s}else s||(this.cutOffs=(0,qe.DP)(n.toJSON(),{rasterInfo:t}));this.outputPixelType=this._getOutputPixelType(e);const i=t.clone();i.pixelType=this.outputPixelType,this._removeStatsHistColormapVAT(i),"u8"===this.outputPixelType&&(i.keyProperties.DataType="processed");const{outputMin:a=0,outputMax:l=255}=this.functionArguments;i.statistics=[];for(let t=0;t<i.bandCount;t++)i.statistics[t]={min:a,max:l};return this.rasterInfo=i,{success:!0,supportsGPU:!s}}_processPixels(t){const e=t.pixelBlocks?.[0];if(null==e)return e;const{lookup:n}=this;if(n)return(0,$t.eH)(e,{...n,outputPixelType:this.rasterInfo.pixelType});const{functionArguments:s}=this,r=this.cutOffs||(0,qe.DP)(s.toJSON(),{rasterInfo:this.sourceRasterInfos[0],pixelBlock:e}),o=s.useGamma?s.gamma:null;return(0,qe._N)(e,{...r,gamma:o,outputPixelType:this.outputPixelType})}_getWebGLParameters(){const{outputMin:t=0,outputMax:e=255,gamma:n,useGamma:s}=this.functionArguments,r=this.rasterInfo.bandCount>=2?3:1,o=s&&n?.length?(0,qe.Nh)(r,n):[1,1,1],{minCutOff:i,maxCutOff:a}=this.cutOffs??{minCutOff:[0,0,0],maxCutOff:[255,255,255]};1===i.length&&(i[1]=i[2]=i[0],a[1]=a[2]=a[0]);const l=a.map((n,s)=>(e-t)/(a[s]-i[s])),c=(0,u.zw)(this.outputPixelType),p=s&&n?[n[0],n[1]??n[0],n[2]??n[0]]:[1,1,1],h=s?[o[0],o[1]??o[0],o[2]??o[0]]:[1,1,1];return{bandCount:r,minOutput:t,maxOutput:e,minCutOff:i,maxCutOff:a,factor:l,useGamma:s,gamma:p,gammaCorrection:h,stretchType:this.functionArguments.stretchType,isOutputRounded:c,type:"stretch"}}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Ns.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:Rs,json:{write:!0,name:"rasterFunctionArguments"}})],Ns.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Ns.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Ns.prototype,"lookup",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Ns.prototype,"cutOffs",void 0),Ns=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.StretchFunction")],Ns);const ks=Ns;var Is;let Ss=Is=class extends p{constructor(){super(...arguments),this.attributeTableAsRecordSet=null}clone(){return new Is({attributeTableAsRecordSet:(0,o.o8)(this.attributeTableAsRecordSet)})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],Ss.prototype,"attributeTableAsRecordSet",void 0),Ss=Is=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.TableFunctionArguments")],Ss);const _s=Ss;let Fs=class extends w{constructor(){super(...arguments),this.functionName="Table",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){const t=this.sourceRasterInfos[0];if(t.bandCount>1||t.pixelType.startsWith("f"))return{success:!1,supportsGPU:!1,error:"table-function: Source data must be single band and integer pixel type."};const{attributeTableAsRecordSet:e}=this.functionArguments;if(!e)return{success:!1,supportsGPU:!1,error:"table-function: Missing attributeTableAsRecordSet argument."};this.outputPixelType=this._getOutputPixelType(t.pixelType);const n=t.clone();return n.pixelType=this.outputPixelType,n.bandCount=1,"thematic"!==n.dataType&&(n.keyProperties=n.keyProperties?{...n.keyProperties,DataType:"thematic"}:{DataType:"thematic"}),this.rasterInfo=n,{success:!0,supportsGPU:!0}}_processPixels(t){return t.pixelBlocks?.[0]}};(0,i.Cg)([(0,a.MZ)({json:{write:!0,name:"rasterFunction"}})],Fs.prototype,"functionName",void 0),(0,i.Cg)([(0,a.MZ)({type:_s,json:{write:!0,name:"rasterFunctionArguments"}})],Fs.prototype,"functionArguments",void 0),(0,i.Cg)([(0,a.MZ)()],Fs.prototype,"rasterArgumentNames",void 0),(0,i.Cg)([(0,a.MZ)()],Fs.prototype,"isNoopProcess",void 0),Fs=(0,i.Cg)([(0,a.$K)("esri.layers.raster.functions.TableFunction")],Fs);const Bs=Fs,js=new Map;function Zs(t,e){const{rasterFunctionArguments:n}=t;n&&(n.rasters||[n.raster,n.raster2]).forEach(t=>{t&&"number"!=typeof t&&("string"==typeof t?t.startsWith("http")&&(e.includes(t)||e.push(t)):"rasterFunctionArguments"in t&&Zs(t,e))})}function Gs(t,e){e=e??{};try{if("function"in(t=(0,o.o8)(t))&&"arguments"in t&&t.arguments){const n=Ls(t,new Map,e);if($s(n),!n.renderingRule)throw new r.A("raster-function-helper","Unsupported raster function json.");t=n.renderingRule}if("rasterFunction"in t){const n=Es(t=Os(t),e);return n.isRoot=!0,n}}catch{}throw new r.A("raster-function-helper","unsupported raster function json.")}function zs(t){return!!(t&&"object"==typeof t&&t.rasterFunction&&t.rasterFunctionArguments)}function Os(t){const{rasterFunction:e,rasterFunctionArguments:n}=t,s={};for(const t in n){let e=n[t];const r=t.toLowerCase();if("rasters"===r&&Array.isArray(e))s.rasters=e.map(t=>zs(t)?Os(t):t);else switch(zs(e)&&(e=Os(e)),r){case"dra":s.dra=e;break;case"pspower":s.psPower=e;break;case"pszfactor":s.psZFactor=e;break;case"bandids":s.bandIds=e;break;default:s[t[0].toLowerCase()+t.slice(1)]=e}}return"Local"!==e||s.rasters?.length||(s.rasters=["$$"]),{...t,rasterFunctionArguments:s}}function Es(t,e){const{rasterFunction:n,rasterFunctionArguments:s}=t,o=t.outputPixelType?.toLowerCase();if(null==n||!js.has(n))throw new r.A("raster-function-helper",`unsupported raster function: ${n}`);const i=js.get(n),a=("function"==typeof i.ctor?i.ctor:i.ctor.default).fromJSON({...t,outputPixelType:o}),{rasterArgumentNames:u}=a,l=[],c=function(t,e){return"rasters"===e[0]&&Array.isArray(t.rasters)?t.rasters:e.map(e=>t[e])}(s,u),p="rasters"===u[0]||u.length>1,h=[];for(let t=0;t<c.length;t++){const n=c[t];let s;null==n||"string"==typeof n&&n.startsWith("$")?l.push(e?.raster):"string"==typeof n?e[n]&&l.push(e[n]):"number"!=typeof n&&"rasterFunction"in n&&(s=Es(n,e),p||(a.functionArguments[u[t]]=s),l.push(s)),p&&h.push(s??n)}if(p&&("rasters"===u[0]?a.functionArguments.rasters=h:u.forEach((t,e)=>{a.functionArguments[t]=h[e]})),e){a.sourceRasters=l;const t=e.raster?.url;t&&(a.mainPrimaryRasterId=t)}return a}function Ds(t,e){if(t&&e)for(const n in t){const s=t[n];s&&"object"==typeof s&&"type"in s&&("RasterFunctionTemplate"===s.type?Ds(s.arguments,e):"RasterFunctionVariable"===s.type&&null!=e[s.name]&&(s.value=e[s.name]))}}function Vs(t,e){if(!t||"object"!=typeof t)return t;const{value:n}=t;if(!n||"object"!=typeof n)return t.isDataset?"$$":n;if(Array.isArray(n))return 0===n.length?[]:n.map(t=>t&&"object"==typeof t&&"RasterFunctionVariable"===t.type?Vs(t,e):t);if("value"in n&&["number","string","boolean"].includes(typeof n.value))return n.value;if(t.isDataset&&"Scalar"!==n.type)return"$$";if(!("type"in n))return n;let s=n;switch(n.type){case"Scalar":s=n.value;break;case"AlgorithmicColorRamp":s=Us(n);break;case"MultiPartColorRamp":s={type:"multipart",colorRamps:n.ArrayOfColorRamp.map(Us)};break;case"ArgumentArray":if(n.elements?.length&&"RasterStatistics"!==n.elements[0].type){const t=[];for(let s=0;s<n.elements.length;s++){const o=n.elements[s],{type:i}=o;if(i)if("RasterFunctionTemplate"===i){const{renderingRule:n}=Ls(o,e);t.push(n),null!=o._object_id&&e.set(o._object_id,n)}else{if("RasterFunctionVariable"!==i)throw new r.A("raster-function-helper","unsupported raster function json.");{const n=Vs(o,e);t.push(n),null!=o._object_id&&e.set(o._object_id,n)}}else t.push(o)}s=t}else s=n.elements}return null!=n._object_id&&e.set(n._object_id,s),s}function Us(t){const e=t.algorithm??"esriHSVAlgorithm";let{FromColor:n,ToColor:r}=t;if(!Array.isArray(n)){const{r:t,g:e,b:r}=(0,s.$)({h:n.Hue,s:n.Saturation,v:n.Value});n=[t,e,r,n.AlphaValue]}if(!Array.isArray(r)){const{r:t,g:e,b:n}=(0,s.$)({h:r.Hue,s:r.Saturation,v:r.Value});r=[t,e,n,r.AlphaValue]}return{type:"algorithmic",algorithm:e,fromColor:n,toColor:r}}function Ls(t,e,n){n&&Ds(t,n);const s={renderingRule:{},templates:e};return Ws(t,s),s}function Ws(t,e){if(!t||!e.renderingRule)return;const{renderingRule:n,templates:s}=e,{function:r,arguments:o,_object_id:i}=t;if(!r||!o)return;null!=i&&s.set(i,n),n.rasterFunction=r.type.replace("Function",""),n.outputPixelType=r.pixelType;const a={};n.rasterFunctionArguments=a;for(const t in o){if("type"===t||"object_id"===t||"_object_ref_id"===t)continue;const e=o[t];e&&"object"==typeof e&&"type"in e&&("RasterFunctionTemplate"===e.type||"RasterFunctionVariable"===e.type)?("RasterFunctionVariable"===e.type?a[t]=Vs(e,s):(n.rasterFunctionArguments[t]={},Ws(e,{renderingRule:n.rasterFunctionArguments[t],templates:s})),null!=e._object_id&&s.set(e._object_id,a[t])):a[t]=e}switch(a.DEM&&!a.Raster&&(a.Raster=a.DEM,delete a.DEM),n.rasterFunction){case"Stretch":!function(t){t.Statistics?.length&&"object"==typeof t.Statistics&&(t.Statistics=t.Statistics.map(t=>[t.min,t.max,t.mean,t.standardDeviation])),null!=t.NumberOfStandardDeviation&&(t.NumberOfStandardDeviations=t.NumberOfStandardDeviation,delete t.NumberOfStandardDeviation)}(a);break;case"Colormap":!function(t){"randomcolorramp"===t.ColorRamp?.type?.toLowerCase()&&(delete t.ColorRamp,t.ColormapName="Random"),0===t.ColorSchemeType&&delete t.ColorRamp}(a);break;case"Convolution":!function(t){null!=t.ConvolutionType&&(t.Type=t.ConvolutionType,delete t.ConvolutionType)}(a);break;case"Mask":!function(t){t.NoDataValues?.length&&"string"==typeof t.NoDataValues[0]&&(t.NoDataValues=t.NoDataValues.filter(t=>""!==t).map(t=>Number(t)))}(a)}}function $s(t){const{renderingRule:e,templates:n}=t;if("object"!=typeof e||!e?.rasterFunctionArguments||!n.size)return;const{rasterFunctionArguments:s}=e;for(const t in s){const e=s[t],o="_object_ref_id"===t?e:e&&"object"==typeof e&&"_object_ref_id"in e?e._object_ref_id:null;if(null!=o){if(!n.has(o))throw new r.A("raster-function-helper",`unsupported raster function json. _object_ref_id: ${o} does not exist`);const e=n.get(o);"_object_ref_id"!==t?s[t]=e:e&&"object"==typeof e&&Object.assign(s,e);continue}e&&"object"==typeof e&&(e.rasterFunctionArguments&&$s({renderingRule:e,templates:n}),Array.isArray(e)&&e.forEach((t,s)=>{if(t&&"object"==typeof t)if(null!=t._object_ref_id){if(!n.has(t._object_ref_id))throw new r.A("raster-function-helper",`unsupported raster function json. _object_ref_id: ${e} does not exist`);const i=n.get(o);i&&"object"==typeof i?Object.assign(t,i):e[s]=i}else $s({renderingRule:t,templates:n})}))}}js.set("Arithmetic",{desc:"Arithmetic Function",ctor:Ft,rasterArgumentNames:["rasters"]}),js.set("Aspect",{desc:"Aspect Function",ctor:Ot,rasterArgumentNames:["raster"]}),js.set("BandArithmetic",{desc:"Band Arithmetic Function",ctor:se,rasterArgumentNames:["raster"]}),js.set("Colormap",{desc:"Colormap Function",ctor:Me,rasterArgumentNames:["raster"]}),js.set("ColormapToRGB",{desc:"ColormapToRGB Function",ctor:Se,rasterArgumentNames:["raster"]}),js.set("CompositeBand",{desc:"CompositeBand Function",ctor:Ge,rasterArgumentNames:["rasters"]}),js.set("ComputeChange",{desc:"ComputeChange Function",ctor:We,rasterArgumentNames:["rasters"]}),js.set("Convolution",{desc:"Convolution Function",ctor:an,rasterArgumentNames:["raster"]}),js.set("ContrastBrightness",{desc:"Contrast Brightness Function",ctor:Xe,rasterArgumentNames:["raster"]}),js.set("ExtractBand",{desc:"ExtractBand Function",ctor:xn,rasterArgumentNames:["raster"]}),js.set("Curvature",{desc:"Curvature Function",ctor:mn,rasterArgumentNames:["raster"]}),js.set("Hillshade",{desc:"Hillshade Function",ctor:In,rasterArgumentNames:["raster"]}),js.set("ShadedRelief",{desc:"ShadedRelief Function",ctor:ns,rasterArgumentNames:["raster"]}),js.set("Grayscale",{desc:"Grayscale Function",ctor:Cn,rasterArgumentNames:["raster"]}),js.set("Clip",{desc:"Clip Function",ctor:me,rasterArgumentNames:["raster"]}),js.set("Local",{desc:"Local Function",ctor:jn,rasterArgumentNames:["rasters"]}),js.set("Mask",{desc:"Mask Function",ctor:Dn,rasterArgumentNames:["raster"]}),js.set("NDVI",{desc:"NDVI Function",ctor:$n,rasterArgumentNames:["raster"]}),js.set("Remap",{desc:"Remap Function",ctor:Xn,rasterArgumentNames:["raster"]}),js.set("Slope",{desc:"Slope Function",ctor:us,rasterArgumentNames:["raster"]}),js.set("Statistics",{desc:"Focal Statistics Function",ctor:xs,rasterArgumentNames:["raster"]}),js.set("StatisticsHistogram",{desc:"Statistics Histogram Function",ctor:Cs,rasterArgumentNames:["raster"]}),js.set("Stretch",{desc:"Stretch Function",ctor:ks,rasterArgumentNames:["raster"]}),js.set("Table",{desc:"Attribute Table Function",ctor:Bs,rasterArgumentNames:["raster"]})},34930(t,e,n){n.d(e,{$Q:()=>a,Sd:()=>u,b7:()=>l});var s=n(86211),r=n(5443),o=n(86738),i=n(14140);async function a(t,e,s){if("extent"===s.type)return function(t,e,n){const{width:s,height:r}=t,o=new Uint8Array(s*r),a=e.width/s,u=e.height/r;if(n.width/a<.5||n.height/u<.5)return new i.A({pixelType:t.pixelType,width:s,height:r,mask:o,pixels:[...t.pixels]});const{xmin:l,xmax:c,ymin:p,ymax:h}=e,{xmin:m,xmax:f,ymin:g,ymax:d}=n,y=Math.max(l,m),x=Math.min(c,f),w=Math.max(p,g),A=Math.min(h,d),v=.5*a,b=.5*u;if(x-y<v||A-w<b||x<l+v||y>c-v||w>h-b||A<p+b)return new i.A({pixelType:t.pixelType,width:s,height:r,mask:o,pixels:[...t.pixels]});const C=Math.max(0,(y-l)/a),M=Math.min(s,Math.max(0,(x-l)/a)),P=Math.max(0,(h-A)/u),T=Math.min(r,Math.max(0,(h-w)/u)),R=Math.round(C),N=Math.round(M)-1,k=Math.round(P),I=Math.round(T)-1;if(R===N&&C%1>.5&&M%1<.5||k===I&&P%1>.5&&T%1<.5)return new i.A({pixelType:t.pixelType,width:s,height:r,mask:o,pixels:[...t.pixels]});if(0===R&&0===k&&N===s&&I===r)return t;const S=t.mask;for(let t=k;t<=I;t++)for(let e=R;e<=N;e++){const n=t*s+e;o[n]=S?S[n]:255}return new i.A({pixelType:t.pixelType,width:s,height:r,mask:o,pixels:[...t.pixels]})}(t,e,s);const{width:r,height:o}=t,a=new Uint8Array(r*o);return(await Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(3299),n.e(2767)]).then(n.bind(n,25275))).execute(e,s)?"polyline"===s.type?function(t,e,n){const{width:s,height:r}=t,o=new Uint8Array(s*r),a=e.width/s,u=e.height/r,{xmin:l,ymax:c}=e,{paths:p}=n,h=t.mask;for(let t=0;t<p.length;t++){const e=p[t];for(let t=0;t<e.length-1;t++){const[n,i]=e[t],[p,m]=e[t+1],f=Math.min(i,m),g=Math.max(i,m),d=Math.max(0,Math.floor((c-g)/u)),y=Math.min(r-1,Math.floor((c-f)/u));if(!(y<d))if(d===y){const t=Math.min(n,p),e=Math.max(n,p),r=Math.max(0,Math.floor((t-l)/a)),i=Math.min(s-1,Math.floor((e-l)/a));if(i<r)continue;const u=d*s;for(let t=u+r;t<=u+i;t++)o[t]=h?h[t]:255}else{const t=(n-l)/a,e=(p-n)/(m-i)/a,r=u*e;for(let n=d;n<=y;n++){const a=e*(c-n*u-i)+t,l=Math.max(0,Math.floor(r>0?a-r:a)),p=Math.min(s-1,Math.floor(r>0?a:a-r));if(p<l)continue;const m=n*s;for(let t=m+l;t<=m+p;t++)o[t]=h?h[t]:255}}}}return new i.A({pixelType:t.pixelType,width:s,height:r,mask:o,pixels:[...t.pixels]})}(t,e,s):(await Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(3299),n.e(3446)]).then(n.bind(n,30912))).execute(s,e)?t:function(t,e,n){if(!t)return t;const{width:s,height:r}=t,o=function(t){const{geometry:e,size:n,srcExtent:s,srcMask:r}=t,[o,i]=n;let a;const u=s.width/o,l=s.height/i,{xmin:c,ymax:p}=s;if("extent"===e.type){const t=(e.xmin-c)/u,n=(e.xmax-c)/u,s=(p-e.ymax)/l,r=(p-e.ymin)/l;a=[[[t,s],[t,r],[n,r],[n,s],[t,s]]]}else a=e.rings.map(t=>t.map(([t,e])=>[(t-c)/u,(p-e)/l]));return function(t,e,n){const[s,r]=e,o=new OffscreenCanvas(s,r).getContext("2d");o.fillStyle="#f00",o.beginPath(),t.forEach(t=>{o.moveTo(t[0][0],t[0][1]);for(let e=0;e<t.length;e++)o.lineTo(t[e][0],t[e][1]);o.closePath()}),o.fill();const i=o.getImageData(0,0,s,r).data,a=s*r,u=new Uint8Array(a);let l=!1;for(let t=0;t<a;t++)n&&!n[t]||(i[4*t+3]>127?u[t]=255:l=!0);return l||n?u:void 0}(a,n,r)}({geometry:n,size:[s,r],srcExtent:e,srcMask:t.mask});return new i.A({pixelType:t.pixelType,width:s,height:r,mask:o,maskIsAlpha:!1,pixels:[...t.pixels]})}(t,e,s):new i.A({pixelType:t.pixelType,width:r,height:o,mask:a,maskIsAlpha:!1,pixels:[...t.pixels]})}function u(t,e){const{extent:n}=l(t,e,new o.A({x:t.pixelSize.x,y:t.pixelSize.y,spatialReference:t.spatialReference})),{extent:s}=t.extent;if(n.xmax=Math.min(n.xmax,s.xmax),n.ymax=Math.min(n.ymax,s.ymax),n.xmin<n.xmax&&n.ymin<n.ymax){const{x:e,y:s}=t.pixelSize,r=Math.round(n.width/e),o=Math.round(n.height/s);t.extent=n,t.width=r,t.height=o}}function l(t,e,n,o=!0){const{spatialReference:i}=t,{x:a,y:u}=function(t,e){if(t.spatialReference.equals(e))return t;const n=(0,s.GA)(t.spatialReference),r=(0,s.GA)(e);if(n===r)return t;const o=n/r;return{x:t.x*o,y:t.y*o}}(n,i);let l,c,p;const h="extent"===e.type?e:e.extent;let{xmin:m,xmax:f,ymax:g,ymin:d}=h;const{xmin:y,ymax:x}=t.extent;return o?(m=y+(m>y?a*Math.round((m-y)/a):0),g=x-(g<x?u*Math.round((x-g)/u):0),f=y+(f>y?a*Math.round((f-y)/a):0),d=x-(d<x?u*Math.round((x-d)/u):0),l=new r.A({xmin:m,ymax:g,xmax:f,ymin:d,spatialReference:i}),c=Math.round(l.width/a),p=Math.round(l.height/u)):(c=Math.floor((f-m)/a+.8),p=Math.floor((g-d)/u+.8),m=y+(m>y?a*Math.floor((m-y)/a+.1):0),g=x-(g<x?u*Math.floor((x-g)/u+.1):0),f=m+c*a,d=g-p*u,l=new r.A({xmin:m,ymax:g,xmax:f,ymin:d,spatialReference:i})),{extent:l,width:c,height:p}}},37373(t,e,n){n.d(e,{DO:()=>D,FT:()=>G,Hh:()=>M,OM:()=>E,Ps:()=>W,Wo:()=>P,_I:()=>R,_l:()=>B,l0:()=>V,t$:()=>$,uk:()=>j});var s=n(4576),r=n(49186),o=n(74887),i=n(86211),a=n(5443),u=n(83290),l=n(86738),c=n(39829),p=n(91218),h=n(16930),m=n(21325);function f(){if(!C)throw new r.A("rasterprojectionhelper-project","projection operator is not loaded")}const g=(t,e,n,s=0)=>{if(1===n[0])return[0,0];let r=1,o=-1,i=1,a=-1;for(let e=0;e<t.length;e+=2)isNaN(t[e])||(r=r>t[e]?t[e]:r,o=o>t[e]?o:t[e],i=i>t[e+1]?t[e+1]:i,a=a>t[e+1]?a:t[e+1]);const{cols:u,rows:l}=e,c=(o-r)/u/n[0],p=(a-i)/l/n[1],h=2*s;let m=0,f=!1,g=[0,0];for(let e=0;e<u-3;e++){for(let n=0;n<l-3;n++){const s=e*l*2+2*n,r=(t[s]+t[s+4]+t[s+4*l]+t[s+4*l+4])/4,o=(t[s+1]+t[s+5]+t[s+4*l+1]+t[s+4*l+5])/4,i=Math.abs((r-t[s+2*l+2])/c),a=Math.abs((o-t[s+2*l+3])/p);if(i+a>m&&(m=i+a,g=[i,a]),h&&m>h){f=!0;break}}if(f)break}return g},d={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},y=new Map,x=new Map,w=500;let A,v,b,C=!1;async function M(){return A||(A=(0,o.Tw)(),v=await n.e(895).then(n.bind(n,83276)),b=await n.e(2158).then(n.bind(n,12158)),v.isLoaded()||await v.load(),b.isLoaded()||await b.load(),C=!0,A.resolve()),A.promise}function P(t,e,n,s){const r=t.spatialReference;if(!r||!e||r.equals(e))return t;f();const o=n.center,u=new a.A({xmin:o.x-t.x/2,xmax:o.x+t.x/2,ymin:o.y-t.y/2,ymax:o.y+t.y/2,spatialReference:r}),l=v.execute(u,e,{geographicTransformation:s}),c=G(e);return null==l||null!=c&&l.width>=c?function(t,e,n){const s=(0,i.GA)(e)/(0,i.GA)(n);return{x:t.x*s,y:t.y*s}}(t,r,e):{x:l.width,y:l.height}}function T(t,e=.01){return(0,i.GA)(t)?e/(0,i.GA)(t):0}function R(t,e,n,s=!0){const r=t.spatialReference;if(r.equals(e))return t;f();const o=v.execute(t,e,{geographicTransformation:n});return s&&o?(N([t],[o],r,e),o):o}function N(t,e,n,s){const r=z(n,!0),o=z(s,!0),i=T(n,w),a=T(s,w);if(i&&null!=r&&null!=o)for(let n=0;n<t.length;n++){const s=e[n];if(!s)continue;const{x:u}=t[n],{x:l}=s;l>=o[1]-a&&Math.abs(u-r[0])<i?s.x-=o[1]-o[0]:l<=o[0]+a&&Math.abs(u-r[1])<i&&(s.x+=o[1]-o[0])}}function k(t){const{inSR:e,outSR:n,preferPE:s}=t;if(e.equals(n)){const{points:e}=F(t,null);return e}if(e.isWebMercator&&n.isWGS84||e.isWGS84&&n.isWebMercator)return function(t){const{cols:e,rows:n,xres:s,yres:r,usePixelCenter:o,inSR:i,outSR:a}=t;let{xmin:u,ymax:c}=t;o&&(u+=s/2,c-=r/2);const h=[],m=[],f=Math.max(e,n);for(let t=0;t<f;t++){const o=u+s*Math.min(e,t),f=c-r*Math.min(n,t),g=(0,p.projectWithoutEngine)(new l.A({x:o,y:f,spatialReference:i}),i,a);t<=e&&h.push(g.x),t<=n&&m.push(g.y)}const g=[];for(let t=0;t<e;t++)for(let e=0;e<n;e++)g.push([h[t],m[e]]);return g}(t);if(s){if(e.isGeographic)return I(t);if(null!=S(e))return I(t)}return function(t){const{points:e}=F(t,null),{inSR:n,outSR:s,datumTransformation:r}=t,o=e.map(t=>new l.A(t[0],t[1],n)),i=v.executeMany(o,s,{geographicTransformation:r});return r&&N(o,i,n,s),i.map(t=>t?[t.x,t.y]:[NaN,NaN])}(t)}function I(t){const{inSR:e,outSR:n,datumTransformation:s}=t,r=S(e),{points:o,mask:i}=F(t,r);if(!e.isGeographic){const t=e.wkid?u.P.coordsys(e.wkid):u.P.fromString(e.isGeographic?u.a.PE_TYPE_GEOGCS:u.a.PE_TYPE_PROJCS,e.wkt2||e.wkt);u.h.projToGeog(t,o.length,o)}if(null!=s&&s.steps.length){let t;const e=179.9955;if(n.isGeographic&&(t=o.map(([t])=>t>e?1:t<-e?-1:0)),s.steps.forEach(t=>{const e=t.wkid?u.P.geogtran(t.wkid):u.P.fromString(u.a.PE_TYPE_GEOGTRAN,t.wkt);u.j.geogToGeog(e,o.length,o,null,t.isInverse?u.a.PE_TRANSFORM_2_TO_1:u.a.PE_TRANSFORM_1_TO_2)}),t)for(let n=0;n<o.length;n++){const s=t[n],r=o[n][0],i=r>e?1:r<-e?-1:0;s&&i&&s!==i&&(o[n][0]=s>0?r+360:r-360)}}if(!n.isGeographic){const t=S(n,!0),e=null!=t&&t.isEnvelope?[t.bbox[1],t.bbox[3]]:[-90,90];!function(t,e){const[n,s]=e;for(let e=0;e<t.length;e++){const r=t[e][1];(r<n||r>s)&&(t[e]=[NaN,NaN])}}(o,e);const s=n.wkid?u.P.coordsys(n.wkid):u.P.fromString(n.isGeographic?u.a.PE_TYPE_GEOGCS:u.a.PE_TYPE_PROJCS,n.wkt2||n.wkt);u.h.geogToProj(s,o.length,o)}let a=o;if(i&&o.length!==i.length){a=[];for(let t=0,e=0;t<i.length;t++)i[t]?a.push(o[e++]):a.push([NaN,NaN])}return a}function S(t,e=!1){let n=t.wkid||t.wkt2||t.wkt;if(!n||t.isGeographic)return null;if(n=String(n),y.has(n)){const t=y.get(n);return e?t?.gcs:t?.pcs}const s=t.wkid?u.P.coordsys(t.wkid):u.P.fromString(t.isGeographic?u.a.PE_TYPE_GEOGCS:u.a.PE_TYPE_PROJCS,t.wkt2||t.wkt),r=_(s,T(t,1e-4)),o=_(s,0,!0);return y.set(n,{pcs:r,gcs:o}),e?o:r}function _(t,e=0,n=!1){const s=u.g.generate(t),r=n?t.horizonGcsGenerate():t.horizonPcsGenerate();if(!s||!r?.length)return null;let o=!1,i=r.find(t=>1===t.getInclusive()&&1===t.getKind());if(!i){if(i=r.find(t=>1===t.getInclusive()&&0===t.getKind()),!i)return null;o=!0}const a=n?0:(2===s.getNorthPoleLocation()?1:0)|(2===s.getSouthPoleLocation()?2:0),l=s.isPannableRectangle(),c=i.getCoord();if(o)return{isEnvelope:o,isPannable:l,vertices:c,coef:null,bbox:[c[0][0]-e,c[0][1]-e,c[1][0]+e,c[1][1]+e],poleLocation:a};let p=0;const h=[];let[m,f]=c[0],[g,d]=c[0];for(let t=0,e=c.length;t<e;t++){p++,p===e&&(p=0);const[n,s]=c[t],[r,o]=c[p];if(o===s)h.push([n,r,s,o,2]);else{const t=(r-n)/(o-s||1e-4),e=n-t*s;s<o?h.push([t,e,s,o,0]):h.push([t,e,o,s,1])}m=m<n?m:n,f=f<s?f:s,g=g>n?g:n,d=d>s?d:s}return{isEnvelope:!1,isPannable:l,vertices:c,coef:h,bbox:[m,f,g,d],poleLocation:a}}function F(t,e){const n=[],{cols:s,rows:r,xres:o,yres:i,usePixelCenter:a}=t;let{xmin:u,ymax:l}=t;if(a&&(u+=o/2,l-=i/2),null==e){for(let t=0;t<s;t++)for(let e=0;e<r;e++)n.push([u+o*t,l-i*e]);return{points:n}}const c=new Uint8Array(s*r);if(e.isEnvelope){const{isPannable:t,bbox:[a,p,h,m]}=e;for(let e=0,f=0;e<s;e++){const s=u+o*e,g=t||s>=a&&s<=h;for(let t=0;t<r;t++,f++){const e=l-i*t;g&&e>=p&&e<=m&&(n.push([s,e]),c[f]=1)}}return{points:n,mask:c}}const p=e.coef,h=[];for(let t=0;t<r;t++){const e=l-i*t,n=[],s=[];for(let t=0;t<p.length;t++){const[r,o,i,a,u]=p[t];if(e===i&&i===a)n.push(r),n.push(o),s.push(2),s.push(2);else if(e>=i&&e<=a){const t=r*e+o;n.push(t),s.push(u)}}let r=n;if(n.length>2){let t=2===s[0]?0:s[0],e=n[0];r=[];for(let o=1;o<s.length;o++)2===s[o]&&o!==s.length-1||(s[o]!==t&&(r.push(0===t?Math.min(e,n[o-1]):Math.max(e,n[o-1])),t=s[o],e=n[o]),o===s.length-1&&r.push(0===s[o]?Math.min(e,n[o]):Math.max(e,n[o])));r.sort((t,e)=>t-e)}else n[0]>n[1]&&(r=[n[1],n[0]]);h.push(r)}for(let t=0,e=0;t<s;t++){const s=u+o*t;for(let t=0;t<r;t++,e++){const r=l-i*t,o=h[t];if(2===o.length)s>=o[0]&&s<=o[1]&&(n.push([s,r]),c[e]=1);else if(o.length>2){let t=!1;for(let e=0;e<o.length;e+=2)if(s>=o[e]&&s<=o[e+1]){t=!0;break}t&&(n.push([s,r]),c[e]=1)}}}return{points:n,mask:c}}function B(t,e,n=null,r=!0){const o=t.spatialReference;if(o.equals(e)||!e)return t;const i=E(t),u=G(o,!0),l=G(e);if(0===i||null==u||null==l){const s=Z(t,e,n,r);if(s&&null==u&&null!=l&&Math.abs(s.width-l)<T(e)&&v.isLoaded()){const n=S(o);if(null!=n&&0===n.poleLocation&&t.width<(n.bbox[2]-n.bbox[0])/2)return function(t,e){const n=G(e);if(null==n)return null;let{xmin:s,ymin:r,xmax:o,ymax:i}=t;const u=t.spatialReference,l=new c.A({spatialReference:u,rings:[[[s,r],[o,r],[o,i],[s,i],[s,r]]]}),p=v.execute(l,e);if(2!==p.rings.length||!p.rings[0].length||!p.rings[1].length)return null;const{rings:h}=p,m=T(u),f=new a.A({spatialReference:e});for(let t=0;t<2;t++){s=o=h[t][0][0],r=i=h[t][0][1];for(let e=0;e<h[t].length;e++)s=s>h[t][e][0]?h[t][e][0]:s,o=o<h[t][e][0]?h[t][e][0]:o,r=r>h[t][e][1]?h[t][e][1]:r,i=i<h[t][e][1]?h[t][e][1]:i;if(0===t)f.ymin=r,f.ymax=i,f.xmin=s,f.xmax=o;else if(f.ymin=Math.min(f.ymin,r),f.ymax=Math.max(f.ymax,i),Math.abs(o-n/2)<m)f.xmin=s,f.xmax=f.xmax+n;else{if(!(Math.abs(s+n/2)<m))return null;f.xmax=o+n}}return f}(t,e)||s}return s}const p=t.clone().normalize();if(1===p.length&&t.xmax<u&&t.xmax-u/2>T(o)){const{xmin:e,xmax:n}=t;for(let s=0;s<=i;s++){const r=0===s?e:-u/2,l=s===i?n-u*s:u/2;p[s]=new a.A({xmin:r,xmax:l,ymin:t.ymin,ymax:t.ymax,spatialReference:o})}}const h=p.map(t=>Z(t,e,n,r)).filter(s.Ru);return 0===h.length?null:function(t,e){const n=G(t[0].spatialReference);if(t.length<2||null==n)return t[0];if(e=e??T(t[0].spatialReference),1===(t=t.filter(t=>t.width>e)).length)return t[0];let{xmin:s,xmax:r,ymin:o,ymax:i}=t[0];for(let e=1;e<t.length;e++){const s=t[e];r=s.xmax+n*e,o=Math.min(o,s.ymin),i=Math.max(i,s.ymax)}return new a.A({xmin:s,xmax:r,ymin:o,ymax:i,spatialReference:t[0].spatialReference})}(h)}function j(t,e,n){if("extent"===t.type){const{xmin:e,ymin:n,xmax:s,ymax:r,spatialReference:o}=t;t=new c.A({rings:[[[e,r],[s,r],[s,n],[e,n],[e,r]]],spatialReference:o})}return t.spatialReference.equals(e)?t:(f(),v.execute(t,e,{geographicTransformation:n}))}function Z(t,e,n,s=!0,r=!0){const o=t.spatialReference;if(o.equals(e)||!e)return t;f();const i=v.execute(t,e,{geographicTransformation:n});if(r&&e.isWebMercator&&i&&(i.ymax=Math.min(20037508.342787,i.ymax),i.ymin=Math.max(-20037508.342787,i.ymin),i.ymin>=i.ymax))return null;if(!s||!i)return i;const a=z(o,!0),u=z(e,!0);if(null==a||null==u)return i;const c=T(o,.001),p=T(o,w),h=T(e,.001);if(Math.abs(i.xmin-u[0])<h&&Math.abs(i.xmax-u[1])<h){const s=Math.abs(t.xmin-a[0]),r=Math.abs(a[1]-t.xmax);if(s<c&&r>p){i.xmin=u[0];const s=[];s.push(new l.A(t.xmax,t.ymin,o)),s.push(new l.A(t.xmax,(t.ymin+t.ymax)/2,o)),s.push(new l.A(t.xmax,t.ymax,o));const r=s.map(t=>R(t,e,n)).filter(t=>!isNaN(t?.x)).map(t=>t.x);i.xmax=Math.max.apply(null,r)}if(r<c&&s>p){i.xmax=u[1];const s=[];s.push(new l.A(t.xmin,t.ymin,o)),s.push(new l.A(t.xmin,(t.ymin+t.ymax)/2,o)),s.push(new l.A(t.xmin,t.ymax,o));const r=s.map(t=>R(t,e,n)).filter(t=>!isNaN(t?.x)).map(t=>t.x);i.xmin=Math.min.apply(null,r)}}else{const t=T(e,.001);Math.abs(i.xmin-u[0])<t&&(i.xmin=u[0]),Math.abs(i.xmax-u[1])<t&&(i.xmax=u[1])}return i}function G(t,e=!1){if(!t)return null;const n=e?20037508.342787:20037508.342788905;return t.isWebMercator?2*n:t.wkid&&t.isGeographic?360:2*d[t.wkid]||null}function z(t,e=!1){if(t.isGeographic)return[-180,180];const n=G(t,e);return n?[-n/2,n/2]:null}function O(t,e,n,s){let r=(t-e)/n;return r-Math.floor(r)!==0?r=Math.floor(r):s&&(r-=1),r}function E(t,e=!1){const n=G(t.spatialReference);if(null==n)return 0;const s=e?0:-n/2,r=T(t.spatialReference),o=!e&&Math.abs(t.xmax-n/2)<r?n/2:t.xmax,i=!e&&Math.abs(t.xmin+n/2)<r?-n/2:t.xmin;return O(o,s,n,!0)-O(i,s,n,!1)}function D(t){const e=t.storageInfo.origin.x,n=G(t.spatialReference,!0);if(null==n)return{originX:e,halfWorldWidth:null,pyramidsInfo:null};const s=n/2,{nativePixelSize:r,storageInfo:o,extent:i}=t,{maximumPyramidLevel:a,blockWidth:u,pyramidScalingFactor:l}=o;let c=r.x;const p=[],h=null!=t.transform&&"gcs-shift"===t.transform.type,m=e+(h?0:s),f=h?n-e:s-e;for(let t=0;t<=a;t++){const t=(i.xmax-e)/c/u,n=t-Math.floor(t)===0?t:Math.ceil(t),s=f/c/u,r=s-Math.floor(s)===0?s:Math.ceil(s),o=Math.floor(m/c/u),a=Math.round(m/c)%u,h=(u-Math.round(f/c)%u)%u;p.push({resolutionX:c,blockWidth:u,datasetColumnCount:n,worldColumnCountFromOrigin:r,leftMargin:a,rightPadding:h,originColumnOffset:o}),c*=l}return{originX:e,halfWorldWidth:s,pyramidsInfo:p,hasGCSSShiftTransform:h}}function V(t){const e=t.isAdaptive&&null==t.spacing;let n=t.spacing||[32,32],s=U(t),r={cols:s.size[0]+1,rows:s.size[1]+1};const o=s.outofBoundPointCount>0&&s.outofBoundPointCount<s.offsets.length/2;let i=s.outofBoundPointCount===s.offsets.length/2||e&&o?[0,0]:g(s.offsets,r,n,4);const a=(i[0]+i[1])/2,l=t.projectedExtent.spatialReference,c=t.srcBufferExtent.spatialReference;if(e&&(o||a>4)&&(l.isGeographic||S(l),n=[4,4],s=U({...t,spacing:n}),r={cols:s.size[0]+1,rows:s.size[1]+1},i=g(s.offsets,r,n,4)),s.error=i,n[0]>1&&(s.coefficients=L(s.offsets,r,o)),t.includeGCSGrid&&!l.isGeographic&&!l.isWebMercator)if(c.isGeographic)s.gcsGrid={offsets:s.offsets,coefficients:s.coefficients,spacing:n};else{const e=S(l);if(null!=e&&!e.isEnvelope){const e=function(t){if(!t||t.isGeographic)return t;const e=String(t.wkid||t.wkt2||t.wkt);let n;return x.has(e)?n=x.get(e):(n=(t.wkid?u.P.coordsys(t.wkid):u.P.fromString(u.a.PE_TYPE_PROJCS,t.wkt2||t.wkt)).getGeogcs().getCode(),x.set(e,n)),new h.A({wkid:n})}(l),i=B(t.projectedExtent,e),{offsets:a}=U({...t,srcBufferExtent:i,spacing:n}),c=L(a,r,o);s.gcsGrid={offsets:a,coefficients:c,spacing:n}}}return s}function U(t){const{projectedExtent:e,srcBufferExtent:n,pixelSize:s,datumTransformation:r,rasterTransform:o}=t,i=e.spatialReference,a=n.spatialReference;f();const{xmin:u,ymin:c,xmax:p,ymax:h}=e,m=G(a),g=null!=m&&(t.hasWrapAround||"gcs-shift"===o?.type),d=t.spacing||[32,32],y=d[0]*s.x,x=d[1]*s.y,A=1===d[0],v=Math.ceil((p-u)/y-.1/d[0])+(A?0:1),b=Math.ceil((h-c)/x-.1/d[1])+(A?0:1),C=k({cols:v,rows:b,xmin:u,ymax:h,xres:y,yres:x,inSR:i,outSR:a,datumTransformation:r,preferPE:d[0]<=4,usePixelCenter:A}),M=[];let P,R=0;const N=A?-1:NaN,{xmin:I,xmax:_,ymax:F,width:B,height:j}=n,Z=T(a,w),z=null!=m&&I>0&&_>m/2,O=S(i),E=null!=O&&O.poleLocation>0;for(let t=0;t<v;t++){const e=[];for(let n=0;n<b;n++){let s=C[t*b+n];if(g&&s[0]>_&&s[0]>m/2-Z?s[0]-=m:g&&0===t&&s[0]<0&&z&&!o&&(s[0]+=m),!s||isNaN(s[0])||isNaN(s[1]))M.push(N),M.push(N),e.push(null),R++;else{if(o){const t=o.inverseTransform(new l.A({x:s[0],y:s[1],spatialReference:a}));s=[t.x,t.y]}e.push(s),t>0&&g&&P[n]&&s[0]<P[n][0]&&(s[0]+=m,E&&s[0]>_&&s[0]>m&&(s[0]-=m)),M.push((s[0]-I)/B),M.push((F-s[1])/j)}}P=e}return{offsets:M,error:null,coefficients:null,outofBoundPointCount:R,spacing:d,size:A?[v,b]:[v-1,b-1]}}function L(t,e,n){const{cols:s,rows:r}=e,o=new Float32Array((s-1)*(r-1)*2*6),i=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),a=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let e=0;e<s-1;e++){for(let n=0;n<r-1;n++){let u=e*r*2+2*n;const l=t[u],c=t[u+1],p=t[u+2],h=t[u+3];u+=2*r;const m=t[u],f=t[u+1],g=t[u+2],d=t[u+3];let y=0,x=12*(n*(s-1)+e);for(let t=0;t<3;t++)o[x++]=i[y++]*l+i[y++]*p+i[y++]*g;y=0;for(let t=0;t<3;t++)o[x++]=i[y++]*c+i[y++]*h+i[y++]*d;y=0;for(let t=0;t<3;t++)o[x++]=a[y++]*l+a[y++]*m+a[y++]*g;y=0;for(let t=0;t<3;t++)o[x++]=a[y++]*c+a[y++]*f+a[y++]*d}if(n)for(let t=0;t<o.length;t++)isNaN(o[t])&&(o[t]=-1)}return o}function W(t){const{spatialReference:e}=t,n=(0,m.Vp)(e);if(!n)return t;const[s,r]=n.valid,o=r-s;let i=0;if(t.xmin<s){const e=s-t.xmin;i=Math.ceil(e/o)}else if(t.xmin>r){const e=t.xmin-r;i=-Math.ceil(e/o)}return new a.A({spatialReference:t.spatialReference,xmin:t.xmin+i*o,ymin:t.ymin,xmax:t.xmax+i*o,ymax:t.ymax})}function $(t,e,n){const{storageInfo:s,pixelSize:r}=e;let o=0,a=!1;const{pyramidResolutions:u}=s,c="mixed"===s.tileInfo.format?.toLowerCase()?Math.max(1,Math.min(3,s.tileInfo.dpi/96)):1,p=(t.x+t.y)/2/c;if(null!=u&&u.length){const t=u[u.length-1],s=(t.x+t.y)/2,c=(r.x+r.y)/2;if(p<=c)o=0;else if(p>=s)o=u.length,a=p/s>8;else{let t,e=c;for(let s=1;s<=u.length;s++){if(t=(u[s-1].x+u[s-1].y)/2,p<=t){p===t?o=s:"down"===n?(o=s-1,a=p/e>8):o="up"===n||p-e>t-p||p/e>2?s:s-1;break}e=t}}const h=0===o?r:u[o-1];return a&&Math.min(h.x,h.y)*(0,i.GA)(e.spatialReference)>19567&&(a=!1),{pyramidLevel:o,pyramidResolution:new l.A({x:h.x,y:h.y,spatialReference:e.spatialReference}),excessiveReading:a}}const h=Math.log(t.x/r.x)/Math.LN2,m=Math.log(t.y/r.y)/Math.LN2,f=e.storageInfo.maximumPyramidLevel||0;o="down"===n?Math.floor(Math.min(h,m)):"up"===n?Math.ceil(Math.max(h,m)):Math.round((h+m)/2),o<0?o=0:o>f&&(a=o>f+3,o=f);const g=2**o;return{pyramidLevel:o,pyramidResolution:new l.A({x:g*e.nativePixelSize.x,y:g*e.nativePixelSize.y,spatialReference:e.spatialReference}),excessiveReading:a}}}}]);