@arcgis/core 4.28.0-next.20230821 → 4.28.0-next.20230823

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 (668) hide show
  1. package/Basemap.js +1 -1
  2. package/WebScene.js +1 -1
  3. package/arcade/functions/geomasync.js +1 -1
  4. package/arcade/portalUtils.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/0746319459dbcd3ab6f7.js +1 -0
  7. package/assets/esri/core/workers/chunks/{587437526ea77f764986.js → 0759d4ab9695096d2bbd.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{d0c4367a197b193e95d4.js → 10c014a6d8767ae8a666.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{5ffabd1a90c5b08109aa.js → 196937631ac20795e0ae.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{e05b54a0b834b4e4268e.js → 1c2b69dfcd0db58150e2.js} +1 -1
  11. package/assets/esri/core/workers/chunks/1c2f7c95825fdac790be.js +1 -0
  12. package/assets/esri/core/workers/chunks/1f9c80815f90fd0886d7.js +1 -0
  13. package/assets/esri/core/workers/chunks/217910f88fe2c03e6bdd.js +1 -0
  14. package/assets/esri/core/workers/chunks/238966b2fc6cc3dfcc05.js +1 -0
  15. package/assets/esri/core/workers/chunks/2c9f709d64954b3c1650.js +1 -0
  16. package/assets/esri/core/workers/chunks/35faede04d4539aab6e8.js +1 -0
  17. package/assets/esri/core/workers/chunks/3e3edcbacf8eaf275b97.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b78dc6cbe14e5817b4d9.js → 4968018bc693c053fdd2.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{c35b850fbfcb28133235.js → 49a1ba3e7ea204adeddb.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{12b8fe0374fa9ab4ca09.js → 49cf3ae224f56f45f65b.js} +1 -1
  21. package/assets/esri/core/workers/chunks/5330040eeacc9c03fbdb.js +1 -0
  22. package/assets/esri/core/workers/chunks/54aaa21144431b29b6ed.js +1 -0
  23. package/assets/esri/core/workers/chunks/{6c40f16e6d10321295d8.js → 5b13d28cf5efc312a21c.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{d6c96a20e9640b433719.js → 67c6618339d323460d45.js} +57 -57
  25. package/assets/esri/core/workers/chunks/{dd86f43505b636eb41c0.js → 7714c16f9c8860efd461.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{752d389c7bdcbe7004dc.js → 83e0af5522a672c2c73b.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{873111ddf4813cdd4903.js → 872d0d4bf364be43a92e.js} +1 -1
  28. package/assets/esri/core/workers/chunks/8a784ddd5607f1ddbb5b.js +1 -0
  29. package/assets/esri/core/workers/chunks/{0cad2b991d0d0fd07846.js → 8c9c4162617f31e3f5f2.js} +1 -1
  30. package/assets/esri/core/workers/chunks/8db3ee2931be5cca3f5e.js +1 -0
  31. package/assets/esri/core/workers/chunks/{fd3920159ab9748402a2.js → 92350664e2719a9e860e.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{ff755962fd1c771f5be5.js → a3b461174984a1cb92b3.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{dd4c6d000222798a0317.js → a47aff9c97c5ce52d0dc.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{028534e3d4e13c9ea687.js → a645f08a7678f2ca037c.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{d9fe6cfbc9ad2920ca9c.js → aca45e54ec925002df9a.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{40ff0e7c948615b8bfc0.js → b07d32a60307d04391fc.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{fdc703330bf194a48e0e.js → b086e798f43dacb0175f.js} +1 -1
  38. package/assets/esri/core/workers/chunks/bd0b9647880cbbec95e2.js +1 -0
  39. package/assets/esri/core/workers/chunks/{ab420bacdd63ee8fbd8b.js → bf9b5e2803a5444bd944.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{c58ca2685eb7e559f428.js → c0a2a737a3085690afc5.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{e04e8af4224fff8c3ec3.js → c34615c0b7ad83d1ad24.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{05ab09713d599687afa3.js → d105ee2e394e2c48303c.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{ef03b78659c72de93076.js → d183144fa504064d23d3.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{4f5207abb034375927c7.js → d8495c6dcd4d9bec8dd6.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{1a485d63330f5e7fe4e3.js → dba61fa8cbb57dde54b2.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{8a306e3aa210861b8c17.js → deb0bd575c63d9dbcde5.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{d0a2f9ca338b60f2ba2a.js → e302fe771d92ccf945a3.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{cb0a5bc6deaa98026bb5.js → ed0dea88b2865fc6e06b.js} +1 -1
  49. package/assets/esri/core/workers/chunks/ed733eea5d065131b159.js +1 -0
  50. package/assets/esri/core/workers/chunks/{1c51c52fb2233153d7ae.js → f3ec53ee9567bb7e4d2f.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{4922a0fed7cbc6895882.js → f701a5afa1b730c51a49.js} +1 -1
  52. package/assets/esri/t9n/common.json +1 -1
  53. package/assets/esri/t9n/common_ar.json +1 -1
  54. package/assets/esri/t9n/common_bg.json +1 -1
  55. package/assets/esri/t9n/common_ca.json +1 -1
  56. package/assets/esri/t9n/common_cs.json +1 -1
  57. package/assets/esri/t9n/common_da.json +1 -1
  58. package/assets/esri/t9n/common_de.json +1 -1
  59. package/assets/esri/t9n/common_el.json +1 -1
  60. package/assets/esri/t9n/common_en.json +1 -1
  61. package/assets/esri/t9n/common_es.json +1 -1
  62. package/assets/esri/t9n/common_et.json +1 -1
  63. package/assets/esri/t9n/common_fi.json +1 -1
  64. package/assets/esri/t9n/common_fr.json +1 -1
  65. package/assets/esri/t9n/common_he.json +1 -1
  66. package/assets/esri/t9n/common_hr.json +1 -1
  67. package/assets/esri/t9n/common_hu.json +1 -1
  68. package/assets/esri/t9n/common_id.json +1 -1
  69. package/assets/esri/t9n/common_it.json +1 -1
  70. package/assets/esri/t9n/common_ja.json +1 -1
  71. package/assets/esri/t9n/common_ko.json +1 -1
  72. package/assets/esri/t9n/common_lt.json +1 -1
  73. package/assets/esri/t9n/common_lv.json +1 -1
  74. package/assets/esri/t9n/common_nb.json +1 -1
  75. package/assets/esri/t9n/common_nl.json +1 -1
  76. package/assets/esri/t9n/common_pl.json +1 -1
  77. package/assets/esri/t9n/common_pt-BR.json +1 -1
  78. package/assets/esri/t9n/common_pt-PT.json +1 -1
  79. package/assets/esri/t9n/common_ro.json +1 -1
  80. package/assets/esri/t9n/common_ru.json +1 -1
  81. package/assets/esri/t9n/common_sk.json +1 -1
  82. package/assets/esri/t9n/common_sl.json +1 -1
  83. package/assets/esri/t9n/common_sr.json +1 -1
  84. package/assets/esri/t9n/common_sv.json +1 -1
  85. package/assets/esri/t9n/common_th.json +1 -1
  86. package/assets/esri/t9n/common_tr.json +1 -1
  87. package/assets/esri/t9n/common_uk.json +1 -1
  88. package/assets/esri/t9n/common_vi.json +1 -1
  89. package/assets/esri/t9n/common_zh-CN.json +1 -1
  90. package/assets/esri/t9n/common_zh-TW.json +1 -1
  91. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +10 -17
  92. package/assets/esri/themes/dark/main.css +1 -1
  93. package/assets/esri/themes/light/main.css +1 -1
  94. package/assets/esri/themes/light/view.css +1 -1
  95. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ar.json +1 -0
  96. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_bg.json +1 -0
  97. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_bs.json +1 -0
  98. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ca.json +1 -0
  99. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_cs.json +1 -0
  100. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_da.json +1 -0
  101. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_de.json +1 -0
  102. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_el.json +1 -0
  103. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_es.json +1 -0
  104. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_et.json +1 -0
  105. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_fi.json +1 -0
  106. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_fr.json +1 -0
  107. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_he.json +1 -0
  108. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_hr.json +1 -0
  109. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_hu.json +1 -0
  110. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_id.json +1 -0
  111. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_it.json +1 -0
  112. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ja.json +1 -0
  113. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ko.json +1 -0
  114. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_lt.json +1 -0
  115. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_lv.json +1 -0
  116. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_nb.json +1 -0
  117. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_nl.json +1 -0
  118. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pl.json +1 -0
  119. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pt-BR.json +1 -0
  120. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pt-PT.json +1 -0
  121. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ro.json +1 -0
  122. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ru.json +1 -0
  123. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sk.json +1 -0
  124. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sl.json +1 -0
  125. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sr.json +1 -0
  126. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sv.json +1 -0
  127. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_th.json +1 -0
  128. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_tr.json +1 -0
  129. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_uk.json +1 -0
  130. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_vi.json +1 -0
  131. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-CN.json +1 -0
  132. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-HK.json +1 -0
  133. package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-TW.json +1 -0
  134. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  135. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  136. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  137. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  138. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  139. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  140. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  141. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  142. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  143. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  144. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  145. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  146. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  147. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  148. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  149. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  150. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  151. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  152. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  153. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  154. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  155. package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
  156. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  157. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  158. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  159. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  160. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  161. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  162. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  163. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  164. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  165. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  166. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  167. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  168. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  169. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  170. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  171. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  172. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  173. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ar.json +1 -1
  174. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bg.json +1 -1
  175. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bs.json +1 -1
  176. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ca.json +1 -1
  177. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_cs.json +1 -1
  178. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_da.json +1 -1
  179. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_de.json +1 -1
  180. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_el.json +1 -1
  181. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_es.json +1 -1
  182. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_et.json +1 -1
  183. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fi.json +1 -1
  184. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fr.json +1 -1
  185. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_he.json +1 -1
  186. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hr.json +1 -1
  187. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hu.json +1 -1
  188. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_id.json +1 -1
  189. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_it.json +1 -1
  190. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ja.json +1 -1
  191. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ko.json +1 -1
  192. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lt.json +1 -1
  193. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lv.json +1 -1
  194. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nb.json +1 -1
  195. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nl.json +1 -1
  196. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pl.json +1 -1
  197. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-BR.json +1 -1
  198. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-PT.json +1 -1
  199. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ro.json +1 -1
  200. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ru.json +1 -1
  201. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sk.json +1 -1
  202. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sl.json +1 -1
  203. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sr.json +1 -1
  204. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sv.json +1 -1
  205. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_th.json +1 -1
  206. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_tr.json +1 -1
  207. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_uk.json +1 -1
  208. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_vi.json +1 -1
  209. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-CN.json +1 -1
  210. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-HK.json +1 -1
  211. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-TW.json +1 -1
  212. package/chunks/ChapmanAtmosphere.glsl.js +1 -1
  213. package/chunks/Clouds.glsl.js +1 -1
  214. package/chunks/CloudsComposition.glsl.js +2 -2
  215. package/chunks/ComponentShader.glsl.js +36 -36
  216. package/chunks/Fog.glsl.js +1 -1
  217. package/chunks/LaserlinePath.glsl.js +1 -1
  218. package/chunks/Laserlines.glsl.js +1 -1
  219. package/chunks/LineSeries.js +1 -1
  220. package/chunks/NativeLine.glsl.js +8 -20
  221. package/chunks/PointRenderer.glsl.js +1 -1
  222. package/chunks/Precipitation.glsl.js +2 -2
  223. package/chunks/SSAOBlur.glsl.js +1 -1
  224. package/chunks/ShadowCastAccumulate.glsl.js +1 -1
  225. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  226. package/chunks/ShadowHighlight.glsl.js +1 -1
  227. package/chunks/Stars.glsl.js +1 -1
  228. package/chunks/Terrain.glsl.js +35 -35
  229. package/chunks/TextureOnly.glsl.js +1 -1
  230. package/chunks/Theme.js +1 -1
  231. package/chunks/boundedPlane.js +1 -1
  232. package/chunks/cameraUtilsPlanar.js +1 -1
  233. package/chunks/cameraUtilsSpherical.js +1 -1
  234. package/chunks/chartUtilsAm5.js +1 -1
  235. package/chunks/mat3.js +1 -1
  236. package/chunks/mat3f64.js +1 -1
  237. package/chunks/mat4.js +1 -1
  238. package/chunks/mat4f64.js +1 -1
  239. package/chunks/quat.js +1 -1
  240. package/chunks/quat2.js +1 -1
  241. package/chunks/quatf64.js +1 -1
  242. package/chunks/sphere.js +1 -1
  243. package/chunks/terrainUtilsPlanar.js +1 -1
  244. package/chunks/vec3.js +1 -1
  245. package/chunks/vec3f64.js +1 -1
  246. package/chunks/vec4.js +1 -1
  247. package/chunks/vec4f64.js +1 -1
  248. package/core/VectorStack.js +1 -1
  249. package/core/accessorSupport/decorators/persistable.js +1 -1
  250. package/core/accessorSupport/testSupport.js +1 -1
  251. package/core/colorUtils.js +1 -1
  252. package/core/libs/gl-matrix-2/factories/mat3f64.js +1 -1
  253. package/core/libs/gl-matrix-2/factories/mat4f64.js +1 -1
  254. package/core/libs/gl-matrix-2/factories/quatf64.js +1 -1
  255. package/core/libs/gl-matrix-2/factories/vec3f64.js +1 -1
  256. package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
  257. package/core/libs/gl-matrix-2/math/mat3.js +1 -1
  258. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  259. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  260. package/core/libs/gl-matrix-2/math/vec4.js +1 -1
  261. package/core/mathUtils.js +1 -1
  262. package/core/perspectiveUtils.js +1 -1
  263. package/form/elements/inputs/DatePickerInput.d.ts +4 -0
  264. package/form/elements/inputs/DatePickerInput.js +5 -0
  265. package/form/elements/inputs/DateTimeOffsetPickerInput.d.ts +4 -0
  266. package/form/elements/inputs/DateTimeOffsetPickerInput.js +5 -0
  267. package/form/elements/inputs/TimePickerInput.d.ts +4 -0
  268. package/form/elements/inputs/TimePickerInput.js +5 -0
  269. package/form/elements/support/inputs.js +1 -1
  270. package/geometry/projection/computeTranslationToOriginAndRotation.js +1 -1
  271. package/geometry/projection/projectDirection.js +1 -1
  272. package/geometry/support/MeshTransform.js +1 -1
  273. package/geometry/support/axisAngle.js +1 -1
  274. package/geometry/support/axisAngleDegrees.js +1 -1
  275. package/geometry/support/clipRay.js +1 -1
  276. package/geometry/support/coordinateSystem.js +1 -1
  277. package/geometry/support/frustum.js +1 -1
  278. package/geometry/support/lineSegment.js +1 -1
  279. package/geometry/support/meshUtils/centerAt.js +1 -1
  280. package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
  281. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  282. package/geometry/support/meshUtils/exporters/gltf/node.js +1 -1
  283. package/geometry/support/meshUtils/georeference.js +1 -1
  284. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  285. package/geometry/support/meshUtils/merge.js +1 -1
  286. package/geometry/support/meshUtils/offset.js +1 -1
  287. package/geometry/support/meshUtils/primitives.js +1 -1
  288. package/geometry/support/meshUtils/projection.js +1 -1
  289. package/geometry/support/meshUtils/rotate.js +1 -1
  290. package/geometry/support/meshUtils/scale.js +1 -1
  291. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  292. package/geometry/support/plane.js +1 -1
  293. package/geometry/support/ray.js +1 -1
  294. package/geometry/support/triangle.js +1 -1
  295. package/geometry/support/vector.js +1 -1
  296. package/interfaces.d.ts +405 -7
  297. package/layers/VoxelWasmPerSceneView.js +1 -1
  298. package/layers/mixins/SceneService.js +1 -1
  299. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  300. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  301. package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
  302. package/layers/orientedImagery/transformations/utils.js +1 -1
  303. package/layers/support/ControlPointsGeoreference.js +1 -1
  304. package/layers/support/ImageElement.js +1 -1
  305. package/layers/support/SceneFilter.js +1 -1
  306. package/layers/support/layerUtils.js +1 -1
  307. package/layers/video/VideoCameraSensorModel.js +1 -1
  308. package/layers/voxel/VoxelVolume.js +1 -1
  309. package/layers/voxel/voxelPlaneUtils.js +1 -1
  310. package/package.json +1 -1
  311. package/portal/support/resourceExtension.js +1 -1
  312. package/portal/support/resourceUtils.js +1 -1
  313. package/portal/support/utils.js +5 -0
  314. package/smartMapping/popup/support/utils.js +1 -1
  315. package/smartMapping/raster/renderers/classBreaks.js +1 -1
  316. package/smartMapping/raster/support/adapters/ImageryLayerAdapter.js +1 -1
  317. package/smartMapping/raster/support/adapters/ImageryTileLayerAdapter.js +1 -1
  318. package/smartMapping/raster/support/adapters/RasterLayerAdapter.js +1 -1
  319. package/support/revision.js +1 -1
  320. package/symbols/cim/CIMImageColorSubstitutionHelper.js +1 -1
  321. package/symbols/support/previewSymbol3D.js +1 -1
  322. package/views/2d/ViewState.js +1 -1
  323. package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
  324. package/views/2d/engine/imagery/RasterVFTile.js +1 -1
  325. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  326. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  327. package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
  328. package/views/2d/engine/webgl/Overlay.js +1 -1
  329. package/views/2d/engine/webgl/OverlayContainer.js +1 -1
  330. package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
  331. package/views/2d/engine/webgl/WGLTile.js +1 -1
  332. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
  333. package/views/2d/engine/webgl/brushes/WGLBrushVTLSymbol.js +1 -1
  334. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  335. package/views/2d/interactive/editingTools/manipulations/RotateManipulation.js +1 -1
  336. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  337. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  338. package/views/2d/layers/support/DebugOverlay.js +1 -1
  339. package/views/2d/navigation/actions/Pan.js +1 -1
  340. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  341. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  342. package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
  343. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  344. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  345. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  346. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  347. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  348. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  349. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  350. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
  351. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  352. package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
  353. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  354. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  355. package/views/3d/analysis/images/Factory.js +5 -0
  356. package/views/3d/analysis/support/measurementUtils.js +1 -1
  357. package/views/3d/analysis/support/viewUtils.js +1 -1
  358. package/views/3d/animation/pointToPoint/Animation.js +1 -1
  359. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  360. package/views/3d/camera/constraintUtils/altitude.js +1 -1
  361. package/views/3d/camera/constraintUtils/common.js +1 -1
  362. package/views/3d/camera/constraintUtils/distance.js +1 -1
  363. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  364. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  365. package/views/3d/camera/intersectionUtils.js +1 -1
  366. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  367. package/views/3d/environment/CloudsGenerator.js +1 -1
  368. package/views/3d/environment/CloudsParameters.js +1 -1
  369. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  370. package/views/3d/environment/Fog.js +1 -1
  371. package/views/3d/environment/LocalAtmosphere.js +1 -1
  372. package/views/3d/environment/MarsAtmosphere.js +1 -1
  373. package/views/3d/environment/SceneViewEnvironment.js +1 -1
  374. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  375. package/views/3d/environment/Stars.js +1 -1
  376. package/views/3d/environment/StarsTechnique.js +1 -1
  377. package/views/3d/externalRenderers.js +1 -1
  378. package/views/3d/glTF/internal/Resource.js +1 -1
  379. package/views/3d/interactive/Manipulator3D.js +1 -1
  380. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  381. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  382. package/views/3d/interactive/editingTools/lineGraphicVisualElementUtils.js +1 -1
  383. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  384. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  385. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  386. package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
  387. package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
  388. package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
  389. package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
  390. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  391. package/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +1 -1
  392. package/views/3d/interactive/manipulatorUtils.js +1 -1
  393. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  394. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  395. package/views/3d/interactive/visualElements/LabelVisualElement.js +1 -1
  396. package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
  397. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  398. package/views/3d/interactive/visualElements/MarkerVisualElement.js +1 -1
  399. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  400. package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
  401. package/views/3d/interactive/visualElements/Object3DVisualElement.js +1 -1
  402. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  403. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  404. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  405. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  406. package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
  407. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  408. package/views/3d/interactive/visualElements/VisualElementResources.js +1 -1
  409. package/views/3d/interactive/visualElements/support/Segment.js +1 -1
  410. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  411. package/views/3d/layers/I3SMeshView3D.js +1 -1
  412. package/views/3d/layers/MediaLayerView3D.js +1 -1
  413. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  414. package/views/3d/layers/PointCloudWorker.js +1 -1
  415. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  416. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  417. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  418. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  419. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  420. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  421. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  422. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  423. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  424. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  425. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  426. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  427. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  428. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  429. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  430. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  431. package/views/3d/layers/graphics/LabelParameters.js +1 -1
  432. package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
  433. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  434. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  435. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  436. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  437. package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
  438. package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
  439. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  440. package/views/3d/layers/i3s/I3SProjectionUtil.js +1 -1
  441. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  442. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  443. package/views/3d/layers/i3s/LoDUtil.js +1 -1
  444. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  445. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  446. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  447. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  448. package/views/3d/layers/support/I3STreeDebugger.js +1 -1
  449. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  450. package/views/3d/layers/support/edgeUtils.js +1 -1
  451. package/views/3d/layers/support/patternUtils.js +1 -1
  452. package/views/3d/layers/support/uvUtils.js +1 -1
  453. package/views/3d/state/Frustum.js +1 -1
  454. package/views/3d/state/NearFarHeuristic.js +1 -1
  455. package/views/3d/state/ViewStateManager.js +1 -1
  456. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  457. package/views/3d/state/controllers/RotateController.js +1 -1
  458. package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
  459. package/views/3d/state/controllers/global/ZoomController.js +1 -1
  460. package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
  461. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  462. package/views/3d/state/controllers/local/ZoomController.js +1 -1
  463. package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
  464. package/views/3d/state/controllers/momentum/PanPlanarMomentumController.js +1 -1
  465. package/views/3d/state/controllers/momentum/PanSphericalMomentumController.js +1 -1
  466. package/views/3d/state/controllers/momentum/RotationMomentumController.js +1 -1
  467. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  468. package/views/3d/state/controllers/momentum/ZoomSphericalMomentumController.js +1 -1
  469. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  470. package/views/3d/state/utils/navigationUtils.js +1 -1
  471. package/views/3d/state/utils/viewUtils.js +1 -1
  472. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  473. package/views/3d/support/LaserLineRenderer.js +1 -1
  474. package/views/3d/support/LaserlinePathData.js +1 -1
  475. package/views/3d/support/RenderCoordsHelper.js +1 -1
  476. package/views/3d/support/StreamTextureCollection.js +1 -1
  477. package/views/3d/support/TextureCollection.js +1 -1
  478. package/views/3d/support/cameraUtils.js +1 -1
  479. package/views/3d/support/cameraUtilsInternal.js +1 -1
  480. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  481. package/views/3d/support/geometryUtils/ray.js +1 -1
  482. package/views/3d/support/intersectionUtils.js +1 -1
  483. package/views/3d/support/mathUtils.js +1 -1
  484. package/views/3d/support/orientedBoundingBox.js +1 -1
  485. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  486. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  487. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  488. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  489. package/views/3d/support/sunUtils.js +1 -1
  490. package/views/3d/support/viewpointUtils.js +1 -1
  491. package/views/3d/terrain/Overlay.js +1 -1
  492. package/views/3d/terrain/OverlayContent.js +5 -0
  493. package/views/3d/terrain/OverlayManager.js +1 -1
  494. package/views/3d/terrain/OverlayRenderTarget.js +1 -1
  495. package/views/3d/terrain/OverlayRenderer.js +1 -1
  496. package/views/3d/terrain/PatchGeometry.js +1 -1
  497. package/views/3d/terrain/PatchRenderData.js +1 -1
  498. package/views/3d/terrain/SphericalPatch.js +1 -1
  499. package/views/3d/terrain/TerrainRenderer.js +1 -1
  500. package/views/3d/terrain/TerrainSurface.js +1 -1
  501. package/views/3d/terrain/TextureReference.js +1 -1
  502. package/views/3d/terrain/Tile.js +1 -1
  503. package/views/3d/terrain/TileCompositor.js +1 -1
  504. package/views/3d/terrain/TileOverlayData.js +1 -1
  505. package/views/3d/terrain/TileRenderInfo.js +1 -1
  506. package/views/3d/terrain/interfaces.js +1 -1
  507. package/views/3d/terrain/support/MultiSizeFramebuffer.js +1 -1
  508. package/views/3d/webgl-engine/Stage.js +1 -1
  509. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  510. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  511. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  512. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  513. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  514. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +1 -1
  515. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +1 -1
  516. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +1 -1
  517. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +1 -1
  518. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +1 -1
  519. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +32 -53
  520. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +6 -6
  521. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
  522. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +9 -9
  523. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  524. package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
  525. package/views/3d/webgl-engine/effects/highlight/HighlightPassParameters.js +1 -1
  526. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  527. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  528. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  529. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  530. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  531. package/views/3d/webgl-engine/lib/CascadeCamera.js +1 -1
  532. package/views/3d/webgl-engine/lib/ContentObject.js +1 -1
  533. package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
  534. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  535. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  536. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  537. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  538. package/views/3d/webgl-engine/lib/ITexture.js +5 -0
  539. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  540. package/views/3d/webgl-engine/lib/IntersectorTarget.js +1 -1
  541. package/views/3d/webgl-engine/lib/LocalOriginManager.js +1 -1
  542. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  543. package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
  544. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  545. package/views/3d/webgl-engine/lib/Path.js +1 -1
  546. package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
  547. package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
  548. package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
  549. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  550. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  551. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  552. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  553. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  554. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  555. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  556. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  557. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  558. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  559. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderParameters.js +1 -1
  560. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  561. package/views/3d/webgl-engine/lib/edgeRendering/edgeBufferWriters.js +1 -1
  562. package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
  563. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  564. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  565. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  566. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  567. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  568. package/views/3d/webgl-engine/lib/octreeUtils.js +1 -1
  569. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  570. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  571. package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
  572. package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
  573. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  574. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  575. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  576. package/views/3d/webgl-engine/materials/LineDrawParameters.js +1 -1
  577. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  578. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  579. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  580. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  581. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  582. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  583. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  584. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  585. package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
  586. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  587. package/views/3d/webgl-engine/parts/Model.js +1 -1
  588. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  589. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  590. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  591. package/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +1 -1
  592. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  593. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  594. package/views/GroundView.js +1 -1
  595. package/views/SceneView.js +1 -1
  596. package/views/draw/DrawManipulator.js +1 -1
  597. package/views/draw/support/createUtils.js +1 -1
  598. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  599. package/views/interactive/GraphicManipulator.js +1 -1
  600. package/views/interactive/ManipulatorCollection.js +1 -1
  601. package/views/interactive/ToolViewManagerManipulatorState.js +1 -1
  602. package/views/interactive/coordinateHelper.js +1 -1
  603. package/views/interactive/dragEventPipeline.js +1 -1
  604. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  605. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  606. package/views/interactive/sketch/constraints.js +1 -1
  607. package/views/interactive/sketch/normalizedPoint.js +1 -1
  608. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  609. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  610. package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
  611. package/views/interactive/snapping/candidates/RightAngleTriangleSnappingCandidate.js +1 -1
  612. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  613. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  614. package/views/interactive/snapping/hints/IntersectionSnappingHint.js +1 -1
  615. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  616. package/views/interactive/snapping/hints/ParallelSnappingHint.js +1 -1
  617. package/views/interactive/snapping/hints/PointSnappingHint.js +1 -1
  618. package/views/interactive/snapping/hints/RightAngleSnappingHint.js +1 -1
  619. package/views/interactive/support/viewUtils.js +1 -1
  620. package/views/interactive/tooltip/constraintUtils.js +1 -1
  621. package/views/navigation/PanPlanarMomentumEstimator.js +1 -1
  622. package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
  623. package/views/navigation/gamepadAndKeyboardUtils.js +1 -1
  624. package/views/support/euclideanAreaMeasurementUtils.js +1 -1
  625. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  626. package/views/support/geometry3dUtils.js +1 -1
  627. package/views/support/layerViewUtils.js +1 -1
  628. package/webdoc/support/saveUtils.js +1 -1
  629. package/webscene/Slide.js +1 -1
  630. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  631. package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
  632. package/widgets/Editor/EditorViewModel.js +1 -1
  633. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  634. package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
  635. package/widgets/Editor/UpdateWorkflow.js +1 -1
  636. package/widgets/Editor/workflowUtils.js +1 -1
  637. package/widgets/Editor.js +1 -1
  638. package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
  639. package/widgets/ElevationProfile/support/constants.js +1 -1
  640. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  641. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  642. package/widgets/OrientedImageryViewer.js +1 -1
  643. package/widgets/Sketch.js +1 -1
  644. package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +4 -0
  645. package/widgets/smartMapping/BinaryColorSizeSlider.d.ts +4 -0
  646. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  647. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  648. package/widgets/support/templateUtils.js +5 -0
  649. package/assets/esri/core/workers/chunks/19857e5420cdf23c5f2e.js +0 -1
  650. package/assets/esri/core/workers/chunks/26289742b9280f0b5247.js +0 -1
  651. package/assets/esri/core/workers/chunks/46f6b77e586d78aeb75c.js +0 -1
  652. package/assets/esri/core/workers/chunks/4e39252f40bc57be9d12.js +0 -1
  653. package/assets/esri/core/workers/chunks/54513578f735d274a20e.js +0 -1
  654. package/assets/esri/core/workers/chunks/8dab0acdbbd5c282645a.js +0 -1
  655. package/assets/esri/core/workers/chunks/8e4b01a0cb8c8926f2b6.js +0 -1
  656. package/assets/esri/core/workers/chunks/a3a1d4f32e518e97d071.js +0 -1
  657. package/assets/esri/core/workers/chunks/b2d4a56197dcabdbae35.js +0 -1
  658. package/assets/esri/core/workers/chunks/be0565d923afba7ca300.js +0 -1
  659. package/assets/esri/core/workers/chunks/c99fa4189a114370b004.js +0 -1
  660. package/assets/esri/core/workers/chunks/daa79c14150c12d8bc3d.js +0 -1
  661. package/assets/esri/core/workers/chunks/ebd006fcd568a7731115.js +0 -1
  662. package/assets/esri/core/workers/chunks/f67388c4b7103fda6633.js +0 -1
  663. package/views/3d/analysis/Slice/images/Factory.js +0 -5
  664. /package/assets/esri/views/3d/analysis/{Slice/images → images}/heading-rotate.ts.svg +0 -0
  665. /package/assets/esri/views/3d/analysis/{Slice/images → images}/tilt-rotate.ts.svg +0 -0
  666. /package/views/3d/analysis/{Slice/images → images}/generateTextures.js +0 -0
  667. /package/views/3d/analysis/{Slice/images → images}/heading-rotate-svg.js +0 -0
  668. /package/views/3d/analysis/{Slice/images → images}/tilt-rotate-svg.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4828,5732],{92835:(t,e,n)=>{n.d(e,{Z:()=>p});var r,o=n(43697),i=n(96674),s=n(35463),a=n(5600),l=(n(75215),n(67676),n(80442),n(71715)),u=n(52011),c=n(30556);let h=r=class extends i.wq{static get allTime(){return d}static get empty(){return m}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,o=t.end?.getTime()??t.end;return e===r&&n===o}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.JE)(n,t,e));let o=this.end;if(o){const n=(0,s.JE)(o,t,e);o=o.getTime()===n.getTime()?n:(0,s.Nm)(n,1,t,e)}return new r({start:n,end:o})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,o=t.start?.getTime()??-1/0,i=t.end?.getTime()??1/0;let s,a;if(o>=e&&o<=n?s=o:e>=o&&e<=i&&(s=e),n>=o&&n<=i?a=n:i>=e&&i<=n&&(a=i),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const t=new r;return t.start=s===-1/0?null:new Date(s),t.end=a===1/0?null:new Date(a),t}return r.empty}offset(t,e,n="system"){if(this.isEmpty||this.isAllTime)return this.clone();const o=new r,{start:i,end:a}=this;return null!=i&&(o.start=(0,s.Nm)(i,t,e,n)),null!=a&&(o.end=(0,s.Nm)(a,t,e,n)),o}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,o._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,o._)([(0,l.r)("end")],h.prototype,"readEnd",null),(0,o._)([(0,c.c)("end")],h.prototype,"writeEnd",null),(0,o._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,o._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,o._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,o._)([(0,l.r)("start")],h.prototype,"readStart",null),(0,o._)([(0,c.c)("start")],h.prototype,"writeStart",null),h=r=(0,o._)([(0,u.j)("esri.TimeExtent")],h);const d=new h,m=new h({start:void 0,end:void 0}),p=h},5732:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},21787:(t,e,n)=>{n.d(e,{b:()=>l,c:()=>i,d:()=>c,e:()=>a,f:()=>o,i:()=>d,m:()=>u,t:()=>s});var r=n(46851);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,r,o,i,s,a,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=l,t[8]=u,t}function s(t,e){if(t===e){const n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l;let p=n*h+r*d+o*m;return p?(p=1/p,t[0]=h*p,t[1]=(-c*r+o*u)*p,t[2]=(a*r-o*s)*p,t[3]=d*p,t[4]=(c*n-o*l)*p,t[5]=(-a*n+o*i)*p,t[6]=m*p,t[7]=(-u*n+r*l)*p,t[8]=(s*n-r*i)*p,t):null}function l(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8];return t[0]=s*c-a*u,t[1]=o*u-r*c,t[2]=r*a-o*s,t[3]=a*l-i*c,t[4]=n*c-o*l,t[5]=o*i-n*a,t[6]=i*u-s*l,t[7]=r*l-n*u,t[8]=n*s-r*i,t}function u(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1],p=n[2],f=n[3],y=n[4],g=n[5],_=n[6],x=n[7],v=n[8];return t[0]=d*r+m*s+p*u,t[1]=d*o+m*a+p*c,t[2]=d*i+m*l+p*h,t[3]=f*r+y*s+g*u,t[4]=f*o+y*a+g*c,t[5]=f*i+y*l+g*h,t[6]=_*r+x*s+v*u,t[7]=_*o+x*a+v*c,t[8]=_*i+x*l+v*h,t}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],m=e[11],p=e[12],f=e[13],y=e[14],g=e[15],_=n*a-r*s,x=n*l-o*s,v=n*u-i*s,b=r*l-o*a,M=r*u-i*a,w=o*u-i*l,P=c*f-h*p,I=c*y-d*p,R=c*g-m*p,S=h*y-d*f,C=h*g-m*f,T=d*g-m*y;let Z=_*T-x*C+v*S+b*R-M*I+w*P;return Z?(Z=1/Z,t[0]=(a*T-l*C+u*S)*Z,t[1]=(l*R-s*T-u*I)*Z,t[2]=(s*C-a*R+u*P)*Z,t[3]=(o*C-r*T-i*S)*Z,t[4]=(n*T-o*R+i*I)*Z,t[5]=(r*R-n*C-i*P)*Z,t[6]=(f*w-y*M+g*b)*Z,t[7]=(y*v-p*w-g*x)*Z,t[8]=(p*M-f*v+g*_)*Z,t):null}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function d(t){const e=(0,r.g)(),n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(o*o+a*a+c*c))<=e&&Math.abs(1-(i*i+l*l+h*h))<=e}const m=u,p=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],l=t[7],u=t[8];return e*(u*i-s*l)+n*(-u*o+s*a)+r*(l*o-i*a)},equals:function(t,e){const n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],m=e[1],p=e[2],f=e[3],y=e[4],g=e[5],_=e[6],x=e[7],v=e[8],b=(0,r.g)();return Math.abs(n-d)<=b*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-m)<=b*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(i-p)<=b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-f)<=b*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(a-y)<=b*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-g)<=b*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-_)<=b*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(c-x)<=b*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(h-v)<=b*Math.max(1,Math.abs(h),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=n+n,a=r+r,l=o+o,u=n*s,c=r*s,h=r*a,d=o*s,m=o*a,p=o*l,f=i*s,y=i*a,g=i*l;return t[0]=1-h-p,t[3]=c-g,t[6]=d+y,t[1]=c+g,t[4]=1-u-p,t[7]=m-f,t[2]=d-y,t[5]=m+f,t[8]=1-u-h,t},fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:d,mul:m,multiply:u,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:c,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l,p=n*h+r*d+o*m;if(!p)return null;const f=1/p;return t[0]=h*f,t[1]=(-c*r+o*u)*f,t[2]=(a*r-o*s)*f,t[3]=d*f,t[4]=(c*n-o*l)*f,t[5]=(-a*n+o*i)*f,t[6]=m*f,t[7]=(-u*n+r*l)*f,t[8]=(s*n-r*i)*f,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=Math.sin(n),m=Math.cos(n);return t[0]=m*r+d*s,t[1]=m*o+d*a,t[2]=m*i+d*l,t[3]=m*s-d*r,t[4]=m*a-d*o,t[5]=m*l-d*i,t[6]=u,t[7]=c,t[8]=h,t},scale:function(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t},scaleByVec2:function(t,e,n){const r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:h,translate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=s,t[4]=a,t[5]=l,t[6]=d*r+m*s+u,t[7]=d*o+m*a+c,t[8]=d*i+m*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,s,a,l){return[t,e,n,r,o,i,s,a,l]}function i(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>i,c:()=>r,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:i,fromValues:o},Symbol.toStringTag,{value:"Module"}))},25929:(t,e,n)=>{n.d(e,{M:()=>p,a:()=>y,e:()=>d,f:()=>o,i:()=>c,p:()=>h,r:()=>s,t:()=>i,w:()=>a});var r=n(17452);function o(t,e){const n=e&&e.url&&e.url.path;if(t&&n&&(t=(0,r.hF)(t,n,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){const n=(0,r.PF)(t,e.portalItem.itemUrl);null!=n&&u.test(n)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(n).path)}return m(t,e&&e.portal)}function i(t,e,n=p.YES){if(null==t)return t;!(0,r.YP)(t)&&e&&e.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let o=(0,r.hF)(t);if(e){const n=e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.rootPath||e.url&&e.url.path;if(n){const i=m(n,e.portal),s=m(o,e.portal);o=(0,r.PF)(s,i,i),null!=o&&o!==s&&o!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(o)}}return o=d(o,e?.portal),(0,r.YP)(o)&&(o=(0,r.Fv)(o)),e?.resources&&e?.portalItem&&!(0,r.YP)(o)&&!(0,r.HK)(o)&&n===p.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(o),compress:!1}),o}function s(t,e,n){return o(t,n)}function a(t,e,n,r){const o=i(t,r);void 0!==o&&(e[n]=o)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function c(t){const e=t?.match(l)??null;return e?.[1]??null}function h(t){const e=t?.match(l)??null;if(null==e)return null;const n=e[2],o=n.lastIndexOf("/");if(-1===o){const{path:t,extension:e}=(0,r.fZ)(n);return{prefix:null,filename:t,extension:e}}const{path:i,extension:s}=(0,r.fZ)(n.slice(o+1));return{prefix:n.slice(0,o),filename:i,extension:s}}function d(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?(0,r.Ie)(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function m(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;const n=`${e.urlKey}.${e.customBaseUrl}`,o=(0,r.TI)();return(0,r.D6)(o,`${o.scheme}://${n}`)?(0,r.Ie)(t,e.portalHostname,n):(0,r.Ie)(t,n,e.portalHostname)}var p,f;(f=p||(p={}))[f.YES=0]="YES",f[f.NO=1]="NO";const y=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return p},ensureMainOnlineDomain:d,fromJSON:o,itemIdFromResourceUrl:c,prefixAndFilenameFromResourceUrl:h,read:s,toJSON:i,write:a},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>l});var r,o,i,s=n(5732),a={exports:{}};r=a,o=function(){function t(n,r,o,i,s){for(;i>o;){if(i-o>600){var a=i-o+1,l=r-o+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);t(n,r,Math.max(o,Math.floor(r-l*c/a+h)),Math.min(i,Math.floor(r+(a-l)*c/a+h)),s)}var d=n[r],m=o,p=i;for(e(n,o,r),s(n[i],d)>0&&e(n,o,i);m<p;){for(e(n,m,p),m++,p--;s(n[m],d)<0;)m++;for(;s(n[p],d)>0;)p--}0===s(n[o],d)?e(n,o,p):e(n,++p,i),p<=r&&(o=p+1),r<=p&&(i=p-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,o,i,s){t(e,r,o||0,i||e.length-1,s||n)}},void 0!==(i=o())&&(r.exports=i);const l=(0,s.g)(a.exports)},4307:(t,e,n)=>{n.d(e,{d:()=>l,l:()=>d,r:()=>p,s:()=>o,t:()=>m});var r=n(46851);function o(t,e,n){return t[0]=e,t[1]=n,t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function u(t,e){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function c(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function h(t){const e=t[0],n=t[1];return e*e+n*n}function d(t,e,n,r){const o=e[0],i=e[1];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t}function m(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o+n[4],t[1]=n[1]*r+n[3]*o+n[5],t}function p(t,e,n,r){const o=e[0]-n[0],i=e[1]-n[1],s=Math.sin(r),a=Math.cos(r);return t[0]=o*a-i*s+n[0],t[1]=o*s+i*a+n[1],t}const f=c,y=i,g=s,_=a,x=l,v=u,b=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],r=t[1],o=e[0],i=e[1];let s=n*n+r*r;s>0&&(s=1/Math.sqrt(s));let a=o*o+i*i;a>0&&(a=1/Math.sqrt(a));const l=(n*o+r*i)*s*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},dist:x,distance:l,div:_,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],o=t[1],i=e[0],s=e[1],a=(0,r.g)();return Math.abs(n-i)<=a*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-s)<=a*Math.max(1,Math.abs(o),Math.abs(s))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:f,length:c,lerp:d,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],r=e[1];let o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o),t},projectAndScale:function(t,e,n,r,o){let i=e[0]-n[0],s=e[1]-n[1];const a=(r[0]*i+r[1]*s)*(o-1);return i=r[0]*a,s=r[1]*a,t[0]=e[0]+i,t[1]=e[1]+s,t},random:function(t,e){e=e||1;const n=2*(0,r.R)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:o,sqrDist:v,sqrLen:b,squaredDistance:u,squaredLength:h,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:y,subtract:i,transformMat2:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o,t[1]=n[1]*r+n[3]*o,t},transformMat2d:m,transformMat3:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[3]*o+n[6],t[1]=n[1]*r+n[4]*o+n[7],t},transformMat4:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[4]*o+n[12],t[1]=n[1]*r+n[5]*o+n[13],t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function o(t,e){return[t,e]}function i(t,e){return new Float64Array(t,e,2)}function s(){return o(1,1)}function a(){return o(1,0)}function l(){return o(0,1)}n.d(e,{a:()=>r,c:()=>i,f:()=>o});const u=s(),c=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:h,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:i,fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},10699:(t,e,n)=>{n.d(e,{IG:()=>s,iv:()=>a});var r=n(43697),o=n(52011);let i=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return e=(0,r._)([(0,o.j)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:i++})}};return e=(0,r._)([(0,o.j)("esri.core.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};l=(0,r._)([(0,o.j)("esri.core.Identifiable")],l)},70921:(t,e,n)=>{n.d(e,{R:()=>i,Z:()=>o});var r=n(46791);function o(t,e,n=r.Z){return e||(e=new n),e===t||(e.removeAll(),(o=t)&&(Array.isArray(o)||"items"in o&&Array.isArray(o.items))?e.addMany(t):t&&e.add(t)),e;var o}function i(t){return t}},70163:(t,e,n)=>{n.d(e,{Jl:()=>c,n$:()=>h});var r=n(3172),o=n(20102),i=n(95330),s=n(17452),a=n(49917);let l=null,u=!0;function c(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(t,e,n)}catch(t){u=!1}const o=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return o.data.set(t,0),o}async function h(t,e){const{arrayBuffer:l,mediaType:u}=await async function(t,e){const n=(0,s.sJ)(t);if(n?.isBase64)return{arrayBuffer:(0,a.R)(n.data),mediaType:n.mediaType};const o=await(0,r.Z)(t,{responseType:"array-buffer",...e});return{arrayBuffer:o.data,mediaType:o.getHeader("Content-Type")}}(t,e),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:t,parseGif:r}=await n.e(3310).then(n.bind(n,83310));if(t(l))return r(l,e)}if(c){const{isAnimatedPNG:t,parseApng:r}=await n.e(4492).then(n.bind(n,54492));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.Z)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,i.D_)(t))throw new o.Z("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),e)}},24133:(t,e,n)=>{n.d(e,{Q:()=>s});var r=n(67676),o=n(44553),i=n(88764);class s{constructor(t=9,e){this._compareMinX=c,this._compareMinY=h,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),v.prune(),b.prune(),M.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(g(t,n))for(x.clear();n;){for(let o=0,i=n.children.length;o<i;o++){const i=n.children[o],s=n.leaf?r(i):i;g(t,s)&&(n.leaf?e(i):y(t,s)?this._all(i,e):x.push(i))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!g(t,e))return!1;for(x.clear();e;){for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],i=e.leaf?n(o):o;if(g(t,i)){if(e.leaf||y(t,i))return!0;x.push(o)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new I([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,i=0,s=!1;const a=this._toBBox(t);for(b.clear(),M.clear();n||b.length>0;){if(n||(n=b.pop(),o=b.data[b.length-1],i=M.pop()??0,s=!0),n.leaf&&(e=(0,r.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),b.push(n),this._condense(b),this;s||n.leaf||!y(n,a)?o?(i++,n=o.children[i],s=!1):n=null:(b.push(n),M.push(i),i=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(v.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else v.pushArray(n.children);n=v.pop()??null}}_build(t,e,n,r){const o=n-e+1;let i=this._maxEntries;if(o<=i){const r=new I(t.slice(e,n+1));return a(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const s=new R([]);s.height=r;const l=Math.ceil(o/i),u=l*Math.ceil(Math.sqrt(i));_(t,e,n,u,this._compareMinX);for(let o=e;o<=n;o+=u){const e=Math.min(o+u-1,n);_(t,o,e,l,this._compareMinY);for(let n=o;n<=e;n+=l){const o=Math.min(n+l-1,e);s.children.push(this._build(t,n,o,r-1))}}return a(s,this._toBBox),s}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,o=1/0;for(let i=0,s=e.children.length;i<s;i++){const s=e.children[i],a=d(s),l=p(t,s)-a;l<o?(o=l,r=a<r?a:r,n=s):l===o&&a<r&&(r=a,n=s)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,o=n?t:r(t);b.clear();const i=this._chooseSubtree(o,this._data,e,b);for(i.children.push(t),u(i,o);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;this._adjustParentBBoxes(o,b,e)}_split(t,e){const n=t.data[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);const i=this._chooseSplitIndex(n,o,r);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const s=n.children.splice(i,n.children.length-i),l=n.leaf?new I(s):new R(s);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,o,i;r=o=1/0;for(let s=e;s<=n-e;s++){const e=l(t,0,s,this._toBBox),a=l(t,s,n,this._toBBox),u=f(e,a),c=d(e)+d(a);u<r?(r=u,i=s,o=c<o?c:o):u===r&&c<o&&(o=c,i=s)}return i}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:c,o=t.leaf?this._compareMinY:h;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,o)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const o=this._toBBox,i=l(t,0,e,o),s=l(t,n-e,n,o);let a=m(i)+m(s);for(let r=e;r<n-e;r++){const e=t.children[r];u(i,t.leaf?o(e):e),a+=m(i)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];u(s,t.leaf?o(e):e),a+=m(s)}return a}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)u(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const o=t.data[e-1],i=o.children;i.splice((0,r.cq)(i,n,i.length,o.indexHint),1)}else this.clear();else a(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,o){o||(o=new I([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,s=e;s<n;s++)i=t.children[s],u(o,t.leaf?r(i):i);return o}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function f(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),o=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,o-n)*Math.max(0,i-r)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function _(t,e,n,r,o){const s=[e,n];for(;s.length;){const e=s.pop(),n=s.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,i.q)(t,a,n,e,o),s.push(n,a,a,e)}}const x=new o.Z,v=new o.Z,b=new o.Z,M=new o.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new r.SO}}class I extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,n)=>{n.d(e,{N1:()=>d,YP:()=>l,Z_:()=>f,gx:()=>u,nn:()=>y,on:()=>h,tX:()=>g}),n(66643),n(46791);var r=n(91460),o=n(50758),i=n(70586),s=n(95330),a=n(26258);function l(t,e,n={}){return c(t,e,n,m)}function u(t,e,n={}){return c(t,e,n,p)}function c(t,e,n={},r){let o=null;const s=n.once?(t,n)=>{r(t)&&((0,i.hw)(o),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(o=(0,a.aQ)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return o}function h(t,e,n,s={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function d(t){s.once&&s.once&&(0,i.hw)(c),n(t)}const m=l(t,((t,n)=>{h(),(0,r.vT)(t)&&(a=t,u=(0,r.on)(t,e,d),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return c=(0,o.kB)((()=>{m.remove(),h()})),c}function d(t,e){return function(t,e,n){if((0,s.Hc)(n))return Promise.reject((0,s.zE)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,i.hw)(a)}return new Promise(((r,i)=>{a=(0,o.AL)([(0,s.fu)(n,(()=>{l(),i((0,s.zE)())})),c(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??m)])}))}(t,p,e)}function m(t){return!0}function p(t){return!!t}n(87538);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},35463:(t,e,n)=>{n.d(e,{JE:()=>a,Nm:()=>s,rJ:()=>l});var r=n(90344),o=n(17126);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(t,e,n,i="system"){const s=new o.vF((0,r.f1)(i)),a=o.ou.fromJSDate(t,{zone:s}),l="decades"===n||"centuries"===n?"year":u(n);return"decades"===n&&(e*=10),"centuries"===n&&(e*=100),a.plus({[l]:e}).toJSDate()}function a(t,e,n="system"){const i=new o.vF((0,r.f1)(n)),s=o.ou.fromJSDate(t,{zone:i});if("decades"===e||"centuries"===e){const t=s.startOf("year"),{year:n}=t,r=n-n%("decades"===e?10:100);return t.set({year:r}).toJSDate()}const a=u(e);return s.startOf(a).toJSDate()}function l(t,e,n){return 0===t?0:t*i[e]/i[n]}function u(t){switch(t){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},41123:(t,e,n)=>{n.d(e,{D:()=>o,z:()=>i});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function i(){return`{${o()}}`}},73913:(t,e,n)=>{n.d(e,{Sy:()=>l,UZ:()=>s,XZ:()=>a,x3:()=>u});var r=n(58901),o=n(82971),i=n(33955);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:o.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:o.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,i.oU)(t)?t.rings:t.paths}},90344:(t,e,n)=>{n.d(e,{LJ:()=>P,Xr:()=>g,Ze:()=>b,f1:()=>S,i$:()=>I,o8:()=>w,p6:()=>M});var r=n(35454),o=n(70171),i=n(17126);const s={year:void 0,month:void 0,day:void 0,weekday:void 0},a={hour:void 0,minute:void 0,second:void 0},l=Intl.DateTimeFormat().resolvedOptions().timeZone,u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},f={...p,second:"numeric"},y={"short-date":c,"short-date-short-time":{...c,...p},"short-date-short-time-24":{...c,...p,hour12:!1},"short-date-long-time":{...c,...f},"short-date-long-time-24":{...c,...f,hour12:!1},"short-date-le":c,"short-date-le-short-time":{...c,...p},"short-date-le-short-time-24":{...c,...p,hour12:!1},"short-date-le-long-time":{...c,...f},"short-date-le-long-time-24":{...c,...f,hour12:!1},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...p},"long-month-day-year-short-time-24":{...h,...p,hour12:!1},"long-month-day-year-long-time":{...h,...f},"long-month-day-year-long-time-24":{...h,...f,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...p},"day-short-month-year-short-time-24":{...d,...p,hour12:!1},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,...f,hour12:!1},"long-date":m,"long-date-short-time":{...m,...p},"long-date-short-time-24":{...m,...p,hour12:!1},"long-date-long-time":{...m,...f},"long-date-long-time-24":{...m,...f,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":f},g=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),_={ar:"ar-u-nu-latn-ca-gregory"};let x=new WeakMap;const v=y["short-date-short-time"];function b(t){return y[t]}function M(t,e=v){return function(t){let e=x.get(t);if(!e){const n=(0,o.Kd)(),r=_[n]||n,i=R(t);e=new Intl.DateTimeFormat(r,i),x.set(t,e)}return e}(e).format(t)}function w(t,e=v){return M(new Date(t),{...e,...u,...a})}function P(t,e=v){return M(new Date(`1970-01-01T${t}Z`),{...e,...u,...s})}function I(t,e=v){const n=i.ou.fromISO(t,{setZone:!0}),r=(0,o.Kd)(),s=_[r]??r,a=R(e);return n.toLocaleString(a,{locale:s})}function R(t){const e=S(t.timeZone??"system");return{...t,timeZone:e}}function S(t){switch(t){case"system":return l;case"unknown":return"UTC";default:return t}}(0,o.Ze)((()=>{x=new WeakMap}))},87085:(t,e,n)=>{n.d(e,{Z:()=>x});var r=n(43697),o=(n(66577),n(3172)),i=n(20102),s=n(32448),a=n(10699),l=n(83379),u=n(92604),c=n(95330),h=n(17452),d=n(5600),m=(n(75215),n(67676),n(80442),n(52011)),p=n(68773),f=n(6570),y=n(82971);let g=0,_=class extends(s.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(3529).then(n.bind(n,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(8008).then(n.bind(n,28008));try{return await r(e)}catch(t){const n=e&&e.portalItem,r=n&&n.id||"unset",o=n&&n.portal&&n.portal.url||p.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,c.D_)(t)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.Cb)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.Cb)({type:f.Z})],_.prototype,"fullExtent",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,r._)([(0,d.Cb)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,r._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,r._)([(0,d.Cb)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,r._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,r._)([(0,d.Cb)({clonable:!1})],_.prototype,"parent",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,r._)([(0,d.Cb)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,r._)([(0,d.Cb)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,r._)([(0,d.Cb)({type:y.Z})],_.prototype,"spatialReference",void 0),(0,r._)([(0,d.Cb)({type:String})],_.prototype,"title",void 0),(0,r._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,r._)([(0,d.Cb)()],_.prototype,"url",void 0),(0,r._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,r._)([(0,m.j)("esri.layers.Layer")],_);const x=_},57765:(t,e,n)=>{n.r(e),n.d(e,{default:()=>ie});var r=n(43697),o=n(46791),i=n(20102),s=n(92604),a=n(16453),l=n(5600),u=n(90578),c=(n(67676),n(80442),n(71715)),h=n(52011),d=n(30556),m=n(87085),p=n(71612),f=n(38009),y=n(72965),g=n(3172),_=n(70163),x=n(17452),v=n(41123),b=(n(75215),n(10699)),M=n(96674),w=n(83379),P=n(92036),I=n(21787),R=n(46521),S=n(4307),C=n(17896);const T=(0,n(65617).c)(),Z=(0,R.c)(),B=(0,R.c)(),L=(0,R.c)();function O(t,e,n){return(0,C.s)(T,e[0],e[1],1),(0,C.t)(T,T,(0,I.t)(Z,n)),0===T[2]?(0,S.s)(t,T[0],T[1]):(0,S.s)(t,T[0]/T[2],T[1]/T[2])}function j(t,e,n){return E(B,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),E(L,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,I.m)(t,(0,I.b)(B,B),L),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function E(t,e,n,r,o,i,s,a,l){(0,I.c)(t,e,r,i,n,o,s,1,1,1),(0,C.s)(T,a,l,1),(0,I.b)(Z,t);const[u,c,h]=(0,C.t)(T,T,(0,I.t)(Z,Z));return(0,I.c)(Z,u,0,0,0,c,0,0,0,h),(0,I.m)(t,Z,t)}var Y=n(62357),D=n(97323),X=n(94139),A=n(38913),U=n(73615),N=n(82971),z=n(2368);let F=class extends z.j{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:r}=(0,U.projectOrLoad)(t,e);return r?null:r||n?n:(s.Z.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};F=(0,r._)([(0,h.j)("esri.layers.support.GeoreferenceBase")],F);const q=F,H=(0,R.c)(),V=(0,D.a)();let J=class extends P.Z{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r._)([(0,l.Cb)()],J.prototype,"sourcePoint",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],J.prototype,"mapPoint",void 0),J=(0,r._)([(0,h.j)("esri.layers.support.ControlPoint")],J);let k=class extends((0,M.eC)(q)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=N.Z.fromJSON(e.spatialReference),r=(0,R.f)(...e.coefficients,1);return t.map((t=>((0,S.s)(V,t.x,t.y),O(V,V,r),{sourcePoint:t,mapPoint:new X.Z({x:V[0],y:V[1],spatialReference:n})})))}writeControlPoints(t,e,n,r){if(null!=this.transform)null!=t&&W(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new i.Z("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(t):s.Z.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(H);if(null==t||!W(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,r){const o=(0,D.f)(0,n),i=(0,D.f)(0,0),s=(0,D.f)(e,0),a=(0,D.f)(e,n);return O(o,o,t),O(i,i,t),O(s,s,t),O(a,a,t),new A.Z({rings:[[o,i,s,a,o]],spatialReference:r})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!W(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:r}=this,{rings:[[o,i,s,a]]}=t,l={sourcePoint:(0,Y.vW)(0,r),mapPoint:new X.Z({x:o[0],y:o[1],spatialReference:e})},u={sourcePoint:(0,Y.vW)(0,0),mapPoint:new X.Z({x:i[0],y:i[1],spatialReference:e})},c={sourcePoint:(0,Y.vW)(n,0),mapPoint:new X.Z({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,Y.vW)(n,r),mapPoint:new X.Z({x:a[0],y:a[1],spatialReference:e})};W(l)&&W(u)&&W(c)&&W(h)&&(st(H,l,u,c,h),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,S.s)(V,t.x,t.y),O(V,V,H),{sourcePoint:t,mapPoint:new X.Z({x:V[0],y:V[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,I.e)((0,R.c)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!W(this.controlPoints[0]))return null;(0,S.s)(V,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return O(V,V,this.transform),new X.Z({x:V[0],y:V[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!W(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,U.projectOrLoad)(t,e).geometry)?null:((0,S.s)(V,t.x,t.y),O(V,V,this.inverseTransform),(0,Y.vW)(V[0],V[1]))}_updateTransform(t){const{controlPoints:e,width:n,height:r}=this;if(!(null!=e&&n>0&&r>0))return null;const[o,i,s,a]=e;if(!W(o))return null;const l=o.mapPoint.spatialReference,u=this._projectControlPoint(i,l),c=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!u.valid||!c.valid||!h.valid)return null;if(!W(u.controlPoint))return null;null==t&&(t=(0,R.c)());let d=null;return d=W(c.controlPoint)&&W(h.controlPoint)?st(t,o,u.controlPoint,c.controlPoint,h.controlPoint):W(c.controlPoint)?function(t,e,n,r){return it(G,tt,e),it($,et,n),it(K,nt,r),(0,S.l)(Q,G,$,.5),(0,S.r)(Q,K,Q,Math.PI),(0,S.l)(rt,tt,et,.5),(0,S.r)(rt,nt,rt,Math.PI),ct(t,G,$,K,Q,tt,et,nt,rt)}(t,o,u.controlPoint,c.controlPoint):function(t,e,n){return it(G,tt,e),it($,et,n),(0,S.r)(K,$,G,ot),(0,S.r)(Q,G,$,ot),(0,S.r)(nt,et,tt,-ot),(0,S.r)(rt,tt,et,-ot),ct(t,G,$,K,Q,tt,et,nt,rt)}(t,o,u.controlPoint),d.every((t=>0===t))?null:d}_projectControlPoint(t,e){if(!W(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:r}=t,{geometry:o,pending:i}=(0,U.projectOrLoad)(r,e);return i?{valid:!1,controlPoint:null}:i||o?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:o}}:(s.Z.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:r.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function W(t){return null!=t&&null!=t.sourcePoint&&null!=t.mapPoint}(0,r._)([(0,l.Cb)({type:[J],json:{write:{allowNull:!1,isRequired:!0}}})],k.prototype,"controlPoints",void 0),(0,r._)([(0,c.r)("controlPoints")],k.prototype,"readControlPoints",null),(0,r._)([(0,d.c)("controlPoints")],k.prototype,"writeControlPoints",null),(0,r._)([(0,l.Cb)()],k.prototype,"coords",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],k.prototype,"height",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],k.prototype,"inverseTransform",null),(0,r._)([(0,l.Cb)({readOnly:!0})],k.prototype,"transform",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],k.prototype,"width",void 0),k=(0,r._)([(0,h.j)("esri.layers.support.ControlPointsGeoreference")],k);const G=(0,D.a)(),$=(0,D.a)(),K=(0,D.a)(),Q=(0,D.a)(),tt=(0,D.a)(),et=(0,D.a)(),nt=(0,D.a)(),rt=(0,D.a)(),ot=Math.PI/2;function it(t,e,n){(0,S.s)(t,n.sourcePoint.x,n.sourcePoint.y),(0,S.s)(e,n.mapPoint.x,n.mapPoint.y)}function st(t,e,n,r,o){return it(G,tt,e),it($,et,n),it(K,nt,r),it(Q,rt,o),ct(t,G,$,K,Q,tt,et,nt,rt)}const at=new Array(8).fill(0),lt=new Array(8).fill(0);function ut(t,e,n,r,o){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=r[0],t[5]=r[1],t[6]=o[0],t[7]=o[1],t}function ct(t,e,n,r,o,i,s,a,l){return j(t,ut(at,e,n,r,o),ut(lt,i,s,a,l))}const ht=k;let dt=class extends q{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:r}=this;if(null==t||null==e||null==n||null==r)return null;const o=t.spatialReference;return e=this.projectOrWarn(e,o),n=this.projectOrWarn(n,o),r=this.projectOrWarn(r,o),null==e||null==n||null==r?null:new A.Z({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[r.x,r.y],[n.x,n.y]]],spatialReference:o})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[r,o,i,s]]}=t;this.bottomLeft=new X.Z({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new X.Z({x:o[0],y:o[1],spatialReference:n}),this.topRight=new X.Z({x:i[0],y:i[1],spatialReference:n}),this.bottomRight=new X.Z({x:s[0],y:s[1],spatialReference:n})}};(0,r._)([(0,l.Cb)()],dt.prototype,"coords",null),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"bottomLeft",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"bottomRight",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"topLeft",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"topRight",void 0),dt=(0,r._)([(0,h.j)("esri.layers.support.CornersGeoreference")],dt);const mt=dt;var pt=n(22021),ft=n(46851),yt=n(6570);let gt=class extends q{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:o}=this.extent;let i;if(this.rotation){const{x:o,y:s}=this.extent.center,a=_t(o,s,this.rotation);i=[a(t,e),a(t,r),a(n,r),a(n,e)],i.push(i[0])}else i=[[t,e],[t,r],[n,r],[n,e],[t,e]];return new A.Z({rings:[i],spatialReference:o})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(null==(t=this.projectOrWarn(t,e))||null==t.extent)return;const{rings:[[n,r,o]],extent:{center:{x:i,y:s}}}=t,a=(0,pt.BV)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=_t(i,s,-a),[u,c]=l(n[0],n[1]),[h,d]=l(o[0],o[1]);this.extent=new yt.Z({xmin:u,ymin:c,xmax:h,ymax:d,spatialReference:e}),this.rotation=a}};function _t(t,e,n){const r=(0,ft.t)(n),o=Math.cos(r),i=Math.sin(r);return(n,r)=>[o*(n-t)+i*(r-e)+t,o*(r-e)-i*(n-t)+e]}(0,r._)([(0,l.Cb)()],gt.prototype,"coords",null),(0,r._)([(0,l.Cb)({type:yt.Z})],gt.prototype,"extent",void 0),(0,r._)([(0,l.Cb)({type:Number})],gt.prototype,"rotation",void 0),gt=(0,r._)([(0,h.j)("esri.layers.support.ExtentAndRotationGeoreference")],gt);const xt={key:"type",base:q,typeMap:{"control-points":ht,corners:mt,"extent-and-rotation":gt}};let vt=class extends((0,b.iv)((0,M.eC)(w.Z))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return ht.fromJSON(t)}};(0,r._)([(0,l.Cb)({types:xt,json:{write:!0}})],vt.prototype,"georeference",void 0),(0,r._)([(0,c.r)("georeference")],vt.prototype,"readGeoreference",null),(0,r._)([(0,l.Cb)()],vt.prototype,"opacity",void 0),vt=(0,r._)([(0,h.j)("esri.layers.support.MediaElementBase")],vt);const bt=vt;var Mt=n(66094),wt=n(25929);let Pt=class extends bt{constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,_.n$)(t).then((t=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new i.Z("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}readImage(t,e,n){return(0,wt.f)(e.url,n)}writeImage(t,e,n,r){if(null==t)return;const o=r?.portalItem,i=r?.resources;if(!o||!i)return void("string"==typeof t&&(e[n]=(0,wt.t)(t,r)));const s="string"!=typeof t||(0,x.HK)(t)||(0,x.jc)(t)?null:t;if(s){if(null==(0,wt.i)(s))return void(e[n]=s);const t=(0,wt.t)(s,{...r,verifyItemRelativeUrls:r&&r.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},wt.M.NO);if(o&&t&&!(0,x.YP)(t))return i.toKeep.push({resource:o.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",i.pendingOperations.push(Rt(t).then((t=>{const r=function(t,e){const n=(0,v.D)(),r=`${(0,x.v_)("media",n)}.${(0,Mt.B)(t)}`;return e.resourceFromPath(r)}(t,o);e[n]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:t,compress:!1,finish:t=>{this.image=t.url}})})))}};(0,r._)([(0,l.Cb)()],Pt.prototype,"animationOptions",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],Pt.prototype,"content",void 0),(0,r._)([(0,l.Cb)({json:{name:"url",type:String}})],Pt.prototype,"image",void 0),(0,r._)([(0,c.r)("image",["url"])],Pt.prototype,"readImage",null),(0,r._)([(0,d.c)("image")],Pt.prototype,"writeImage",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{name:"mediaType"}})],Pt.prototype,"type",void 0),Pt=(0,r._)([(0,h.j)("esri.layers.support.ImageElement")],Pt);const It=Pt;async function Rt(t){if("string"==typeof t){if((0,x.jc)(t)){const{data:e}=await(0,g.Z)(t,{responseType:"blob"});return e}return(0,x.HK)(t)?(0,x.fw)(t):Rt((await(0,g.Z)(t,{responseType:"image"})).data)}return new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,r=document.createElement("canvas"),o=r.getContext("2d");return r.width=e,r.height=n,t instanceof HTMLImageElement?o.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&o.putImageData(t,0,0),r}(t).toBlob(e)))}n(66577);var St=n(70921),Ct=n(32448),Tt=n(609),Zt=n(95330),Bt=n(17445),Lt=n(24470),Ot=n(87416),jt=n(8744),Et=n(37549),Yt=n(20322),Dt=n(86662),Xt=n(33955),At=n(73913);function Ut(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,At.XZ)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,At.XZ)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,At.XZ)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,At.XZ)(r,n);t.x+=e*(-2*n)}}return t}function Nt(t,e){const n=[],{ymin:r,ymax:o,xmin:i,xmax:s}=t,a=t.xmax-t.xmin,[l,u]=e.valid,{x:c,frameId:h}=zt(t.xmin,e),{x:d,frameId:m}=zt(t.xmax,e),p=c===d&&a>0;if(a>2*u){const t={xmin:i<s?c:d,ymin:r,xmax:u,ymax:o},e={xmin:l,ymin:r,xmax:i<s?d:c,ymax:o},a={xmin:0,ymin:r,xmax:u,ymax:o},p={xmin:l,ymin:r,xmax:0,ymax:o},f=[],y=[];Ft(t,a)&&f.push(h),Ft(t,p)&&y.push(h),Ft(e,a)&&f.push(m),Ft(e,p)&&y.push(m);for(let t=h+1;t<m;t++)f.push(t),y.push(t);n.push(new Vt(t,[h]),new Vt(e,[m]),new Vt(a,f),new Vt(p,y))}else c>d||p?n.push(new Vt({xmin:c,ymin:r,xmax:u,ymax:o},[h]),new Vt({xmin:l,ymin:r,xmax:d,ymax:o},[m])):n.push(new Vt({xmin:c,ymin:r,xmax:d,ymax:o},[h]));return n}function zt(t,e){const[n,r]=e.valid,o=2*r;let i,s=0;return t>r?(i=Math.ceil(Math.abs(t-r)/o),t-=i*o,s=i):t<n&&(i=Math.ceil(Math.abs(t-n)/o),t+=i*o,s=-i),{x:t,frameId:s}}function Ft(t,e){const{xmin:n,ymin:r,xmax:o,ymax:i}=e;return qt(t,n,r)&&qt(t,n,i)&&qt(t,o,i)&&qt(t,o,r)}function qt(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function Ht(t,e,n=!0){const r=!(0,Xt.l9)(t);if(r&&(0,Dt.Zy)(t),n)return(new kt).cut(t,e);const o=r?t.rings:t.paths,i=r?4:2,s=o.length,a=-2*e;for(let t=0;t<s;t++){const e=o[t];if(e&&e.length>=i){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);o.push(t)}}return r?t.rings=o:t.paths=o,t}class Vt{constructor(t,e){this.extent=t,this.frameIds=e}}const Jt=(0,Lt.Ue)();class kt{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const r=t.length;r>1&&t[r-1][0]===e&&t[r-2][0]===e?t[r-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Wt=class extends P.Z{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t||null==t.extent?null:(0,Lt.oJ)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,U.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return A.Z.fromJSON(function(t,e){if(null==t)return null;const n=t.spatialReference,r=(0,jt.C5)(n),o=(0,M.AK)(t)?t.toJSON():t;if(!r)return o;const i=(0,jt.sS)(n)?102100:4326,s=At.UZ[i].maxX,a=At.UZ[i].minX;if((0,Xt.wp)(o))return Ut(o,s,a);if((0,Xt.aW)(o))return o.points=o.points.map((t=>Ut(t,s,a))),o;if((0,Xt.YX)(o))return function(t,e){if(!e)return t;const n=Nt(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}(o,r);if((0,Xt.oU)(o)||(0,Xt.l9)(o)){const t=(0,Yt.$P)(Jt,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,At.XZ)(n.xmin,a)*(2*s),i=0===r?o:(0,At.Sy)(o,r);return n.xmin+=r,n.xmax+=r,n.xmax>s?Ht(i,s,e):n.xmin<a?Ht(i,a,e):i}return o}(this.coords,!0))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,Lt.oJ)(t):null}};(0,r._)([(0,l.Cb)()],Wt.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)()],Wt.prototype,"element",void 0),(0,r._)([(0,l.Cb)()],Wt.prototype,"bounds",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"coords",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"normalizedCoords",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"normalizedBounds",null),Wt=(0,r._)([(0,h.j)("esri.layers.support.MediaElementView")],Wt);var Gt=n(91460);let $t=class extends bt{constructor(t){super(t),this.autoplay=!0,this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new i.Z("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.Z.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{const r=(0,Gt.IH)(t,"canplay",(()=>{this.removeHandles("canplay"),this.autoplay?t.play().then(e,n):e()}));this.addHandles(r,"canplay"),"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src?.includes("blob:")||(t.src=t.src))}))}};(0,r._)([(0,l.Cb)()],$t.prototype,"autoplay",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],$t.prototype,"content",void 0),(0,r._)([(0,l.Cb)()],$t.prototype,"video",null),$t=(0,r._)([(0,h.j)("esri.layers.support.VideoElement")],$t);const Kt=$t,Qt={key:"type",defaultKeyValue:"image",base:bt,typeMap:{image:It,video:Kt}},te=o.Z.ofType(Qt);let ee=class extends(w.Z.LoadableMixin((0,Tt.v)(Ct.Z.EventedAccessor))){constructor(t){super(t),this._index=new Et.H,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.removeHandles(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Wt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const r=(0,Bt.YP)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.addHandles(r,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new te}async load(t){if((0,Zt.k_)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference&&null!=t.georeference.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:N.Z.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,St.Z)(t,this._get("elements"),te))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new yt.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):s.Z.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,U.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,jt.fS)(t.spatialReference,this.spatialReference)?t:(0,U.project)(t,this.spatialReference);if(!n)return[];const r=n.normalize(),o=[];for(const t of r)this._index.forEachInBounds((0,Lt.oJ)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,Ot.Nl)(t,e)&&o.push(n)}));return o.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),o}_updateIndexForElement(t,e){const n=t.normalizedBounds,r=this._index.has(t),o=null!=n;this._index.delete(t),o&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(r!==o?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,r._)([(0,l.Cb)()],ee.prototype,"elements",null),(0,r._)([(0,l.Cb)({readOnly:!0})],ee.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)()],ee.prototype,"spatialReference",null),ee=(0,r._)([(0,h.j)("esri.layers.support.LocalMediaElementSource")],ee);const ne=ee;function re(t){return"object"==typeof t&&null!=t&&"type"in t}let oe=class extends((0,p.h)((0,y.M)((0,f.q)((0,a.R)(m.Z))))){constructor(t){super(t),this.effectiveSource=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this.source=new ne}load(t){const e=this.source;if(!e)return this.addResolvingPromise(Promise.reject(new i.Z("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer."))),Promise.resolve(this);const n=re(e)?new ne({elements:new o.Z([e])}):e;this._set("effectiveSource",n),this.spatialReference&&(n.spatialReference=this.spatialReference);const r=n.load(t).then((()=>{this.spatialReference=n.spatialReference}));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.effectiveSource?.destroy(),this.source?.destroy()}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"not-loaded"===this.loadStatus?this._set("source",t):s.Z.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new ne({elements:new o.Z(t)}):t instanceof o.Z?new ne({elements:t}):t:null}readSource(t,e,n){const r="image"===e.mediaType?new It:"video"===e.mediaType?new Kt:null;return r?.read(e,n),r}writeSource(t,e,n,r){t&&re(t)&&"image"===t.type?t.write(e,r):r?.messages&&r?.messages?.push(new i.Z("media-layer:unsupported-source","source must be an 'ImageElement'"))}};(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"effectiveSource",void 0),(0,r._)([(0,l.Cb)({type:String})],oe.prototype,"copyright",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)({type:["MediaLayer"]})],oe.prototype,"operationalLayerType",void 0),(0,r._)([(0,l.Cb)({type:["show","hide"]})],oe.prototype,"listMode",void 0),(0,r._)([(0,l.Cb)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1}}})],oe.prototype,"source",null),(0,r._)([(0,u.p)("source")],oe.prototype,"castSource",null),(0,r._)([(0,c.r)("source",["url"])],oe.prototype,"readSource",null),(0,r._)([(0,d.c)("source")],oe.prototype,"writeSource",null),(0,r._)([(0,l.Cb)()],oe.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"type",void 0),oe=(0,r._)([(0,h.j)("esri.layers.MediaLayer")],oe);const ie=oe},37549:(t,e,n)=>{n.d(e,{H:()=>a});var r=n(80442),o=n(24133),i=n(24470);const s={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 o.Q(9,(0,r.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,r)=>{t[e++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,i.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3]})(e),t.search(s,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},66094:(t,e,n)=>{n.d(e,{B:()=>o});var r=n(17452);function o(t){return i[function(t){return t instanceof Blob?t.type:function(t){const e=(0,r.Ml)(t);return l[e]||s}(t.url)}(t)]||a}const i={},s="text/plain",a=i[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)i[l[t]]=t}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4828,5732],{92835:(t,e,n)=>{n.d(e,{Z:()=>p});var r,o=n(43697),i=n(96674),s=n(35463),a=n(5600),l=(n(75215),n(67676),n(80442),n(71715)),u=n(52011),c=n(30556);let h=r=class extends i.wq{static get allTime(){return d}static get empty(){return m}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,o=t.end?.getTime()??t.end;return e===r&&n===o}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.JE)(n,t,e));let o=this.end;if(o){const n=(0,s.JE)(o,t,e);o=o.getTime()===n.getTime()?n:(0,s.Nm)(n,1,t,e)}return new r({start:n,end:o})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,o=t.start?.getTime()??-1/0,i=t.end?.getTime()??1/0;let s,a;if(o>=e&&o<=n?s=o:e>=o&&e<=i&&(s=e),n>=o&&n<=i?a=n:i>=e&&i<=n&&(a=i),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const t=new r;return t.start=s===-1/0?null:new Date(s),t.end=a===1/0?null:new Date(a),t}return r.empty}offset(t,e,n="system"){if(this.isEmpty||this.isAllTime)return this.clone();const o=new r,{start:i,end:a}=this;return null!=i&&(o.start=(0,s.Nm)(i,t,e,n)),null!=a&&(o.end=(0,s.Nm)(a,t,e,n)),o}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,o._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,o._)([(0,l.r)("end")],h.prototype,"readEnd",null),(0,o._)([(0,c.c)("end")],h.prototype,"writeEnd",null),(0,o._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,o._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,o._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,o._)([(0,l.r)("start")],h.prototype,"readStart",null),(0,o._)([(0,c.c)("start")],h.prototype,"writeStart",null),h=r=(0,o._)([(0,u.j)("esri.TimeExtent")],h);const d=new h,m=new h({start:void 0,end:void 0}),p=h},5732:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},21787:(t,e,n)=>{n.d(e,{a:()=>l,d:()=>a,f:()=>o,i:()=>d,m:()=>u,n:()=>c,s:()=>i,t:()=>s});var r=n(46851);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,r,o,i,s,a,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=l,t[8]=u,t}function s(t,e){if(t===e){const n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l;let p=n*h+r*d+o*m;return p?(p=1/p,t[0]=h*p,t[1]=(-c*r+o*u)*p,t[2]=(a*r-o*s)*p,t[3]=d*p,t[4]=(c*n-o*l)*p,t[5]=(-a*n+o*i)*p,t[6]=m*p,t[7]=(-u*n+r*l)*p,t[8]=(s*n-r*i)*p,t):null}function l(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8];return t[0]=s*c-a*u,t[1]=o*u-r*c,t[2]=r*a-o*s,t[3]=a*l-i*c,t[4]=n*c-o*l,t[5]=o*i-n*a,t[6]=i*u-s*l,t[7]=r*l-n*u,t[8]=n*s-r*i,t}function u(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1],p=n[2],f=n[3],y=n[4],g=n[5],_=n[6],x=n[7],b=n[8];return t[0]=d*r+m*s+p*u,t[1]=d*o+m*a+p*c,t[2]=d*i+m*l+p*h,t[3]=f*r+y*s+g*u,t[4]=f*o+y*a+g*c,t[5]=f*i+y*l+g*h,t[6]=_*r+x*s+b*u,t[7]=_*o+x*a+b*c,t[8]=_*i+x*l+b*h,t}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],m=e[11],p=e[12],f=e[13],y=e[14],g=e[15],_=n*a-r*s,x=n*l-o*s,b=n*u-i*s,v=r*l-o*a,M=r*u-i*a,w=o*u-i*l,P=c*f-h*p,I=c*y-d*p,R=c*g-m*p,S=h*y-d*f,C=h*g-m*f,T=d*g-m*y;let Z=_*T-x*C+b*S+v*R-M*I+w*P;return Z?(Z=1/Z,t[0]=(a*T-l*C+u*S)*Z,t[1]=(l*R-s*T-u*I)*Z,t[2]=(s*C-a*R+u*P)*Z,t[3]=(o*C-r*T-i*S)*Z,t[4]=(n*T-o*R+i*I)*Z,t[5]=(r*R-n*C-i*P)*Z,t[6]=(f*w-y*M+g*v)*Z,t[7]=(y*b-p*w-g*x)*Z,t[8]=(p*M-f*b+g*_)*Z,t):null}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function d(t){const e=(0,r.g)(),n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(o*o+a*a+c*c))<=e&&Math.abs(1-(i*i+l*l+h*h))<=e}const m=u,p=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],l=t[7],u=t[8];return e*(u*i-s*l)+n*(-u*o+s*a)+r*(l*o-i*a)},equals:function(t,e){const n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],m=e[1],p=e[2],f=e[3],y=e[4],g=e[5],_=e[6],x=e[7],b=e[8],v=(0,r.g)();return Math.abs(n-d)<=v*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-m)<=v*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-f)<=v*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(a-y)<=v*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-g)<=v*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-_)<=v*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(c-x)<=v*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(h-b)<=v*Math.max(1,Math.abs(h),Math.abs(b))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=n+n,a=r+r,l=o+o,u=n*s,c=r*s,h=r*a,d=o*s,m=o*a,p=o*l,f=i*s,y=i*a,g=i*l;return t[0]=1-h-p,t[3]=c-g,t[6]=d+y,t[1]=c+g,t[4]=1-u-p,t[7]=m-f,t[2]=d-y,t[5]=m+f,t[8]=1-u-h,t},fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:d,mul:m,multiply:u,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:c,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l,p=n*h+r*d+o*m;if(!p)return null;const f=1/p;return t[0]=h*f,t[1]=(-c*r+o*u)*f,t[2]=(a*r-o*s)*f,t[3]=d*f,t[4]=(c*n-o*l)*f,t[5]=(-a*n+o*i)*f,t[6]=m*f,t[7]=(-u*n+r*l)*f,t[8]=(s*n-r*i)*f,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=Math.sin(n),m=Math.cos(n);return t[0]=m*r+d*s,t[1]=m*o+d*a,t[2]=m*i+d*l,t[3]=m*s-d*r,t[4]=m*a-d*o,t[5]=m*l-d*i,t[6]=u,t[7]=c,t[8]=h,t},scale:function(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t},scaleByVec2:function(t,e,n){const r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:h,translate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=s,t[4]=a,t[5]=l,t[6]=d*r+m*s+u,t[7]=d*o+m*a+c,t[8]=d*i+m*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,s,a,l){return[t,e,n,r,o,i,s,a,l]}function i(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>i,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:i,fromValues:o},Symbol.toStringTag,{value:"Module"}))},25929:(t,e,n)=>{n.d(e,{M:()=>p,a:()=>y,e:()=>d,f:()=>o,i:()=>c,p:()=>h,r:()=>s,t:()=>i,w:()=>a});var r=n(17452);function o(t,e){const n=e&&e.url&&e.url.path;if(t&&n&&(t=(0,r.hF)(t,n,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){const n=(0,r.PF)(t,e.portalItem.itemUrl);null!=n&&u.test(n)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(n).path)}return m(t,e&&e.portal)}function i(t,e,n=p.YES){if(null==t)return t;!(0,r.YP)(t)&&e&&e.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let o=(0,r.hF)(t);if(e){const n=e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.rootPath||e.url&&e.url.path;if(n){const i=m(n,e.portal),s=m(o,e.portal);o=(0,r.PF)(s,i,i),null!=o&&o!==s&&o!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(o)}}return o=d(o,e?.portal),(0,r.YP)(o)&&(o=(0,r.Fv)(o)),e?.resources&&e?.portalItem&&!(0,r.YP)(o)&&!(0,r.HK)(o)&&n===p.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(o),compress:!1}),o}function s(t,e,n){return o(t,n)}function a(t,e,n,r){const o=i(t,r);void 0!==o&&(e[n]=o)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function c(t){const e=t?.match(l)??null;return e?.[1]??null}function h(t){const e=t?.match(l)??null;if(null==e)return null;const n=e[2],o=n.lastIndexOf("/");if(-1===o){const{path:t,extension:e}=(0,r.fZ)(n);return{prefix:null,filename:t,extension:e}}const{path:i,extension:s}=(0,r.fZ)(n.slice(o+1));return{prefix:n.slice(0,o),filename:i,extension:s}}function d(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?(0,r.Ie)(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function m(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;const n=`${e.urlKey}.${e.customBaseUrl}`,o=(0,r.TI)();return(0,r.D6)(o,`${o.scheme}://${n}`)?(0,r.Ie)(t,e.portalHostname,n):(0,r.Ie)(t,n,e.portalHostname)}var p,f;(f=p||(p={}))[f.YES=0]="YES",f[f.NO=1]="NO";const y=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return p},ensureMainOnlineDomain:d,fromJSON:o,itemIdFromResourceUrl:c,prefixAndFilenameFromResourceUrl:h,read:s,toJSON:i,write:a},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>l});var r,o,i,s=n(5732),a={exports:{}};r=a,o=function(){function t(n,r,o,i,s){for(;i>o;){if(i-o>600){var a=i-o+1,l=r-o+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);t(n,r,Math.max(o,Math.floor(r-l*c/a+h)),Math.min(i,Math.floor(r+(a-l)*c/a+h)),s)}var d=n[r],m=o,p=i;for(e(n,o,r),s(n[i],d)>0&&e(n,o,i);m<p;){for(e(n,m,p),m++,p--;s(n[m],d)<0;)m++;for(;s(n[p],d)>0;)p--}0===s(n[o],d)?e(n,o,p):e(n,++p,i),p<=r&&(o=p+1),r<=p&&(i=p-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,o,i,s){t(e,r,o||0,i||e.length-1,s||n)}},void 0!==(i=o())&&(r.exports=i);const l=(0,s.g)(a.exports)},4307:(t,e,n)=>{n.d(e,{d:()=>l,l:()=>d,r:()=>p,s:()=>o,t:()=>m});var r=n(46851);function o(t,e,n){return t[0]=e,t[1]=n,t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function u(t,e){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function c(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function h(t){const e=t[0],n=t[1];return e*e+n*n}function d(t,e,n,r){const o=e[0],i=e[1];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t}function m(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o+n[4],t[1]=n[1]*r+n[3]*o+n[5],t}function p(t,e,n,r){const o=e[0]-n[0],i=e[1]-n[1],s=Math.sin(r),a=Math.cos(r);return t[0]=o*a-i*s+n[0],t[1]=o*s+i*a+n[1],t}const f=c,y=i,g=s,_=a,x=l,b=u,v=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],r=t[1],o=e[0],i=e[1];let s=n*n+r*r;s>0&&(s=1/Math.sqrt(s));let a=o*o+i*i;a>0&&(a=1/Math.sqrt(a));const l=(n*o+r*i)*s*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},dist:x,distance:l,div:_,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],o=t[1],i=e[0],s=e[1],a=(0,r.g)();return Math.abs(n-i)<=a*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-s)<=a*Math.max(1,Math.abs(o),Math.abs(s))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:f,length:c,lerp:d,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],r=e[1];let o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o),t},projectAndScale:function(t,e,n,r,o){let i=e[0]-n[0],s=e[1]-n[1];const a=(r[0]*i+r[1]*s)*(o-1);return i=r[0]*a,s=r[1]*a,t[0]=e[0]+i,t[1]=e[1]+s,t},random:function(t,e){e=e||1;const n=2*(0,r.R)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:o,sqrDist:b,sqrLen:v,squaredDistance:u,squaredLength:h,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:y,subtract:i,transformMat2:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o,t[1]=n[1]*r+n[3]*o,t},transformMat2d:m,transformMat3:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[3]*o+n[6],t[1]=n[1]*r+n[4]*o+n[7],t},transformMat4:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[4]*o+n[12],t[1]=n[1]*r+n[5]*o+n[13],t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function o(t,e){return[t,e]}function i(t,e){return new Float64Array(t,e,2)}function s(){return o(1,1)}function a(){return o(1,0)}function l(){return o(0,1)}n.d(e,{a:()=>r,c:()=>i,f:()=>o});const u=s(),c=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:h,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:i,fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},10699:(t,e,n)=>{n.d(e,{IG:()=>s,iv:()=>a});var r=n(43697),o=n(52011);let i=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return e=(0,r._)([(0,o.j)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:i++})}};return e=(0,r._)([(0,o.j)("esri.core.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};l=(0,r._)([(0,o.j)("esri.core.Identifiable")],l)},70921:(t,e,n)=>{n.d(e,{R:()=>i,Z:()=>o});var r=n(46791);function o(t,e,n=r.Z){return e||(e=new n),e===t||(e.removeAll(),(o=t)&&(Array.isArray(o)||"items"in o&&Array.isArray(o.items))?e.addMany(t):t&&e.add(t)),e;var o}function i(t){return t}},70163:(t,e,n)=>{n.d(e,{Jl:()=>c,n$:()=>h});var r=n(3172),o=n(20102),i=n(95330),s=n(17452),a=n(49917);let l=null,u=!0;function c(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(t,e,n)}catch(t){u=!1}const o=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return o.data.set(t,0),o}async function h(t,e){const{arrayBuffer:l,mediaType:u}=await async function(t,e){const n=(0,s.sJ)(t);if(n?.isBase64)return{arrayBuffer:(0,a.R)(n.data),mediaType:n.mediaType};const o=await(0,r.Z)(t,{responseType:"array-buffer",...e});return{arrayBuffer:o.data,mediaType:o.getHeader("Content-Type")}}(t,e),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:t,parseGif:r}=await n.e(3310).then(n.bind(n,83310));if(t(l))return r(l,e)}if(c){const{isAnimatedPNG:t,parseApng:r}=await n.e(4492).then(n.bind(n,54492));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.Z)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,i.D_)(t))throw new o.Z("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),e)}},24133:(t,e,n)=>{n.d(e,{Q:()=>s});var r=n(67676),o=n(44553),i=n(88764);class s{constructor(t=9,e){this._compareMinX=c,this._compareMinY=h,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),b.prune(),v.prune(),M.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(g(t,n))for(x.clear();n;){for(let o=0,i=n.children.length;o<i;o++){const i=n.children[o],s=n.leaf?r(i):i;g(t,s)&&(n.leaf?e(i):y(t,s)?this._all(i,e):x.push(i))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!g(t,e))return!1;for(x.clear();e;){for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],i=e.leaf?n(o):o;if(g(t,i)){if(e.leaf||y(t,i))return!0;x.push(o)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new I([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,i=0,s=!1;const a=this._toBBox(t);for(v.clear(),M.clear();n||v.length>0;){if(n||(n=v.pop(),o=v.data[v.length-1],i=M.pop()??0,s=!0),n.leaf&&(e=(0,r.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),v.push(n),this._condense(v),this;s||n.leaf||!y(n,a)?o?(i++,n=o.children[i],s=!1):n=null:(v.push(n),M.push(i),i=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(b.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else b.pushArray(n.children);n=b.pop()??null}}_build(t,e,n,r){const o=n-e+1;let i=this._maxEntries;if(o<=i){const r=new I(t.slice(e,n+1));return a(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const s=new R([]);s.height=r;const l=Math.ceil(o/i),u=l*Math.ceil(Math.sqrt(i));_(t,e,n,u,this._compareMinX);for(let o=e;o<=n;o+=u){const e=Math.min(o+u-1,n);_(t,o,e,l,this._compareMinY);for(let n=o;n<=e;n+=l){const o=Math.min(n+l-1,e);s.children.push(this._build(t,n,o,r-1))}}return a(s,this._toBBox),s}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,o=1/0;for(let i=0,s=e.children.length;i<s;i++){const s=e.children[i],a=d(s),l=p(t,s)-a;l<o?(o=l,r=a<r?a:r,n=s):l===o&&a<r&&(r=a,n=s)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,o=n?t:r(t);v.clear();const i=this._chooseSubtree(o,this._data,e,v);for(i.children.push(t),u(i,o);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;this._adjustParentBBoxes(o,v,e)}_split(t,e){const n=t.data[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);const i=this._chooseSplitIndex(n,o,r);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const s=n.children.splice(i,n.children.length-i),l=n.leaf?new I(s):new R(s);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,o,i;r=o=1/0;for(let s=e;s<=n-e;s++){const e=l(t,0,s,this._toBBox),a=l(t,s,n,this._toBBox),u=f(e,a),c=d(e)+d(a);u<r?(r=u,i=s,o=c<o?c:o):u===r&&c<o&&(o=c,i=s)}return i}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:c,o=t.leaf?this._compareMinY:h;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,o)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const o=this._toBBox,i=l(t,0,e,o),s=l(t,n-e,n,o);let a=m(i)+m(s);for(let r=e;r<n-e;r++){const e=t.children[r];u(i,t.leaf?o(e):e),a+=m(i)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];u(s,t.leaf?o(e):e),a+=m(s)}return a}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)u(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const o=t.data[e-1],i=o.children;i.splice((0,r.cq)(i,n,i.length,o.indexHint),1)}else this.clear();else a(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,o){o||(o=new I([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,s=e;s<n;s++)i=t.children[s],u(o,t.leaf?r(i):i);return o}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function f(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),o=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,o-n)*Math.max(0,i-r)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function _(t,e,n,r,o){const s=[e,n];for(;s.length;){const e=s.pop(),n=s.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,i.q)(t,a,n,e,o),s.push(n,a,a,e)}}const x=new o.Z,b=new o.Z,v=new o.Z,M=new o.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new r.SO}}class I extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,n)=>{n.d(e,{N1:()=>d,YP:()=>l,Z_:()=>f,gx:()=>u,nn:()=>y,on:()=>h,tX:()=>g}),n(66643),n(46791);var r=n(91460),o=n(50758),i=n(70586),s=n(95330),a=n(26258);function l(t,e,n={}){return c(t,e,n,m)}function u(t,e,n={}){return c(t,e,n,p)}function c(t,e,n={},r){let o=null;const s=n.once?(t,n)=>{r(t)&&((0,i.hw)(o),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(o=(0,a.aQ)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return o}function h(t,e,n,s={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function d(t){s.once&&s.once&&(0,i.hw)(c),n(t)}const m=l(t,((t,n)=>{h(),(0,r.vT)(t)&&(a=t,u=(0,r.on)(t,e,d),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return c=(0,o.kB)((()=>{m.remove(),h()})),c}function d(t,e){return function(t,e,n){if((0,s.Hc)(n))return Promise.reject((0,s.zE)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,i.hw)(a)}return new Promise(((r,i)=>{a=(0,o.AL)([(0,s.fu)(n,(()=>{l(),i((0,s.zE)())})),c(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??m)])}))}(t,p,e)}function m(t){return!0}function p(t){return!!t}n(87538);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},35463:(t,e,n)=>{n.d(e,{JE:()=>a,Nm:()=>s,rJ:()=>l});var r=n(90344),o=n(17126);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(t,e,n,i="system"){const s=new o.vF((0,r.f1)(i)),a=o.ou.fromJSDate(t,{zone:s}),l="decades"===n||"centuries"===n?"year":u(n);return"decades"===n&&(e*=10),"centuries"===n&&(e*=100),a.plus({[l]:e}).toJSDate()}function a(t,e,n="system"){const i=new o.vF((0,r.f1)(n)),s=o.ou.fromJSDate(t,{zone:i});if("decades"===e||"centuries"===e){const t=s.startOf("year"),{year:n}=t,r=n-n%("decades"===e?10:100);return t.set({year:r}).toJSDate()}const a=u(e);return s.startOf(a).toJSDate()}function l(t,e,n){return 0===t?0:t*i[e]/i[n]}function u(t){switch(t){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},41123:(t,e,n)=>{n.d(e,{D:()=>o,z:()=>i});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function i(){return`{${o()}}`}},73913:(t,e,n)=>{n.d(e,{Sy:()=>l,UZ:()=>s,XZ:()=>a,x3:()=>u});var r=n(58901),o=n(82971),i=n(33955);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:o.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:o.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,i.oU)(t)?t.rings:t.paths}},90344:(t,e,n)=>{n.d(e,{LJ:()=>P,Xr:()=>g,Ze:()=>v,f1:()=>S,i$:()=>I,o8:()=>w,p6:()=>M});var r=n(35454),o=n(70171),i=n(17126);const s={year:void 0,month:void 0,day:void 0,weekday:void 0},a={hour:void 0,minute:void 0,second:void 0},l=Intl.DateTimeFormat().resolvedOptions().timeZone,u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},f={...p,second:"numeric"},y={"short-date":c,"short-date-short-time":{...c,...p},"short-date-short-time-24":{...c,...p,hour12:!1},"short-date-long-time":{...c,...f},"short-date-long-time-24":{...c,...f,hour12:!1},"short-date-le":c,"short-date-le-short-time":{...c,...p},"short-date-le-short-time-24":{...c,...p,hour12:!1},"short-date-le-long-time":{...c,...f},"short-date-le-long-time-24":{...c,...f,hour12:!1},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...p},"long-month-day-year-short-time-24":{...h,...p,hour12:!1},"long-month-day-year-long-time":{...h,...f},"long-month-day-year-long-time-24":{...h,...f,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...p},"day-short-month-year-short-time-24":{...d,...p,hour12:!1},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,...f,hour12:!1},"long-date":m,"long-date-short-time":{...m,...p},"long-date-short-time-24":{...m,...p,hour12:!1},"long-date-long-time":{...m,...f},"long-date-long-time-24":{...m,...f,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":f},g=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),_={ar:"ar-u-nu-latn-ca-gregory"};let x=new WeakMap;const b=y["short-date-short-time"];function v(t){return y[t]}function M(t,e=b){return function(t){let e=x.get(t);if(!e){const n=(0,o.Kd)(),r=_[n]||n,i=R(t);e=new Intl.DateTimeFormat(r,i),x.set(t,e)}return e}(e).format(t)}function w(t,e=b){return M(new Date(t),{...e,...u,...a})}function P(t,e=b){return M(new Date(`1970-01-01T${t}Z`),{...e,...u,...s})}function I(t,e=b){const n=i.ou.fromISO(t,{setZone:!0}),r=(0,o.Kd)(),s=_[r]??r,a=R(e);return n.toLocaleString(a,{locale:s})}function R(t){const e=S(t.timeZone??"system");return{...t,timeZone:e}}function S(t){switch(t){case"system":return l;case"unknown":return"UTC";default:return t}}(0,o.Ze)((()=>{x=new WeakMap}))},87085:(t,e,n)=>{n.d(e,{Z:()=>x});var r=n(43697),o=(n(66577),n(3172)),i=n(20102),s=n(32448),a=n(10699),l=n(83379),u=n(92604),c=n(95330),h=n(17452),d=n(5600),m=(n(75215),n(67676),n(80442),n(52011)),p=n(68773),f=n(6570),y=n(82971);let g=0,_=class extends(s.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(3529).then(n.bind(n,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(8008).then(n.bind(n,28008));try{return await r(e)}catch(t){const n=e&&e.portalItem,r=n&&n.id||"unset",o=n&&n.portal&&n.portal.url||p.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,c.D_)(t)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.Cb)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.Cb)({type:f.Z})],_.prototype,"fullExtent",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,r._)([(0,d.Cb)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,r._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,r._)([(0,d.Cb)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,r._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,r._)([(0,d.Cb)({clonable:!1})],_.prototype,"parent",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,r._)([(0,d.Cb)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,r._)([(0,d.Cb)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,r._)([(0,d.Cb)({type:y.Z})],_.prototype,"spatialReference",void 0),(0,r._)([(0,d.Cb)({type:String})],_.prototype,"title",void 0),(0,r._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,r._)([(0,d.Cb)()],_.prototype,"url",void 0),(0,r._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,r._)([(0,m.j)("esri.layers.Layer")],_);const x=_},57765:(t,e,n)=>{n.r(e),n.d(e,{default:()=>ie});var r=n(43697),o=n(46791),i=n(20102),s=n(92604),a=n(16453),l=n(5600),u=n(90578),c=(n(67676),n(80442),n(71715)),h=n(52011),d=n(30556),m=n(87085),p=n(71612),f=n(38009),y=n(72965),g=n(3172),_=n(70163),x=n(17452),b=n(41123),v=(n(75215),n(10699)),M=n(96674),w=n(83379),P=n(92036),I=n(21787),R=n(46521),S=n(4307),C=n(17896);const T=(0,n(65617).c)(),Z=(0,R.a)(),B=(0,R.a)(),L=(0,R.a)();function j(t,e,n){return(0,C.s)(T,e[0],e[1],1),(0,C.t)(T,T,(0,I.t)(Z,n)),0===T[2]?(0,S.s)(t,T[0],T[1]):(0,S.s)(t,T[0]/T[2],T[1]/T[2])}function O(t,e,n){return E(B,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),E(L,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,I.m)(t,(0,I.a)(B,B),L),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function E(t,e,n,r,o,i,s,a,l){(0,I.s)(t,e,r,i,n,o,s,1,1,1),(0,C.s)(T,a,l,1),(0,I.a)(Z,t);const[u,c,h]=(0,C.t)(T,T,(0,I.t)(Z,Z));return(0,I.s)(Z,u,0,0,0,c,0,0,0,h),(0,I.m)(t,Z,t)}var Y=n(62357),D=n(97323),X=n(94139),A=n(38913),U=n(73615),N=n(82971),z=n(2368);let F=class extends z.j{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:r}=(0,U.projectOrLoad)(t,e);return r?null:r||n?n:(s.Z.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};F=(0,r._)([(0,h.j)("esri.layers.support.GeoreferenceBase")],F);const q=F,H=(0,R.a)(),V=(0,D.a)();let J=class extends P.Z{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r._)([(0,l.Cb)()],J.prototype,"sourcePoint",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],J.prototype,"mapPoint",void 0),J=(0,r._)([(0,h.j)("esri.layers.support.ControlPoint")],J);let k=class extends((0,M.eC)(q)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=N.Z.fromJSON(e.spatialReference),r=(0,R.f)(...e.coefficients,1);return t.map((t=>((0,S.s)(V,t.x,t.y),j(V,V,r),{sourcePoint:t,mapPoint:new X.Z({x:V[0],y:V[1],spatialReference:n})})))}writeControlPoints(t,e,n,r){if(null!=this.transform)null!=t&&W(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new i.Z("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(t):s.Z.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(H);if(null==t||!W(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,r){const o=(0,D.f)(0,n),i=(0,D.f)(0,0),s=(0,D.f)(e,0),a=(0,D.f)(e,n);return j(o,o,t),j(i,i,t),j(s,s,t),j(a,a,t),new A.Z({rings:[[o,i,s,a,o]],spatialReference:r})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!W(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:r}=this,{rings:[[o,i,s,a]]}=t,l={sourcePoint:(0,Y.vW)(0,r),mapPoint:new X.Z({x:o[0],y:o[1],spatialReference:e})},u={sourcePoint:(0,Y.vW)(0,0),mapPoint:new X.Z({x:i[0],y:i[1],spatialReference:e})},c={sourcePoint:(0,Y.vW)(n,0),mapPoint:new X.Z({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,Y.vW)(n,r),mapPoint:new X.Z({x:a[0],y:a[1],spatialReference:e})};W(l)&&W(u)&&W(c)&&W(h)&&(st(H,l,u,c,h),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,S.s)(V,t.x,t.y),j(V,V,H),{sourcePoint:t,mapPoint:new X.Z({x:V[0],y:V[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,I.d)((0,R.a)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!W(this.controlPoints[0]))return null;(0,S.s)(V,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return j(V,V,this.transform),new X.Z({x:V[0],y:V[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!W(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,U.projectOrLoad)(t,e).geometry)?null:((0,S.s)(V,t.x,t.y),j(V,V,this.inverseTransform),(0,Y.vW)(V[0],V[1]))}_updateTransform(t){const{controlPoints:e,width:n,height:r}=this;if(!(null!=e&&n>0&&r>0))return null;const[o,i,s,a]=e;if(!W(o))return null;const l=o.mapPoint.spatialReference,u=this._projectControlPoint(i,l),c=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!u.valid||!c.valid||!h.valid)return null;if(!W(u.controlPoint))return null;null==t&&(t=(0,R.a)());let d=null;return d=W(c.controlPoint)&&W(h.controlPoint)?st(t,o,u.controlPoint,c.controlPoint,h.controlPoint):W(c.controlPoint)?function(t,e,n,r){return it(G,tt,e),it($,et,n),it(K,nt,r),(0,S.l)(Q,G,$,.5),(0,S.r)(Q,K,Q,Math.PI),(0,S.l)(rt,tt,et,.5),(0,S.r)(rt,nt,rt,Math.PI),ct(t,G,$,K,Q,tt,et,nt,rt)}(t,o,u.controlPoint,c.controlPoint):function(t,e,n){return it(G,tt,e),it($,et,n),(0,S.r)(K,$,G,ot),(0,S.r)(Q,G,$,ot),(0,S.r)(nt,et,tt,-ot),(0,S.r)(rt,tt,et,-ot),ct(t,G,$,K,Q,tt,et,nt,rt)}(t,o,u.controlPoint),d.every((t=>0===t))?null:d}_projectControlPoint(t,e){if(!W(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:r}=t,{geometry:o,pending:i}=(0,U.projectOrLoad)(r,e);return i?{valid:!1,controlPoint:null}:i||o?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:o}}:(s.Z.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:r.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function W(t){return null!=t&&null!=t.sourcePoint&&null!=t.mapPoint}(0,r._)([(0,l.Cb)({type:[J],json:{write:{allowNull:!1,isRequired:!0}}})],k.prototype,"controlPoints",void 0),(0,r._)([(0,c.r)("controlPoints")],k.prototype,"readControlPoints",null),(0,r._)([(0,d.c)("controlPoints")],k.prototype,"writeControlPoints",null),(0,r._)([(0,l.Cb)()],k.prototype,"coords",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],k.prototype,"height",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],k.prototype,"inverseTransform",null),(0,r._)([(0,l.Cb)({readOnly:!0})],k.prototype,"transform",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],k.prototype,"width",void 0),k=(0,r._)([(0,h.j)("esri.layers.support.ControlPointsGeoreference")],k);const G=(0,D.a)(),$=(0,D.a)(),K=(0,D.a)(),Q=(0,D.a)(),tt=(0,D.a)(),et=(0,D.a)(),nt=(0,D.a)(),rt=(0,D.a)(),ot=Math.PI/2;function it(t,e,n){(0,S.s)(t,n.sourcePoint.x,n.sourcePoint.y),(0,S.s)(e,n.mapPoint.x,n.mapPoint.y)}function st(t,e,n,r,o){return it(G,tt,e),it($,et,n),it(K,nt,r),it(Q,rt,o),ct(t,G,$,K,Q,tt,et,nt,rt)}const at=new Array(8).fill(0),lt=new Array(8).fill(0);function ut(t,e,n,r,o){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=r[0],t[5]=r[1],t[6]=o[0],t[7]=o[1],t}function ct(t,e,n,r,o,i,s,a,l){return O(t,ut(at,e,n,r,o),ut(lt,i,s,a,l))}const ht=k;let dt=class extends q{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:r}=this;if(null==t||null==e||null==n||null==r)return null;const o=t.spatialReference;return e=this.projectOrWarn(e,o),n=this.projectOrWarn(n,o),r=this.projectOrWarn(r,o),null==e||null==n||null==r?null:new A.Z({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[r.x,r.y],[n.x,n.y]]],spatialReference:o})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[r,o,i,s]]}=t;this.bottomLeft=new X.Z({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new X.Z({x:o[0],y:o[1],spatialReference:n}),this.topRight=new X.Z({x:i[0],y:i[1],spatialReference:n}),this.bottomRight=new X.Z({x:s[0],y:s[1],spatialReference:n})}};(0,r._)([(0,l.Cb)()],dt.prototype,"coords",null),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"bottomLeft",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"bottomRight",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"topLeft",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"topRight",void 0),dt=(0,r._)([(0,h.j)("esri.layers.support.CornersGeoreference")],dt);const mt=dt;var pt=n(22021),ft=n(46851),yt=n(6570);let gt=class extends q{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:o}=this.extent;let i;if(this.rotation){const{x:o,y:s}=this.extent.center,a=_t(o,s,this.rotation);i=[a(t,e),a(t,r),a(n,r),a(n,e)],i.push(i[0])}else i=[[t,e],[t,r],[n,r],[n,e],[t,e]];return new A.Z({rings:[i],spatialReference:o})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(null==(t=this.projectOrWarn(t,e))||null==t.extent)return;const{rings:[[n,r,o]],extent:{center:{x:i,y:s}}}=t,a=(0,pt.BV)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=_t(i,s,-a),[u,c]=l(n[0],n[1]),[h,d]=l(o[0],o[1]);this.extent=new yt.Z({xmin:u,ymin:c,xmax:h,ymax:d,spatialReference:e}),this.rotation=a}};function _t(t,e,n){const r=(0,ft.t)(n),o=Math.cos(r),i=Math.sin(r);return(n,r)=>[o*(n-t)+i*(r-e)+t,o*(r-e)-i*(n-t)+e]}(0,r._)([(0,l.Cb)()],gt.prototype,"coords",null),(0,r._)([(0,l.Cb)({type:yt.Z})],gt.prototype,"extent",void 0),(0,r._)([(0,l.Cb)({type:Number})],gt.prototype,"rotation",void 0),gt=(0,r._)([(0,h.j)("esri.layers.support.ExtentAndRotationGeoreference")],gt);const xt={key:"type",base:q,typeMap:{"control-points":ht,corners:mt,"extent-and-rotation":gt}};let bt=class extends((0,v.iv)((0,M.eC)(w.Z))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return ht.fromJSON(t)}};(0,r._)([(0,l.Cb)({types:xt,json:{write:!0}})],bt.prototype,"georeference",void 0),(0,r._)([(0,c.r)("georeference")],bt.prototype,"readGeoreference",null),(0,r._)([(0,l.Cb)()],bt.prototype,"opacity",void 0),bt=(0,r._)([(0,h.j)("esri.layers.support.MediaElementBase")],bt);const vt=bt;var Mt=n(66094),wt=n(25929);let Pt=class extends vt{constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,_.n$)(t).then((t=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new i.Z("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}readImage(t,e,n){return(0,wt.f)(e.url,n)}writeImage(t,e,n,r){if(null==t)return;const o=r?.portalItem,i=r?.resources;if(!o||!i)return void("string"==typeof t&&(e[n]=(0,wt.t)(t,r)));const s="string"!=typeof t||(0,x.HK)(t)||(0,x.jc)(t)?null:t;if(s){if(null==(0,wt.i)(s))return void(e[n]=s);const t=(0,wt.t)(s,{...r,verifyItemRelativeUrls:r&&r.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},wt.M.NO);if(o&&t&&!(0,x.YP)(t))return i.toKeep.push({resource:o.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",i.pendingOperations.push(Rt(t).then((t=>{const r=function(t,e){const n=(0,b.D)(),r=`${(0,x.v_)("media",n)}.${(0,Mt.B)({type:"blob",blob:t})}`;return e.resourceFromPath(r)}(t,o);e[n]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:{type:"blob",blob:t},compress:!1,finish:t=>{this.image=t.url}})})))}};(0,r._)([(0,l.Cb)()],Pt.prototype,"animationOptions",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],Pt.prototype,"content",void 0),(0,r._)([(0,l.Cb)({json:{name:"url",type:String}})],Pt.prototype,"image",void 0),(0,r._)([(0,c.r)("image",["url"])],Pt.prototype,"readImage",null),(0,r._)([(0,d.c)("image")],Pt.prototype,"writeImage",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{name:"mediaType"}})],Pt.prototype,"type",void 0),Pt=(0,r._)([(0,h.j)("esri.layers.support.ImageElement")],Pt);const It=Pt;async function Rt(t){if("string"==typeof t){if((0,x.jc)(t)){const{data:e}=await(0,g.Z)(t,{responseType:"blob"});return e}return(0,x.HK)(t)?(0,x.fw)(t):Rt((await(0,g.Z)(t,{responseType:"image"})).data)}return new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,r=document.createElement("canvas"),o=r.getContext("2d");return r.width=e,r.height=n,t instanceof HTMLImageElement?o.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&o.putImageData(t,0,0),r}(t).toBlob(e)))}n(66577);var St=n(70921),Ct=n(32448),Tt=n(609),Zt=n(95330),Bt=n(17445),Lt=n(24470),jt=n(87416),Ot=n(8744),Et=n(37549),Yt=n(20322),Dt=n(86662),Xt=n(33955),At=n(73913);function Ut(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,At.XZ)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,At.XZ)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,At.XZ)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,At.XZ)(r,n);t.x+=e*(-2*n)}}return t}function Nt(t,e){const n=[],{ymin:r,ymax:o,xmin:i,xmax:s}=t,a=t.xmax-t.xmin,[l,u]=e.valid,{x:c,frameId:h}=zt(t.xmin,e),{x:d,frameId:m}=zt(t.xmax,e),p=c===d&&a>0;if(a>2*u){const t={xmin:i<s?c:d,ymin:r,xmax:u,ymax:o},e={xmin:l,ymin:r,xmax:i<s?d:c,ymax:o},a={xmin:0,ymin:r,xmax:u,ymax:o},p={xmin:l,ymin:r,xmax:0,ymax:o},f=[],y=[];Ft(t,a)&&f.push(h),Ft(t,p)&&y.push(h),Ft(e,a)&&f.push(m),Ft(e,p)&&y.push(m);for(let t=h+1;t<m;t++)f.push(t),y.push(t);n.push(new Vt(t,[h]),new Vt(e,[m]),new Vt(a,f),new Vt(p,y))}else c>d||p?n.push(new Vt({xmin:c,ymin:r,xmax:u,ymax:o},[h]),new Vt({xmin:l,ymin:r,xmax:d,ymax:o},[m])):n.push(new Vt({xmin:c,ymin:r,xmax:d,ymax:o},[h]));return n}function zt(t,e){const[n,r]=e.valid,o=2*r;let i,s=0;return t>r?(i=Math.ceil(Math.abs(t-r)/o),t-=i*o,s=i):t<n&&(i=Math.ceil(Math.abs(t-n)/o),t+=i*o,s=-i),{x:t,frameId:s}}function Ft(t,e){const{xmin:n,ymin:r,xmax:o,ymax:i}=e;return qt(t,n,r)&&qt(t,n,i)&&qt(t,o,i)&&qt(t,o,r)}function qt(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function Ht(t,e,n=!0){const r=!(0,Xt.l9)(t);if(r&&(0,Dt.Zy)(t),n)return(new kt).cut(t,e);const o=r?t.rings:t.paths,i=r?4:2,s=o.length,a=-2*e;for(let t=0;t<s;t++){const e=o[t];if(e&&e.length>=i){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);o.push(t)}}return r?t.rings=o:t.paths=o,t}class Vt{constructor(t,e){this.extent=t,this.frameIds=e}}const Jt=(0,Lt.Ue)();class kt{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const r=t.length;r>1&&t[r-1][0]===e&&t[r-2][0]===e?t[r-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Wt=class extends P.Z{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t||null==t.extent?null:(0,Lt.oJ)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,U.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return A.Z.fromJSON(function(t,e){if(null==t)return null;const n=t.spatialReference,r=(0,Ot.C5)(n),o=(0,M.AK)(t)?t.toJSON():t;if(!r)return o;const i=(0,Ot.sS)(n)?102100:4326,s=At.UZ[i].maxX,a=At.UZ[i].minX;if((0,Xt.wp)(o))return Ut(o,s,a);if((0,Xt.aW)(o))return o.points=o.points.map((t=>Ut(t,s,a))),o;if((0,Xt.YX)(o))return function(t,e){if(!e)return t;const n=Nt(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}(o,r);if((0,Xt.oU)(o)||(0,Xt.l9)(o)){const t=(0,Yt.$P)(Jt,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,At.XZ)(n.xmin,a)*(2*s),i=0===r?o:(0,At.Sy)(o,r);return n.xmin+=r,n.xmax+=r,n.xmax>s?Ht(i,s,e):n.xmin<a?Ht(i,a,e):i}return o}(this.coords,!0))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,Lt.oJ)(t):null}};(0,r._)([(0,l.Cb)()],Wt.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)()],Wt.prototype,"element",void 0),(0,r._)([(0,l.Cb)()],Wt.prototype,"bounds",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"coords",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"normalizedCoords",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"normalizedBounds",null),Wt=(0,r._)([(0,h.j)("esri.layers.support.MediaElementView")],Wt);var Gt=n(91460);let $t=class extends vt{constructor(t){super(t),this.autoplay=!0,this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new i.Z("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.Z.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{const r=(0,Gt.IH)(t,"canplay",(()=>{this.removeHandles("canplay"),this.autoplay?t.play().then(e,n):e()}));this.addHandles(r,"canplay"),"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src?.includes("blob:")||(t.src=t.src))}))}};(0,r._)([(0,l.Cb)()],$t.prototype,"autoplay",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],$t.prototype,"content",void 0),(0,r._)([(0,l.Cb)()],$t.prototype,"video",null),$t=(0,r._)([(0,h.j)("esri.layers.support.VideoElement")],$t);const Kt=$t,Qt={key:"type",defaultKeyValue:"image",base:vt,typeMap:{image:It,video:Kt}},te=o.Z.ofType(Qt);let ee=class extends(w.Z.LoadableMixin((0,Tt.v)(Ct.Z.EventedAccessor))){constructor(t){super(t),this._index=new Et.H,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.removeHandles(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Wt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const r=(0,Bt.YP)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.addHandles(r,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new te}async load(t){if((0,Zt.k_)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference&&null!=t.georeference.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:N.Z.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,St.Z)(t,this._get("elements"),te))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new yt.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):s.Z.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,U.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,Ot.fS)(t.spatialReference,this.spatialReference)?t:(0,U.project)(t,this.spatialReference);if(!n)return[];const r=n.normalize(),o=[];for(const t of r)this._index.forEachInBounds((0,Lt.oJ)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,jt.Nl)(t,e)&&o.push(n)}));return o.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),o}_updateIndexForElement(t,e){const n=t.normalizedBounds,r=this._index.has(t),o=null!=n;this._index.delete(t),o&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(r!==o?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,r._)([(0,l.Cb)()],ee.prototype,"elements",null),(0,r._)([(0,l.Cb)({readOnly:!0})],ee.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)()],ee.prototype,"spatialReference",null),ee=(0,r._)([(0,h.j)("esri.layers.support.LocalMediaElementSource")],ee);const ne=ee;function re(t){return"object"==typeof t&&null!=t&&"type"in t}let oe=class extends((0,p.h)((0,y.M)((0,f.q)((0,a.R)(m.Z))))){constructor(t){super(t),this.effectiveSource=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this.source=new ne}load(t){const e=this.source;if(!e)return this.addResolvingPromise(Promise.reject(new i.Z("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer."))),Promise.resolve(this);const n=re(e)?new ne({elements:new o.Z([e])}):e;this._set("effectiveSource",n),this.spatialReference&&(n.spatialReference=this.spatialReference);const r=n.load(t).then((()=>{this.spatialReference=n.spatialReference}));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.effectiveSource?.destroy(),this.source?.destroy()}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"not-loaded"===this.loadStatus?this._set("source",t):s.Z.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new ne({elements:new o.Z(t)}):t instanceof o.Z?new ne({elements:t}):t:null}readSource(t,e,n){const r="image"===e.mediaType?new It:"video"===e.mediaType?new Kt:null;return r?.read(e,n),r}writeSource(t,e,n,r){t&&re(t)&&"image"===t.type?t.write(e,r):r?.messages&&r?.messages?.push(new i.Z("media-layer:unsupported-source","source must be an 'ImageElement'"))}};(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"effectiveSource",void 0),(0,r._)([(0,l.Cb)({type:String})],oe.prototype,"copyright",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)({type:["MediaLayer"]})],oe.prototype,"operationalLayerType",void 0),(0,r._)([(0,l.Cb)({type:["show","hide"]})],oe.prototype,"listMode",void 0),(0,r._)([(0,l.Cb)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1}}})],oe.prototype,"source",null),(0,r._)([(0,u.p)("source")],oe.prototype,"castSource",null),(0,r._)([(0,c.r)("source",["url"])],oe.prototype,"readSource",null),(0,r._)([(0,d.c)("source")],oe.prototype,"writeSource",null),(0,r._)([(0,l.Cb)()],oe.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"type",void 0),oe=(0,r._)([(0,h.j)("esri.layers.MediaLayer")],oe);const ie=oe},37549:(t,e,n)=>{n.d(e,{H:()=>a});var r=n(80442),o=n(24133),i=n(24470);const s={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 o.Q(9,(0,r.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,r)=>{t[e++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,i.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3]})(e),t.search(s,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},66094:(t,e,n)=>{n.d(e,{B:()=>o});var r=n(17452);function o(t){return i[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,r.Ml)(t);return l[e]||s}(t.url)}(t)]||a}const i={},s="text/plain",a=i[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)i[l[t]]=t}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9493],{46521:(e,t,i)=>{function o(){return[1,0,0,0,1,0,0,0,1]}function r(e,t,i,o,r,n,s,l,a){return[e,t,i,o,r,n,s,l,a]}function n(e,t){return new Float64Array(e,t,9)}i.d(t,{a:()=>o,c:()=>n,f:()=>r}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:o,createView:n,fromValues:r},Symbol.toStringTag,{value:"Module"}))},51305:(e,t,i)=>{i.d(t,{a:()=>h,c:()=>b,g:()=>c,j:()=>z,k:()=>m,m:()=>p,s:()=>u});var o=i(46521),r=i(94961),n=i(65617),s=i(46851),l=i(17896),a=i(98766);function u(e,t,i){i*=.5;const o=Math.sin(i);return e[0]=o*t[0],e[1]=o*t[1],e[2]=o*t[2],e[3]=Math.cos(i),e}function c(e,t){const i=2*Math.acos(t[3]),o=Math.sin(i/2);return o>(0,s.g)()?(e[0]=t[0]/o,e[1]=t[1]/o,e[2]=t[2]/o):(e[0]=1,e[1]=0,e[2]=0),i}function p(e,t,i){const o=t[0],r=t[1],n=t[2],s=t[3],l=i[0],a=i[1],u=i[2],c=i[3];return e[0]=o*c+s*l+r*u-n*a,e[1]=r*c+s*a+n*l-o*u,e[2]=n*c+s*u+o*a-r*l,e[3]=s*c-o*l-r*a-n*u,e}function d(e,t,i,o){const r=t[0],n=t[1],l=t[2],a=t[3];let u,c,p,d,h,y=i[0],m=i[1],b=i[2],g=i[3];return c=r*y+n*m+l*b+a*g,c<0&&(c=-c,y=-y,m=-m,b=-b,g=-g),1-c>(0,s.g)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-o)*u)/p,h=Math.sin(o*u)/p):(d=1-o,h=o),e[0]=d*r+h*y,e[1]=d*n+h*m,e[2]=d*l+h*b,e[3]=d*a+h*g,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const i=t[0]+t[4]+t[8];let o;if(i>0)o=Math.sqrt(i+1),e[3]=.5*o,o=.5/o,e[0]=(t[5]-t[7])*o,e[1]=(t[6]-t[2])*o,e[2]=(t[1]-t[3])*o;else{let i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);const r=(i+1)%3,n=(i+2)%3;o=Math.sqrt(t[3*i+i]-t[3*r+r]-t[3*n+n]+1),e[i]=.5*o,o=.5/o,e[3]=(t[3*r+n]-t[3*n+r])*o,e[r]=(t[3*r+i]+t[3*i+r])*o,e[n]=(t[3*n+i]+t[3*i+n])*o}return e}function m(e,t,i,o){const r=.5*Math.PI/180;t*=r,i*=r,o*=r;const n=Math.sin(t),s=Math.cos(t),l=Math.sin(i),a=Math.cos(i),u=Math.sin(o),c=Math.cos(o);return e[0]=n*a*c-s*l*u,e[1]=s*l*c+n*a*u,e[2]=s*a*u-n*l*c,e[3]=s*a*c+n*l*u,e}const b=a.c,g=a.s,f=a.a,v=p,S=a.b,w=a.d,x=a.l,_=a.f,j=_,C=a.g,V=C,R=a.n,z=a.h,I=a.e,M=(0,n.c)(),q=(0,n.f)(1,0,0),N=(0,n.f)(0,1,0),Z=(0,r.a)(),T=(0,r.a)(),F=(0,o.a)();Object.freeze(Object.defineProperty({__proto__:null,add:f,calculateW:function(e,t){const i=t[0],o=t[1],r=t[2];return e[0]=i,e[1]=o,e[2]=r,e[3]=Math.sqrt(Math.abs(1-i*i-o*o-r*r)),e},conjugate:h,copy:b,dot:w,equals:I,exactEquals:z,fromEuler:m,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const i=t[0],o=t[1],r=t[2],n=t[3],s=i*i+o*o+r*r+n*n,l=s?1/s:0;return e[0]=-i*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e},len:j,length:_,lerp:x,mul:v,multiply:p,normalize:R,random:function(e){const t=s.R,i=t(),o=t(),r=t(),n=Math.sqrt(1-i),l=Math.sqrt(i);return e[0]=n*Math.sin(2*Math.PI*o),e[1]=n*Math.cos(2*Math.PI*o),e[2]=l*Math.sin(2*Math.PI*r),e[3]=l*Math.cos(2*Math.PI*r),e},rotateX:function(e,t,i){i*=.5;const o=t[0],r=t[1],n=t[2],s=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=o*a+s*l,e[1]=r*a+n*l,e[2]=n*a-r*l,e[3]=s*a-o*l,e},rotateY:function(e,t,i){i*=.5;const o=t[0],r=t[1],n=t[2],s=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=o*a-n*l,e[1]=r*a+s*l,e[2]=n*a+o*l,e[3]=s*a-r*l,e},rotateZ:function(e,t,i){i*=.5;const o=t[0],r=t[1],n=t[2],s=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=o*a+r*l,e[1]=r*a-o*l,e[2]=n*a+s*l,e[3]=s*a-n*l,e},rotationTo:function(e,t,i){const o=(0,l.j)(t,i);return o<-.999999?((0,l.b)(M,q,t),(0,l.k)(M)<1e-6&&(0,l.b)(M,N,t),(0,l.n)(M,M),u(e,M,Math.PI),e):o>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.b)(M,t,i),e[0]=M[0],e[1]=M[1],e[2]=M[2],e[3]=1+o,R(e,e))},scale:S,set:g,setAxes:function(e,t,i,o){const r=F;return r[0]=i[0],r[3]=i[1],r[6]=i[2],r[1]=o[0],r[4]=o[1],r[7]=o[2],r[2]=-t[0],r[5]=-t[1],r[8]=-t[2],R(e,y(e,r))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,i,o,r,n){return d(Z,t,r,n),d(T,i,o,n),d(e,Z,T,2*n*(1-n)),e},sqrLen:V,squaredLength:C,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},94961:(e,t,i)=>{function o(){return[0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3]]}function n(e,t){return new Float64Array(e,t,4)}i.d(t,{I:()=>s,a:()=>o,b:()=>r,c:()=>n});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:o,createView:n,fromValues:function(e,t,i,o){return[e,t,i,o]}},Symbol.toStringTag,{value:"Module"}))},44543:(e,t,i)=>{i.d(t,{F:()=>m,M:()=>o});const o={Base64:0,Hex:1,String:2,Raw:3},r=8,n=(1<<r)-1;function s(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e){const t=[];for(let i=0,o=e.length*r;i<o;i+=r)t[i>>5]|=(e.charCodeAt(i/r)&n)<<i%32;return t}function a(e){const t=[];for(let i=0,o=32*e.length;i<o;i+=r)t.push(String.fromCharCode(e[i>>5]>>>i%32&n));return t.join("")}function u(e,t,i,o,r,n){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(o,n)),r),i)}function c(e,t,i,o,r,n,s){return u(t&i|~t&o,e,t,r,n,s)}function p(e,t,i,o,r,n,s){return u(t&o|i&~o,e,t,r,n,s)}function d(e,t,i,o,r,n,s){return u(t^i^o,e,t,r,n,s)}function h(e,t,i,o,r,n,s){return u(i^(t|~o),e,t,r,n,s)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,o=-271733879,r=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const l=i,a=o,u=r,y=n;i=c(i,o,r,n,e[t],7,-680876936),n=c(n,i,o,r,e[t+1],12,-389564586),r=c(r,n,i,o,e[t+2],17,606105819),o=c(o,r,n,i,e[t+3],22,-1044525330),i=c(i,o,r,n,e[t+4],7,-176418897),n=c(n,i,o,r,e[t+5],12,1200080426),r=c(r,n,i,o,e[t+6],17,-1473231341),o=c(o,r,n,i,e[t+7],22,-45705983),i=c(i,o,r,n,e[t+8],7,1770035416),n=c(n,i,o,r,e[t+9],12,-1958414417),r=c(r,n,i,o,e[t+10],17,-42063),o=c(o,r,n,i,e[t+11],22,-1990404162),i=c(i,o,r,n,e[t+12],7,1804603682),n=c(n,i,o,r,e[t+13],12,-40341101),r=c(r,n,i,o,e[t+14],17,-1502002290),o=c(o,r,n,i,e[t+15],22,1236535329),i=p(i,o,r,n,e[t+1],5,-165796510),n=p(n,i,o,r,e[t+6],9,-1069501632),r=p(r,n,i,o,e[t+11],14,643717713),o=p(o,r,n,i,e[t],20,-373897302),i=p(i,o,r,n,e[t+5],5,-701558691),n=p(n,i,o,r,e[t+10],9,38016083),r=p(r,n,i,o,e[t+15],14,-660478335),o=p(o,r,n,i,e[t+4],20,-405537848),i=p(i,o,r,n,e[t+9],5,568446438),n=p(n,i,o,r,e[t+14],9,-1019803690),r=p(r,n,i,o,e[t+3],14,-187363961),o=p(o,r,n,i,e[t+8],20,1163531501),i=p(i,o,r,n,e[t+13],5,-1444681467),n=p(n,i,o,r,e[t+2],9,-51403784),r=p(r,n,i,o,e[t+7],14,1735328473),o=p(o,r,n,i,e[t+12],20,-1926607734),i=d(i,o,r,n,e[t+5],4,-378558),n=d(n,i,o,r,e[t+8],11,-2022574463),r=d(r,n,i,o,e[t+11],16,1839030562),o=d(o,r,n,i,e[t+14],23,-35309556),i=d(i,o,r,n,e[t+1],4,-1530992060),n=d(n,i,o,r,e[t+4],11,1272893353),r=d(r,n,i,o,e[t+7],16,-155497632),o=d(o,r,n,i,e[t+10],23,-1094730640),i=d(i,o,r,n,e[t+13],4,681279174),n=d(n,i,o,r,e[t],11,-358537222),r=d(r,n,i,o,e[t+3],16,-722521979),o=d(o,r,n,i,e[t+6],23,76029189),i=d(i,o,r,n,e[t+9],4,-640364487),n=d(n,i,o,r,e[t+12],11,-421815835),r=d(r,n,i,o,e[t+15],16,530742520),o=d(o,r,n,i,e[t+2],23,-995338651),i=h(i,o,r,n,e[t],6,-198630844),n=h(n,i,o,r,e[t+7],10,1126891415),r=h(r,n,i,o,e[t+14],15,-1416354905),o=h(o,r,n,i,e[t+5],21,-57434055),i=h(i,o,r,n,e[t+12],6,1700485571),n=h(n,i,o,r,e[t+3],10,-1894986606),r=h(r,n,i,o,e[t+10],15,-1051523),o=h(o,r,n,i,e[t+1],21,-2054922799),i=h(i,o,r,n,e[t+8],6,1873313359),n=h(n,i,o,r,e[t+15],10,-30611744),r=h(r,n,i,o,e[t+6],15,-1560198380),o=h(o,r,n,i,e[t+13],21,1309151649),i=h(i,o,r,n,e[t+4],6,-145523070),n=h(n,i,o,r,e[t+11],10,-1120210379),r=h(r,n,i,o,e[t+2],15,718787259),o=h(o,r,n,i,e[t+9],21,-343485551),i=s(i,l),o=s(o,a),r=s(r,u),n=s(n,y)}return[i,o,r,n]}function m(e,t=o.Hex){const i=t||o.Base64,n=y(l(e),e.length*r);switch(i){case o.Raw:return n;case o.Hex:return function(e){const t="0123456789abcdef",i=[];for(let o=0,r=4*e.length;o<r;o++)i.push(t.charAt(e[o>>2]>>o%4*8+4&15)+t.charAt(e[o>>2]>>o%4*8&15));return i.join("")}(n);case o.String:return a(n);case o.Base64:return function(e){const t=[];for(let i=0,o=4*e.length;i<o;i+=3){const o=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let r=0;r<4;r++)8*i+6*r>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(o>>6*(3-r)&63))}return t.join("")}(n)}}},28576:(e,t,i)=>{i.d(t,{B:()=>h});var o=i(20102),r=i(44543),n=i(81153),s=i(17452),l=i(41123),a=i(7628),u=i(31263),c=i(5600),p=i(66094),d=i(25929);function h(e){const t=e?.origins??[void 0];return(i,o)=>{const r=function(e,t,i){if("resource"===e?.type)return function(e,t,i){const o=(0,a.Oe)(t,i);return{type:String,read:(e,t,i)=>{const r=(0,d.r)(e,t,i);return o.type===String?r:"function"==typeof o.type?new o.type({url:r}):void 0},write:{writer(t,r,l,a){if(!a||!a.resources)return"string"==typeof t?void(r[l]=(0,d.t)(t,a)):void(r[l]=t.write({},a));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...a,verifyItemRelativeUrls:a&&a.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),g=o.type!==String&&(!(0,n.l)(this)||a&&a.origin&&this.originIdOf(i)>(0,u.M9)(a.origin)),f={object:this,propertyName:i,value:t,targetUrl:h,dest:r,targetPropertyName:l,context:a,params:e};a&&a.portalItem&&h&&!(0,s.YP)(h)?g&&e?.contentAddressed?y(f):g?function(e){const{context:t,targetUrl:i,params:o,value:r,dest:n,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(i),u=b(r,i,t),c=(0,p.B)(u),d=(0,s.Ml)(a.path),h=o?.compress??!1;c===d?(t.resources&&m({...e,resource:a,content:u,compress:h,updates:t.resources.toUpdate}),n[l]=i):y(e)}(f):function({context:e,targetUrl:t,dest:i,targetPropertyName:o}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[o]=t)}(f):a&&a.portalItem&&(null==h||null!=(0,d.i)(h)||(0,s.jc)(h)||g)?y(f):r[l]=h}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.a;return{read:e,write:t}}}}(e,i,o);for(const e of t){const t=(0,c.CJ)(i,e,o);for(const e in r)t[e]=r[e]}}}function y(e){const{targetUrl:t,params:i,value:n,context:a,dest:u,targetPropertyName:c}=e;if(!a.portalItem)return;const h=(0,d.p)(t),y=b(n,t,a);if(i?.contentAddressed&&"json"!==y.type)return void a.messages?.push(new o.Z("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const g=i?.contentAddressed&&"json"===y.type?(0,r.F)(y.jsonString):h?.filename??(0,l.D)(),f=(0,s.v_)(i?.prefix??h?.prefix,g),v=`${f}.${(0,p.B)(y)}`;if(i?.contentAddressed&&a.resources&&"json"===y.type){const e=a.resources.toKeep.find((e=>e.resource.path===v))??a.resources.toAdd.find((e=>e.resource.path===v));if(e)return void(u[c]=e.resource.itemRelativeUrl)}const S=a.portalItem.resourceFromPath(v);(0,s.jc)(t)&&a.resources&&a.resources.pendingOperations.push((0,s.gi)(t).then((e=>{S.path=`${f}.${(0,p.B)({type:"blob",blob:e})}`,u[c]=S.itemRelativeUrl})).catch((()=>{})));const w=i?.compress??!1;a.resources&&m({...e,resource:S,content:y,compress:w,updates:a.resources.toAdd}),u[c]=S.itemRelativeUrl}function m({object:e,propertyName:t,updates:i,resource:o,content:r,compress:n}){i.push({resource:o,content:r,compress:n,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function b(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},41123:(e,t,i)=>{i.d(t,{D:()=>r,z:()=>n});const o="randomUUID"in crypto;function r(){if(o)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${r()}}`}},79235:(e,t,i)=>{i.d(t,{Z:()=>v});var o,r=i(43697),n=i(67676),s=i(35454),l=i(96674),a=i(67900),u=i(20941),c=i(5600),p=(i(75215),i(80442),i(71715)),d=i(52011),h=i(30556);const y=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,n.e$)(m,"orthometric");const b=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=o=class extends l.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i&&i.messages&&i.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return b.read(e)||(i&&i.messages&&i.messages.push(f(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.$C)(e)||b.read(e)||(i&&i.messages&&i.messages.push(f(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new o({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.cM)(t);return new o({heightModel:e.heightModel,heightUnit:i,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new o;return t.read(e,{origin:"web-scene"}),t}};function f(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r._)([(0,c.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,r._)([(0,h.c)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,r._)([(0,p.r)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,r._)([(0,c.Cb)({type:b.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:b.jsonValues,write:b.write}}}})],g.prototype,"heightUnit",void 0),(0,r._)([(0,p.r)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,r._)([(0,p.r)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,r._)([(0,c.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,r._)([(0,p.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=o=(0,r._)([(0,d.j)("esri.geometry.HeightModelInfo")],g);const v=g},28865:(e,t,i)=>{i.r(t),i.d(t,{default:()=>We});var o=i(43697),r=i(51773),n=i(46791),s=i(20102),l=i(92604),a=i(16453),u=i(95330),c=i(5600),p=i(75215),d=(i(67676),i(80442),i(71715)),h=i(52011),y=i(17896),m=i(65617),b=i(6570),g=i(87085),f=i(54295),v=i(17287),S=i(38009),w=i(16859),x=i(72965),_=i(20559),j=i(66677),C=i(21506),V=i(1231),R=i(2368),z=i(68251),I=i(96674),M=i(28576),q=i(51305),N=i(94961),Z=i(46851);const T=(0,m.c)(),F=(0,N.a)(),A=(0,N.a)(),D=(0,N.a)(),P=(0,m.f)(0,0,1),L=(0,m.f)(0,1,0),B=(0,m.f)(1,0,0);function U(e){(0,y.c)(T,e),(0,y.n)(T,T);const t=Math.atan2(T[1],T[0]),i=(0,q.s)((0,N.a)(),P,-t);(0,y.u)(T,T,i);const o=-1*Math.atan2(T[2],T[0]);return[(0,Z.a)(t)+270,(0,Z.a)(o)+90]}function O(e,t){return(0,q.s)(A,P,(0,Z.t)(e-270)),(0,q.s)(D,L,(0,Z.t)(t-90)),(0,q.m)(F,A,D),(0,y.c)(T,B),(0,y.u)(T,T,F),(0,y.n)(T,T),[T[0],T[1],T[2]]}var k=i(90578);let E=class extends((0,R.J)(I.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return z.BV.normalize((0,p.q9)(e),0,!0)}set orientation(e){const t=O(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return z.BV.normalize((0,p.q9)(t),0,!0)}set tilt(e){const t=O(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,o._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],E.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],E.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,k.p)((e=>z.BV.normalize((0,p.q9)(e),0,!0)))],E.prototype,"orientation",null),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,k.p)((e=>z.BV.normalize((0,p.q9)(e),0,!0)))],E.prototype,"tilt",null),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],E.prototype,"normal",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],E.prototype,"point",void 0),E=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelSlice")],E);const J=E;var $=i(25929);let H=class extends((0,R.J)(I.wq)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return z.BV.normalize((0,p.q9)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return z.BV.normalize((0,p.q9)(t),0,!0)}};(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],H.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{origins:{service:{read:$.r}},write:{enabled:!0,isRequired:!0}}}),(0,M.B)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],H.prototype,"href",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],H.prototype,"id",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],H.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],H.prototype,"orientation",null),(0,o._)([(0,c.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],H.prototype,"tilt",null),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],H.prototype,"normal",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],H.prototype,"point",void 0),(0,o._)([(0,c.Cb)({type:[p.z8],json:{write:{enabled:!0,isRequired:!0}}})],H.prototype,"sizeInPixel",void 0),(0,o._)([(0,c.Cb)({type:[J],json:{write:!0}})],H.prototype,"slices",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{default:0,write:!0}})],H.prototype,"timeId",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],H.prototype,"variableId",void 0),H=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelSection")],H);const W=H;let Y=class extends I.wq{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,o._)([(0,c.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],Y.prototype,"diffuseFactor",void 0),(0,o._)([(0,c.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],Y.prototype,"specularFactor",void 0),Y=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelSimpleShading")],Y);const K=Y;let X=class extends I.wq{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,o._)([(0,c.Cb)({type:["discrete","continuous"],json:{write:!0}})],X.prototype,"continuity",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],X.prototype,"hasNoData",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],X.prototype,"noData",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],X.prototype,"offset",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],X.prototype,"scale",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"type",void 0),X=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelFormat")],X);const G=X;let Q=class extends I.wq{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"id",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Q.prototype,"description",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"name",void 0),(0,o._)([(0,c.Cb)({type:G,json:{write:!0}})],Q.prototype,"originalFormat",void 0),(0,o._)([(0,c.Cb)({type:G,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"renderingFormat",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Q.prototype,"unit",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],Q.prototype,"volumeId",void 0),(0,o._)([(0,c.Cb)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],Q.prototype,"type",void 0),Q=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelVariable")],Q);const ee=Q;var te=i(22974),ie=i(22303);let oe=class extends((0,R.J)(I.wq)){constructor(){super(...arguments),this.color=ie.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,o._)([(0,c.Cb)({type:ie.Z,json:{type:[p.z8],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"value",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],oe.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],oe.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!1,write:!0}})],oe.prototype,"colorLocked",void 0),oe=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelIsosurface")],oe);const re=oe;var ne=i(70921),se=i(22021);let le=class extends((0,R.J)(I.wq)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,o._)([(0,c.Cb)({type:ie.Z,json:{type:[p.z8],write:{enabled:!0,isRequired:!0}}})],le.prototype,"color",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],le.prototype,"position",void 0),le=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelColorStop")],le);const ae=le;let ue=class extends((0,R.J)(I.wq)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,o._)([(0,c.Cb)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ue.prototype,"opacity",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelOpacityStop")],ue);const ce=ue;let pe=class extends((0,R.J)(I.wq)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!1,write:!0}})],pe.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],pe.prototype,"range",void 0),pe=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelRangeFilter")],pe);const de=pe;var he,ye;(ye=he||(he={}))[ye.Color=1]="Color",ye[ye.Alpha=2]="Alpha",ye[ye.Both=3]="Both";let me=class extends((0,R.J)(I.wq)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(n.Z.ofType(ae)),this.opacityStops=new(n.Z.ofType(ce))}set colorStops(e){this._set("colorStops",(0,ne.Z)(e,this._get("colorStops"),n.Z.ofType(ae)))}set opacityStops(e){this._set("opacityStops",(0,ne.Z)(e,this._get("opacityStops"),n.Z.ofType(ce)))}getPreviousNext(e,t,i){let o=e;for(;--o>0&&t[o].type!==i&&t[o].type!==he.Both;);let r=e;const n=t.length;for(;++r<n&&t[r].type!==i&&t[r].type!==he.Both;);return[o,r]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],i=[];for(const t of this.colorStops){if(!t.color)return e;i.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:he.Color})}if(0===this.opacityStops.length)for(const e of i)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,se.uZ)(e.position,0,1),o=Math.round(255*(0,se.uZ)(1-e.opacity,0,1));let r=!1;for(const e of i)if(e.type===he.Color&&Math.abs(e.position-t)<1e-5){e.color.a=o,e.type=he.Both,r=!0;break}r||i.push({color:{r:0,g:0,b:0,a:o},position:e.position,type:he.Alpha})}i.sort(((e,t)=>e.position<t.position?-1:1));const e=i.length;for(let t=0;t<e;++t){const o=i[t];if(o.type!==he.Both)if(o.type===he.Color){const[r,n]=this.getPreviousNext(t,i,he.Alpha);if(-1!==r&&n!==e){const e=(o.position-i[r].position)/(i[n].position-i[r].position);o.color.a=Math.round((0,se.t7)(i[r].color.a,i[n].color.a,e))}else o.color.a=-1!==r?i[r].color.a:i[n].color.a}else{const[r,n]=this.getPreviousNext(t,i,he.Color);if(-1!==r&&n!==e){const e=(o.position-i[r].position)/(i[n].position-i[r].position),t=i[r].color,s=i[n].color;ge.forEach((i=>{o.color[i]=Math.round((0,se.t7)(t[i],s[i],e))}))}else-1!==r?ge.forEach((e=>{o.color[e]=i[r].color[e]})):ge.forEach((e=>{o.color[e]=i[n].color[e]}))}}for(const e of i)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let o=0,r=1;for(let i=0;i<this._colorMapSize;++i){const n=i/this._colorMapSize;for(;n>t[r].position;)o=r++;const s=(n-t[o].position)/(t[r].position-t[o].position),l=t[o].color,a=t[r].color,u=new ie.Z;ge.forEach((e=>{u[e]=Math.round((0,se.t7)(l[e],a[e],s))})),u.a=(0,se.uZ)(1-(0,se.t7)(l.a,a.a,s)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const i=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||i.length<256)return null;let o=this.stretchRange[0],r=this.stretchRange[1];if(o>r){const e=o;o=r,r=e}e=(0,se.uZ)(e,o,r);const n=i[Math.round((e-o)/(r-o)*(this._colorMapSize-1))].clone();return t||(n.a=1),n}};(0,o._)([(0,c.Cb)({type:["linear","nearest"],json:{write:!0}})],me.prototype,"interpolation",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],me.prototype,"stretchRange",void 0),(0,o._)([(0,c.Cb)({type:n.Z.ofType(ae),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],me.prototype,"colorStops",null),(0,o._)([(0,c.Cb)({type:n.Z.ofType(ce),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],me.prototype,"opacityStops",null),(0,o._)([(0,c.Cb)({type:de,json:{write:!0}})],me.prototype,"rangeFilter",void 0),(0,o._)([(0,c.Cb)({type:[ie.Z],clonable:!1,json:{read:!1}})],me.prototype,"rasterizedTransferFunction",null),me=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelTransferFunctionStyle")],me);const be=me,ge=["r","g","b"];let fe=class extends((0,R.J)(I.wq)){constructor(){super(...arguments),this.color=ie.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,o._)([(0,c.Cb)({type:ie.Z,json:{type:[p.z8],write:{enabled:!0,isRequired:!0}}})],fe.prototype,"color",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],fe.prototype,"value",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],fe.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],fe.prototype,"label",void 0),fe=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelUniqueValue")],fe);const ve=fe;var Se;let we=Se=class extends I.wq{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(n.Z.ofType(ve)),this.isosurfaces=new(n.Z.ofType(re))}clone(){return new Se({variableId:this.variableId,label:this.label,transferFunction:(0,te.d9)(this.transferFunction),uniqueValues:(0,te.d9)(this.uniqueValues),isosurfaces:(0,te.d9)(this.isosurfaces)})}};(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],we.prototype,"variableId",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],we.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:be,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],we.prototype,"transferFunction",void 0),(0,o._)([(0,c.Cb)({type:n.Z.ofType(ve),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],we.prototype,"uniqueValues",void 0),(0,o._)([(0,c.Cb)({type:n.Z.ofType(re),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],we.prototype,"isosurfaces",void 0),we=Se=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelVariableStyle")],we);const xe=we;var _e=i(94139),je=i(82971),Ce=i(8744);let Ve=class extends I.wq{constructor(){super(...arguments),this.values=null}};(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Ve.prototype,"values",void 0),Ve=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelIrregularSpacing")],Ve);const Re=Ve;let ze=class extends I.wq{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],ze.prototype,"scale",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],ze.prototype,"offset",void 0),ze=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelRegularSpacing")],ze);const Ie=ze;let Me=class extends I.wq{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,o._)([(0,c.Cb)({type:Re,json:{write:!0}})],Me.prototype,"irregularSpacing",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],Me.prototype,"isPositiveUp",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],Me.prototype,"isWrappedDateLine",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Me.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Me.prototype,"name",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Me.prototype,"quantity",void 0),(0,o._)([(0,c.Cb)({type:Ie,json:{write:!0}})],Me.prototype,"regularSpacing",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],Me.prototype,"size",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Me.prototype,"unit",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{read:!1}})],Me.prototype,"isRegular",null),Me=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelDimension")],Me);const qe=Me,Ne="esri.layers.voxel.VoxelVolume",Ze=l.Z.getLogger(Ne);let Te=class extends I.wq{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=je.Z.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],o=i.isRegular?i.getRange():[0,i.size];return[e[0],t[0],o[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],o=i.isRegular?i.getRange():[0,i.size],r=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)r[e]<2?r[e]=1:r[e]-=1;return i.isRegular&&!i.isPositiveUp&&(r[2]*=-1),[(e[1]-e[0])/r[0],(t[1]-t[0])/r[1],(o[1]-o[0])/r[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0,t=this.dimensions[3].size>0;if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return Ze.error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,Ce.fS)(this.spatialReference,e.spatialReference))return Ze.error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.f)(e.x,e.y,e.z??0);(0,y.f)(t,t,this.originInLayerSpace3D),(0,y.B)(t,t,this.voxelSizeInLayerSpaceSigned);const i=this.dimensions[this.zDimension];if(!i.isRegular&&Array.isArray(i.irregularSpacing?.values)&&i.irregularSpacing.values.length>1){const o=e.z??0,r=i.irregularSpacing.values,n=i.isPositiveUp?1:-1,s=r.reduce(((e,t)=>Math.abs(n*t-o)<Math.abs(n*e-o)?t:e));for(let e=0;e<r.length;++e)if(r[e]===s){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new _e.Z({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.e)(e);if((0,y.A)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.g)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new _e.Z({x:t[0],y:t[1],spatialReference:this.spatialReference});const i=this.dimensions[this.zDimension];return i.isRegular||Array.isArray(i.irregularSpacing?.values)&&(e[2]<0?t[2]=i.irregularSpacing.values[0]:e[2]<i.irregularSpacing.values.length?t[2]=i.irregularSpacing.values[e[2]]:t[2]=i.irregularSpacing.values[i.irregularSpacing.values.length-1],i.isPositiveUp||(t[2]*=-1)),new _e.Z({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Te.prototype,"id",void 0),(0,o._)([(0,c.Cb)({type:[qe],json:{write:{enabled:!0,isRequired:!0}}})],Te.prototype,"dimensions",void 0),(0,o._)([(0,c.Cb)({type:je.Z,json:{read:{enabled:!1}}})],Te.prototype,"spatialReference",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1}})],Te.prototype,"zDimension",null),(0,o._)([(0,c.Cb)({type:[Boolean],json:{read:!1}})],Te.prototype,"isValid",null),(0,o._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Te.prototype,"originInLayerSpace3D",null),(0,o._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Te.prototype,"voxelSizeInLayerSpaceSigned",null),(0,o._)([(0,c.Cb)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Te.prototype,"volumeType",null),(0,o._)([(0,c.Cb)({type:[Number],json:{read:!1}})],Te.prototype,"sizeInVoxels",null),Te=(0,o._)([(0,h.j)(Ne)],Te);const Fe=Te;var Ae;let De=Ae=class extends I.wq{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Ae;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"apronWidth",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"brickSize",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"maxLodLevel",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"nodeSize",void 0),De=Ae=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelVolumeIndex")],De);const Pe=De;let Le=class extends((0,R.J)(I.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return z.BV.normalize((0,p.q9)(e),0,!0)}set orientation(e){const t=O(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return z.BV.normalize((0,p.q9)(t),0,!0)}set tilt(e){const t=O(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],Le.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Le.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,k.p)((e=>z.BV.normalize((0,p.q9)(e),0,!0)))],Le.prototype,"orientation",null),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,k.p)((e=>z.BV.normalize((0,p.q9)(e),0,!0)))],Le.prototype,"tilt",null),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Le.prototype,"normal",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Le.prototype,"point",void 0),Le=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelDynamicSection")],Le);const Be=Le;var Ue;let Oe=Ue=class extends I.wq{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(n.Z.ofType(J)),this.dynamicSections=new(n.Z.ofType(Be))}set slices(e){this._set("slices",(0,ne.Z)(e,this._get("slices"),n.Z.ofType(J)))}set dynamicSections(e){this._set("dynamicSections",(0,ne.Z)(e,this._get("dynamicSections"),n.Z.ofType(Be)))}clone(){return new Ue({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,te.d9)(this.slices),dynamicSections:(0,te.d9)(this.dynamicSections)})}};(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"volumeId",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{default:1,write:!0}})],Oe.prototype,"verticalExaggeration",void 0),(0,o._)([(0,c.Cb)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Oe.prototype,"exaggerationMode",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{default:0,write:!0}})],Oe.prototype,"verticalOffset",void 0),(0,o._)([(0,c.Cb)({type:n.Z.ofType(J),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Oe.prototype,"slices",null),(0,o._)([(0,c.Cb)({type:n.Z.ofType(Be),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Oe.prototype,"dynamicSections",null),Oe=Ue=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelVolumeStyle")],Oe);const ke=Oe;var Ee=i(32163);const Je="esri.layers.VoxelLayer",$e=l.Z.getLogger(Je);let He=class extends((0,_.Vt)((0,v.Y)((0,S.q)((0,w.I)((0,x.M)((0,a.R)((0,f.V)(g.Z)))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new K,this.opacity=1,this.variables=new n.Z,this.volumes=new n.Z,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.test=null,this.volumeStyles=new(n.Z.ofType(ke)),this.variableStyles=new(n.Z.ofType(xe)),this.sections=new(n.Z.ofType(W))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,j.Nm)(e,$e))}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.r9).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(i),Promise.resolve(this)}read(e,t){super.read(e,t);for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new s.Z("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new s.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new s.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,i){if(null!=e&&"object"==typeof e){const o=b.Z.fromJSON(e,i);if(0===o.zmin&&0===o.zmax&&Array.isArray(t.volumes)){const e=Fe.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,i=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>i){const t=e;e=i,i=t}o.zmin=e,o.zmax=i}}}return o}return null}get voxelFields(){const e=[new V.Z({name:"Voxel.ServiceValue",alias:"Value",domain:null,editable:!1,length:128,type:"string"}),new V.Z({name:"Voxel.ServiceVariableLabel",alias:"Variable",domain:null,editable:!1,length:128,type:"string"}),new V.Z({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"})],t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new V.Z({name:"Voxel.ServiceLocalTime",alias:"Local Time",domain:null,editable:!1,length:128,type:"string"});e.push(t);const i=new V.Z({name:"Voxel.ServiceNativeTime",alias:"Native Time",domain:null,editable:!1,length:128,type:"string"});e.push(i)}if("xyt"!==t.volumeType){const t=new V.Z({name:"Voxel.ServiceDepth",alias:"Depth",domain:null,editable:!1,length:128,type:"string"});e.push(t)}}return e}get popupTemplate(){return this.loaded?this.createPopupTemplate():null}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.voxelFields,i=this.title;return(0,Ee.eZ)({fields:t,title:i},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const i=this.variableStyles.findIndex((e=>e.variableId===t));return i<0?null:this.variableStyles.at(i)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const i=this.variables.findIndex((e=>e.id===t));return i<0?null:this.variables.at(i)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,i){const o=this.getVariable(e);if(null==o||"continuous"!==o.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const r=this.variableStyles.findIndex((t=>t.variableId===e));if(r<0)return null;const n=this.variableStyles.at(r);return n?.transferFunction?n.transferFunction.getColorForContinuousDataValue(t,i):null}getSections(){const e=[];for(const t of this.sections)e.push(new W({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const i=this._getVariable(t);if(null!=i){const o=t.clone();o.isosurfaces.length>4&&(o.isosurfaces=o.isosurfaces.slice(0,3),$e.error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of o.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(o.variableId,e.value,!1);null===t||t.equals(e.color)||(e.color=t)}if("continuous"===i.renderingFormat.continuity)(null===o.transferFunction||o.transferFunction.colorStops.length<2)&&$e.error(`VoxelVariableStyle for variable ${i.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==o.transferFunction&&(Array.isArray(o.transferFunction.stretchRange)&&2===o.transferFunction.stretchRange.length||($e.error(`VoxelVariableStyle for variable ${i.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),o.transferFunction.stretchRange=[0,1],o.transferFunction.colorStops.removeAll()));else if("discrete"===i.renderingFormat.continuity)if(0===t.uniqueValues.length)$e.error(`VoxelVariableStyle for variable ${i.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(o)}else $e.error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const i=this._getVolumeFromVolumeId(t.volumeId);if(null!=i){const o=t.clone();for(const e of o.slices)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of o.dynamicSections)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");e.push(o)}else $e.error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,i){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const o=(0,m.f)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(o,o),!(Math.abs(o[0])+Math.abs(o[1])+Math.abs(o[2])<1e-6||(e.normal[0]=o[0],e.normal[1]=o[1],e.normal[2]=o[2],0))}};(0,o._)([(0,c.Cb)({type:["Voxel"]})],He.prototype,"operationalLayerType",void 0),(0,o._)([(0,c.Cb)(C.rn)],He.prototype,"legendEnabled",void 0),(0,o._)([(0,c.Cb)({json:{write:!0}})],He.prototype,"title",void 0),(0,o._)([(0,c.Cb)(C.HQ)],He.prototype,"url",null),(0,o._)([(0,c.Cb)({type:n.Z.ofType(W),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],He.prototype,"sections",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],He.prototype,"currentVariableId",void 0),(0,o._)([(0,c.Cb)({type:n.Z.ofType(ke),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],He.prototype,"volumeStyles",void 0),(0,o._)([(0,c.Cb)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],He.prototype,"renderMode",void 0),(0,o._)([(0,c.Cb)({type:n.Z.ofType(xe),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],He.prototype,"variableStyles",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],He.prototype,"enableSlices",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],He.prototype,"enableSections",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],He.prototype,"enableDynamicSections",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],He.prototype,"enableIsosurfaces",void 0),(0,o._)([(0,c.Cb)({type:K,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],He.prototype,"shading",void 0),(0,o._)([(0,c.Cb)({type:["show","hide"]})],He.prototype,"listMode",void 0),(0,o._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],He.prototype,"opacity",void 0),(0,o._)([(0,c.Cb)({type:n.Z.ofType(ee)})],He.prototype,"variables",void 0),(0,o._)([(0,c.Cb)({type:n.Z.ofType(Fe)})],He.prototype,"volumes",void 0),(0,o._)([(0,c.Cb)({type:Pe})],He.prototype,"index",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{name:"layerDefinition.minScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],He.prototype,"minScale",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{name:"layerDefinition.maxScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],He.prototype,"maxScale",void 0),(0,o._)([(0,c.Cb)({json:{read:!1},readOnly:!0})],He.prototype,"type",void 0),(0,o._)([(0,c.Cb)({readOnly:!0,json:{name:"serviceVersion"}})],He.prototype,"version",void 0),(0,o._)([(0,d.r)("service","version")],He.prototype,"readVersion",null),(0,o._)([(0,c.Cb)({type:b.Z})],He.prototype,"fullExtent",void 0),(0,o._)([(0,d.r)("service","fullExtent",["fullExtent"])],He.prototype,"readFullExtent",null),(0,o._)([(0,c.Cb)({readOnly:!0,clonable:!1,json:{read:!1}})],He.prototype,"voxelFields",null),(0,o._)([(0,c.Cb)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,i){t[i]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],He.prototype,"popupEnabled",void 0),(0,o._)([(0,c.Cb)({type:r.Z,json:{read:!1}})],He.prototype,"popupTemplate",null),(0,o._)([(0,c.Cb)({readOnly:!0})],He.prototype,"defaultPopupTemplate",null),He=(0,o._)([(0,h.j)(Je)],He);const We=He},72965:(e,t,i)=>{i.d(t,{M:()=>s});var o=i(43697),r=i(5600),n=(i(75215),i(67676),i(80442),i(52011));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,o._)([(0,r.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,o._)([(0,r.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,o._)([(0,r.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,o._)([(0,n.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},66094:(e,t,i)=>{i.d(t,{B:()=>r});var o=i(17452);function r(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,o.Ml)(e);return a[t]||s}(e.url)}(e)]||l}const n={},s="text/plain",l=n[s],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in a)n[a[e]]=e},32163:(e,t,i)=>{i.d(t,{eZ:()=>u});var o=i(51773),r=i(35671),n=i(84649),s=(i(63801),i(48074),i(38745),i(9190)),l=(i(10214),i(71423),i(44951),i(422)),a=i(29986);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:u},h){if(!i)return null;const m=function(e,t){const i=t?.visibleFieldNames;return function(e,t){const i=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===i&&(e=e.slice()),e.sort(p),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new l.Z({fieldName:t.name,isEditable:(0,r.Hp)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:a},h);if(!m.length)return null;const b=function(e){const t=(0,r.O5)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),g=[new s.Z,new n.Z];return new o.Z({title:b,content:g,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,r.Fv)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.Z({digitSeparator:!0,places:0});case"double":return new a.Z({digitSeparator:!0,places:2});case"date":return new a.Z({dateFormat:"long-month-day-year"});default:return"string"===e.type&&(0,r.Ec)(e.name)?new a.Z({digitSeparator:!0,places:0}):null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6459],{21787:(t,n,r)=>{r.d(n,{b:()=>s,c:()=>a,d:()=>l,e:()=>c,f:()=>o,i:()=>h,m:()=>u,t:()=>i});var e=r(46851);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,r,e,o,a,i,c,s,u){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=a,t[5]=i,t[6]=c,t[7]=s,t[8]=u,t}function i(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function c(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],c=n[5],s=n[6],u=n[7],l=n[8],f=l*i-c*u,h=-l*a+c*s,p=u*a-i*s;let M=r*f+e*h+o*p;return M?(M=1/M,t[0]=f*M,t[1]=(-l*e+o*u)*M,t[2]=(c*e-o*i)*M,t[3]=h*M,t[4]=(l*r-o*s)*M,t[5]=(-c*r+o*a)*M,t[6]=p*M,t[7]=(-u*r+e*s)*M,t[8]=(i*r-e*a)*M,t):null}function s(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],c=n[5],s=n[6],u=n[7],l=n[8];return t[0]=i*l-c*u,t[1]=o*u-e*l,t[2]=e*c-o*i,t[3]=c*s-a*l,t[4]=r*l-o*s,t[5]=o*a-r*c,t[6]=a*u-i*s,t[7]=e*s-r*u,t[8]=r*i-e*a,t}function u(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],c=n[4],s=n[5],u=n[6],l=n[7],f=n[8],h=r[0],p=r[1],M=r[2],g=r[3],m=r[4],y=r[5],b=r[6],A=r[7],P=r[8];return t[0]=h*e+p*i+M*u,t[1]=h*o+p*c+M*l,t[2]=h*a+p*s+M*f,t[3]=g*e+m*i+y*u,t[4]=g*o+m*c+y*l,t[5]=g*a+m*s+y*f,t[6]=b*e+A*i+P*u,t[7]=b*o+A*c+P*l,t[8]=b*a+A*s+P*f,t}function l(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],c=n[5],s=n[6],u=n[7],l=n[8],f=n[9],h=n[10],p=n[11],M=n[12],g=n[13],m=n[14],y=n[15],b=r*c-e*i,A=r*s-o*i,P=r*u-a*i,d=e*s-o*c,E=e*u-a*c,C=o*u-a*s,T=l*g-f*M,_=l*m-h*M,F=l*y-p*M,x=f*m-h*g,R=f*y-p*g,v=h*y-p*m;let j=b*v-A*R+P*x+d*F-E*_+C*T;return j?(j=1/j,t[0]=(c*v-s*R+u*x)*j,t[1]=(s*F-i*v-u*_)*j,t[2]=(i*R-c*F+u*T)*j,t[3]=(o*R-e*v-a*x)*j,t[4]=(r*v-o*F+a*_)*j,t[5]=(e*F-r*R-a*T)*j,t[6]=(g*C-m*E+y*d)*j,t[7]=(m*P-M*C-y*A)*j,t[8]=(M*E-g*P+y*b)*j,t):null}function f(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}function h(t){const n=(0,e.g)(),r=t[0],o=t[1],a=t[2],i=t[3],c=t[4],s=t[5],u=t[6],l=t[7],f=t[8];return Math.abs(1-(r*r+i*i+u*u))<=n&&Math.abs(1-(o*o+c*c+l*l))<=n&&Math.abs(1-(a*a+s*s+f*f))<=n}const p=u,M=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],r=t[1],e=t[2],o=t[3],a=t[4],i=t[5],c=t[6],s=t[7],u=t[8];return n*(u*a-i*s)+r*(-u*o+i*c)+e*(s*o-a*c)},equals:function(t,n){const r=t[0],o=t[1],a=t[2],i=t[3],c=t[4],s=t[5],u=t[6],l=t[7],f=t[8],h=n[0],p=n[1],M=n[2],g=n[3],m=n[4],y=n[5],b=n[6],A=n[7],P=n[8],d=(0,e.g)();return Math.abs(r-h)<=d*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(o-p)<=d*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-M)<=d*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(i-g)<=d*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(c-m)<=d*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(s-y)<=d*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-b)<=d*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(l-A)<=d*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-P)<=d*Math.max(1,Math.abs(f),Math.abs(P))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=r+r,c=e+e,s=o+o,u=r*i,l=e*i,f=e*c,h=o*i,p=o*c,M=o*s,g=a*i,m=a*c,y=a*s;return t[0]=1-f-M,t[3]=l-y,t[6]=h+m,t[1]=l+y,t[4]=1-u-M,t[7]=p-g,t[2]=h-m,t[5]=p+g,t[8]=1-u-f,t},fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:c,isOrthoNormal:h,mul:p,multiply:u,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:l,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[4],i=n[5],c=n[6],s=n[8],u=n[9],l=n[10],f=l*i-c*u,h=-l*a+c*s,p=u*a-i*s,M=r*f+e*h+o*p;if(!M)return null;const g=1/M;return t[0]=f*g,t[1]=(-l*e+o*u)*g,t[2]=(c*e-o*i)*g,t[3]=h*g,t[4]=(l*r-o*s)*g,t[5]=(-c*r+o*a)*g,t[6]=p*g,t[7]=(-u*r+e*s)*g,t[8]=(i*r-e*a)*g,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],c=n[4],s=n[5],u=n[6],l=n[7],f=n[8],h=Math.sin(r),p=Math.cos(r);return t[0]=p*e+h*i,t[1]=p*o+h*c,t[2]=p*a+h*s,t[3]=p*i-h*e,t[4]=p*c-h*o,t[5]=p*s-h*a,t[6]=u,t[7]=l,t[8]=f,t},scale:function(t,n,r){const e=r[0],o=r[1],a=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t},scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:M,subtract:f,translate:function(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],c=n[4],s=n[5],u=n[6],l=n[7],f=n[8],h=r[0],p=r[1];return t[0]=e,t[1]=o,t[2]=a,t[3]=i,t[4]=c,t[5]=s,t[6]=h*e+p*i+u,t[7]=h*o+p*c+l,t[8]=h*a+p*s+f,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},51305:(t,n,r)=>{r.d(n,{a:()=>p,c:()=>m,g:()=>l,j:()=>R,k:()=>g,m:()=>f,s:()=>u});var e=r(46521),o=r(94961),a=r(65617),i=r(46851),c=r(17896),s=r(98766);function u(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function l(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,i.g)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function f(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],c=r[0],s=r[1],u=r[2],l=r[3];return t[0]=e*l+i*c+o*u-a*s,t[1]=o*l+i*s+a*c-e*u,t[2]=a*l+i*u+e*s-o*c,t[3]=i*l-e*c-o*s-a*u,t}function h(t,n,r,e){const o=n[0],a=n[1],c=n[2],s=n[3];let u,l,f,h,p,M=r[0],g=r[1],m=r[2],y=r[3];return l=o*M+a*g+c*m+s*y,l<0&&(l=-l,M=-M,g=-g,m=-m,y=-y),1-l>(0,i.g)()?(u=Math.acos(l),f=Math.sin(u),h=Math.sin((1-e)*u)/f,p=Math.sin(e*u)/f):(h=1-e,p=e),t[0]=h*o+p*M,t[1]=h*a+p*g,t[2]=h*c+p*m,t[3]=h*s+p*y,t}function p(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,a=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*a+a]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+a]-n[3*a+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[a]=(n[3*a+r]+n[3*r+a])*e}return t}function g(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const a=Math.sin(n),i=Math.cos(n),c=Math.sin(r),s=Math.cos(r),u=Math.sin(e),l=Math.cos(e);return t[0]=a*s*l-i*c*u,t[1]=i*c*l+a*s*u,t[2]=i*s*u-a*c*l,t[3]=i*s*l+a*c*u,t}const m=s.c,y=s.s,b=s.a,A=f,P=s.b,d=s.d,E=s.l,C=s.e,T=C,_=s.f,F=_,x=s.n,R=s.g,v=s.h,j=(0,a.c)(),w=(0,a.f)(1,0,0),S=(0,a.f)(0,1,0),O=(0,o.b)(),L=(0,o.b)(),Z=(0,e.c)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:p,copy:m,dot:d,equals:v,exactEquals:R,fromEuler:g,fromMat3:M,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=r*r+e*e+o*o+a*a,c=i?1/i:0;return t[0]=-r*c,t[1]=-e*c,t[2]=-o*c,t[3]=a*c,t},len:T,length:C,lerp:E,mul:A,multiply:f,normalize:x,random:function(t){const n=i.R,r=n(),e=n(),o=n(),a=Math.sqrt(1-r),c=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*e),t[1]=a*Math.cos(2*Math.PI*e),t[2]=c*Math.sin(2*Math.PI*o),t[3]=c*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],c=Math.sin(r),s=Math.cos(r);return t[0]=e*s+i*c,t[1]=o*s+a*c,t[2]=a*s-o*c,t[3]=i*s-e*c,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],c=Math.sin(r),s=Math.cos(r);return t[0]=e*s-a*c,t[1]=o*s+i*c,t[2]=a*s+e*c,t[3]=i*s-o*c,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],c=Math.sin(r),s=Math.cos(r);return t[0]=e*s+o*c,t[1]=o*s-e*c,t[2]=a*s+i*c,t[3]=i*s-a*c,t},rotationTo:function(t,n,r){const e=(0,c.d)(n,r);return e<-.999999?((0,c.c)(j,w,n),(0,c.B)(j)<1e-6&&(0,c.c)(j,S,n),(0,c.n)(j,j),u(t,j,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,c.c)(j,n,r),t[0]=j[0],t[1]=j[1],t[2]=j[2],t[3]=1+e,x(t,t))},scale:P,set:y,setAxes:function(t,n,r,e){const o=Z;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],x(t,M(t,o))},setAxisAngle:u,slerp:h,sqlerp:function(t,n,r,e,o,a){return h(O,n,o,a),h(L,r,e,a),h(t,O,L,2*a*(1-a)),t},sqrLen:F,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},83932:(t,n,r)=>{r.d(n,{B:()=>u});var e=r(22021),o=r(52138),a=r(65617);function i(t,n,r){const e=Math.sin(t),o=Math.cos(t),a=Math.sin(n),i=Math.cos(n),c=r;return c[0]=-e,c[4]=-a*o,c[8]=i*o,c[12]=0,c[1]=o,c[5]=-a*e,c[9]=i*e,c[13]=0,c[2]=0,c[6]=i,c[10]=a,c[14]=0,c[3]=0,c[7]=0,c[11]=0,c[15]=1,c}var c=r(29166),s=r(8744);function u(t,n,r,e){if(null==t||null==e)return!1;const a=(0,c.eT)(t,c.Jz),u=(0,c.eT)(e,c.sp);if(a===u&&!l(u)&&(a!==c.Ej.UNKNOWN||(0,s.fS)(t,e)))return(0,o.f)(r,n),!0;if(l(u)){const t=c.rf[a][c.Ej.LON_LAT],e=c.rf[c.Ej.LON_LAT][u];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,p,0),i(f*h[0],f*h[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}if((u===c.Ej.WEB_MERCATOR||u===c.Ej.PLATE_CARREE)&&(a===c.Ej.WGS84||a===c.Ej.CGCS2000&&u===c.Ej.PLATE_CARREE||a===c.Ej.SPHERICAL_ECEF||a===c.Ej.WEB_MERCATOR)){const t=c.rf[a][c.Ej.LON_LAT],e=c.rf[c.Ej.LON_LAT][u];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,p,0),a===c.Ej.SPHERICAL_ECEF?function(t,n,r){i(t,n,r),(0,o.t)(r,r)}(f*h[0],f*h[1],r):(0,o.i)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function l(t){return t===c.Ej.SPHERICAL_ECEF||t===c.Ej.SPHERICAL_MARS_PCPF||t===c.Ej.SPHERICAL_MOON_PCPF}const f=(0,e.Vl)(1),h=(0,a.c)(),p=(0,a.c)()},58995:(t,n,r)=>{r.d(n,{rS:()=>u});var e=r(2109),o=r(82971),a=r(8744);const i=new o.Z(e.kU),c=new o.Z(e.JL),s=new o.Z(e.mM);function u(t){return t&&((0,a.BZ)(t)||(0,a.fS)(t,c))?c:t&&((0,a.V2)(t)||(0,a.fS)(t,s))?s:i}new o.Z(e.pn)},2674:(t,n,r)=>{r.d(n,{Z:()=>y});var e,o=r(43697),a=r(96674),i=r(5600),c=(r(75215),r(67676),r(80442),r(52011)),s=r(52138),u=r(13598),l=r(51305),f=r(94961),h=r(17896),p=r(65617),M=r(3709);let g=e=class extends a.wq{constructor(t){super(t),this.translation=(0,p.c)(),this.rotationAxis=(0,p.g)(M.UP),this.rotationAngle=0,this.scale=(0,p.f)(1,1,1)}get rotation(){return(0,M.uT)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.a)((0,M.ZZ)(t)),this.rotationAngle=(0,M.EU)(t)}get localMatrix(){const t=(0,u.c)();return(0,l.s)(m,(0,M.ZZ)(this.rotation),(0,M.WH)(this.rotation)),(0,s.g)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,s.a)((0,u.c)(),this.localMatrix)}applyLocal(t,n){return(0,h.m)(n,t,this.localMatrix)}applyLocalInverse(t,n){return(0,h.m)(n,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,s.h)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,p.a)(this.translation),rotationAxis:(0,p.a)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.a)(this.scale)};return new e(t)}};(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"translation",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAxis",void 0),(0,o._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAngle",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"scale",void 0),(0,o._)([(0,i.Cb)()],g.prototype,"rotation",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrix",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrixInverse",null),g=e=(0,o._)([(0,c.j)("esri.geometry.support.MeshTransform")],g);const m=(0,f.b)(),y=g},3709:(t,n,r)=>{r.d(n,{EU:()=>p,UP:()=>g,Ue:()=>s,WH:()=>M,ZZ:()=>h,qC:()=>l,qw:()=>f,uT:()=>u});var e=r(22021),o=r(51305),a=r(94961),i=r(17896),c=r(65617);function s(t=g){return[t[0],t[1],t[2],t[3]]}function u(t,n,r=s()){return(0,i.i)(r,t),r[3]=n,r}function l(t,n,r=s()){return(0,o.s)(m,t,M(t)),(0,o.s)(y,n,M(n)),(0,o.m)(m,y,m),function(t,n){return t[3]=n,t}(r,(0,e.BV)((0,o.g)(r,m)))}function f(t,n,r,e=s()){return u(c.d,t,b),u(c.e,n,A),u(c.U,r,P),l(b,A,b),l(b,P,e),e}function h(t){return t}function p(t){return t[3]}function M(t){return(0,e.Vl)(t[3])}const g=[0,0,1,0],m=(0,a.b)(),y=(0,a.b)(),b=(s(),s()),A=s(),P=s()},13442:(t,n,r)=>{r.d(n,{A:()=>a,h:()=>o});var e=r(92604);function o(t,n){return t.isGeographic||t.isWebMercator&&(n?.geographic??!0)}function a(t,n,r){const o=!t.isGeoreferenced;null!=r?.geographic&&r.geographic!==o&&e.Z.getLogger(n).warnOnce(`Specifying the 'geographic' parameter (${r.geographic}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}},66459:(t,n,r)=>{r.d(n,{FF:()=>_,I5:()=>C,Yq:()=>F,iv:()=>E,project:()=>x,w1:()=>T});var e=r(67900),o=r(46521),a=r(52138),i=r(13598),c=r(17896),s=r(65617),u=r(21787),l=r(73615),f=r(58995),h=r(83932),p=r(87360),M=r(83025),g=r(85872),m=r(50567),y=r(84555),b=r(2674),A=r(20773),P=r(13442),d=r(56493);function E(t,n,r){return(0,P.h)(n.spatialReference,r)?function(t,n,r){const e=n.spatialReference,o=w(n,r,Z),a=new Float64Array(t.position.length),i=function(t,n,r,e){(0,A.t)(e,t,n);const o=new Float64Array(t.length);return(0,d.To)(e,o,r)}(t.position,o,e,a),c=(0,u.d)(q,o);return{position:i,normal:R(i,a,t.normal,c,e),tangent:v(i,a,t.tangent,c,e)}}(t,n,r):function(t,n,r){const e=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,c=n.z??0,s=L(r?r.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)e[t]=o[t]*s+a,e[t+1]=o[t+1]*s+i,e[t+2]=o[t+2]*s+c;return{position:e,normal:t.normal,tangent:t.tangent}}(t,n,r)}function C(t,n,r,e){const{position:o,normal:a,tangent:c}=t;if(!n.isRelative)return{position:o,normal:a,tangent:c};const s=r?.localMatrix??i.I;return E({position:(0,A.t)(new Float64Array(o.length),o,s),normal:null!=a?(0,d.w9)(a,new Float32Array(a.length),s):null,tangent:null!=c?(0,d.VS)(c,new Float32Array(c.length),s):null},n.getOriginPoint(e),{geographic:!n.isGeoreferenced})}function T(t,n,r){if(r?.useTransform){const{position:e,normal:o,tangent:a}=t,{x:i,y:c,z:u}=n,l=(0,s.f)(i,c,u??0);return{vertexAttributes:{position:e,normal:o,tangent:a},vertexSpace:r.geographic??1?new y.Z({origin:l}):new g.Z({origin:l}),transform:new b.Z}}return{vertexAttributes:E(t,n,r),vertexSpace:new m.Z,transform:null}}function _(t,n,r){return(0,P.h)(n.spatialReference,r)?function(t,n,r){const e=n.spatialReference;w(n,r,Z);const o=(0,a.a)(I,Z),i=new Float64Array(t.position.length),c=function(t,n,r,e){const o=(0,d.XO)(t,n,e),a=new Float64Array(o.length);return(0,A.t)(a,o,r),a}(t.position,e,o,i),s=(0,u.d)(q,o);return{position:c,normal:S(t.normal,t.position,i,e,s),tangent:O(t.tangent,t.position,i,e,s)}}(t,n,r):j(t,n,r)}function F(t,n,r,e,o){if(!n.isRelative)return _(t,e,o);const{spatialReference:a}=e,i=C(t,n,r,a);return e.equals(n.getOriginPoint(a))?j(i,e,o):_(i,e,o)}function x({positions:t,transform:n,vertexSpace:r,inSpatialReference:e,outSpatialReference:o,outPositions:u,local:g}){const m=r.isRelative?r.origin:s.Z,y=r.isRelative?n?.localMatrix??i.I:i.I;if(r.isGeoreferenced){const n=u??(0,M.bg)(t.length);if((0,a.j)(y,i.I)?(0,M.JK)(n,t):(0,A.t)(n,t,y),!(0,c.k)(m,s.Z)){const[t,r,e]=m;for(let o=0;o<n.length;o+=3)n[o]+=t,n[o+1]+=r,n[o+2]+=e}return(0,p.projectBuffer)(n,e,0,n,o,0,n.length/3),n}const b=(0,f.rS)(e),P=!g&&(0,l.canProjectWithoutEngine)(e,b)?b:e;(0,h.B)(e,m,Z,P),(0,a.m)(Z,Z,y);const d=u??(0,M.bg)(t.length);return(0,A.t)(d,t,Z),(0,p.projectBuffer)(d,P,0,d,o,0,d.length/3),d}function R(t,n,r,e,o){if(null==r)return null;const a=new Float32Array(r.length);return(0,A.a)(a,r,e),(0,d.Yk)(a,t,n,o,a),a}function v(t,n,r,e,o){if(null==r)return null;const a=new Float32Array(r.length);(0,A.a)(a,r,e,4);for(let t=3;t<a.length;t+=4)a[t]=r[t];return(0,d.M2)(a,t,n,o,a),a}function j(t,n,r){const e=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,c=n.z??0,s=L(r?r.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)e[t]=(o[t]-a)/s,e[t+1]=(o[t+1]-i)/s,e[t+2]=(o[t+2]-c)/s;return{position:e,normal:t.normal,tangent:t.tangent}}function w(t,n,r){(0,h.B)(t.spatialReference,[t.x,t.y,t.z??0],r,(0,f.rS)(t.spatialReference));const e=L(n?n.unit:null,t.spatialReference);return(0,a.k)(r,r,[e,e,e]),r}function S(t,n,r,e,o){if(null==t)return null;const a=(0,d.Iz)(t,n,r,e,new Float32Array(t.length));return(0,A.a)(a,a,o),a}function O(t,n,r,e,o){if(null==t)return null;const a=(0,d.wi)(t,n,r,e,new Float32Array(t.length));return(0,A.a)(a,a,o,4),a}function L(t,n){if(null==t)return 1;const r=(0,e.r6)(n);return 1/(0,e.En)(r,"meters",t)}const Z=(0,i.c)(),I=(0,i.c)(),q=(0,o.c)()},56493:(t,n,r)=>{r.d(n,{Iz:()=>y,M2:()=>T,To:()=>P,VS:()=>E,XO:()=>A,Yk:()=>b,w9:()=>d,wi:()=>C});var e=r(92604),o=r(21787),a=r(46521),i=r(13598),c=r(17896),s=r(65617),u=r(58995),l=r(83932),f=r(87360),h=r(8744),p=r(40488),M=r(56481),g=r(20773);const m=e.Z.getLogger("esri.geometry.support.meshUtils.normalProjection");function y(t,n,r,e,o){return F(e)?(_(R.TO_PCPF,M.ct.fromTypedArray(t),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o)),o):(m.error("Cannot convert spatial reference to PCPF"),o)}function b(t,n,r,e,o){return F(e)?(_(R.FROM_PCPF,M.ct.fromTypedArray(t),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o)),o):(m.error("Cannot convert to spatial reference from PCPF"),o)}function A(t,n,r){return(0,f.projectBuffer)(t,n,0,r,(0,u.rS)(n),0,t.length/3),r}function P(t,n,r){return(0,f.projectBuffer)(t,(0,u.rS)(r),0,n,r,0,t.length/3),n}function d(t,n,r){return(0,o.d)(O,r),(0,g.a)(n,t,O),(0,o.i)(O)||(0,g.n)(n,n),n}function E(t,n,r){if((0,o.d)(O,r),(0,g.a)(n,t,O,4),(0,o.i)(O)||(0,g.n)(n,n,4),t!==n)for(let r=3;r<t.length;r+=4)n[r]=t[r];return n}function C(t,n,r,e,o){if(!F(e))return m.error("Cannot convert spatial reference to PCPF"),o;_(R.TO_PCPF,M.ct.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function T(t,n,r,e,o){if(!F(e))return m.error("Cannot convert to spatial reference from PCPF"),o;_(R.FROM_PCPF,M.ct.fromTypedArray(t,16),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o,16));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function _(t,n,r,e,a,i){if(!n)return;const s=r.count,f=(0,u.rS)(a);if(x(a))for(let r=0;r<s;r++)e.getVec(r,j),n.getVec(r,w),(0,l.B)(f,j,S,f),(0,o.f)(O,S),t===R.FROM_PCPF&&(0,o.t)(O,O),(0,c.t)(w,w,O),i.setVec(r,w);else for(let a=0;a<s;a++){e.getVec(a,j),n.getVec(a,w),(0,l.B)(f,j,S,f),(0,o.f)(O,S);const s=(0,p.mZ)(r.get(a,1));let u=Math.cos(s);t===R.TO_PCPF&&(u=1/u),O[0]*=u,O[1]*=u,O[2]*=u,O[3]*=u,O[4]*=u,O[5]*=u,t===R.FROM_PCPF&&(0,o.t)(O,O),(0,c.t)(w,w,O),(0,c.n)(w,w),i.setVec(a,w)}return i}function F(t){return x(t)||function(t){return t.isWebMercator}(t)}function x(t){return t.isWGS84||(0,h.yW)(t)||(0,h.BZ)(t)||(0,h.V2)(t)}var R,v;(v=R||(R={}))[v.TO_PCPF=0]="TO_PCPF",v[v.FROM_PCPF=1]="FROM_PCPF";const j=(0,s.c)(),w=(0,s.c)(),S=(0,i.c)(),O=(0,a.c)()}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6459],{21787:(t,n,r)=>{r.d(n,{a:()=>c,d:()=>s,f:()=>o,i:()=>h,m:()=>u,n:()=>l,s:()=>a,t:()=>i});var e=r(46851);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,r,e,o,a,i,s,c,u){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=a,t[5]=i,t[6]=s,t[7]=c,t[8]=u,t}function i(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],s=n[5],c=n[6],u=n[7],l=n[8],f=l*i-s*u,h=-l*a+s*c,p=u*a-i*c;let M=r*f+e*h+o*p;return M?(M=1/M,t[0]=f*M,t[1]=(-l*e+o*u)*M,t[2]=(s*e-o*i)*M,t[3]=h*M,t[4]=(l*r-o*c)*M,t[5]=(-s*r+o*a)*M,t[6]=p*M,t[7]=(-u*r+e*c)*M,t[8]=(i*r-e*a)*M,t):null}function c(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],s=n[5],c=n[6],u=n[7],l=n[8];return t[0]=i*l-s*u,t[1]=o*u-e*l,t[2]=e*s-o*i,t[3]=s*c-a*l,t[4]=r*l-o*c,t[5]=o*a-r*s,t[6]=a*u-i*c,t[7]=e*c-r*u,t[8]=r*i-e*a,t}function u(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],u=n[6],l=n[7],f=n[8],h=r[0],p=r[1],M=r[2],g=r[3],m=r[4],y=r[5],b=r[6],A=r[7],P=r[8];return t[0]=h*e+p*i+M*u,t[1]=h*o+p*s+M*l,t[2]=h*a+p*c+M*f,t[3]=g*e+m*i+y*u,t[4]=g*o+m*s+y*l,t[5]=g*a+m*c+y*f,t[6]=b*e+A*i+P*u,t[7]=b*o+A*s+P*l,t[8]=b*a+A*c+P*f,t}function l(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],s=n[5],c=n[6],u=n[7],l=n[8],f=n[9],h=n[10],p=n[11],M=n[12],g=n[13],m=n[14],y=n[15],b=r*s-e*i,A=r*c-o*i,P=r*u-a*i,d=e*c-o*s,E=e*u-a*s,C=o*u-a*c,T=l*g-f*M,_=l*m-h*M,F=l*y-p*M,x=f*m-h*g,R=f*y-p*g,v=h*y-p*m;let j=b*v-A*R+P*x+d*F-E*_+C*T;return j?(j=1/j,t[0]=(s*v-c*R+u*x)*j,t[1]=(c*F-i*v-u*_)*j,t[2]=(i*R-s*F+u*T)*j,t[3]=(o*R-e*v-a*x)*j,t[4]=(r*v-o*F+a*_)*j,t[5]=(e*F-r*R-a*T)*j,t[6]=(g*C-m*E+y*d)*j,t[7]=(m*P-M*C-y*A)*j,t[8]=(M*E-g*P+y*b)*j,t):null}function f(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}function h(t){const n=(0,e.g)(),r=t[0],o=t[1],a=t[2],i=t[3],s=t[4],c=t[5],u=t[6],l=t[7],f=t[8];return Math.abs(1-(r*r+i*i+u*u))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n}const p=u,M=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],r=t[1],e=t[2],o=t[3],a=t[4],i=t[5],s=t[6],c=t[7],u=t[8];return n*(u*a-i*c)+r*(-u*o+i*s)+e*(c*o-a*s)},equals:function(t,n){const r=t[0],o=t[1],a=t[2],i=t[3],s=t[4],c=t[5],u=t[6],l=t[7],f=t[8],h=n[0],p=n[1],M=n[2],g=n[3],m=n[4],y=n[5],b=n[6],A=n[7],P=n[8],d=(0,e.g)();return Math.abs(r-h)<=d*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(o-p)<=d*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-M)<=d*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(i-g)<=d*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(s-m)<=d*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-y)<=d*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-b)<=d*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(l-A)<=d*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-P)<=d*Math.max(1,Math.abs(f),Math.abs(P))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=r+r,s=e+e,c=o+o,u=r*i,l=e*i,f=e*s,h=o*i,p=o*s,M=o*c,g=a*i,m=a*s,y=a*c;return t[0]=1-f-M,t[3]=l-y,t[6]=h+m,t[1]=l+y,t[4]=1-u-M,t[7]=p-g,t[2]=h-m,t[5]=p+g,t[8]=1-u-f,t},fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:h,mul:p,multiply:u,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:l,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[4],i=n[5],s=n[6],c=n[8],u=n[9],l=n[10],f=l*i-s*u,h=-l*a+s*c,p=u*a-i*c,M=r*f+e*h+o*p;if(!M)return null;const g=1/M;return t[0]=f*g,t[1]=(-l*e+o*u)*g,t[2]=(s*e-o*i)*g,t[3]=h*g,t[4]=(l*r-o*c)*g,t[5]=(-s*r+o*a)*g,t[6]=p*g,t[7]=(-u*r+e*c)*g,t[8]=(i*r-e*a)*g,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],u=n[6],l=n[7],f=n[8],h=Math.sin(r),p=Math.cos(r);return t[0]=p*e+h*i,t[1]=p*o+h*s,t[2]=p*a+h*c,t[3]=p*i-h*e,t[4]=p*s-h*o,t[5]=p*c-h*a,t[6]=u,t[7]=l,t[8]=f,t},scale:function(t,n,r){const e=r[0],o=r[1],a=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t},scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:M,subtract:f,translate:function(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],u=n[6],l=n[7],f=n[8],h=r[0],p=r[1];return t[0]=e,t[1]=o,t[2]=a,t[3]=i,t[4]=s,t[5]=c,t[6]=h*e+p*i+u,t[7]=h*o+p*s+l,t[8]=h*a+p*c+f,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},51305:(t,n,r)=>{r.d(n,{a:()=>p,c:()=>m,g:()=>l,j:()=>R,k:()=>g,m:()=>f,s:()=>u});var e=r(46521),o=r(94961),a=r(65617),i=r(46851),s=r(17896),c=r(98766);function u(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function l(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,i.g)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function f(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=r[0],c=r[1],u=r[2],l=r[3];return t[0]=e*l+i*s+o*u-a*c,t[1]=o*l+i*c+a*s-e*u,t[2]=a*l+i*u+e*c-o*s,t[3]=i*l-e*s-o*c-a*u,t}function h(t,n,r,e){const o=n[0],a=n[1],s=n[2],c=n[3];let u,l,f,h,p,M=r[0],g=r[1],m=r[2],y=r[3];return l=o*M+a*g+s*m+c*y,l<0&&(l=-l,M=-M,g=-g,m=-m,y=-y),1-l>(0,i.g)()?(u=Math.acos(l),f=Math.sin(u),h=Math.sin((1-e)*u)/f,p=Math.sin(e*u)/f):(h=1-e,p=e),t[0]=h*o+p*M,t[1]=h*a+p*g,t[2]=h*s+p*m,t[3]=h*c+p*y,t}function p(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,a=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*a+a]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+a]-n[3*a+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[a]=(n[3*a+r]+n[3*r+a])*e}return t}function g(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const a=Math.sin(n),i=Math.cos(n),s=Math.sin(r),c=Math.cos(r),u=Math.sin(e),l=Math.cos(e);return t[0]=a*c*l-i*s*u,t[1]=i*s*l+a*c*u,t[2]=i*c*u-a*s*l,t[3]=i*c*l+a*s*u,t}const m=c.c,y=c.s,b=c.a,A=f,P=c.b,d=c.d,E=c.l,C=c.f,T=C,_=c.g,F=_,x=c.n,R=c.h,v=c.e,j=(0,a.c)(),w=(0,a.f)(1,0,0),S=(0,a.f)(0,1,0),O=(0,o.a)(),L=(0,o.a)(),Z=(0,e.a)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:p,copy:m,dot:d,equals:v,exactEquals:R,fromEuler:g,fromMat3:M,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=r*r+e*e+o*o+a*a,s=i?1/i:0;return t[0]=-r*s,t[1]=-e*s,t[2]=-o*s,t[3]=a*s,t},len:T,length:C,lerp:E,mul:A,multiply:f,normalize:x,random:function(t){const n=i.R,r=n(),e=n(),o=n(),a=Math.sqrt(1-r),s=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*e),t[1]=a*Math.cos(2*Math.PI*e),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(r),c=Math.cos(r);return t[0]=e*c+i*s,t[1]=o*c+a*s,t[2]=a*c-o*s,t[3]=i*c-e*s,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(r),c=Math.cos(r);return t[0]=e*c-a*s,t[1]=o*c+i*s,t[2]=a*c+e*s,t[3]=i*c-o*s,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(r),c=Math.cos(r);return t[0]=e*c+o*s,t[1]=o*c-e*s,t[2]=a*c+i*s,t[3]=i*c-a*s,t},rotationTo:function(t,n,r){const e=(0,s.j)(n,r);return e<-.999999?((0,s.b)(j,w,n),(0,s.k)(j)<1e-6&&(0,s.b)(j,S,n),(0,s.n)(j,j),u(t,j,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(j,n,r),t[0]=j[0],t[1]=j[1],t[2]=j[2],t[3]=1+e,x(t,t))},scale:P,set:y,setAxes:function(t,n,r,e){const o=Z;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],x(t,M(t,o))},setAxisAngle:u,slerp:h,sqlerp:function(t,n,r,e,o,a){return h(O,n,o,a),h(L,r,e,a),h(t,O,L,2*a*(1-a)),t},sqrLen:F,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},83932:(t,n,r)=>{r.d(n,{B:()=>u});var e=r(22021),o=r(52138),a=r(65617);function i(t,n,r){const e=Math.sin(t),o=Math.cos(t),a=Math.sin(n),i=Math.cos(n),s=r;return s[0]=-e,s[4]=-a*o,s[8]=i*o,s[12]=0,s[1]=o,s[5]=-a*e,s[9]=i*e,s[13]=0,s[2]=0,s[6]=i,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=r(29166),c=r(8744);function u(t,n,r,e){if(null==t||null==e)return!1;const a=(0,s.eT)(t,s.Jz),u=(0,s.eT)(e,s.sp);if(a===u&&!l(u)&&(a!==s.Ej.UNKNOWN||(0,c.fS)(t,e)))return(0,o.d)(r,n),!0;if(l(u)){const t=s.rf[a][s.Ej.LON_LAT],e=s.rf[s.Ej.LON_LAT][u];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,p,0),i(f*h[0],f*h[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}if((u===s.Ej.WEB_MERCATOR||u===s.Ej.PLATE_CARREE)&&(a===s.Ej.WGS84||a===s.Ej.CGCS2000&&u===s.Ej.PLATE_CARREE||a===s.Ej.SPHERICAL_ECEF||a===s.Ej.WEB_MERCATOR)){const t=s.rf[a][s.Ej.LON_LAT],e=s.rf[s.Ej.LON_LAT][u];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,p,0),a===s.Ej.SPHERICAL_ECEF?function(t,n,r){i(t,n,r),(0,o.t)(r,r)}(f*h[0],f*h[1],r):(0,o.g)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function l(t){return t===s.Ej.SPHERICAL_ECEF||t===s.Ej.SPHERICAL_MARS_PCPF||t===s.Ej.SPHERICAL_MOON_PCPF}const f=(0,e.Vl)(1),h=(0,a.c)(),p=(0,a.c)()},58995:(t,n,r)=>{r.d(n,{rS:()=>u});var e=r(2109),o=r(82971),a=r(8744);const i=new o.Z(e.kU),s=new o.Z(e.JL),c=new o.Z(e.mM);function u(t){return t&&((0,a.BZ)(t)||(0,a.fS)(t,s))?s:t&&((0,a.V2)(t)||(0,a.fS)(t,c))?c:i}new o.Z(e.pn)},2674:(t,n,r)=>{r.d(n,{Z:()=>y});var e,o=r(43697),a=r(96674),i=r(5600),s=(r(75215),r(67676),r(80442),r(52011)),c=r(52138),u=r(13598),l=r(51305),f=r(94961),h=r(17896),p=r(65617),M=r(3709);let g=e=class extends a.wq{constructor(t){super(t),this.translation=(0,p.c)(),this.rotationAxis=(0,p.e)(M.UP),this.rotationAngle=0,this.scale=(0,p.f)(1,1,1)}get rotation(){return(0,M.uT)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.g)((0,M.ZZ)(t)),this.rotationAngle=(0,M.EU)(t)}get localMatrix(){const t=(0,u.a)();return(0,l.s)(m,(0,M.ZZ)(this.rotation),(0,M.WH)(this.rotation)),(0,c.f)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,c.i)((0,u.a)(),this.localMatrix)}applyLocal(t,n){return(0,h.e)(n,t,this.localMatrix)}applyLocalInverse(t,n){return(0,h.e)(n,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,c.e)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,p.g)(this.translation),rotationAxis:(0,p.g)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.g)(this.scale)};return new e(t)}};(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"translation",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAxis",void 0),(0,o._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAngle",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"scale",void 0),(0,o._)([(0,i.Cb)()],g.prototype,"rotation",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrix",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrixInverse",null),g=e=(0,o._)([(0,s.j)("esri.geometry.support.MeshTransform")],g);const m=(0,f.a)(),y=g},3709:(t,n,r)=>{r.d(n,{EU:()=>p,UP:()=>g,Ue:()=>c,WH:()=>M,ZZ:()=>h,qC:()=>l,qw:()=>f,uT:()=>u});var e=r(22021),o=r(51305),a=r(94961),i=r(17896),s=r(65617);function c(t=g){return[t[0],t[1],t[2],t[3]]}function u(t,n,r=c()){return(0,i.c)(r,t),r[3]=n,r}function l(t,n,r=c()){return(0,o.s)(m,t,M(t)),(0,o.s)(y,n,M(n)),(0,o.m)(m,y,m),function(t,n){return t[3]=n,t}(r,(0,e.BV)((0,o.g)(r,m)))}function f(t,n,r,e=c()){return u(s.U,t,b),u(s.b,n,A),u(s.d,r,P),l(b,A,b),l(b,P,e),e}function h(t){return t}function p(t){return t[3]}function M(t){return(0,e.Vl)(t[3])}const g=[0,0,1,0],m=(0,a.a)(),y=(0,a.a)(),b=(c(),c()),A=c(),P=c()},13442:(t,n,r)=>{r.d(n,{A:()=>a,h:()=>o});var e=r(92604);function o(t,n){return t.isGeographic||t.isWebMercator&&(n?.geographic??!0)}function a(t,n,r){const o=!t.isGeoreferenced;null!=r?.geographic&&r.geographic!==o&&e.Z.getLogger(n).warnOnce(`Specifying the 'geographic' parameter (${r.geographic}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}},66459:(t,n,r)=>{r.d(n,{FF:()=>_,I5:()=>C,Yq:()=>F,iv:()=>E,project:()=>x,w1:()=>T});var e=r(67900),o=r(46521),a=r(52138),i=r(13598),s=r(17896),c=r(65617),u=r(21787),l=r(73615),f=r(58995),h=r(83932),p=r(87360),M=r(83025),g=r(85872),m=r(50567),y=r(84555),b=r(2674),A=r(20773),P=r(13442),d=r(56493);function E(t,n,r){return(0,P.h)(n.spatialReference,r)?function(t,n,r){const e=n.spatialReference,o=w(n,r,Z),a=new Float64Array(t.position.length),i=function(t,n,r,e){(0,A.t)(e,t,n);const o=new Float64Array(t.length);return(0,d.To)(e,o,r)}(t.position,o,e,a),s=(0,u.n)(q,o);return{position:i,normal:R(i,a,t.normal,s,e),tangent:v(i,a,t.tangent,s,e)}}(t,n,r):function(t,n,r){const e=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,c=L(r?r.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)e[t]=o[t]*c+a,e[t+1]=o[t+1]*c+i,e[t+2]=o[t+2]*c+s;return{position:e,normal:t.normal,tangent:t.tangent}}(t,n,r)}function C(t,n,r,e){const{position:o,normal:a,tangent:s}=t;if(!n.isRelative)return{position:o,normal:a,tangent:s};const c=r?.localMatrix??i.I;return E({position:(0,A.t)(new Float64Array(o.length),o,c),normal:null!=a?(0,d.w9)(a,new Float32Array(a.length),c):null,tangent:null!=s?(0,d.VS)(s,new Float32Array(s.length),c):null},n.getOriginPoint(e),{geographic:!n.isGeoreferenced})}function T(t,n,r){if(r?.useTransform){const{position:e,normal:o,tangent:a}=t,{x:i,y:s,z:u}=n,l=(0,c.f)(i,s,u??0);return{vertexAttributes:{position:e,normal:o,tangent:a},vertexSpace:r.geographic??1?new y.Z({origin:l}):new g.Z({origin:l}),transform:new b.Z}}return{vertexAttributes:E(t,n,r),vertexSpace:new m.Z,transform:null}}function _(t,n,r){return(0,P.h)(n.spatialReference,r)?function(t,n,r){const e=n.spatialReference;w(n,r,Z);const o=(0,a.i)(I,Z),i=new Float64Array(t.position.length),s=function(t,n,r,e){const o=(0,d.XO)(t,n,e),a=new Float64Array(o.length);return(0,A.t)(a,o,r),a}(t.position,e,o,i),c=(0,u.n)(q,o);return{position:s,normal:S(t.normal,t.position,i,e,c),tangent:O(t.tangent,t.position,i,e,c)}}(t,n,r):j(t,n,r)}function F(t,n,r,e,o){if(!n.isRelative)return _(t,e,o);const{spatialReference:a}=e,i=C(t,n,r,a);return e.equals(n.getOriginPoint(a))?j(i,e,o):_(i,e,o)}function x({positions:t,transform:n,vertexSpace:r,inSpatialReference:e,outSpatialReference:o,outPositions:u,local:g}){const m=r.isRelative?r.origin:c.Z,y=r.isRelative?n?.localMatrix??i.I:i.I;if(r.isGeoreferenced){const n=u??(0,M.bg)(t.length);if((0,a.a)(y,i.I)?(0,M.JK)(n,t):(0,A.t)(n,t,y),!(0,s.h)(m,c.Z)){const[t,r,e]=m;for(let o=0;o<n.length;o+=3)n[o]+=t,n[o+1]+=r,n[o+2]+=e}return(0,p.projectBuffer)(n,e,0,n,o,0,n.length/3),n}const b=(0,f.rS)(e),P=!g&&(0,l.canProjectWithoutEngine)(e,b)?b:e;(0,h.B)(e,m,Z,P),(0,a.m)(Z,Z,y);const d=u??(0,M.bg)(t.length);return(0,A.t)(d,t,Z),(0,p.projectBuffer)(d,P,0,d,o,0,d.length/3),d}function R(t,n,r,e,o){if(null==r)return null;const a=new Float32Array(r.length);return(0,A.a)(a,r,e),(0,d.Yk)(a,t,n,o,a),a}function v(t,n,r,e,o){if(null==r)return null;const a=new Float32Array(r.length);(0,A.a)(a,r,e,4);for(let t=3;t<a.length;t+=4)a[t]=r[t];return(0,d.M2)(a,t,n,o,a),a}function j(t,n,r){const e=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,c=L(r?r.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)e[t]=(o[t]-a)/c,e[t+1]=(o[t+1]-i)/c,e[t+2]=(o[t+2]-s)/c;return{position:e,normal:t.normal,tangent:t.tangent}}function w(t,n,r){(0,h.B)(t.spatialReference,[t.x,t.y,t.z??0],r,(0,f.rS)(t.spatialReference));const e=L(n?n.unit:null,t.spatialReference);return(0,a.b)(r,r,[e,e,e]),r}function S(t,n,r,e,o){if(null==t)return null;const a=(0,d.Iz)(t,n,r,e,new Float32Array(t.length));return(0,A.a)(a,a,o),a}function O(t,n,r,e,o){if(null==t)return null;const a=(0,d.wi)(t,n,r,e,new Float32Array(t.length));return(0,A.a)(a,a,o,4),a}function L(t,n){if(null==t)return 1;const r=(0,e.r6)(n);return 1/(0,e.En)(r,"meters",t)}const Z=(0,i.a)(),I=(0,i.a)(),q=(0,o.a)()},56493:(t,n,r)=>{r.d(n,{Iz:()=>y,M2:()=>T,To:()=>P,VS:()=>E,XO:()=>A,Yk:()=>b,w9:()=>d,wi:()=>C});var e=r(92604),o=r(21787),a=r(46521),i=r(13598),s=r(17896),c=r(65617),u=r(58995),l=r(83932),f=r(87360),h=r(8744),p=r(40488),M=r(56481),g=r(20773);const m=e.Z.getLogger("esri.geometry.support.meshUtils.normalProjection");function y(t,n,r,e,o){return F(e)?(_(R.TO_PCPF,M.ct.fromTypedArray(t),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o)),o):(m.error("Cannot convert spatial reference to PCPF"),o)}function b(t,n,r,e,o){return F(e)?(_(R.FROM_PCPF,M.ct.fromTypedArray(t),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o)),o):(m.error("Cannot convert to spatial reference from PCPF"),o)}function A(t,n,r){return(0,f.projectBuffer)(t,n,0,r,(0,u.rS)(n),0,t.length/3),r}function P(t,n,r){return(0,f.projectBuffer)(t,(0,u.rS)(r),0,n,r,0,t.length/3),n}function d(t,n,r){return(0,o.n)(O,r),(0,g.a)(n,t,O),(0,o.i)(O)||(0,g.n)(n,n),n}function E(t,n,r){if((0,o.n)(O,r),(0,g.a)(n,t,O,4),(0,o.i)(O)||(0,g.n)(n,n,4),t!==n)for(let r=3;r<t.length;r+=4)n[r]=t[r];return n}function C(t,n,r,e,o){if(!F(e))return m.error("Cannot convert spatial reference to PCPF"),o;_(R.TO_PCPF,M.ct.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function T(t,n,r,e,o){if(!F(e))return m.error("Cannot convert to spatial reference from PCPF"),o;_(R.FROM_PCPF,M.ct.fromTypedArray(t,16),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o,16));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function _(t,n,r,e,a,i){if(!n)return;const c=r.count,f=(0,u.rS)(a);if(x(a))for(let r=0;r<c;r++)e.getVec(r,j),n.getVec(r,w),(0,l.B)(f,j,S,f),(0,o.f)(O,S),t===R.FROM_PCPF&&(0,o.t)(O,O),(0,s.t)(w,w,O),i.setVec(r,w);else for(let a=0;a<c;a++){e.getVec(a,j),n.getVec(a,w),(0,l.B)(f,j,S,f),(0,o.f)(O,S);const c=(0,p.mZ)(r.get(a,1));let u=Math.cos(c);t===R.TO_PCPF&&(u=1/u),O[0]*=u,O[1]*=u,O[2]*=u,O[3]*=u,O[4]*=u,O[5]*=u,t===R.FROM_PCPF&&(0,o.t)(O,O),(0,s.t)(w,w,O),(0,s.n)(w,w),i.setVec(a,w)}return i}function F(t){return x(t)||function(t){return t.isWebMercator}(t)}function x(t){return t.isWGS84||(0,h.yW)(t)||(0,h.BZ)(t)||(0,h.V2)(t)}var R,v;(v=R||(R={}))[v.TO_PCPF=0]="TO_PCPF",v[v.FROM_PCPF=1]="FROM_PCPF";const j=(0,c.c)(),w=(0,c.c)(),S=(0,i.a)(),O=(0,a.a)()}}]);