@arcgis/core 4.27.0-next.20230514 → 4.27.0-next.20230516

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 (419) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  3. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  4. package/arcade/functions/string.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/0618fb0058f39ecd363f.js +1 -0
  7. package/assets/esri/core/workers/chunks/415c326d268b1a8fd03f.js +1 -0
  8. package/assets/esri/core/workers/chunks/5c811527898eb1c04e67.js +1 -0
  9. package/assets/esri/core/workers/chunks/62d9d15f0d00a75da42c.js +1 -0
  10. package/assets/esri/core/workers/chunks/93ad67930aa7d4a4b0ac.js +1 -0
  11. package/assets/esri/core/workers/chunks/953407451813f406fdf1.js +1 -0
  12. package/assets/esri/core/workers/chunks/{27081162d73cdded68ff.js → 9e209c6a2aded37f90fb.js} +1 -1
  13. package/assets/esri/core/workers/chunks/a507135977d83aea4421.js +1 -0
  14. package/assets/esri/core/workers/chunks/abe6c99a1a719543dbe8.js +1 -0
  15. package/assets/esri/core/workers/chunks/b91c155de9a89e4e6971.js +1 -0
  16. package/assets/esri/core/workers/chunks/cbe817e966b57599bafd.js +1 -0
  17. package/assets/esri/core/workers/chunks/d265da47f6c752a40ac1.js +1 -0
  18. package/assets/esri/core/workers/chunks/d95ca50ca7af4c222036.js +1 -0
  19. package/assets/esri/core/workers/chunks/e1e0b3580e2c3098c9f4.js +1 -0
  20. package/assets/esri/core/workers/chunks/ef141014ed21a7fd1ff3.js.LICENSE.txt +1 -1
  21. package/assets/esri/t9n/common_ar.json +1 -1
  22. package/assets/esri/t9n/common_bg.json +1 -1
  23. package/assets/esri/t9n/common_bs.json +1 -1
  24. package/assets/esri/t9n/common_ca.json +1 -1
  25. package/assets/esri/t9n/common_cs.json +1 -1
  26. package/assets/esri/t9n/common_da.json +1 -1
  27. package/assets/esri/t9n/common_de.json +1 -1
  28. package/assets/esri/t9n/common_el.json +1 -1
  29. package/assets/esri/t9n/common_es.json +1 -1
  30. package/assets/esri/t9n/common_et.json +1 -1
  31. package/assets/esri/t9n/common_fi.json +1 -1
  32. package/assets/esri/t9n/common_fr.json +1 -1
  33. package/assets/esri/t9n/common_he.json +1 -1
  34. package/assets/esri/t9n/common_hr.json +1 -1
  35. package/assets/esri/t9n/common_hu.json +1 -1
  36. package/assets/esri/t9n/common_id.json +1 -1
  37. package/assets/esri/t9n/common_it.json +1 -1
  38. package/assets/esri/t9n/common_ja.json +1 -1
  39. package/assets/esri/t9n/common_ko.json +1 -1
  40. package/assets/esri/t9n/common_lt.json +1 -1
  41. package/assets/esri/t9n/common_lv.json +1 -1
  42. package/assets/esri/t9n/common_nb.json +1 -1
  43. package/assets/esri/t9n/common_nl.json +1 -1
  44. package/assets/esri/t9n/common_pl.json +1 -1
  45. package/assets/esri/t9n/common_pt-BR.json +1 -1
  46. package/assets/esri/t9n/common_pt-PT.json +1 -1
  47. package/assets/esri/t9n/common_ro.json +1 -1
  48. package/assets/esri/t9n/common_ru.json +1 -1
  49. package/assets/esri/t9n/common_sk.json +1 -1
  50. package/assets/esri/t9n/common_sl.json +1 -1
  51. package/assets/esri/t9n/common_sr.json +1 -1
  52. package/assets/esri/t9n/common_sv.json +1 -1
  53. package/assets/esri/t9n/common_th.json +1 -1
  54. package/assets/esri/t9n/common_tr.json +1 -1
  55. package/assets/esri/t9n/common_uk.json +1 -1
  56. package/assets/esri/t9n/common_vi.json +1 -1
  57. package/assets/esri/t9n/common_zh-CN.json +1 -1
  58. package/assets/esri/t9n/common_zh-HK.json +1 -1
  59. package/assets/esri/t9n/common_zh-TW.json +1 -1
  60. package/assets/esri/themes/base/_core.scss +2 -0
  61. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +198 -125
  62. package/assets/esri/themes/base/widgets/_Features.scss +57 -0
  63. package/assets/esri/themes/base/widgets/_Popup.scss +3 -0
  64. package/assets/esri/themes/dark/main.css +1 -1
  65. package/assets/esri/themes/light/main.css +1 -1
  66. package/assets/esri/themes/light/view.css +1 -1
  67. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery.json +1 -1
  68. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_en.json +1 -1
  69. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ar.json +1 -1
  70. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bg.json +1 -1
  71. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bs.json +1 -1
  72. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ca.json +1 -1
  73. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_cs.json +1 -1
  74. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_da.json +1 -1
  75. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_de.json +1 -1
  76. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_el.json +1 -1
  77. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_es.json +1 -1
  78. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_et.json +1 -1
  79. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fi.json +1 -1
  80. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fr.json +1 -1
  81. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_he.json +1 -1
  82. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hr.json +1 -1
  83. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hu.json +1 -1
  84. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_id.json +1 -1
  85. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_it.json +1 -1
  86. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ja.json +1 -1
  87. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ko.json +1 -1
  88. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lt.json +1 -1
  89. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lv.json +1 -1
  90. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nb.json +1 -1
  91. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nl.json +1 -1
  92. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pl.json +1 -1
  93. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-BR.json +1 -1
  94. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-PT.json +1 -1
  95. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ro.json +1 -1
  96. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ru.json +1 -1
  97. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sk.json +1 -1
  98. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sl.json +1 -1
  99. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sr.json +1 -1
  100. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sv.json +1 -1
  101. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_th.json +1 -1
  102. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_tr.json +1 -1
  103. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_uk.json +1 -1
  104. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_vi.json +1 -1
  105. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-CN.json +1 -1
  106. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-HK.json +1 -1
  107. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-TW.json +1 -1
  108. package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
  109. package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
  110. package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
  111. package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
  112. package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
  113. package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
  114. package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
  115. package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
  116. package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
  117. package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
  118. package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
  119. package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
  120. package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
  121. package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
  122. package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
  123. package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
  124. package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
  125. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  126. package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
  127. package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
  128. package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
  129. package/assets/esri/widgets/Directions/t9n/Directions_nb.json +1 -1
  130. package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
  131. package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
  132. package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
  133. package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
  134. package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
  135. package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
  136. package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
  137. package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
  138. package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
  139. package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
  140. package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
  141. package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
  142. package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
  143. package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
  144. package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
  145. package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
  146. package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
  147. package/assets/esri/widgets/Feature/t9n/Feature_ar.json +1 -1
  148. package/assets/esri/widgets/Feature/t9n/Feature_bg.json +1 -1
  149. package/assets/esri/widgets/Feature/t9n/Feature_bs.json +1 -1
  150. package/assets/esri/widgets/Feature/t9n/Feature_ca.json +1 -1
  151. package/assets/esri/widgets/Feature/t9n/Feature_cs.json +1 -1
  152. package/assets/esri/widgets/Feature/t9n/Feature_da.json +1 -1
  153. package/assets/esri/widgets/Feature/t9n/Feature_de.json +1 -1
  154. package/assets/esri/widgets/Feature/t9n/Feature_el.json +1 -1
  155. package/assets/esri/widgets/Feature/t9n/Feature_es.json +1 -1
  156. package/assets/esri/widgets/Feature/t9n/Feature_et.json +1 -1
  157. package/assets/esri/widgets/Feature/t9n/Feature_fi.json +1 -1
  158. package/assets/esri/widgets/Feature/t9n/Feature_fr.json +1 -1
  159. package/assets/esri/widgets/Feature/t9n/Feature_he.json +1 -1
  160. package/assets/esri/widgets/Feature/t9n/Feature_hr.json +1 -1
  161. package/assets/esri/widgets/Feature/t9n/Feature_hu.json +1 -1
  162. package/assets/esri/widgets/Feature/t9n/Feature_id.json +1 -1
  163. package/assets/esri/widgets/Feature/t9n/Feature_it.json +1 -1
  164. package/assets/esri/widgets/Feature/t9n/Feature_ja.json +1 -1
  165. package/assets/esri/widgets/Feature/t9n/Feature_ko.json +1 -1
  166. package/assets/esri/widgets/Feature/t9n/Feature_lt.json +1 -1
  167. package/assets/esri/widgets/Feature/t9n/Feature_lv.json +1 -1
  168. package/assets/esri/widgets/Feature/t9n/Feature_nb.json +1 -1
  169. package/assets/esri/widgets/Feature/t9n/Feature_nl.json +1 -1
  170. package/assets/esri/widgets/Feature/t9n/Feature_pl.json +1 -1
  171. package/assets/esri/widgets/Feature/t9n/Feature_pt-BR.json +1 -1
  172. package/assets/esri/widgets/Feature/t9n/Feature_pt-PT.json +1 -1
  173. package/assets/esri/widgets/Feature/t9n/Feature_ro.json +1 -1
  174. package/assets/esri/widgets/Feature/t9n/Feature_ru.json +1 -1
  175. package/assets/esri/widgets/Feature/t9n/Feature_sk.json +1 -1
  176. package/assets/esri/widgets/Feature/t9n/Feature_sl.json +1 -1
  177. package/assets/esri/widgets/Feature/t9n/Feature_sr.json +1 -1
  178. package/assets/esri/widgets/Feature/t9n/Feature_sv.json +1 -1
  179. package/assets/esri/widgets/Feature/t9n/Feature_th.json +1 -1
  180. package/assets/esri/widgets/Feature/t9n/Feature_tr.json +1 -1
  181. package/assets/esri/widgets/Feature/t9n/Feature_uk.json +1 -1
  182. package/assets/esri/widgets/Feature/t9n/Feature_vi.json +1 -1
  183. package/assets/esri/widgets/Feature/t9n/Feature_zh-CN.json +1 -1
  184. package/assets/esri/widgets/Feature/t9n/Feature_zh-HK.json +1 -1
  185. package/assets/esri/widgets/Feature/t9n/Feature_zh-TW.json +1 -1
  186. package/assets/esri/widgets/LayerList/t9n/LayerList_ar.json +1 -1
  187. package/assets/esri/widgets/LayerList/t9n/LayerList_bg.json +1 -1
  188. package/assets/esri/widgets/LayerList/t9n/LayerList_bs.json +1 -1
  189. package/assets/esri/widgets/LayerList/t9n/LayerList_ca.json +1 -1
  190. package/assets/esri/widgets/LayerList/t9n/LayerList_cs.json +1 -1
  191. package/assets/esri/widgets/LayerList/t9n/LayerList_da.json +1 -1
  192. package/assets/esri/widgets/LayerList/t9n/LayerList_de.json +1 -1
  193. package/assets/esri/widgets/LayerList/t9n/LayerList_el.json +1 -1
  194. package/assets/esri/widgets/LayerList/t9n/LayerList_es.json +1 -1
  195. package/assets/esri/widgets/LayerList/t9n/LayerList_et.json +1 -1
  196. package/assets/esri/widgets/LayerList/t9n/LayerList_fi.json +1 -1
  197. package/assets/esri/widgets/LayerList/t9n/LayerList_fr.json +1 -1
  198. package/assets/esri/widgets/LayerList/t9n/LayerList_he.json +1 -1
  199. package/assets/esri/widgets/LayerList/t9n/LayerList_hr.json +1 -1
  200. package/assets/esri/widgets/LayerList/t9n/LayerList_hu.json +1 -1
  201. package/assets/esri/widgets/LayerList/t9n/LayerList_id.json +1 -1
  202. package/assets/esri/widgets/LayerList/t9n/LayerList_it.json +1 -1
  203. package/assets/esri/widgets/LayerList/t9n/LayerList_ja.json +1 -1
  204. package/assets/esri/widgets/LayerList/t9n/LayerList_ko.json +1 -1
  205. package/assets/esri/widgets/LayerList/t9n/LayerList_lt.json +1 -1
  206. package/assets/esri/widgets/LayerList/t9n/LayerList_lv.json +1 -1
  207. package/assets/esri/widgets/LayerList/t9n/LayerList_nb.json +1 -1
  208. package/assets/esri/widgets/LayerList/t9n/LayerList_nl.json +1 -1
  209. package/assets/esri/widgets/LayerList/t9n/LayerList_pl.json +1 -1
  210. package/assets/esri/widgets/LayerList/t9n/LayerList_pt-BR.json +1 -1
  211. package/assets/esri/widgets/LayerList/t9n/LayerList_pt-PT.json +1 -1
  212. package/assets/esri/widgets/LayerList/t9n/LayerList_ro.json +1 -1
  213. package/assets/esri/widgets/LayerList/t9n/LayerList_ru.json +1 -1
  214. package/assets/esri/widgets/LayerList/t9n/LayerList_sk.json +1 -1
  215. package/assets/esri/widgets/LayerList/t9n/LayerList_sl.json +1 -1
  216. package/assets/esri/widgets/LayerList/t9n/LayerList_sr.json +1 -1
  217. package/assets/esri/widgets/LayerList/t9n/LayerList_sv.json +1 -1
  218. package/assets/esri/widgets/LayerList/t9n/LayerList_th.json +1 -1
  219. package/assets/esri/widgets/LayerList/t9n/LayerList_tr.json +1 -1
  220. package/assets/esri/widgets/LayerList/t9n/LayerList_uk.json +1 -1
  221. package/assets/esri/widgets/LayerList/t9n/LayerList_vi.json +1 -1
  222. package/assets/esri/widgets/LayerList/t9n/LayerList_zh-CN.json +1 -1
  223. package/assets/esri/widgets/LayerList/t9n/LayerList_zh-HK.json +1 -1
  224. package/assets/esri/widgets/LayerList/t9n/LayerList_zh-TW.json +1 -1
  225. package/assets/esri/widgets/Slice/t9n/Slice_ar.json +1 -1
  226. package/assets/esri/widgets/Slice/t9n/Slice_bg.json +1 -1
  227. package/assets/esri/widgets/Slice/t9n/Slice_bs.json +1 -1
  228. package/assets/esri/widgets/Slice/t9n/Slice_ca.json +1 -1
  229. package/assets/esri/widgets/Slice/t9n/Slice_cs.json +1 -1
  230. package/assets/esri/widgets/Slice/t9n/Slice_da.json +1 -1
  231. package/assets/esri/widgets/Slice/t9n/Slice_de.json +1 -1
  232. package/assets/esri/widgets/Slice/t9n/Slice_el.json +1 -1
  233. package/assets/esri/widgets/Slice/t9n/Slice_es.json +1 -1
  234. package/assets/esri/widgets/Slice/t9n/Slice_et.json +1 -1
  235. package/assets/esri/widgets/Slice/t9n/Slice_fi.json +1 -1
  236. package/assets/esri/widgets/Slice/t9n/Slice_fr.json +1 -1
  237. package/assets/esri/widgets/Slice/t9n/Slice_he.json +1 -1
  238. package/assets/esri/widgets/Slice/t9n/Slice_hr.json +1 -1
  239. package/assets/esri/widgets/Slice/t9n/Slice_hu.json +1 -1
  240. package/assets/esri/widgets/Slice/t9n/Slice_id.json +1 -1
  241. package/assets/esri/widgets/Slice/t9n/Slice_it.json +1 -1
  242. package/assets/esri/widgets/Slice/t9n/Slice_ja.json +1 -1
  243. package/assets/esri/widgets/Slice/t9n/Slice_ko.json +1 -1
  244. package/assets/esri/widgets/Slice/t9n/Slice_lt.json +1 -1
  245. package/assets/esri/widgets/Slice/t9n/Slice_lv.json +1 -1
  246. package/assets/esri/widgets/Slice/t9n/Slice_nb.json +1 -1
  247. package/assets/esri/widgets/Slice/t9n/Slice_nl.json +1 -1
  248. package/assets/esri/widgets/Slice/t9n/Slice_pl.json +1 -1
  249. package/assets/esri/widgets/Slice/t9n/Slice_pt-BR.json +1 -1
  250. package/assets/esri/widgets/Slice/t9n/Slice_pt-PT.json +1 -1
  251. package/assets/esri/widgets/Slice/t9n/Slice_ro.json +1 -1
  252. package/assets/esri/widgets/Slice/t9n/Slice_ru.json +1 -1
  253. package/assets/esri/widgets/Slice/t9n/Slice_sk.json +1 -1
  254. package/assets/esri/widgets/Slice/t9n/Slice_sl.json +1 -1
  255. package/assets/esri/widgets/Slice/t9n/Slice_sr.json +1 -1
  256. package/assets/esri/widgets/Slice/t9n/Slice_sv.json +1 -1
  257. package/assets/esri/widgets/Slice/t9n/Slice_th.json +1 -1
  258. package/assets/esri/widgets/Slice/t9n/Slice_tr.json +1 -1
  259. package/assets/esri/widgets/Slice/t9n/Slice_uk.json +1 -1
  260. package/assets/esri/widgets/Slice/t9n/Slice_vi.json +1 -1
  261. package/assets/esri/widgets/Slice/t9n/Slice_zh-CN.json +1 -1
  262. package/assets/esri/widgets/Slice/t9n/Slice_zh-HK.json +1 -1
  263. package/assets/esri/widgets/Slice/t9n/Slice_zh-TW.json +1 -1
  264. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ar.json +1 -1
  265. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bg.json +1 -1
  266. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bs.json +1 -1
  267. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ca.json +1 -1
  268. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_cs.json +1 -1
  269. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_da.json +1 -1
  270. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_de.json +1 -1
  271. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_el.json +1 -1
  272. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_es.json +1 -1
  273. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_et.json +1 -1
  274. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fi.json +1 -1
  275. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fr.json +1 -1
  276. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_he.json +1 -1
  277. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hr.json +1 -1
  278. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hu.json +1 -1
  279. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_id.json +1 -1
  280. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_it.json +1 -1
  281. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ja.json +1 -1
  282. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ko.json +1 -1
  283. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lt.json +1 -1
  284. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lv.json +1 -1
  285. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nb.json +1 -1
  286. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nl.json +1 -1
  287. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pl.json +1 -1
  288. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-BR.json +1 -1
  289. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-PT.json +1 -1
  290. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ro.json +1 -1
  291. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ru.json +1 -1
  292. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sk.json +1 -1
  293. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sl.json +1 -1
  294. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sr.json +1 -1
  295. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sv.json +1 -1
  296. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_th.json +1 -1
  297. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_tr.json +1 -1
  298. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_uk.json +1 -1
  299. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_vi.json +1 -1
  300. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-CN.json +1 -1
  301. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-HK.json +1 -1
  302. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-TW.json +1 -1
  303. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ar.json +1 -1
  304. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_bg.json +1 -1
  305. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_bs.json +1 -1
  306. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ca.json +1 -1
  307. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_cs.json +1 -1
  308. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_da.json +1 -1
  309. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_de.json +1 -1
  310. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_el.json +1 -1
  311. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_es.json +1 -1
  312. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_et.json +1 -1
  313. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_fi.json +1 -1
  314. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_fr.json +1 -1
  315. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_he.json +1 -1
  316. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_hr.json +1 -1
  317. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_hu.json +1 -1
  318. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_id.json +1 -1
  319. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_it.json +1 -1
  320. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ja.json +1 -1
  321. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ko.json +1 -1
  322. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_lt.json +1 -1
  323. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_lv.json +1 -1
  324. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_nb.json +1 -1
  325. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_nl.json +1 -1
  326. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_pl.json +1 -1
  327. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_pt-BR.json +1 -1
  328. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_pt-PT.json +1 -1
  329. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ro.json +1 -1
  330. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_ru.json +1 -1
  331. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_sk.json +1 -1
  332. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_sl.json +1 -1
  333. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_sr.json +1 -1
  334. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_sv.json +1 -1
  335. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_th.json +1 -1
  336. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_tr.json +1 -1
  337. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_uk.json +1 -1
  338. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_vi.json +1 -1
  339. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_zh-CN.json +1 -1
  340. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_zh-HK.json +1 -1
  341. package/assets/esri/widgets/support/SnappingControls/t9n/SnappingControls_zh-TW.json +1 -1
  342. package/chunks/languageUtils.js +1 -1
  343. package/core/ReactiveMap.js +5 -0
  344. package/core/ReactiveSet.js +5 -0
  345. package/form/elements/RelationshipElement.js +1 -1
  346. package/geometry/Mesh.js +1 -1
  347. package/geometry/support/meshUtils/External.js +1 -1
  348. package/interfaces.d.ts +102 -54
  349. package/layers/BuildingSceneLayer.js +1 -1
  350. package/layers/KnowledgeGraphLayer.js +1 -1
  351. package/layers/LinkChartLayer.js +1 -1
  352. package/layers/SceneLayer.js +1 -1
  353. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  354. package/layers/graphics/sources/support/uploadAssets.js +1 -1
  355. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  356. package/layers/video/VideoEngine.js +1 -1
  357. package/package.json +2 -2
  358. package/portal/schemas/buildingSceneLayerItem.js +1 -1
  359. package/portal/schemas/definitions.js +1 -1
  360. package/support/basemapUtils.js +1 -1
  361. package/support/revision.js +1 -1
  362. package/symbols/cim/cimAnalyzer.js +1 -1
  363. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  364. package/views/2d/engine/webgl/brushes/WGLGeometryBrushFill.js +1 -1
  365. package/views/2d/engine/webgl/definitions.js +1 -1
  366. package/views/2d/engine/webgl/mesh/templates/WGLDynamicFillTemplate.js +1 -1
  367. package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
  368. package/views/2d/engine/webgl/painter/RenderPass.js +1 -1
  369. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  370. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  371. package/views/2d/layers/MediaLayerView2D.js +1 -1
  372. package/views/2d/layers/TileLayerView2D.js +1 -1
  373. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  374. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  375. package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
  376. package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
  377. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  378. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  379. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  380. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  381. package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
  382. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  383. package/views/3d/webgl-engine/lib/RenderTargetHelper.js +1 -1
  384. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  385. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  386. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  387. package/views/3d/webgl-engine/lib/textureUtils.js +5 -0
  388. package/views/PopupView.js +1 -1
  389. package/views/ToolViewManager.js +1 -1
  390. package/views/View.js +1 -1
  391. package/views/interactive/InteractiveToolBase.js +1 -1
  392. package/views/interactive/ToolViewManagerManipulatorState.js +1 -1
  393. package/widgets/BasemapGallery/css.js +1 -1
  394. package/widgets/BasemapGallery.js +1 -1
  395. package/widgets/Editor/Edits.js +1 -1
  396. package/widgets/Editor/UpdateWorkflow.js +1 -1
  397. package/widgets/Editor/workflowUtils.js +1 -1
  398. package/widgets/Feature/FeatureRelationship.js +1 -1
  399. package/widgets/FeatureForm/RelationshipInput.js +1 -1
  400. package/widgets/FeatureForm.js +1 -1
  401. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  402. package/widgets/Features/FeaturesViewModel.js +5 -0
  403. package/widgets/Features.js +5 -0
  404. package/widgets/Popup/actionUtils.js +1 -1
  405. package/widgets/Popup/actions.js +1 -1
  406. package/widgets/Popup.js +1 -1
  407. package/assets/esri/core/workers/chunks/08e1453cc3689a0094a6.js +0 -1
  408. package/assets/esri/core/workers/chunks/3a658eb0bc632ff0d01c.js +0 -1
  409. package/assets/esri/core/workers/chunks/43fcc9a3b5a46c3dfd0d.js +0 -1
  410. package/assets/esri/core/workers/chunks/47f721daa1652124c066.js +0 -1
  411. package/assets/esri/core/workers/chunks/544dce9710638d126763.js +0 -1
  412. package/assets/esri/core/workers/chunks/630b3fca46208caf4190.js +0 -1
  413. package/assets/esri/core/workers/chunks/6d2a448fe0dc6ebdbd6d.js +0 -1
  414. package/assets/esri/core/workers/chunks/7e9b173a71beeba8b263.js +0 -1
  415. package/assets/esri/core/workers/chunks/b1976202b918a64357ac.js +0 -1
  416. package/assets/esri/core/workers/chunks/b4d03661d1d8983fc13f.js +0 -1
  417. package/assets/esri/core/workers/chunks/b636581516f2e7342d29.js +0 -1
  418. package/assets/esri/core/workers/chunks/e7e7f6046cf1286365ca.js +0 -1
  419. package/assets/esri/core/workers/chunks/f17a7024dd49abeaa4f3.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9771,6502],{41123:(e,t,r)=>{r.d(t,{D:()=>a,z:()=>n});const s="randomUUID"in crypto;function a(){if(s)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`{${a()}}`}},61159:(e,t,r)=>{r.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},14720:(e,t,r)=>{r.d(t,{Ey:()=>g,applyEdits:()=>b,aw:()=>f,uploadAssets:()=>A});var s=r(38171),a=r(46791),n=r(20102),i=r(22974),o=r(95330),u=r(81271),l=r(16306),d=r(66361),p=r(2981),c=r(84230);function h(e){return e&&null!=e.applyEdits}function y(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function f(e){return e.every(y)}function m(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function g(e){return e.every(m)}async function b(e,t,r,s={}){let u;if((0,d.lQ)(e)&&e.url)u=(0,d.jF)(e.url,e.layerId,"original-and-current-features"===s.returnServiceEditsOption);else{u=(0,o.hh)(),u.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:u.promise};e.emit("apply-edits",t)}try{const{results:o,edits:l}=await async function(e,t,r,s){if(await e.load(),!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,c.ln)(e))throw new n.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:o}=await async function(e,t,r){const s=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),o=null!=e.infoFor3D;if(!t||!s&&!i)throw new n.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const u=(0,c.S1)(e);if(!u.data.isVersioned&&r?.gdbVersion)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!u.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!u.editing.supportsGlobalId&&r?.globalIdUsed)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!u.editing.supportsGlobalId&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const l={...r};if(null!=l.rollbackOnFailureEnabled||u.editing.supportsRollbackOnFailure||(l.rollbackOnFailureEnabled=!0),!1===l.rollbackOnFailureEnabled&&"original-and-current-features"===l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true.");if(!u.editing.supportsReturnServiceEditsInSourceSpatialReference&&l.returnServiceEditsInSourceSR)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(l.returnServiceEditsInSourceSR&&"original-and-current-features"!==l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const d={...t};if(d.addFeatures=t&&a.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():d.addFeatures||[],d.updateFeatures=t&&a.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():d.updateFeatures||[],d.deleteFeatures=t&&a.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():d.deleteFeatures||[],d.addFeatures.length&&!u.operations.supportsAdd)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(d.updateFeatures.length&&!u.operations.supportsUpdate)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(d.deleteFeatures.length&&!u.operations.supportsDelete)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");d.addAttachments=d.addAttachments||[],d.updateAttachments=d.updateAttachments||[],d.deleteAttachments=d.deleteAttachments||[],d.addFeatures=d.addFeatures.map(S),d.updateFeatures=d.updateFeatures.map(S),d.addAssetFeatures=[];const h=r?.globalIdUsed||o;return d.addFeatures.forEach((t=>function(e,t,r){F(e,t,r)}(t,e,h))),d.updateFeatures.forEach((t=>function(e,t,r){F(e,t,r);const s=(0,c.S1)(t);if("geometry"in e&&null!=e.geometry&&!s?.editing.supportsGeometryUpdate)throw new n.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h))),d.deleteFeatures.forEach((t=>function(e,t,r){F(e,t,r)}(t,e,h))),d.addAttachments.forEach((t=>w(t,e))),d.updateAttachments.forEach((t=>w(t,e))),o&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,s=(0,p.S0)("model/gltf-binary",r.supportedFormats)??(0,p.Ow)("glb",r.supportedFormats);if(!s||!r.editFormats.includes(s))throw new n.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:a}=e;for(const t of e.addFeatures??[])R(t)&&a.push(t);for(const t of e.updateFeatures??[])R(t)&&a.push(t)}(d,e),{edits:await _(d),options:l}}(e,r,s);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,o)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,s),d=e=>e.filter((e=>!e.error)).map(i.d9),y={edits:l,addedFeatures:d(o.addFeatureResults),updatedFeatures:d(o.updateFeatureResults),deletedFeatures:d(o.deleteFeatureResults),addedAttachments:d(o.addAttachmentResults),updatedAttachments:d(o.updateAttachmentResults),deletedAttachments:d(o.deleteAttachmentResults),exceededTransferLimit:!1};return o.editedFeatureResults?.length&&(y.editedFeatures=o.editedFeatureResults),u.resolve(y),o}catch(e){throw u.reject(e),e}}function F(e,t,r){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"'globalId' of the feature should be passed when 'globalIdUsed' is true")}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new n.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new n.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function w(e,t){const{feature:r,attachment:s}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!s.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!s.data&&!s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(s.data instanceof File&&s.data.name||s.name))throw new n.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof s.data){const e=(0,u.sJ)(s.data);if(e&&!e.isBase64)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function _(e){const t=e.addFeatures??[],r=e.updateFeatures??[],s=t.concat(r).map((e=>e.geometry)),a=await(0,l.aX)(s),n=t.length,i=r.length;return a.slice(0,n).forEach(((e,r)=>t[r].geometry=e)),a.slice(n,n+i).forEach(((e,t)=>r[t].geometry=e)),e}function S(e){const t=new s.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function R(e){return"mesh"===e?.geometry?.type}function A(e,t,r,s){if(!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new n.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,s)}},6502:(e,t,r)=>{r.r(t),r.d(t,{default:()=>M});var s=r(43697),a=(r(66577),r(38171)),n=r(40330),i=r(3172),o=r(92835),u=r(67676),l=r(20102),d=r(80442),p=r(35454),c=r(83379),h=r(92604),y=r(78286),f=r(95330),m=r(81271),g=r(41123),b=r(5600),F=(r(75215),r(52011)),w=r(6570),_=r(44547),S=r(33955),R=r(14720),A=r(25278),v=r(74654),O=r(66677),I=r(2981),E=r(4967),q=r(59431),x=r(14165),C=r(82971);const Z=new p.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),T=new Set(["Feature Layer","Table"]),P=new p.X({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let D=class extends c.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,f.Ds)((async()=>{await this.load();const e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}})),this._ongoingAssetUploads=new Map}load(e){const t=null!=e?e.signal:null,r=this.layer.sourceJSON;return this.addResolvingPromise(this._fetchService(r,t)),Promise.resolve(this)}get queryTask(){const{capabilities:e,parsedUrl:t,dynamicDataSource:r,infoFor3D:s,gdbVersion:a,spatialReference:n,fieldsIndex:i}=this.layer,o=(0,d.Z)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==s,u=e?.operations?.supportsQueryAttachments??!1;return new v.Z({url:t.path,pbfSupported:o,fieldsIndex:i,infoFor3D:s,dynamicDataSource:r,gdbVersion:a,sourceSpatialReference:n,queryAttachmentsSupported:u})}async addAttachment(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),n=this._getFormDataForAttachment(t,a.query);try{const e=await(0,i.default)(s,{body:n});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async updateAttachment(e,t,r){await this.load();const s=e.attributes[this.layer.objectIdField],a=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",n=this._getLayerRequestOptions({query:{attachmentId:t}}),o=this._getFormDataForAttachment(r,n.query);try{const e=await(0,i.default)(a,{body:o});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async applyEdits(e,t){await this.load();const{layer:r}=this,s=r.infoFor3D,a=null!=s,o=a||(t?.globalIdUsed??!1),l=e.addFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],d=(await Promise.all(l)).filter(u.pC),p=e.updateFeatures?.map((e=>this._getFeatureJSON(e,s)))??[],c=(await Promise.all(p)).filter(u.pC),h=this._getFeatureIds(e.deleteFeatures,o);(0,q.P)(d,c,r.spatialReference);const y=await this._getAttachmentEditsJSON(e),f=a?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,m=r.capabilities.editing.supportsAsyncApplyEdits&&null!=f&&(0!==f.adds.length||0!==f.updates.length),g={gdbVersion:t?.gdbVersion||r.gdbVersion,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:o,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,sessionId:t?.sessionId,async:m};t?.returnServiceEditsOption?(g.edits=JSON.stringify([{id:r.layerId,adds:d,updates:c,deletes:h,attachments:y,assetMaps:f}]),g.returnServiceEditsOption=Z.toJSON(t?.returnServiceEditsOption),g.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(g.adds=d.length?JSON.stringify(d):null,g.updates=c.length?JSON.stringify(c):null,g.deletes=h.length?o?JSON.stringify(h):h.join(","):null,g.attachments=y&&JSON.stringify(y),g.assetMaps=null!=f?JSON.stringify(f):void 0);const b=this._getLayerRequestOptions({method:"post",query:g}),F=t?.returnServiceEditsOption?r.url:r.parsedUrl.path,w=m?await this._asyncApplyEdits(F+"/applyEdits",b):await(0,i.default)(F+"/applyEdits",b);if(!r.capabilities.operations?.supportsEditing&&r.effectiveCapabilities?.operations?.supportsEditing){const e=n.id?.findCredential(r.url);await(e?.refreshToken())}return this._createEditsResult(w)}async deleteAttachments(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.default)(s,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:a}=await(0,i.default)(`${s}/${r}`,t),{id:n,extent:u,fullExtent:l,timeExtent:d}=a,p=u||l;return{id:n,fullExtent:p&&w.Z.fromJSON(p),timeExtent:d&&o.Z.fromJSON({start:d[0],end:d[1]})}}))}async queryAttachments(e,t={}){await this.load();const r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,O.M8)(this.layer.url))return"unavailable";const e=(0,m.v_)(this.layer.url,"status"),t=await(0,i.default)(e,{query:{f:"json"}});return P.fromJSON(t.data.status)}async uploadAssets(e,t){const{uploadAssets:s}=await r.e(6946).then(r.bind(r,36946));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}async _asyncApplyEdits(e,t){const r=(await(0,i.default)(e,t)).data.statusUrl;for(;;){const e=(await(0,i.default)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,i.default)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,f.e4)(G)}}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:r}=await(0,i.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,d.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=r}this.sourceJSON=this._patchServiceJSON(e);const r=e.type;if(!T.has(r))throw new l.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(e){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){const t=(0,A.bU)(e.geometryType).renderer;(0,y.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}async _getFeatureJSON(e,t){const{geometry:r}=e,s={...e.attributes};if(null!=t&&null!=e.geometry&&"mesh"===e.geometry.type){const{transformFieldRoles:r}=t,{origin:a,spatialReference:n,transform:i}=e.geometry,o=this.layer.spatialReference;await(0,_.iQ)(n,o);const u=(0,_.iV)(a,o);if(s[r.originX]=u.x,s[r.originY]=u.y,s[r.originZ]=u.z,null!=i){const{translation:e,scale:t,rotation:a}=i;s[r.translationX]=e[0],s[r.translationY]=-e[2],s[r.translationZ]=e[1],s[r.scaleX]=t[0],s[r.scaleY]=t[1],s[r.scaleZ]=t[2],s[r.rotationX]=a[0],s[r.rotationY]=a[2],s[r.rotationZ]=a[1],s[r.rotationDeg]=a[3]}return{geometry:null,attributes:s}}return null==r?{attributes:s}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:s}}async _getAttachmentEditsJSON(e){const t=await Promise.all((e.addAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),r=await Promise.all((e.updateAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),s=e.deleteAttachments??[];return t.length||r.length||s.length?{adds:t,updates:r,deletes:[...s]}:null}async _getAttachmentEditJSON(e){const{feature:t,attachment:r}=e,{globalId:s,name:a,contentType:n,data:i,uploadId:o}=r,u={globalId:s,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),o)u.uploadId=o;else if(i){const e=await(0,m.IR)(i);e&&(u.contentType=e.mediaType,u.data=e.data),i instanceof File&&(u.name=i.name)}return a&&(u.name=a),n&&(u.contentType=n),u}async _uploadMeshesAndGetAssetMapEditsJSON(e){const{addAssetFeatures:t}=e;if(!t?.length)return null;const r=await this._filterRedundantAssetMaps(t);if(!t?.length)return null;const s=r.map((e=>e.geometry));return await this.uploadAssets(s),{adds:this._getAssetMapEditsJSON(r),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){const t=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl,a=(e,r,s)=>{1===e.parts.length?t.push({globalId:(0,g.z)(),parentGlobalId:r,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:s}):h.Z.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)};for(const t of e){const e=t.geometry,{metadata:n}=e,i=n.getExternalSourcesOnService(s),o=t.getAttribute(r);if(0===i.length){h.Z.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=i[0],{transform:l}=e,d=l&&l.geographic?[]:["PROJECT_VERTICES"];u.forEach((e=>a(e,o,d)))}return t}_getFeatureIds(e,t){if(!e||0===e.length)return[];if(t&&(0,R.Ey)(e))return e.map((e=>e.globalId));if((0,R.aw)(e))return e.map((e=>e.objectId));const{layer:r}=this,s=t?r.globalIdField:r.objectIdField;return s?e.map((e=>e.getAttribute(s))):[]}_createEditsResult(e){const t=e.data,{layerId:r}=this.layer,s=[];let a=null;if(Array.isArray(t))for(const e of t)s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(a={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else a=t;const n=a?.assetMaps;if(n){for(const e of n.addResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(const e of n.updateResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`)}const i=a?.attachments,o={addFeatureResults:a?.addResults?.map(this._createFeatureEditResult,this)??[],updateFeatureResults:a?.updateResults?.map(this._createFeatureEditResult,this)??[],deleteFeatureResults:a?.deleteResults?.map(this._createFeatureEditResult,this)??[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(a?.editMoment&&(o.editMoment=a.editMoment),s.length>0){o.editedFeatureResults=[];for(const e of s){const{editedFeatures:t}=e,r=t?.spatialReference?new C.Z(t.spatialReference):null;o.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:t?.adds?.map((e=>this._createEditedFeature(e,r)))||[],updates:t?.updates?.map((e=>({original:this._createEditedFeature(e[0],r),current:this._createEditedFeature(e[1],r)})))||[],deletes:t?.deletes?.map((e=>this._createEditedFeature(e,r)))||[],spatialReference:r}})}}return o}_createEditedFeature(e,t){return new a.Z({attributes:e.attributes,geometry:(0,S.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const r=t.details.messages&&t.details.messages[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new l.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...e,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _filterRedundantAssetMaps(e){const{layer:t}=this,{globalIdField:r,infoFor3D:s,parsedUrl:a}=t;if(null==s||null==r)return e;const n=(0,I.$6)(s);if(null==n)return e;const i=(0,m.v_)(a.path,`../${n.id}`),o=e.map((e=>e.getAttribute(r))).filter(u.pC);if(0===o.length)return e;const{assetMapFieldRoles:{parentGlobalId:l,assetHash:d}}=s,p=new x.Z;p.where=`${l} IN (${o.map((e=>`'${e}'`))})`,p.outFields=[d,l],p.returnGeometry=!1;const c=await(0,E.e)(i,p),{features:h}=c;return 0===h.length?e:e.filter((e=>{const t=e.getAttribute(r);if(!t)return!0;const{metadata:s}=e.geometry,n=h.filter((e=>e.getAttribute(l)===t));if(0===n.length)return!0;const i=n.map((e=>e.getAttribute(d)));return s.getExternalSourcesOnService(a).flatMap((({source:e})=>e.flatMap((e=>e.parts.map((e=>e.partHash)))))).some((e=>i.every((t=>e!==t))))}))}};(0,s._)([(0,b.Cb)()],D.prototype,"type",void 0),(0,s._)([(0,b.Cb)({constructOnly:!0})],D.prototype,"layer",void 0),(0,s._)([(0,b.Cb)({readOnly:!0})],D.prototype,"queryTask",null),D=(0,s._)([(0,F.j)("esri.layers.graphics.sources.FeatureLayerSource")],D);const G=1e3,M=D},74654:(e,t,r)=>{r.d(t,{Z:()=>Z});var s=r(43697),a=r(92036),n=r(20102),i=r(80442),o=r(95330),u=r(81271),l=r(5600),d=(r(75215),r(67676),r(52011)),p=r(2981),c=r(10158),h=r(11282),y=r(41818),f=(r(66577),r(34599)),m=r(14165),g=r(6570),b=r(5396),F=r(4967),w=r(70586),_=r(69285),S=r(98732);function R(e,t){return t}function A(e,t,r,s){switch(r){case 0:return E(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?E(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function v(e,t,r,s){return 2===r?E(e,t,2):A(e,t,r,s)}function O(e,t,r,s){return 2===r?E(e,t,3):A(e,t,r,s)}function I(e,t,r,s){return 3===r?E(e,t,3):v(e,t,r,s)}function E({translate:e,scale:t},r,s){return e[s]+r*t[s]}class q{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=R,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,_.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,w.O3)(r),r.push(t);const s=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of s)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,a=(0,S.$g)(r.clone(),r,!1,!1,this._transform),n=(0,S.di)(a,s,!1,!1);e.queryGeometryType=s,e.queryGeometry={...n}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const s=(0,w.s3)(this._transform,"transform");switch(t=this._applyTransform(s,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const s=(0,w.s3)(this._transform,"transform");return this._applyTransform(s,e,t,r)}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const s=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(s)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const s=this._transformPathLikeValue(t,r),a=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),a.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=s}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?I:t?v:r?O:A}}var x=r(74889);let C=class extends a.Z{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.mN)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),s=null!=e.outStatistics?.[0],a=(0,i.Z)("featurelayer-pbf-statistics"),n=!s||a;let o;if(this.pbfSupported&&n)try{o=await async function(e,t,r){const s=(0,h.en)(e),a={...r},n=m.Z.from(t),i=!n.quantizationParameters,{data:o}=await(0,f.qp)(s,n,new q({sourceSpatialReference:n.sourceSpatialReference,applyTransform:i}),a);return o}(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&n||(o=await(0,F.F)(this.url,r,t)),this._normalizeFields(o.fields),o}async featureSetFromJSON(e,t,s){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return x.Z.fromJSON(t);const{meshFeatureSetFromJSON:a}=await(0,o.Hl)(Promise.all([r.e(6481),r.e(6459),r.e(7697)]).then(r.bind(r,87697)),s);return a(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.P)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const s=(0,h.en)(e);return(0,f.Vr)(s,m.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:g.Z.fromJSON(e.data.extent)})))}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,b.G)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:s},{executeRelationshipQuery:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:s},{executeRelationshipQueryForCount:a}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=s.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),a(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:s,fetchAttachments:a,processAttachmentQueryResult:n}=await(0,o.Hl)(r.e(540).then(r.bind(r,30540)),t),i=(0,h.en)(this.url);return n(i,await(this.queryAttachmentsSupported?s(i,e,t):a(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:s}=await(0,o.Hl)(r.e(1158).then(r.bind(r,71158)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:s}=await(0,o.Hl)(r.e(3992).then(r.bind(r,33992)),t);return s(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:s}=await(0,o.Hl)(r.e(1790).then(r.bind(r,21790)),t);return s(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:s}=await(0,o.Hl)(r.e(4371).then(r.bind(r,14371)),t);return s(this.parsedUrl,e,t)}_normalizeQuery(e){let t=m.Z.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?c.n.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:s,queryFormats:a}=r,i=(0,p.S0)("model/gltf-binary",s)??(0,p.Ow)("glb",s),o=(0,p.S0)("model/gltf+json",s)??(0,p.Ow)("gtlf",s);for(const e of a){if(e===i){t.formatOf3DObjects=e;break}e!==o||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new n.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:s,originY:a,originZ:n,translationX:i,translationY:o,translationZ:u,scaleX:l,scaleY:d,scaleZ:p,rotationX:c,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(s,a,n,i,o,u,l,d,p,c,h,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,s._)([(0,l.Cb)({type:c.n})],C.prototype,"dynamicDataSource",void 0),(0,s._)([(0,l.Cb)()],C.prototype,"fieldsIndex",void 0),(0,s._)([(0,l.Cb)()],C.prototype,"gdbVersion",void 0),(0,s._)([(0,l.Cb)()],C.prototype,"infoFor3D",void 0),(0,s._)([(0,l.Cb)({readOnly:!0})],C.prototype,"parsedUrl",null),(0,s._)([(0,l.Cb)()],C.prototype,"pbfSupported",void 0),(0,s._)([(0,l.Cb)()],C.prototype,"queryAttachmentsSupported",void 0),(0,s._)([(0,l.Cb)()],C.prototype,"sourceSpatialReference",void 0),(0,s._)([(0,l.Cb)({type:String})],C.prototype,"url",void 0),C=(0,s._)([(0,d.j)("esri.tasks.QueryTask")],C);const Z=C},25278:(e,t,r)=>{r.d(t,{Dm:()=>d,Hq:()=>p,MS:()=>c,bU:()=>o});var s=r(80442),a=r(22974),n=r(61159),i=r(58333);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${u.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,a.d9)(e)}}]}function c(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:n.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},2981:(e,t,r)=>{r.d(t,{$6:()=>d,Ow:()=>n,S0:()=>a,d1:()=>i});const s=[["binary","application/octet-stream","bin",""]];function a(e,t){return u(function(e,t){return o(t).find((t=>l(t)===e))}(e,t))}function n(e,t){return u(function(e,t){const r=e.toLowerCase();return o(t).find((e=>function(e){return e?.[2].split(",")??[]}(e).some((e=>r.endsWith(e)))))}(e,t))}function i(e,t){return l(function(e,t){return o(t).find((t=>u(t)===e))}(e,t))}function o(e){return[...s,...e]}function u(e){return e?.[0]}function l(e){return e?.[1]}function d(e){return e.tables?.find((e=>"assetMaps"===e.role))}},41818:(e,t,r)=>{r.d(t,{P:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.hH)(i,n.Z.from(t),{...r}).then((e=>e.data.count))}},5396:(e,t,r)=>{r.d(t,{G:()=>i});var s=r(11282),a=r(34599),n=r(14165);async function i(e,t,r){const i=(0,s.en)(e);return(0,a.Ev)(i,n.Z.from(t),{...r}).then((e=>e.data.objectIds))}},4967:(e,t,r)=>{r.d(t,{F:()=>u,e:()=>o});var s=r(11282),a=r(34599),n=r(74889),i=r(14165);async function o(e,t,r){const s=await u(e,t,r);return n.Z.fromJSON(s)}async function u(e,t,r){const n=(0,s.en)(e),o={...r},u=i.Z.from(t),{data:l}=await(0,a.JT)(n,u,u.sourceSpatialReference,o);return l}},59431:(e,t,r)=>{r.d(t,{P:()=>i});var s=r(67900),a=r(8744);function n(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function i(e,t,r){if(!e&&!t||!r)return;const a=(0,s._R)(r);o(e,r,a),o(t,r,a)}function o(e,t,r){if(e)for(const s of e)u(s.geometry,t,r)}function u(e,t,r){if(null==e||!e.spatialReference||(0,a.fS)(e.spatialReference,t))return;const i=(0,s._R)(e.spatialReference)/r;if(1!==i)if("x"in e)null!=e.z&&(e.z*=i);else if("rings"in e)n(e,e.rings,i);else if("paths"in e)n(e,e.paths,i);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=i)}},28694:(e,t,r)=>{r.d(t,{p:()=>a});var s=r(69285);function a(e,t,r){if(!r||!r.features||!r.hasZ)return;const a=(0,s.k)(r.geometryType,t,e.outSpatialReference);if(null!=a)for(const e of r.features)a(e.geometry)}},74889:(e,t,r)=>{r.d(t,{Z:()=>F});var s,a=r(43697),n=r(66577),i=r(38171),o=r(35454),u=r(96674),l=r(22974),d=r(5600),p=(r(75215),r(71715)),c=r(52011),h=r(30556),y=r(82971),f=r(33955),m=r(1231);const g=new o.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=s=class extends u.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=y.Z.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const a=e[t],n=i.Z.fromJSON(a),o=a.geometry&&a.geometry.spatialReference;null==n.geometry||o||(n.geometry.spatialReference=r);const u=a.aggregateGeometries,l=n.aggregateGeometries;if(u&&null!=l)for(const e in l){const t=l[e],s=u[e],a=s?.spatialReference;null==t||a||(t.spatialReference=r)}s.push(n)}return s}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:a}=this;if(a)for(const e of a)if(e&&null!=e.geometry)return void g.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,f.im)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=y.Z.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,l.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e&&e[r];s.geometry=t&&t.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,a]}=e,n=this.features,i=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((a-e)/r)));for(let e=0,t=n.length;e<t;e++)i?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,a],scale:[n,i]}=r,o=this._getHydrationFunction(e,(e=>e*n+s),(e=>a-e*i));for(const{geometry:e}of t)null!=e&&o&&o(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,a;const n=[];for(let i=0,o=e.length;i<o;i++){const o=e[i];if(i>0){const e=t(o[0]),i=r(o[1]);e===s&&i===a||(n.push([e-s,i-a]),s=e,a=i)}else s=t(o[0]),a=r(o[1]),n.push([s,a])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,f.oU)(e)?e.rings:e.paths,a=[];for(let e=0,n=s.length;e<n;e++){const n=s[e],i=this._quantizePoints(n,t,r);i&&a.push(i)}return a.length>0?((0,f.oU)(e)?e.rings=a:e.paths=a,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const s=(0,f.oU)(e)?e.rings:e.paths;let a,n;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(a+=s[0],n+=s[1]):(a=s[0],n=s[1]),s[0]=t(a),s[1]=r(n)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const s=e.points;let a,n;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(a+=i[0],n+=i[1]):(a=i[0],n=i[1]),i[0]=t(a),i[1]=r(n)}}:null}};(0,a._)([(0,d.Cb)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,a._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,a._)([(0,d.Cb)({type:[i.Z],json:{write:!0}})],b.prototype,"features",void 0),(0,a._)([(0,p.r)("features")],b.prototype,"readFeatures",null),(0,a._)([(0,d.Cb)({type:[m.Z],json:{write:!0}})],b.prototype,"fields",void 0),(0,a._)([(0,d.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,a._)([(0,h.c)("geometryType")],b.prototype,"writeGeometryType",null),(0,a._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,a._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,a._)([(0,d.Cb)({types:n.qM,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,a._)([(0,p.r)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,a._)([(0,d.Cb)({type:y.Z,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,a._)([(0,h.c)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,a._)([(0,d.Cb)({json:{write:!0}})],b.prototype,"transform",void 0),b=s=(0,a._)([(0,c.j)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0;const F=b}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6946],{84470:(e,t,s)=>{s.d(t,{CP:()=>i,JG:()=>y,LL:()=>u,NZ:()=>l,fV:()=>m,vj:()=>w,zE:()=>g});var r=s(3172),a=s(67676),n=s(95330),o=s(2981);class i{constructor(e,t,s){this.assetName=e,this.assetMimeType=t,this.parts=s}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,a.fS)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const s=await Promise.all(t.map((t=>t.toBlob(e))));return(0,n.k_)(e),new Blob(s)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,r.default)(this.partUrl,{responseType:"blob"});return(0,n.k_)(e),t}}function l(e){return function(e){return!!e&&(Array.isArray(e)?e.some(d):d(e))}(e?.source)}function p(e){return!!Array.isArray(e)&&e.every((e=>e instanceof i))}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function d(e){if(e instanceof File){const{type:t,name:s}=e;return c.test(t)||f.test(s)}return c.test(e.assetMimeType)||f.test(e.assetName)}function y(e,t){if(!e)return!1;const{source:s}=e;return function(e,t){return Array.isArray(e)?e.every((e=>h(e,t))):h(e,t)}(s,t)}function m(e,t){if(e===t)return!0;const{source:s}=e,{source:r}=t;if(s===r)return!0;if(p(s)&&p(r)){if(s.length!==r.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...s].sort(e),a=[...r].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(a[e]))return!1;return!0}return!1}function h(e,t){return e instanceof i&&e.isOnService(t)}function w(e,t){return e instanceof File?(0,o.Ow)(e.name,t)??(0,o.S0)(e.type,t):(0,o.S0)(e.assetMimeType,t)??(0,o.Ow)(e.assetName,t)}function g(e){return Array.isArray(e)?e:[e]}},36946:(e,t,s)=>{s.d(t,{uploadAssets:()=>w});var r=s(3172),a=s(20102),n=s(92604),o=s(95330),i=s(81271),u=s(41123),l=s(84470),p=s(66677);const c=1e6,f=20*c,d=2e9,y=3;async function m({data:e,name:t,description:s},a,n){let u=null;try{const l=(0,i.v_)(a,"uploads"),m=(0,i.v_)(l,"info"),{data:h}=await(0,r.default)(m,{query:{f:"json"},responseType:"json"});(0,o.k_)(n);const w=(0,p.M8)(a),g=h.maxUploadFileSize*c,T=w?d:g,b=w?Math.min(f,g):f;if(e.size>T)throw new Error("Data too large");const v=(0,i.v_)(l,"register"),{data:_}=await(0,r.default)(v,{query:{f:"json",itemName:t,description:s},responseType:"json",method:"post"});if((0,o.k_)(n),!_.success)throw new Error("Registration failed");const{itemID:N}=_.item;u=(0,i.v_)(l,N);const F=(0,i.v_)(u,"uploadPart"),$=Math.ceil(e.size/b),k=new Array;for(let t=0;t<$;++t)k.push(e.slice(t*b,Math.min((t+1)*b,e.size)));const E=k.slice().reverse(),A=new Array,S=async()=>{for(;0!==E.length;){const e=k.length-E.length,t=E.pop(),s=new FormData;s.append("f","json"),s.append("file",t),s.append("partId",`${e}`);const{data:a}=await(0,r.default)(F,{timeout:0,body:s,responseType:"json",method:"post"});if((0,o.k_)(n),!a.success)throw new Error("Part upload failed")}};for(let e=0;e<y&&0!==E.length;++e)A.push(S());await Promise.all(A);const j=(0,i.v_)(u,"commit"),{data:U}=await(0,r.default)(j,{query:{f:"json",parts:k.map(((e,t)=>t)).join(",")},responseType:"json",method:"post"});if((0,o.k_)(n),!U.success)throw new Error("Commit failed");return U.item}catch(e){if(null!=u){const e=(0,i.v_)(u,"delete");await(0,r.default)(e,{query:{f:"json"},responseType:"json",method:"post"})}throw e}}var h=s(2981);async function w(e,t,s){return e.length?Promise.all(e.map((e=>async function(e,{layer:t,ongoingUploads:s},r){const n=s.get(e);if(n)return n;if(!function(e){return!!e.infoFor3D&&!!e.url}(t))throw new a.Z(`${t.type}-layer:upload-failure`,"Layer does not support asset uploads.",new Error);if(function(e,t){const{parsedUrl:s}=t;return null!=s&&e.metadata.externalSources.some((e=>(0,l.JG)(e,s)))}(e,t))return e;const i=async function(e,t,s){const{metadata:r}=e,{displaySource:n}=r,i=g(n?.source,t),l=!!i,p=r.externalSources.length>0,c=l&&1===i.length&&"model/gltf-binary"===(0,h.d1)(i[0].assetType,t.infoFor3D.supportedFormats)?async function(e,t,s){return{source:await b(e,t,s)}}(i,t,s):p?async function(e,t,s){const r=N(t),{externalSources:n}=e.metadata,o=function(e,t){for(const s of e){const e=g(s.source,t);if(e)return e}return null}(n,t);if(!o)throw new a.Z(`${t.type}-layer:upload-failure`,"Could not find an external source that is supported by the service.",new Error);const i=await b(o,t,s);return{source:await _(i,t,r)}}(e,t,s):async function(e,t,s){const r=async function(e,t,s){const r=N(t),a=await e.load(s),n=await a.toBinaryGLTF({ignoreLocalTransform:!0});(0,o.k_)(s);const i=await n.buffer();return(0,o.k_)(s),{blob:new Blob([i.data],{type:i.type}),assetName:`${(0,u.z)()}.glb`,assetType:r}}(e,t,s);return{source:await v([r],t,s),extent:e.extent.clone()}}(e,t,s),f=await c;return(0,o.k_)(s),e.addExternalSources([f]),e}(e,t,r);s.set(e,i);try{await i}finally{s.delete(e)}return e}(e,t,s)))):[]}function g(e,t){if(!e)return null;const{infoFor3D:{supportedFormats:s,editFormats:r}}=t,a=(0,l.zE)(e),n=new Array;let o=!1;for(let e=0;e<a.length;++e){const t=T(a[e],s);if(!t)return null;r.includes(t.assetType)&&(o=!0),n.push(t)}return o?n:null}function T(e,t){const s=(0,l.vj)(e,t);return s?{asset:e,assetType:s}:null}async function b(e,t,s){return v(e.map((e=>async function(e,t){const{asset:s,assetType:r}=e;if(s instanceof File)return{blob:s,assetName:s.name,assetType:r};const a=await s.toBlob(t);return(0,o.k_)(t),{blob:a,assetName:s.assetName,assetType:r}}(e,s))),t,s)}async function v(e,t,s){const u=await Promise.all(e.map((async e=>{const r=async function(e,t,s){const{blob:r,assetType:u,assetName:l}=e;let p=null;try{const e=await m({data:r,name:l},t.url,s);(0,o.k_)(s),p={assetType:u,assetUploadId:e.itemID}}catch(e){(0,o.r9)(e),n.Z.getLogger("esri.layers.graphics.sources.support.uploadAssets").warnOnce(`Service ${t.url} does not support the REST Uploads API.`)}if(!p){const e=await(0,i.IR)(r);if((0,o.k_)(s),!e.isBase64)throw new a.Z(`${t.type}-layer:uploadAssets-failure`,"Expected gltf data in base64 format after conversion.",new Error);p={assetType:u,assetData:e.data}}if(!p)throw new a.Z(`${t.type}-layer:uploadAssets-failure`,"Unable to prepare uploadAsset request options.",new Error);return{item:p,assetName:l}}(await e,t,s);return(0,o.k_)(s),r})));(0,o.k_)(s);const{uploadResults:p}=await async function(e,t,s){const n=await(0,r.default)((0,i.v_)(t.parsedUrl.path,"uploadAssets"),{timeout:0,query:{f:"json",assets:JSON.stringify(e)},method:"post",responseType:"json"});if((0,o.k_)(s),n.data.uploadResults.length!==e.length)throw new a.Z(`${t.type}-layer:uploadAssets-failure`,`Bad response. Uploaded ${e.length} items and received ${n.data.uploadResults.length} results.`,new Error);return n.data}(u.map((({item:e})=>e)),t,s);return(0,o.k_)(s),e.map(((e,s)=>function(e,t,s){const{success:r}=t;if(!r){const{error:r}=t;throw new a.Z(`${s.type}-layer:upload-failure`,`Failed to upload mesh file ${e.assetName}. Error code: ${r.code}. Error message: ${r.messages}`,new Error)}const{assetHash:n}=t,{assetName:o,item:{assetType:i}}=e,{infoFor3D:{supportedFormats:u}}=s,p=(0,h.d1)(i,u);if(!p)throw new a.Z(`${s.type}-layer:upload-failure`,`The service allowed us to upload an asset of FormatID ${i}, but it does not list it in its supported formats.`,new Error);return new l.CP(o,p,[new l.LL(`${s.parsedUrl.path}/assets/${n}`,n)])}(u[s],p[s],t)))}async function _(e,t,s){const n=e.map((({assetName:e,parts:t})=>({assetName:e,assetHash:t[0].partHash}))),o=(await(0,r.default)((0,i.v_)(t.parsedUrl.path,"convert3D"),{query:{f:"json",assets:JSON.stringify(n),transportType:"esriTransportTypeUrl",targetFormat:s},responseType:"json",timeout:0})).data,{infoFor3D:{supportedFormats:u}}=t;return o.assets.map((e=>{const s=(0,h.S0)(e.contentType,u);if(!s)throw new a.Z(`${t.type}-layer:upload-failure`,`The service allowed us to upload an asset of FormatID ${s}, but it does not list it in its supported formats.`,new Error);return new l.CP(e.assetName,e.contentType,[new l.LL(e.assetURL,e.assetHash)])}))}function N(e){const{infoFor3D:t}=e,s=(0,h.S0)("model/gltf-binary",t.supportedFormats)??(0,h.Ow)("glb",t.supportedFormats);if(!s)throw new a.Z(`${e.type}-layer:upload-failure`,"Layer does not support glb.",new Error);return s}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2462,5732],{38171:(e,t,r)=>{r.d(t,{Z:()=>m});var i=r(43697),n=r(66577),s=r(51773),a=r(9790),o=r(2368),l=r(96674),u=r(99001),p=r(5600),c=(r(75215),r(67676),r(80442),r(52011)),d=r(33955);function y(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let h=class extends((0,o.J)(l.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,u.D)(),configurable:!0})}normalizeCtorArgs(e,t,r,i){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:i}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:y(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(e={}){"mesh"===this.geometry?.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform,e.action)}_notifyLayer(e,t,r,i){if(!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}};(0,i._)([(0,p.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,d.im)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],h.prototype,"aggregateGeometries",null),(0,i._)([(0,p.Cb)({value:null})],h.prototype,"attributes",null),(0,i._)([(0,p.Cb)({value:null,types:n.qM,json:{read:d.im}})],h.prototype,"geometry",null),(0,i._)([(0,p.Cb)({type:Boolean})],h.prototype,"isAggregate",void 0),(0,i._)([(0,p.Cb)({clonable:"reference"})],h.prototype,"layer",void 0),(0,i._)([(0,p.Cb)({type:s.Z})],h.prototype,"popupTemplate",void 0),(0,i._)([(0,p.Cb)({clonable:"reference"})],h.prototype,"sourceLayer",void 0),(0,i._)([(0,p.Cb)({value:null,types:a.LB})],h.prototype,"symbol",null),(0,i._)([(0,p.Cb)({type:Boolean,value:!0})],h.prototype,"visible",null),h=(0,i._)([(0,c.j)("esri.Graphic")],h),(h||(h={})).generateUID=u.D;const m=h},84552:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),n=r(2368),s=r(96674),a=r(35463),o=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(78981);let c=class extends((0,n.J)(s.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(p.v,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i._)([(0,u.j)("esri.TimeInterval")],c);const d=c},5732:(e,t,r)=>{r.d(t,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},57435:(e,t,r)=>{r.d(t,{Z:()=>u});var i=r(43697),n=r(46791),s=(r(20102),r(92604),r(26258),r(87538)),a=r(5600),o=r(52011);let l=class extends n.Z{constructor(e){super(e),this.getCollections=null}initialize(){this.own((0,s.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new n.Z(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,a.Cb)()],l.prototype,"getCollections",void 0),(0,i._)([(0,a.Cb)()],l.prototype,"getChildrenFunction",void 0),(0,i._)([(0,a.Cb)()],l.prototype,"itemFilterFunction",void 0),l=(0,i._)([(0,o.j)("esri.core.CollectionFlattener")],l);const u=l},16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>w});var i=r(43697),n=r(92036),s=r(70586),a=r(41103),o=r(22974),l=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,o.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,n)=>{e&&e.has(n)||t.set(n,(0,o.d9)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||(0,s.j0)(this._propertyOriginMap.get(e))<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r&&r.get(e),n=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),n!==i}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var p=r(50549),c=r(1153),d=r(52011);const y=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,s.j0)((0,c.vw)(this)),r=t.store,i=new u;t.store=i,(0,a.M)(t,r,i)}read(e,t){(0,p.i)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,l.M9)(t);if("string"==typeof e)return r.get(e,i);const n={};return e.forEach((e=>{n[e]=r.get(e,i)})),n}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,l.M9)(t),n=(0,c.vw)(this);let s;s="string"==typeof e?"*"===e?r.keys(i):[e]:e,s.forEach((e=>{n.invalidate(e),r.revert(e,i),n.commit(e)}))}};return t=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,c.vw)(e).store}let m=class extends(y(n.Z)){};m=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],m);var f=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return b(this).delete(e,(0,l.M9)(t))}write(e,t){return(0,f.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=b(this),r=(0,l.M9)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=b(this),i=(0,l.M9)(t),n=this.get(e);for(let t=i+1;t<l.kk;++t)r.delete(e,t);r.set(e,n,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,d.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function b(e){return(0,c.vw)(e).store}const v=e=>{let t=class extends(g(y(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(v(n.Z)){};w=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],w)},91040:(e,t,r)=>{r.d(t,{yZ:()=>s});var i=r(67900);const n=96;function s(e,t){const r=t||e.extent,s=e.width,a=(0,i.c9)(r&&r.spatialReference);return r&&s?r.width/s*a*i.hd*n:0}},25906:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Ie});var i=r(43697),n=r(68773),s=r(38171),a=r(51773),o=r(3172),l=r(46791),u=r(57435),p=r(35454),c=r(22974),d=r(16453),y=r(95330),h=r(17445),m=r(81271),f=r(5600),g=r(75215),b=r(71715),v=r(52011),w=r(30556),_=r(76169),S=r(6570),I=r(82971),x=r(91040),C=r(8744),L=r(87085),O=r(71612),E=r(38009),T=r(16859),F=r(34760),N=r(72965),M=r(28294),A=r(52162),P=r(66677),U=r(21506),R=r(92036),j=r(3920),G=r(67676);r(80442);const Z={visible:"visibleSublayers"};let k=class extends((0,j.p)(R.Z)){constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.sublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("wms-sublayer-update",(e=>this.notifyChange(Z[e.propertyName])))],"layer"))}get layers(){return this.visibleSublayers.filter((({name:e})=>e)).map((({name:e})=>e)).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=e?.sublayers,i=[],n=e=>{const{minScale:r,maxScale:s,sublayers:a,visible:o}=e;o&&(0===t||(0===r||t<=r)&&(0===s||t>=s))&&(a?a.forEach(n):i.push(e))};return r?.forEach(n),i}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:i,version:n}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:i?"TRUE":"FALSE",version:n,layers:t}}};(0,i._)([(0,f.Cb)()],k.prototype,"layer",null),(0,i._)([(0,f.Cb)({readOnly:!0})],k.prototype,"layers",null),(0,i._)([(0,f.Cb)({type:Number})],k.prototype,"scale",void 0),(0,i._)([(0,f.Cb)({readOnly:!0})],k.prototype,"version",null),(0,i._)([(0,f.Cb)({readOnly:!0})],k.prototype,"visibleSublayers",null),k=(0,i._)([(0,v.j)("esri.layers.support.ExportWMSImageParameters")],k);var D,B=r(90082),$=r(10699),q=r(90578);let V=0,W=D=class extends((0,$.IG)(d.w)){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.title=null,this.addHandles([(0,h.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=this,e.layer=this.layer}),h.Z_),(0,h.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),h.Z_),(0,h.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer}),h.Z_),(0,h.YP)((()=>this.layer),(e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e}),h.Z_)])}get id(){return this._get("id")??V++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}castSublayers(e){return(0,g.se)(l.Z.ofType(D),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new D;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map((e=>e.clone()))??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers&&this.sublayers.map((e=>e.clone()))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map((e=>e))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,i._)([(0,f.Cb)()],W.prototype,"description",void 0),(0,i._)([(0,f.Cb)({readOnly:!0})],W.prototype,"dimensions",void 0),(0,i._)([(0,f.Cb)({type:S.Z,json:{name:"extent"}})],W.prototype,"fullExtent",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"fullExtents",void 0),(0,i._)([(0,f.Cb)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],W.prototype,"id",null),(0,i._)([(0,f.Cb)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],W.prototype,"legendUrl",void 0),(0,i._)([(0,b.r)("legendUrl",["legendUrl","legendURL"])],W.prototype,"readLegendUrl",null),(0,i._)([(0,f.Cb)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],W.prototype,"legendEnabled",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"layer",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"maxScale",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"minScale",void 0),(0,i._)([(0,f.Cb)({readOnly:!0})],W.prototype,"effectiveScaleRange",null),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],W.prototype,"name",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"parent",void 0),(0,i._)([(0,f.Cb)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],W.prototype,"popupEnabled",void 0),(0,i._)([(0,f.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],W.prototype,"queryable",void 0),(0,i._)([(0,f.Cb)()],W.prototype,"sublayers",void 0),(0,i._)([(0,q.p)("sublayers")],W.prototype,"castSublayers",null),(0,i._)([(0,f.Cb)({type:[Number],json:{read:{source:"spatialReferences"}}})],W.prototype,"spatialReferences",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],W.prototype,"title",void 0),(0,i._)([(0,f.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],W.prototype,"visible",null),W=D=(0,i._)([(0,v.j)("esri.layers.support.WMSSublayer")],W);const J=W;var H=r(20102);const X={84:4326,83:4269,27:4267};function Q(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map((e=>e.textContent)).join("\r\n");throw new H.Z("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const i=ee("Capability",r),n=ee("Service",r),s=i&&ee("Request",i);if(!i||!n||!s)return null;const a=ee("Layer",i);if(!a)return null;const o="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",l=re("Title",n,"")||re("Name",n,""),u=re("AccessConstraints",n,""),p=/^none$/i.test(u)?"":u,c=re("Abstract",n,""),d=parseInt(re("MaxWidth",n,"5000"),10),y=parseInt(re("MaxHeight",n,"5000"),10),h=se(s,"GetMap"),m=ne(s,"GetMap"),f=oe(a,o,t);if(!f)return null;let g,b=0;const v=Array.prototype.slice.call(i.childNodes),w=f.sublayers??[],_=e=>{null!=e&&w.push(e)};v.forEach((e=>{"Layer"===e.nodeName&&(0===b?g=e:1===b?(f.name&&(f.name="",_(oe(g,o,t))),_(oe(e,o,t))):_(oe(e,o,t)),b++)}));let I=f.sublayers,x=f.extent;const C=f.fullExtents??[];if(I||(I=[]),0===I.length&&I.push(f),!x){const e=new S.Z(I[0].extent);f.extent=e.toJSON(),x=f.extent}const L=f.spatialReferences.length>0?f.spatialReferences:z(f),O=ne(s,"GetFeatureInfo"),E=O?se(s,"GetFeatureInfo"):null,T=Y(I),F=f.minScale||0,N=f.maxScale||0,M=f.dimensions??[],A=T.reduce(((e,t)=>e.concat(t.dimensions??[])),[]),P=M.concat(A).filter(ue);let U=null;if(P.length){const e=P.map((e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map((e=>e.getTime())):t?.map((e=>[e.min.getTime(),e.max.getTime()]))})).flat(2).filter(G.pC);U={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[Math.min(...e),Math.max(...e)]}}return{copyright:p,description:c,dimensions:M,extent:x,fullExtents:C,featureInfoFormats:E,featureInfoUrl:O,mapUrl:m,maxWidth:d,maxHeight:y,maxScale:N,minScale:F,layers:T,spatialReferences:L,supportedImageFormatTypes:h,timeInfo:U,title:l,version:o}}function z(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=z(t);if(e.length>0)return e}return[]}function Y(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(Y(r.sublayers)),delete r.sublayers);return t}function K(e,t,r){return t.getAttribute(e)??r}function ee(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(le(i)&&i.nodeName===e)return i}return null}function te(e,t){if(null==t)return[];const r=[];for(let i=0;i<t.childNodes.length;i++){const n=t.childNodes[i];le(n)&&n.nodeName===e&&r.push(n)}return r}function re(e,t,r){return ee(e,t)?.textContent??r}function ie(e,t,r){if(!e)return null;const i=parseFloat(e.getAttribute("minx")),n=parseFloat(e.getAttribute("miny")),s=parseFloat(e.getAttribute("maxx")),a=parseFloat(e.getAttribute("maxy"));let o,l,u,p;r?(o=isNaN(n)?-Number.MAX_VALUE:n,l=isNaN(i)?-Number.MAX_VALUE:i,u=isNaN(a)?Number.MAX_VALUE:a,p=isNaN(s)?Number.MAX_VALUE:s):(o=isNaN(i)?-Number.MAX_VALUE:i,l=isNaN(n)?-Number.MAX_VALUE:n,u=isNaN(s)?Number.MAX_VALUE:s,p=isNaN(a)?Number.MAX_VALUE:a);const c=new I.Z({wkid:t});return new S.Z({xmin:o,ymin:l,xmax:u,ymax:p,spatialReference:c})}function ne(e,t){const r=ee(t,e);if(r){const e=ee("DCPType",r);if(e){const t=ee("HTTP",e);if(t){const e=ee("Get",t);if(e){let t=function(e,t,r,i){const n=ee("OnlineResource",r);return n?K("xlink:href",n,null):null}(0,0,e);if(t)return t.indexOf("&")===t.length-1&&(t=t.substring(0,t.length-1)),function(e,t){const r=[],i=(0,m.mN)(e);for(const e in i.query)i.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||r.push(e+"="+i.query[e]));return i.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}return null}function se(e,t){const r=te("Operation",e);if(!r.length)return te("Format",ee(t,e)).map((({textContent:e})=>e)).filter(G.pC);const i=[];for(const e of r)if(e.getAttribute("name")===t){const t=te("Format",e);for(const{textContent:e}of t)null!=e&&i.push(e)}return i}function ae(e,t,r){const i=ee(t,e);if(!i)return r;const{textContent:n}=i;if(null==n||""===n)return r;const s=Number(n);return isNaN(s)?r:s}function oe(e,t,r){if(!e)return null;const i={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},n=ee("LatLonBoundingBox",e),s=ee("EX_GeographicBoundingBox",e);let a=null;n&&(a=ie(n,4326)),s&&(a=new S.Z(0,0,0,0,new I.Z({wkid:4326})),a.xmin=parseFloat(re("westBoundLongitude",s,"0")),a.ymin=parseFloat(re("southBoundLatitude",s,"0")),a.xmax=parseFloat(re("eastBoundLongitude",s,"0")),a.ymax=parseFloat(re("northBoundLatitude",s,"0"))),n||s||(a=new S.Z(-180,-90,180,90,new I.Z({wkid:4326}))),i.minScale=ae(e,"MaxScaleDenominator",0),i.maxScale=ae(e,"MinScaleDenominator",0);const o=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach((e=>{if("Name"===e.nodeName)i.name=e.textContent||"";else if("Title"===e.nodeName)i.title=e.textContent||"";else if("Abstract"===e.nodeName)i.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(o);if(r&&0===r.indexOf("EPSG:")){const i=parseInt(r.substring(5),10);0===i||isNaN(i)||a||(a="1.3.0"===t?ie(e,i,(0,A.A)(i)):ie(e,i))}const n=r&&r.indexOf(":");if(n&&n>-1){let s=parseInt(r.substring(n+1,r.length),10);0===s||isNaN(s)||(s=X[s]??s);const a="1.3.0"===t?ie(e,s,(0,A.A)(s)):ie(e,s);a&&i.fullExtents&&i.fullExtents.push(a)}}else if(e.nodeName===o)(e.textContent?.split(" ")??[]).forEach((e=>{const t=e.includes(":")?parseInt(e.split(":")[1],10):parseInt(e,10);if(0!==t&&!isNaN(t)){const e=X[t]??t;i.spatialReferences.includes(e)||i.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||i.legendUrl){if("Layer"===e.nodeName){const n=oe(e,t,r);n&&(n.parentLayerId=i.id,i.sublayers||(i.sublayers=[]),i.sublayers.push(n))}}else{const t=ee("LegendURL",e);if(t){const e=ee("OnlineResource",t);e&&(i.legendUrl=e.getAttribute("xlink:href"))}}})),i.extent=a?.toJSON(),i.dimensions=te("Dimension",e).filter((e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent)).map((e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),i=e.textContent,n=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,a="0"!==K("default",e,"0"),o="0"!==K("nearestValue",e,"0"),l="0"!==K("current",e,"0");return ue({name:t,units:r})?{name:"time",units:"ISO8601",extent:de(i),default:de(s),multipleValues:a,nearestValue:o,current:l}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:pe(i),unitSymbol:n,default:pe(s),multipleValues:a,nearestValue:o}:{name:t,units:r,extent:ce(i),unitSymbol:n,default:ce(s),multipleValues:a,nearestValue:o}})),i}function le(e){return e.nodeType===Node.ELEMENT_NODE}function ue(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function pe(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}})).filter(G.pC):r.map((e=>parseFloat(e)))}function ce(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}})).filter(G.pC):r}function de(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:new Date(t[0]),max:new Date(t[1]),resolution:t.length>=3&&"0"!==t[2]?ye(t[2]):void 0}})).filter(G.pC):r.map((e=>new Date(e)))}function ye(e){const t=e.match(/(?:p(\d+y|\d+(?:.|,)\d+y)?(\d+m|\d+(?:.|,)\d+m)?(\d+d|\d+(?:.|,)\d+d)?)?(?:t(\d+h|\d+(?:.|,)\d+h)?(\d+m|\d+(?:.|,)\d+m)?(\d+s|\d+(?:.|,)\d+s)?)?/i);return t?{years:he(t[1]),months:he(t[2]),days:he(t[3]),hours:he(t[4]),minutes:he(t[5]),seconds:he(t[6])}:null}function he(e){if(!e)return 0;const t=e.match(/(?:\d+(?:.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function me(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}const fe=new Set([102100,3857,102113,900913]),ge=new Set([3395,54004]),be=new p.X({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function ve(e){return"text/html"===e}function we(e){return"text/plain"===e}let _e=class extends((0,O.h)((0,M.n)((0,F.Q)((0,N.M)((0,E.q)((0,T.I)((0,d.R)(L.Z)))))))){constructor(...e){super(...e),this.allSublayers=new u.Z({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.url=null,this.version=null,this.addHandles([(0,h.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=e.layer=this}),h.Z_),(0,h.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),h.Z_),(0,h.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this}),h.Z_)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(y.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new S.Z({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(ve)??this.featureInfoFormats.find(we)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(ve(e)||we(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new I.Z(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter((e=>e!==r)),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return Se(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return Se(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const n=new Map,s=e.flatten((({sublayers:e})=>e??[]));for(const e of s)if("number"==typeof e.parent?.id){const t=n.get(e.parent.id);null!=t?t.push(e.id):n.set(e.parent.id,[e.id])}for(const e of s){const r={sublayer:e,...i},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},r);if(n.has(e.id)&&(s.sublayerIds=n.get(e.id)),!e.sublayers&&e.name){const i=e.write({},r);delete i.id,t.layers.push(i)}}t.visibleLayers=s.filter((({visible:e,sublayers:t})=>e&&!t)).map((({name:e})=>e)).toArray()}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1,s=(0,x.yZ)({extent:e,width:t})*n,a=new k({layer:this,scale:s}),{xmin:o,ymin:l,xmax:u,ymax:p,spatialReference:c}=e,d=function(e,t){let r=e.wkid;return null==t?r:(null!=r&&t.includes(r)||!e.latestWkid||(r=e.latestWkid),null!=r&&fe.has(r)?t.find((e=>fe.has(e)))||t.find((e=>ge.has(e)))||102100:r)}(c,this.spatialReferences),y="1.3.0"===this.version&&(0,A.A)(d)?`${l},${o},${p},${u}`:`${o},${l},${u},${p}`,h=a.toJSON();return{bbox:y,["1.3.0"===this.version?"crs":"srs"]:null==d||isNaN(d)?void 0:"EPSG:"+d,...h}}async fetchImage(e,t,r,i){const n=this.mapUrl,s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=i?.timeExtent?.start,l=i?.timeExtent?.end,u=null!=a&&null!=l?a.getTime()===l.getTime()?me(a):`${me(a)}/${me(l)}`:void 0,p={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...s,time:u,...this.refreshParameters}),signal:i?.signal};return(0,o.default)(n??"",p).then((e=>e.data))}async fetchImageBitmap(e,t,r,i){const n=this.mapUrl??"",s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=i?.timeExtent?.start,l=i?.timeExtent?.end,u=null!=a&&null!=l?a.getTime()===l.getTime()?me(a):`${me(a)}/${me(l)}`:void 0,p={responseType:"blob",query:this._mixCustomParameters({width:t,height:r,...s,time:u,...this.refreshParameters}),signal:i?.signal},{data:c}=await(0,o.default)(n,p);return(0,B.g)(c,n,i?.signal)}fetchFeatureInfo(e,t,r,i,n){const s=(0,x.yZ)({extent:e,width:t}),a=function(e){const t=e.filter((e=>e.popupEnabled&&e.name&&e.queryable));return t.length?t.map((({name:e})=>e)).join():null}(new k({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==a)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:i,J:n}:{x:i,y:n},l={query_layers:a,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...o},u={...this.createExportImageParameters(e,t,r),...l},p=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(p):this._defaultFetchFeatureInfoFunction((0,m.fl)(this.featureInfoUrl,p))}findSublayerById(e){return this.allSublayers.find((t=>t.id===e))}findSublayerByName(e){return this.allSublayers.find((t=>t.name===e))}serviceSupportsSpatialReference(e){return(0,P.G)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some((t=>{const r=900913===t?I.Z.WebMercator:new I.Z({wkid:t});return(0,C.fS)(r,e)}))}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,m.qg)(e),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new a.Z({title:this.title,content:t}),i=new s.Z({sourceLayer:this,popupTemplate:r});return Promise.resolve([i])}async _fetchService(e){if(!this.resourceInfo){const{path:t,query:r}=this.parsedUrl??{};r?.service&&(r.SERVICE=r.service,delete r.service),r?.request&&(r.REQUEST=r.request,delete r.request);const{data:i}=await(0,o.default)(t??"",{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...r,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=Q(i)}if(this.parsedUrl){const e=new m.R9(this.parsedUrl.path),{httpsDomains:t}=n.default.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function Se(e,t,r){e=e??[];const i=new Map;e.every((e=>null==e.id))&&(e=(0,c.d9)(e)).forEach(((e,t)=>e.id=t));for(const n of e){const e=new J;e.read(n,t),r&&!r.includes(e.name)&&(e.visible=!1),i.set(e.id,e)}const n=[];for(const t of e){const e=null!=t.id?i.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);if(!r)continue;r.sublayers||(r.sublayers=new l.Z),r.sublayers.push(e)}else n.push(e)}return n}(0,i._)([(0,f.Cb)({readOnly:!0})],_e.prototype,"allSublayers",void 0),(0,i._)([(0,f.Cb)({json:{type:Object,write:!0}})],_e.prototype,"customParameters",void 0),(0,i._)([(0,f.Cb)({json:{type:Object,write:!0}})],_e.prototype,"customLayerParameters",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:!0}})],_e.prototype,"copyright",void 0),(0,i._)([(0,f.Cb)()],_e.prototype,"description",void 0),(0,i._)([(0,f.Cb)({readOnly:!0})],_e.prototype,"dimensions",void 0),(0,i._)([(0,f.Cb)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],_e.prototype,"fullExtent",void 0),(0,i._)([(0,b.r)(["web-document","portal-item"],"fullExtent",["extent"])],_e.prototype,"readFullExtentFromItemOrMap",null),(0,i._)([(0,w.c)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],_e.prototype,"writeFullExtent",null),(0,i._)([(0,f.Cb)()],_e.prototype,"fullExtents",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],_e.prototype,"featureInfoFormat",null),(0,i._)([(0,f.Cb)({type:[String],readOnly:!0})],_e.prototype,"featureInfoFormats",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],_e.prototype,"featureInfoUrl",void 0),(0,i._)([(0,f.Cb)()],_e.prototype,"fetchFeatureInfoFunction",void 0),(0,i._)([(0,f.Cb)({type:String,json:{origins:{"web-document":{default:"image/png",type:be.jsonValues,read:{reader:be.read,source:"format"},write:{writer:be.write,target:"format"}}}}})],_e.prototype,"imageFormat",void 0),(0,i._)([(0,b.r)("imageFormat",["supportedImageFormatTypes"])],_e.prototype,"readImageFormat",null),(0,i._)([(0,f.Cb)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],_e.prototype,"imageMaxHeight",void 0),(0,i._)([(0,f.Cb)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],_e.prototype,"imageMaxWidth",void 0),(0,i._)([(0,f.Cb)()],_e.prototype,"imageTransparency",void 0),(0,i._)([(0,f.Cb)(U.rn)],_e.prototype,"legendEnabled",void 0),(0,i._)([(0,f.Cb)({type:["show","hide","hide-children"]})],_e.prototype,"listMode",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],_e.prototype,"mapUrl",void 0),(0,i._)([(0,f.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],_e.prototype,"isReference",void 0),(0,i._)([(0,f.Cb)({type:["WMS"]})],_e.prototype,"operationalLayerType",void 0),(0,i._)([(0,f.Cb)()],_e.prototype,"resourceInfo",void 0),(0,i._)([(0,f.Cb)({type:I.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],_e.prototype,"spatialReference",void 0),(0,i._)([(0,b.r)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],_e.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i._)([(0,f.Cb)({type:[g.z8],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],_e.prototype,"spatialReferences",void 0),(0,i._)([(0,w.c)(["web-document","portal-item"],"spatialReferences")],_e.prototype,"writeSpatialReferences",null),(0,i._)([(0,f.Cb)({type:l.Z.ofType(J),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some((e=>{for(const r in e)if((0,_.d)(e,r,null,t))return!0;return!1}))}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],_e.prototype,"sublayers",void 0),(0,i._)([(0,b.r)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],_e.prototype,"readSublayersFromItemOrMap",null),(0,i._)([(0,b.r)("service","sublayers",["layers"])],_e.prototype,"readSublayers",null),(0,i._)([(0,w.c)("sublayers",{layers:{type:[J]},visibleLayers:{type:[String]}})],_e.prototype,"writeSublayers",null),(0,i._)([(0,f.Cb)({json:{read:!1},readOnly:!0,value:"wms"})],_e.prototype,"type",void 0),(0,i._)([(0,f.Cb)(U.HQ)],_e.prototype,"url",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],_e.prototype,"version",void 0),_e=(0,i._)([(0,v.j)("esri.layers.WMSLayer")],_e);const Ie=_e},38009:(e,t,r)=>{r.d(t,{q:()=>f});var i=r(43697),n=r(20102),s=r(81271),a=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),l=r(30556),u=r(50549),p=r(76169);const c={ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},d={ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},y={ArcGISFeatureLayer:!0},h={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0,LineOfSightLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":c,"web-map/basemap":d,"web-map/tables":y,"link-chart/operational-layers":{...c,LinkChartLayer:!0},"link-chart/basemap":d,"link-chart/tables":y,"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0,OrientedImageryLayer:!0}};var m=r(21506);const f=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,p.d)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r,i){!e||i&&"tables"===i.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e??"Layer"}read(e,t){t&&(t.layer=this),(0,u.$)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(t?.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=h[e];let i=!!r?.[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===e&&(i=!1),!i)return t.messages?.push(new n.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof n.Z&&"web-document-write:property-required"===e.name)).length;return(0,s.jc)(r?.url)?(t?.messages?.push(new n.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i._)([(0,a.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i._)([(0,a.Cb)(m.rT)],t.prototype,"listMode",void 0),(0,i._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,a.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,a.Cb)(m.Oh)],t.prototype,"opacity",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i._)([(0,l.c)("title"),(0,l.c)(["web-scene"],"title")],t.prototype,"writeTitle",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.OperationalLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>S});var i=r(43697),n=r(68773),s=r(40330),a=r(3172),o=r(66643),l=r(20102),u=r(92604),p=r(70586),c=r(95330),d=r(81271),y=r(5600),h=(r(75215),r(67676),r(80442),r(71715)),m=r(52011),f=r(30556),g=r(84230),b=r(48522),v=r(15235),w=r(86082),_=r(14661);const S=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new v.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:i}=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,_.Ss)(r);let n,a;if(i)n=r.portal.url;else try{n=await(0,g.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!n||!(0,d.Zo)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!a)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new v.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,_.Ss)(r)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=b.Z.getDefault();if(n&&n.loaded&&(0,d.Fv)(n.restUrl)===(0,d.Fv)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,o.q6)((0,a.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.default.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||b.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.Cb)({type:v.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},I={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var i=r(43697),n=r(92604),s=r(95330),a=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),l=r(46791),u=(r(20102),r(26258),r(87538));const p=new l.Z,c=new WeakMap;function d(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function y(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:y(t,e%t):0}let h=0,m=0;function f(){const e=Date.now();for(const t of p)t.refreshInterval&&e-(c.get(t)??0)+5>=6e4*t.refreshInterval&&(c.set(t,e),t.refresh(e))}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const r of p)t=y(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?c.get(r)||c.set(r,e):c.delete(r);if(t!==m){if(m=t,clearInterval(h),0===m)return void(h=0);h=setInterval(f,m)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||function(e){d(e)&&p.push(e)}(this)}),(()=>{}))}destroy(){d(this)&&p.includes(this)&&p.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{n.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,i._)([(0,a.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,a.Cb)()],t.prototype,"refreshParameters",null),t=(0,i._)([(0,o.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>d});var i=r(43697),n=r(92835),s=r(84552),a=r(5600),o=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),u=r(35671),p=r(76259),c=r(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=c.v.fromJSON(r.timeOffsetUnits);return i&&n?new s.Z({value:i,unit:n}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,a.Cb)({type:n.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,a.Cb)({type:s.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,a.Cb)({value:null,type:p.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},52162:(e,t,r)=>{r.d(t,{A:()=>n});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function n(e){return null!=e&&i.some((([t,r])=>e>=t&&e<=r))}},76259:(e,t,r)=>{r.d(t,{Z:()=>m});var i=r(43697),n=r(92835),s=r(84552),a=r(2368),o=r(96674),l=r(5600),u=(r(75215),r(67676),r(80442),r(71715)),p=r(52011),c=r(30556),d=r(80216);function y(e,t){return s.Z.fromJSON({value:e,unit:t})}let h=class extends((0,a.J)(o.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.r)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,c.c)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,c.c)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.Cb)({type:d.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"timeReference",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,p.j)("esri.layers.support.TimeInfo")],h);const m=h},90082:(e,t,r)=>{r.d(t,{V:()=>a,g:()=>s});var i=r(20102),n=r(95330);async function s(e,t,r){let s;try{s=await createImageBitmap(e)}catch(e){throw new i.Z("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.k_)(r),s}async function a(e,t,r,s,a){let o;try{o=await createImageBitmap(e)}catch(e){throw new i.Z("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,n.k_)(a),o}},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6502],{41123:(e,t,r)=>{r.d(t,{D:()=>s,z:()=>n});const a="randomUUID"in crypto;function s(){if(a)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`{${s()}}`}},61159:(e,t,r)=>{r.d(t,{g:()=>a});const a={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},14720:(e,t,r)=>{r.d(t,{Ey:()=>g,applyEdits:()=>b,aw:()=>f,uploadAssets:()=>A});var a=r(38171),s=r(46791),n=r(20102),i=r(22974),o=r(95330),u=r(81271),l=r(16306),d=r(66361),p=r(2981),c=r(84230);function h(e){return e&&null!=e.applyEdits}function y(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function f(e){return e.every(y)}function m(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function g(e){return e.every(m)}async function b(e,t,r,a={}){let u;if((0,d.lQ)(e)&&e.url)u=(0,d.jF)(e.url,e.layerId,"original-and-current-features"===a.returnServiceEditsOption);else{u=(0,o.hh)(),u.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:u.promise};e.emit("apply-edits",t)}try{const{results:o,edits:l}=await async function(e,t,r,a){if(await e.load(),!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,c.ln)(e))throw new n.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:o}=await async function(e,t,r){const a=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),i=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),o=null!=e.infoFor3D;if(!t||!a&&!i)throw new n.Z(`${e.type}-layer:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");const u=(0,c.S1)(e);if(!u.data.isVersioned&&r?.gdbVersion)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!u.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");if(!u.editing.supportsGlobalId&&r?.globalIdUsed)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!u.editing.supportsGlobalId&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&i)throw new n.Z(`${e.type}-layer:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true");const l={...r};if(null!=l.rollbackOnFailureEnabled||u.editing.supportsRollbackOnFailure||(l.rollbackOnFailureEnabled=!0),!1===l.rollbackOnFailureEnabled&&"original-and-current-features"===l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true.");if(!u.editing.supportsReturnServiceEditsInSourceSpatialReference&&l.returnServiceEditsInSourceSR)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(l.returnServiceEditsInSourceSR&&"original-and-current-features"!==l.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const d={...t};if(d.addFeatures=t&&s.Z.isCollection(t.addFeatures)?t.addFeatures.toArray():d.addFeatures||[],d.updateFeatures=t&&s.Z.isCollection(t.updateFeatures)?t.updateFeatures.toArray():d.updateFeatures||[],d.deleteFeatures=t&&s.Z.isCollection(t.deleteFeatures)?t.deleteFeatures.toArray():d.deleteFeatures||[],d.addFeatures.length&&!u.operations.supportsAdd)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support adding features.");if(d.updateFeatures.length&&!u.operations.supportsUpdate)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support updating features.");if(d.deleteFeatures.length&&!u.operations.supportsDelete)throw new n.Z(`${e.type}-layer:unsupported-operation`,"Layer does not support deleting features.");d.addAttachments=d.addAttachments||[],d.updateAttachments=d.updateAttachments||[],d.deleteAttachments=d.deleteAttachments||[],d.addFeatures=d.addFeatures.map(_),d.updateFeatures=d.updateFeatures.map(_),d.addAssetFeatures=[];const h=r?.globalIdUsed||o;return d.addFeatures.forEach((t=>function(e,t,r){F(e,t,r)}(t,e,h))),d.updateFeatures.forEach((t=>function(e,t,r){F(e,t,r);const a=(0,c.S1)(t);if("geometry"in e&&null!=e.geometry&&!a?.editing.supportsGeometryUpdate)throw new n.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h))),d.deleteFeatures.forEach((t=>function(e,t,r){F(e,t,r)}(t,e,h))),d.addAttachments.forEach((t=>w(t,e))),d.updateAttachments.forEach((t=>w(t,e))),o&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,a=(0,p.S0)("model/gltf-binary",r.supportedFormats)??(0,p.Ow)("glb",r.supportedFormats);if(!a||!r.editFormats.includes(a))throw new n.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:s}=e;for(const t of e.addFeatures??[])R(t)&&s.push(t);for(const t of e.updateFeatures??[])R(t)&&s.push(t)}(d,e),{edits:await S(d),options:l}}(e,r,a);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,o)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,a),d=e=>e.filter((e=>!e.error)).map(i.d9),y={edits:l,addedFeatures:d(o.addFeatureResults),updatedFeatures:d(o.updateFeatureResults),deletedFeatures:d(o.deleteFeatureResults),addedAttachments:d(o.addAttachmentResults),updatedAttachments:d(o.updateAttachmentResults),deletedAttachments:d(o.deleteAttachmentResults),exceededTransferLimit:!1};return o.editedFeatureResults?.length&&(y.editedFeatures=o.editedFeatureResults),u.resolve(y),o}catch(e){throw u.reject(e),e}}function F(e,t,r){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Feature should have 'globalId' when 'globalIdUsed' is true");if(!("attributes"in e)&&!e.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"'globalId' of the feature should be passed when 'globalIdUsed' is true")}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new n.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new n.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function w(e,t){const{feature:r,attachment:a}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!a.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!a.data&&!a.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(a.data instanceof File&&a.data.name||a.name))throw new n.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&a.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof a.data){const e=(0,u.sJ)(a.data);if(e&&!e.isBase64)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function S(e){const t=e.addFeatures??[],r=e.updateFeatures??[],a=t.concat(r).map((e=>e.geometry)),s=await(0,l.aX)(a),n=t.length,i=r.length;return s.slice(0,n).forEach(((e,r)=>t[r].geometry=e)),s.slice(n,n+i).forEach(((e,t)=>r[t].geometry=e)),e}function _(e){const t=new a.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function R(e){return"mesh"===e?.geometry?.type}function A(e,t,r,a){if(!h(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new n.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,a)}},6502:(e,t,r)=>{r.r(t),r.d(t,{default:()=>M});var a=r(43697),s=(r(66577),r(38171)),n=r(40330),i=r(3172),o=r(92835),u=r(67676),l=r(20102),d=r(80442),p=r(35454),c=r(83379),h=r(92604),y=r(78286),f=r(95330),m=r(81271),g=r(41123),b=r(5600),F=(r(75215),r(52011)),w=r(6570),S=r(44547),_=r(33955),R=r(14720),A=r(25278),I=r(74654),O=r(66677),E=r(2981),v=r(4967),q=r(59431),C=r(14165),x=r(82971);const Z=new p.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),T=new Set(["Feature Layer","Table"]),D=new p.X({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let P=class extends c.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,f.Ds)((async()=>{await this.load();const e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}})),this._ongoingAssetUploads=new Map}load(e){const t=null!=e?e.signal:null,r=this.layer.sourceJSON;return this.addResolvingPromise(this._fetchService(r,t)),Promise.resolve(this)}get queryTask(){const{capabilities:e,parsedUrl:t,dynamicDataSource:r,infoFor3D:a,gdbVersion:s,spatialReference:n,fieldsIndex:i}=this.layer,o=(0,d.Z)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==a,u=e?.operations?.supportsQueryAttachments??!1;return new I.Z({url:t.path,pbfSupported:o,fieldsIndex:i,infoFor3D:a,dynamicDataSource:r,gdbVersion:s,sourceSpatialReference:n,queryAttachmentsSupported:u})}async addAttachment(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],a=this.layer.parsedUrl.path+"/"+r+"/addAttachment",s=this._getLayerRequestOptions(),n=this._getFormDataForAttachment(t,s.query);try{const e=await(0,i.default)(a,{body:n});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async updateAttachment(e,t,r){await this.load();const a=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+a+"/updateAttachment",n=this._getLayerRequestOptions({query:{attachmentId:t}}),o=this._getFormDataForAttachment(r,n.query);try{const e=await(0,i.default)(s,{body:o});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(a,e)}}async applyEdits(e,t){await this.load();const{layer:r}=this,a=r.infoFor3D,s=null!=a,o=s||(t?.globalIdUsed??!1),l=e.addFeatures?.map((e=>this._getFeatureJSON(e,a)))??[],d=(await Promise.all(l)).filter(u.pC),p=e.updateFeatures?.map((e=>this._getFeatureJSON(e,a)))??[],c=(await Promise.all(p)).filter(u.pC),h=this._getFeatureIds(e.deleteFeatures,o);(0,q.P)(d,c,r.spatialReference);const y=await this._getAttachmentEditsJSON(e),f=s?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,m=r.capabilities.editing.supportsAsyncApplyEdits&&null!=f&&(0!==f.adds.length||0!==f.updates.length),g={gdbVersion:t?.gdbVersion||r.gdbVersion,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:o,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,sessionId:t?.sessionId,async:m};t?.returnServiceEditsOption?(g.edits=JSON.stringify([{id:r.layerId,adds:d,updates:c,deletes:h,attachments:y,assetMaps:f}]),g.returnServiceEditsOption=Z.toJSON(t?.returnServiceEditsOption),g.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(g.adds=d.length?JSON.stringify(d):null,g.updates=c.length?JSON.stringify(c):null,g.deletes=h.length?o?JSON.stringify(h):h.join(","):null,g.attachments=y&&JSON.stringify(y),g.assetMaps=null!=f?JSON.stringify(f):void 0);const b=this._getLayerRequestOptions({method:"post",query:g}),F=t?.returnServiceEditsOption?r.url:r.parsedUrl.path,w=m?await this._asyncApplyEdits(F+"/applyEdits",b):await(0,i.default)(F+"/applyEdits",b);if(!r.capabilities.operations?.supportsEditing&&r.effectiveCapabilities?.operations?.supportsEditing){const e=n.id?.findCredential(r.url);await(e?.refreshToken())}return this._createEditsResult(w)}async deleteAttachments(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],a=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.default)(a,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:a}=this.layer,{data:s}=await(0,i.default)(`${a}/${r}`,t),{id:n,extent:u,fullExtent:l,timeExtent:d}=s,p=u||l;return{id:n,fullExtent:p&&w.Z.fromJSON(p),timeExtent:d&&o.Z.fromJSON({start:d[0],end:d[1]})}}))}async queryAttachments(e,t={}){await this.load();const r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,O.M8)(this.layer.url))return"unavailable";const e=(0,m.v_)(this.layer.url,"status"),t=await(0,i.default)(e,{query:{f:"json"}});return D.fromJSON(t.data.status)}async uploadAssets(e,t){const{uploadAssets:a}=await r.e(6946).then(r.bind(r,36946));return a(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}async _asyncApplyEdits(e,t){const r=(await(0,i.default)(e,t)).data.statusUrl;for(;;){const e=(await(0,i.default)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,i.default)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,f.e4)($)}}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:r}=await(0,i.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,d.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=r}this.sourceJSON=this._patchServiceJSON(e);const r=e.type;if(!T.has(r))throw new l.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(e){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){const t=(0,A.bU)(e.geometryType).renderer;(0,y.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}async _getFeatureJSON(e,t){const{geometry:r}=e,a={...e.attributes};if(null!=t&&null!=e.geometry&&"mesh"===e.geometry.type){const{transformFieldRoles:r}=t,{origin:s,spatialReference:n,transform:i}=e.geometry,o=this.layer.spatialReference;await(0,S.iQ)(n,o);const u=(0,S.iV)(s,o);if(a[r.originX]=u.x,a[r.originY]=u.y,a[r.originZ]=u.z,null!=i){const{translation:e,scale:t,rotation:s}=i;a[r.translationX]=e[0],a[r.translationY]=-e[2],a[r.translationZ]=e[1],a[r.scaleX]=t[0],a[r.scaleY]=t[1],a[r.scaleZ]=t[2],a[r.rotationX]=s[0],a[r.rotationY]=s[2],a[r.rotationZ]=s[1],a[r.rotationDeg]=s[3]}return{geometry:null,attributes:a}}return null==r?{attributes:a}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:a}}async _getAttachmentEditsJSON(e){const t=await Promise.all((e.addAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),r=await Promise.all((e.updateAttachments??[]).map((e=>this._getAttachmentEditJSON(e)))),a=e.deleteAttachments??[];return t.length||r.length||a.length?{adds:t,updates:r,deletes:[...a]}:null}async _getAttachmentEditJSON(e){const{feature:t,attachment:r}=e,{globalId:a,name:s,contentType:n,data:i,uploadId:o}=r,u={globalId:a,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),o)u.uploadId=o;else if(i){const e=await(0,m.IR)(i);e&&(u.contentType=e.mediaType,u.data=e.data),i instanceof File&&(u.name=i.name)}return s&&(u.name=s),n&&(u.contentType=n),u}async _uploadMeshesAndGetAssetMapEditsJSON(e){const{addAssetFeatures:t}=e;if(!t?.length)return null;const r=await this._filterRedundantAssetMaps(t);if(!t?.length)return null;const a=r.map((e=>e.geometry));return await this.uploadAssets(a),{adds:this._getAssetMapEditsJSON(r),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){const t=new Array,r=this.layer.globalIdField,a=this.layer.parsedUrl,s=(e,r,a)=>{1===e.parts.length?t.push({globalId:(0,g.z)(),parentGlobalId:r,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:a}):h.Z.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)};for(const t of e){const e=t.geometry,{metadata:n}=e,i=n.getExternalSourcesOnService(a),o=t.getAttribute(r);if(0===i.length){h.Z.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=i[0],{transform:l}=e,d=l&&l.geographic?[]:["PROJECT_VERTICES"];u.forEach((e=>s(e,o,d)))}return t}_getFeatureIds(e,t){if(!e||0===e.length)return[];if(t&&(0,R.Ey)(e))return e.map((e=>e.globalId));if((0,R.aw)(e))return e.map((e=>e.objectId));const{layer:r}=this,a=t?r.globalIdField:r.objectIdField;return a?e.map((e=>e.getAttribute(a))):[]}_createEditsResult(e){const t=e.data,{layerId:r}=this.layer,a=[];let s=null;if(Array.isArray(t))for(const e of t)a.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(s={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else s=t;const n=s?.assetMaps;if(n){for(const e of n.addResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(const e of n.updateResults)e.success||h.Z.getLogger(this).error(`Failed to map asset to feature with globalId ${e.globalId}.`)}const i=s?.attachments,o={addFeatureResults:s?.addResults?.map(this._createFeatureEditResult,this)??[],updateFeatureResults:s?.updateResults?.map(this._createFeatureEditResult,this)??[],deleteFeatureResults:s?.deleteResults?.map(this._createFeatureEditResult,this)??[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(s?.editMoment&&(o.editMoment=s.editMoment),a.length>0){o.editedFeatureResults=[];for(const e of a){const{editedFeatures:t}=e,r=t?.spatialReference?new x.Z(t.spatialReference):null;o.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:t?.adds?.map((e=>this._createEditedFeature(e,r)))||[],updates:t?.updates?.map((e=>({original:this._createEditedFeature(e[0],r),current:this._createEditedFeature(e[1],r)})))||[],deletes:t?.deletes?.map((e=>this._createEditedFeature(e,r)))||[],spatialReference:r}})}}return o}_createEditedFeature(e,t){return new s.Z({attributes:e.attributes,geometry:(0,_.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const r=t.details.messages&&t.details.messages[0]||t.message,a=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new l.Z("feature-layer-source:attachment-failure",r,{code:a})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const a=t[e];null!=a&&(r.set?r.set(e,a):r.append(e,a))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:a}=this.layer;return{...e,query:{gdbVersion:r,layer:a?JSON.stringify({source:a}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _filterRedundantAssetMaps(e){const{layer:t}=this,{globalIdField:r,infoFor3D:a,parsedUrl:s}=t;if(null==a||null==r)return e;const n=(0,E.$6)(a);if(null==n)return e;const i=(0,m.v_)(s.path,`../${n.id}`),o=e.map((e=>e.getAttribute(r))).filter(u.pC);if(0===o.length)return e;const{assetMapFieldRoles:{parentGlobalId:l,assetHash:d}}=a,p=new C.Z;p.where=`${l} IN (${o.map((e=>`'${e}'`))})`,p.outFields=[d,l],p.returnGeometry=!1;const c=await(0,v.e)(i,p),{features:h}=c;return 0===h.length?e:e.filter((e=>{const t=e.getAttribute(r);if(!t)return!0;const{metadata:a}=e.geometry,n=h.filter((e=>e.getAttribute(l)===t));if(0===n.length)return!0;const i=n.map((e=>e.getAttribute(d)));return a.getExternalSourcesOnService(s).flatMap((({source:e})=>e.flatMap((e=>e.parts.map((e=>e.partHash)))))).some((e=>i.every((t=>e!==t))))}))}};(0,a._)([(0,b.Cb)()],P.prototype,"type",void 0),(0,a._)([(0,b.Cb)({constructOnly:!0})],P.prototype,"layer",void 0),(0,a._)([(0,b.Cb)({readOnly:!0})],P.prototype,"queryTask",null),P=(0,a._)([(0,F.j)("esri.layers.graphics.sources.FeatureLayerSource")],P);const $=1e3,M=P},74654:(e,t,r)=>{r.d(t,{Z:()=>Z});var a=r(43697),s=r(92036),n=r(20102),i=r(80442),o=r(95330),u=r(81271),l=r(5600),d=(r(75215),r(67676),r(52011)),p=r(2981),c=r(10158),h=r(11282),y=r(41818),f=(r(66577),r(34599)),m=r(14165),g=r(6570),b=r(5396),F=r(4967),w=r(70586),S=r(69285),_=r(98732);function R(e,t){return t}function A(e,t,r,a){switch(r){case 0:return v(e,t+a,0);case 1:return"lowerLeft"===e.originPosition?v(e,t+a,1):function({translate:e,scale:t},r,a){return e[a]-r*t[a]}(e,t+a,1)}}function I(e,t,r,a){return 2===r?v(e,t,2):A(e,t,r,a)}function O(e,t,r,a){return 2===r?v(e,t,3):A(e,t,r,a)}function E(e,t,r,a){return 3===r?v(e,t,3):I(e,t,r,a)}function v({translate:e,scale:t},r,a){return e[a]+r*t[a]}class q{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=R,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,S.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,w.O3)(r),r.push(t);const a=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of a)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:a}=t,s=(0,_.$g)(r.clone(),r,!1,!1,this._transform),n=(0,_.di)(s,a,!1,!1);e.queryGeometryType=a,e.queryGeometry={...n}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const a=(0,w.s3)(this._transform,"transform");switch(t=this._applyTransform(a,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const a=(0,w.s3)(this._transform,"transform");return this._applyTransform(a,e,t,r)}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const a=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(a)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const a=this._transformPathLikeValue(t,r),s=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),s.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=a}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?E:t?I:r?O:A}}var C=r(74889);let x=class extends s.Z{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.mN)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),a=null!=e.outStatistics?.[0],s=(0,i.Z)("featurelayer-pbf-statistics"),n=!a||s;let o;if(this.pbfSupported&&n)try{o=await async function(e,t,r){const a=(0,h.en)(e),s={...r},n=m.Z.from(t),i=!n.quantizationParameters,{data:o}=await(0,f.qp)(a,n,new q({sourceSpatialReference:n.sourceSpatialReference,applyTransform:i}),s);return o}(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&n||(o=await(0,F.F)(this.url,r,t)),this._normalizeFields(o.fields),o}async featureSetFromJSON(e,t,a){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return C.Z.fromJSON(t);const{meshFeatureSetFromJSON:s}=await(0,o.Hl)(Promise.all([r.e(6481),r.e(6459),r.e(7697)]).then(r.bind(r,87697)),a);return s(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.P)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const a=(0,h.en)(e);return(0,f.Vr)(a,m.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:g.Z.fromJSON(e.data.extent)})))}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,b.G)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:a},{executeRelationshipQuery:s}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=a.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),s(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:a},{executeRelationshipQueryForCount:s}]=await(0,o.Hl)(Promise.all([r.e(5935).then(r.bind(r,75935)),r.e(1073).then(r.bind(r,81073))]),t);return e=a.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),s(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:a,fetchAttachments:s,processAttachmentQueryResult:n}=await(0,o.Hl)(r.e(540).then(r.bind(r,30540)),t),i=(0,h.en)(this.url);return n(i,await(this.queryAttachmentsSupported?a(i,e,t):s(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:a}=await(0,o.Hl)(r.e(1158).then(r.bind(r,71158)),t);return a(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:a}=await(0,o.Hl)(r.e(3992).then(r.bind(r,33992)),t);return a(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:a}=await(0,o.Hl)(r.e(1790).then(r.bind(r,21790)),t);return a(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:a}=await(0,o.Hl)(r.e(4371).then(r.bind(r,14371)),t);return a(this.parsedUrl,e,t)}_normalizeQuery(e){let t=m.Z.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?c.n.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:a,queryFormats:s}=r,i=(0,p.S0)("model/gltf-binary",a)??(0,p.Ow)("glb",a),o=(0,p.S0)("model/gltf+json",a)??(0,p.Ow)("gtlf",a);for(const e of s){if(e===i){t.formatOf3DObjects=e;break}e!==o||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new n.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:a,originY:s,originZ:n,translationX:i,translationY:o,translationZ:u,scaleX:l,scaleY:d,scaleZ:p,rotationX:c,rotationY:h,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(a,s,n,i,o,u,l,d,p,c,h,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,a._)([(0,l.Cb)({type:c.n})],x.prototype,"dynamicDataSource",void 0),(0,a._)([(0,l.Cb)()],x.prototype,"fieldsIndex",void 0),(0,a._)([(0,l.Cb)()],x.prototype,"gdbVersion",void 0),(0,a._)([(0,l.Cb)()],x.prototype,"infoFor3D",void 0),(0,a._)([(0,l.Cb)({readOnly:!0})],x.prototype,"parsedUrl",null),(0,a._)([(0,l.Cb)()],x.prototype,"pbfSupported",void 0),(0,a._)([(0,l.Cb)()],x.prototype,"queryAttachmentsSupported",void 0),(0,a._)([(0,l.Cb)()],x.prototype,"sourceSpatialReference",void 0),(0,a._)([(0,l.Cb)({type:String})],x.prototype,"url",void 0),x=(0,a._)([(0,d.j)("esri.tasks.QueryTask")],x);const Z=x},25278:(e,t,r)=>{r.d(t,{Dm:()=>d,Hq:()=>p,MS:()=>c,bU:()=>o});var a=r(80442),s=r(22974),n=r(61159),i=r(58333);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function d(e,t){if((0,a.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${u.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const a=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new a}catch(r){return()=>({[t]:null,...e})}}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.d9)(e)}}]}function c(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:n.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},2981:(e,t,r)=>{r.d(t,{$6:()=>d,Ow:()=>n,S0:()=>s,d1:()=>i});const a=[["binary","application/octet-stream","bin",""]];function s(e,t){return u(function(e,t){return o(t).find((t=>l(t)===e))}(e,t))}function n(e,t){return u(function(e,t){const r=e.toLowerCase();return o(t).find((e=>function(e){return e?.[2].split(",")??[]}(e).some((e=>r.endsWith(e)))))}(e,t))}function i(e,t){return l(function(e,t){return o(t).find((t=>u(t)===e))}(e,t))}function o(e){return[...a,...e]}function u(e){return e?.[0]}function l(e){return e?.[1]}function d(e){return e.tables?.find((e=>"assetMaps"===e.role))}},41818:(e,t,r)=>{r.d(t,{P:()=>i});var a=r(11282),s=r(34599),n=r(14165);async function i(e,t,r){const i=(0,a.en)(e);return(0,s.hH)(i,n.Z.from(t),{...r}).then((e=>e.data.count))}},5396:(e,t,r)=>{r.d(t,{G:()=>i});var a=r(11282),s=r(34599),n=r(14165);async function i(e,t,r){const i=(0,a.en)(e);return(0,s.Ev)(i,n.Z.from(t),{...r}).then((e=>e.data.objectIds))}},4967:(e,t,r)=>{r.d(t,{F:()=>u,e:()=>o});var a=r(11282),s=r(34599),n=r(74889),i=r(14165);async function o(e,t,r){const a=await u(e,t,r);return n.Z.fromJSON(a)}async function u(e,t,r){const n=(0,a.en)(e),o={...r},u=i.Z.from(t),{data:l}=await(0,s.JT)(n,u,u.sourceSpatialReference,o);return l}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9469],{38171:(e,t,i)=>{i.d(t,{Z:()=>m});var s=i(43697),l=i(66577),r=i(51773),n=i(9790),o=i(2368),a=i(96674),u=i(99001),p=i(5600),c=(i(75215),i(67676),i(80442),i(52011)),d=i(33955);function h(e){if(null==e)return null;const t={};for(const i in e){const s=e[i];s&&(t[i]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let y=class extends((0,o.J)(a.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,u.D)(),configurable:!0})}normalizeCtorArgs(e,t,i,s){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:i,popupTemplate:s}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:h(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(e={}){"mesh"===this.geometry?.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform,e.action)}_notifyLayer(e,t,i,s){if(!this.layer||!("graphicChanged"in this.layer))return;const l={graphic:this,property:e,oldValue:t,newValue:i};"transform"===e&&(l.action=s),"attributes"===e&&(l.attributeName=s),this.layer.graphicChanged(l)}};(0,s._)([(0,p.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const s=(0,d.im)(e[i]);s&&(t[i]=s)}return 0!==Object.keys(t).length?t:null}}})],y.prototype,"aggregateGeometries",null),(0,s._)([(0,p.Cb)({value:null})],y.prototype,"attributes",null),(0,s._)([(0,p.Cb)({value:null,types:l.qM,json:{read:d.im}})],y.prototype,"geometry",null),(0,s._)([(0,p.Cb)({type:Boolean})],y.prototype,"isAggregate",void 0),(0,s._)([(0,p.Cb)({clonable:"reference"})],y.prototype,"layer",void 0),(0,s._)([(0,p.Cb)({type:r.Z})],y.prototype,"popupTemplate",void 0),(0,s._)([(0,p.Cb)({clonable:"reference"})],y.prototype,"sourceLayer",void 0),(0,s._)([(0,p.Cb)({value:null,types:n.LB})],y.prototype,"symbol",null),(0,s._)([(0,p.Cb)({type:Boolean,value:!0})],y.prototype,"visible",null),y=(0,s._)([(0,c.j)("esri.Graphic")],y),(y||(y={})).generateUID=u.D;const m=y},74085:(e,t,i)=>{function s(e){}i.d(t,{Bg:()=>s}),i(80442)},60235:(e,t,i)=>{i.d(t,{Mr:()=>n,x9:()=>o});var s=i(80442);const l=new Set;function r(e,t,i=!1){i&&l.has(t)||(i&&l.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function n(e,t,i={}){if((0,s.Z)("esri-deprecation-warnings")){const{moduleName:s}=i;o(e,"Property: "+(s?s+"::":"")+t,i)}}function o(e,t,i={}){if((0,s.Z)("esri-deprecation-warnings")){const{replacement:s,version:l,see:n,warnOnce:o}=i;let a=t;s&&(a+=`\n\t🛠️ Replacement: ${s}`),l&&(a+=`\n\t⚙️ Version: ${l}`),n&&(a+=`\n\t🔗 See ${n} for more details.`),r(e,a,o)}}},16050:(e,t,i)=>{i.d(t,{Z:()=>j});var s,l=i(43697),r=i(9790),n=i(35454),o=i(22974),a=i(92604),u=i(5600),p=i(90578),c=i(36030),d=i(71715),h=i(52011),y=i(30556),m=i(75215),f=i(35671),b=i(5499),v=i(41733),g=i(32984),w=i(9833),_=i(66338),V=i(59266);const S="percent-of-total",x="field",C=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),I=(0,m.se)(g.Z);let z=s=class extends((0,v.W)(b.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new g.Z;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const l=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&l.forEach((e=>delete e.classMinValue)),t[i]=l}castField(e){return null==e?e:"function"==typeof e?(a.Z.getLogger(this).error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&S||null,t&&i&&a.Z.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new g.Z({minValue:e,maxValue:t,symbol:(0,r.se)(i)}):I((0,o.d9)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return!this.valueExpression||null!=t&&null!=t.arcade||a.Z.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;!this.valueExpression||null!=t&&null!=t.arcade||(i={...i,arcade:await(0,V.LC)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void a.Z.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(null==t||null==t.arcade)){const e=await(0,V.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.d9)(this.visualVariables),legendOptions:(0,o.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,f.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r}=t??{},{valueExpression:n}=this;let o=this._compiledValueExpression.valueExpression===n?this._compiledValueExpression.compiledFunction:null;const a=r.arcadeUtils;if(!o){const e=a.createSyntaxTree(n);o=a.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=n;const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:l})));return this._getBreakIndexfromInfos(u)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let l=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)l=Math.log(l)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,l._)([(0,u.Cb)(w.KK)],z.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,u.Cb)({type:[g.Z]})],z.prototype,"classBreakInfos",void 0),(0,l._)([(0,d.r)("classBreakInfos")],z.prototype,"readClassBreakInfos",null),(0,l._)([(0,y.c)("classBreakInfos")],z.prototype,"writeClassBreakInfos",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"defaultLabel",void 0),(0,l._)([(0,u.Cb)(w.Gn)],z.prototype,"defaultSymbol",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,l._)([(0,p.p)("field")],z.prototype,"castField",null),(0,l._)([(0,u.Cb)({type:Boolean})],z.prototype,"isMaxInclusive",void 0),(0,l._)([(0,u.Cb)({type:_.I,json:{write:!0}})],z.prototype,"legendOptions",void 0),(0,l._)([(0,u.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],z.prototype,"minValue",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"normalizationField",void 0),(0,l._)([(0,u.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],z.prototype,"normalizationTotal",void 0),(0,l._)([(0,u.Cb)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],z.prototype,"normalizationType",null),(0,l._)([(0,c.J)({classBreaks:"class-breaks"})],z.prototype,"type",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"valueExpression",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"valueExpressionTitle",void 0),z=s=(0,l._)([(0,h.j)("esri.renderers.ClassBreaksRenderer")],z);const j=z},5499:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(43697),l=i(35454),r=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(69237);const u=new l.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends r.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,n.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.Cb)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,o.j)("esri.renderers.Renderer")],p);const c=p},81571:(e,t,i)=>{i.d(t,{Z:()=>$});var s=i(43697),l=i(9790),r=i(20102),n=i(22974),o=i(92604),a=i(78286),u=i(17445),p=i(5600),c=i(90578),d=i(36030),h=i(71715),y=i(52011),m=i(30556),f=i(22862),b=i(75215),v=i(35671),g=i(48522),w=i(5499),_=i(41733),V=i(9833),S=i(66338),x=i(2368),C=i(96674),I=i(67676);i(80442);let z=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,p.Cb)(V.GY)],z.prototype,"value",void 0),(0,s._)([(0,p.Cb)(V.GY)],z.prototype,"value2",void 0),(0,s._)([(0,p.Cb)(V.GY)],z.prototype,"value3",void 0),z=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValue")],z);const j=z;let q=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map((e=>new j({value:e}))):"object"===t?e[0]instanceof j?e:e.map((e=>new j(e))):null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"label",void 0),(0,s._)([(0,p.Cb)(V.Gn)],q.prototype,"symbol",void 0),(0,s._)([(0,p.Cb)({type:[j],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new j({value:e[0],value2:e[1],value3:e[2]}))):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(I.pC).map((e=>e.toString()));i.push(e)}t.values=i}}}})],q.prototype,"values",void 0),(0,s._)([(0,c.p)("values")],q.prototype,"castValues",null),q=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueClass")],q);const F=q;let E=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"heading",void 0),(0,s._)([(0,p.Cb)({type:[F],json:{write:!0}})],E.prototype,"classes",void 0),E=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueGroup")],E);const T=E;var k,O=i(44262),D=i(59266),U=i(25929),B=i(27883),Z=i(59390);const N="esri.renderers.UniqueValueRenderer",L=o.Z.getLogger(N),M="uvInfos-watcher",R="uvGroups-watcher",G=(0,b.se)(O.Z);let A=k=class extends((0,_.W)(w.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let l=0;l<t.length;l++){const r=e.find((e=>e.value===t[l].value));r?(0,f.Hg)(r,t[l])?(s.changed.push({type:"complete",oldValue:r,newValue:t[l]}),i=!0):s.unchanged.push({oldValue:r,newValue:t[l]}):(s.added.push(t[l]),i=!0)}for(let l=0;l<e.length;l++)t.find((t=>t.value===e[l].value))||(s.removed.push(e[l]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,b.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new r.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):L.error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||g.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,U.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,U.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?L.error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?L.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void L.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?G(e):new O.Z({value:e,symbol:(0,l.se)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[i.value]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void L.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++)if(t[i].value===e+""){delete this._valueInfoMap[e],t.splice(i,1);break}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return!this.valueExpression||null!=t&&null!=t.arcade||(i={...i,arcade:await(0,D.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void L.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i&&i.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(null==i||null==i.arcade)){const e=await(0,D.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s&&s.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce(((e,t)=>e+t.getMeshHash()),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new k({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos),i=(0,n.d9)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,v.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,B.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new Z.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const l=new O.Z({value:i.name,symbol:s});t.push(l),this._valueInfoMap[i.name]=l})),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(M);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,u.YP)((()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description})),((e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)}),{sync:!0}));this.addHandles(t,M)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,u.YP)((()=>({classes:i.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of i.classes??[])t.push((0,u.YP)((()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueGroups:r,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of r)for(const r of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=r;for(const r of a??[]){const{value:a,value2:p,value3:c}=r,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(l||""):d[0];e.push(new O.Z({symbol:t,label:n,value:h,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:l,uniqueValueInfos:r}=this;if(!t&&!s||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=r.map((e=>{const{symbol:t,label:i,value:s,description:r}=e,[o,a,u]=n?s?.toString()?.split(l||"")||[]:[s];return new F({symbol:t,label:i,description:r,values:[new j({value:o,value2:a,value3:u})]})})),a=[new T({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r}=t??{};let n=this._cache.compiledFunc;const o=r.arcadeUtils;if(!n){const e=o.createSyntaxTree(this.valueExpression);n=o.createFunction(e),this._cache.compiledFunc=n}const a=o.executeFunction(n,o.createExecContext(e,o.getViewInfo({viewingMode:i,scale:s,spatialReference:l})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if("function"!=typeof t&&this.field2){const e=this.field2,l=this.field3,r=[];t&&r.push(i[t]),e&&r.push(i[e]),l&&r.push(i[l]),s=r.join(this.fieldDelimiter||"")}else"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new k(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||g.Z.getDefault());const s=i.populateFromStyle();return s.catch((t=>{L.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),s}static fromStyleUrl(e,t){const i=new k(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch((t=>{L.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),s}};(0,s._)([(0,p.Cb)({readOnly:!0})],A.prototype,"_cache",null),(0,s._)([(0,d.J)({uniqueValue:"unique-value"})],A.prototype,"type",void 0),(0,s._)([(0,p.Cb)(V.KK)],A.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,p.Cb)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],A.prototype,"field",null),(0,s._)([(0,c.p)("field")],A.prototype,"castField",null),(0,s._)([(0,m.c)("field")],A.prototype,"writeField",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],A.prototype,"field2",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],A.prototype,"field3",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],A.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],A.prototype,"valueExpression",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],A.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,p.Cb)({type:S.I,json:{write:!0}})],A.prototype,"legendOptions",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],A.prototype,"defaultLabel",void 0),(0,s._)([(0,p.Cb)((0,a.RH)({...V.Gn},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],A.prototype,"defaultSymbol",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],A.prototype,"fieldDelimiter",null),(0,s._)([(0,p.Cb)({type:g.Z,readOnly:!0})],A.prototype,"portal",void 0),(0,s._)([(0,h.r)("portal",["styleName"])],A.prototype,"readPortal",null),(0,s._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],A.prototype,"styleOrigin",void 0),(0,s._)([(0,h.r)("styleOrigin",["styleName","styleUrl"])],A.prototype,"readStyleOrigin",null),(0,s._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],A.prototype,"writeStyleOrigin",null),(0,s._)([(0,p.Cb)({type:[T],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueInfos:r,valueExpression:n}=e,o=!(!t||!i);return[{classes:(r??[]).map((e=>{const{symbol:r,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(l||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:r,label:a,values:[y],description:p}}))}]}(t)).map((e=>T.fromJSON(e,i)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],A.prototype,"uniqueValueGroups",null),(0,s._)([(0,p.Cb)({type:[O.Z],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],A.prototype,"uniqueValueInfos",null),A=k=(0,s._)([(0,y.j)(N)],A);const $=A},41733:(e,t,i)=>{i.d(t,{W:()=>U});var s=i(43697),l=i(5600),r=i(75215),n=(i(67676),i(80442),i(71715)),o=i(52011),a=i(30556),u=i(35671);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,d=i(77997),h=i(21849);let y=c=class extends d.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new c({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,l.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,s._)([(0,l.Cb)({type:["color"],json:{type:["colorInfo"]}})],y.prototype,"type",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,s._)([(0,l.Cb)({type:[h.Z],json:{write:!0}})],y.prototype,"stops",null),y=c=(0,s._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],y);const m=y;var f,b=i(96674),v=i(65242);let g=f=class extends b.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,v.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,v.a)(e)}clone(){return new f({label:this.label,opacity:this.opacity,value:this.value})}};(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{type:r.z8,write:{target:"transparency"}}})],g.prototype,"opacity",void 0),(0,s._)([(0,n.r)("opacity",["transparency"])],g.prototype,"readOpacity",null),(0,s._)([(0,a.c)("opacity")],g.prototype,"writeOpacity",null),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,s._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],g);const w=g;var _;let V=_=class extends d.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new _({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,l.Cb)({readOnly:!0})],V.prototype,"cache",null),(0,s._)([(0,l.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],V.prototype,"type",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),(0,s._)([(0,l.Cb)({type:[w],json:{write:!0}})],V.prototype,"stops",null),V=_=(0,s._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],V);const S=V;var x=i(89513),C=i(23847),I=i(92036),z=i(35454),j=i(92604),q=i(20941);const F={color:m,size:C.Z,opacity:S,rotation:x.Z},E=new z.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),T=/^\[([^\]]+)\]$/i;let k=class extends I.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:l}=t,r=s&&s.match(T),n=r&&r[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:l,field:n})),e)return e.map((e=>{const t=E.read(e.type),s=F[t];s||(j.Z.getLogger(this).warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new q.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const l=new s;return l.read(e,i),l}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s._)([(0,l.Cb)()],k.prototype,"visualVariables",null),k=(0,s._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],k);const O=k,D={base:d.Z,key:"type",typeMap:{opacity:S,color:m,rotation:x.Z,size:C.Z}},U=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new O}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.AB)(e,t,s.field),s.normalizationField&&(0,u.AB)(e,t,s.normalizationField),s.valueExpression&&(B(s.valueExpression,e,t)||await(0,u.io)(e,t,s.valueExpression)))}};return(0,s._)([(0,l.Cb)({types:[D],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function B(e,t,i){const s=(l=e,l.match(p)?.[1]?.replace(/\\'/g,"'")??null);var l;return null!=s&&((0,u.AB)(t,i,s),!0)}},69237:(e,t,i)=>{i.d(t,{Z:()=>T});var s,l=i(43697),r=i(35454),n=i(96674),o=i(22974),a=i(5600),u=i(75215),p=i(71715),c=i(52011);i(67676),i(80442);let d=s=class extends n.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,l._)([(0,c.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.d9)(this.classBreakInfos)})}};(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l._)([(0,a.Cb)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(90578);const b=new r.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new r.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=m=class extends n.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,l._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,l._)([(0,f.p)("endTime")],S.prototype,"castEndTime",null),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,l._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,l._)([(0,f.p)("startTime")],S.prototype,"castStartTime",null),(0,l._)([(0,a.Cb)({type:b.apiValues,value:null,json:{type:b.jsonValues,read:b.read,write:b.write}})],S.prototype,"style",null),(0,l._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,l._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,l._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=m=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=i(94593);const z=new r.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),j=new r.X({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new r.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let E=C=class extends n.wq{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,I.i)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new C({classificationMethod:this.classificationMethod,colorRamp:(0,o.d9)(this.colorRamp),fadeRatio:(0,o.d9)(this.fadeRatio),fields:this.fields&&this.fields.slice(0),field1:(0,o.d9)(this.field1),field2:(0,o.d9)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,l._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-document":{default:"manual",type:z.jsonValues,read:z.read,write:z.write}}}})],E.prototype,"classificationMethod",null),(0,l._)([(0,a.Cb)({types:I.V,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,l._)([(0,p.r)("colorRamp")],E.prototype,"readColorRamp",null),(0,l._)([(0,a.Cb)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,l._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,l._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,l._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,l._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,l._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,l._)([(0,a.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,l._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],E.prototype,"numClasses",null),(0,l._)([(0,a.Cb)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,l._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,l._)([(0,a.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,l._)([(0,a.Cb)({type:[x],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,l._)([(0,a.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateSymbolStyle",null),(0,l._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=C=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfo")],E);const T=E},32984:(e,t,i)=>{i.d(t,{Z:()=>p});var s,l=i(43697),r=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends r.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l._)([(0,n.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l._)([(0,n.Cb)(a.Gn)],u.prototype,"symbol",void 0),u=s=(0,l._)([(0,o.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,i)=>{i.d(t,{I:()=>a});var s,l=i(43697),r=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011));let a=s=class extends r.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,l._)([(0,o.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,i)=>{i.d(t,{Z:()=>p});var s,l=i(43697),r=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends r.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.Cb)(a.Gn)],u.prototype,"symbol",void 0),(0,l._)([(0,n.Cb)(a.GY)],u.prototype,"value",void 0),u=s=(0,l._)([(0,o.j)("esri.renderers.support.UniqueValueInfo")],u);const p=u},9833:(e,t,i)=>{i.d(t,{GY:()=>p,Gn:()=>a,KK:()=>u});var s=i(9790),l=i(63213),r=i(21878),n=i(89164),o=i(86114);const a={types:s.QT,json:{write:{writer:r.cW},origins:{"web-scene":{types:s.f_,write:{writer:r.cW},read:{reader:(0,l.d)({types:s.f_})}}}}},u={types:{base:n.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:r.cW},origins:{"web-scene":{type:o.Z,write:{writer:r.cW}}}}},p={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},89513:(e,t,i)=>{i.d(t,{Z:()=>c});var s,l=i(43697),r=i(20102),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(30556),u=i(77997);let p=s=class extends u.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s&&s.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new r.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,l._)([(0,n.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,l._)([(0,n.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,l._)([(0,n.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,l._)([(0,n.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,l._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,l._)([(0,o.j)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},23847:(e,t,i)=>{i.d(t,{Z:()=>z});var s,l=i(43697),r=i(20102),n=i(35454),o=i(92604),a=i(62357),u=i(5600),p=i(90578),c=i(71715),d=i(52011),h=i(30556),y=i(77997),m=i(30856),f=(i(75215),i(67676),i(80442),i(58439));let b=s=class extends f.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,l._)([(0,u.Cb)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=s=(0,l._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=i(51706),_=i(28101);const V=new n.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,a.t_)(e):"size"===e.type?(0,w.iY)(e)?e:(delete(e={...e}).type,new I(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;const s=new I;return s.read(e,i),s}let I=g=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&_.B3.test(this.valueExpression)}}set expression(e){o.Z.getLogger(this).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,w.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.PS)(this)}set maxDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,i){return C(e,0,i)}set minDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,i){return C(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(o.Z.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,w.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s&&s.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new r.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,w.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===w.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w.hL.Stops){const e=this.stops;if(!e)return this;const t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,l._)([(0,u.Cb)({readOnly:!0})],I.prototype,"cache",null),(0,l._)([(0,u.Cb)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],I.prototype,"axis",void 0),(0,l._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],I.prototype,"expression",null),(0,l._)([(0,u.Cb)()],I.prototype,"index",null),(0,l._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"inputValueType",null),(0,l._)([(0,u.Cb)({type:v,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxDataValue",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxSize",null),(0,l._)([(0,p.p)("maxSize")],I.prototype,"castMaxSize",null),(0,l._)([(0,c.r)("maxSize")],I.prototype,"readMaxSize",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minDataValue",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minSize",null),(0,l._)([(0,p.p)("minSize")],I.prototype,"castMinSize",null),(0,l._)([(0,c.r)("minSize")],I.prototype,"readMinSize",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,l._)([(0,u.Cb)({readOnly:!0})],I.prototype,"arcadeRequired",null),(0,l._)([(0,u.Cb)({type:String})],I.prototype,"scaleBy",void 0),(0,l._)([(0,u.Cb)({type:[m.Z],value:null,json:{write:!0}})],I.prototype,"stops",null),(0,l._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],I.prototype,"target",void 0),(0,l._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"transformationType",null),(0,l._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],I.prototype,"type",void 0),(0,l._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],I.prototype,"useSymbolValue",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,l._)([(0,c.r)("valueExpression",["valueExpression","expression"])],I.prototype,"readValueExpression",null),(0,l._)([(0,h.c)("web-scene","valueExpression")],I.prototype,"writeValueExpressionWebScene",null),(0,l._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],I.prototype,"valueRepresentation",void 0),(0,l._)([(0,u.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"valueUnit",void 0),(0,l._)([(0,c.r)("valueUnit")],I.prototype,"readValueUnit",null),I=g=(0,l._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],I);const z=I},77997:(e,t,i)=>{i.d(t,{Z:()=>y});var s=i(43697),l=i(35454),r=i(96674),n=i(92604),o=i(5600),a=i(90578),u=i(52011),p=i(75215),c=i(58439);const d=new l.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends r.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.Z.getLogger(this).error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.Cb)()],h.prototype,"index",void 0),(0,s._)([(0,o.Cb)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:d.write}})],h.prototype,"type",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s._)([(0,a.p)("field")],h.prototype,"castField",null),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.Cb)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s._)([(0,o.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],h);const y=h},21849:(e,t,i)=>{i.d(t,{Z:()=>d});var s,l=i(43697),r=i(22303),n=i(96674),o=i(5600),a=i(75215),u=(i(67676),i(80442),i(52011)),p=i(30556);let c=s=class extends n.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],c.prototype,"color",void 0),(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,l._)([(0,p.c)("value")],c.prototype,"writeValue",null),c=s=(0,l._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},30856:(e,t,i)=>{i.d(t,{Z:()=>p});var s,l=i(43697),r=i(96674),n=i(62357),o=i(5600),a=(i(75215),i(67676),i(80442),i(52011));let u=s=class extends r.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,cast:n.t_,json:{write:!0}})],u.prototype,"size",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),u=s=(0,l._)([(0,a.j)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},58439:(e,t,i)=>{i.d(t,{Z:()=>u});var s,l=i(43697),r=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),o=i(66338);let a=s=class extends o.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,l._)([(0,r.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,l._)([(0,n.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},51706:(e,t,i)=>{var s,l;function r(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function a(e,t){const i=t||o(e),r=e.valueUnit||"unknown";return i===s.Unknown?l.Constant:e.stops?l.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?l.ClampedLinear:"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?l.Proportional:l.Additive:l.Identity:l.RealWorldSize}i.d(t,{PS:()=>o,QW:()=>a,RY:()=>s,hL:()=>l,iY:()=>r,qh:()=>n}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(l||(l={}))},28101:(e,t,i)=>{i.d(t,{B3:()=>p,PR:()=>m,cM:()=>c}),i(22303);var s=i(38171),l=i(74085),r=i(92604),n=i(99282),o=i(51706);const a=r.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=(new s.Z,Math.PI),p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function c(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const l=s.axis||"heading",r="heading"===l&&"arithmetic"===s.rotationType?90:0,n="heading"===l&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,u=o&&o.attributes,p=s.field,{hasExpression:c}=s.cache;let d=s.cache.compiledFunc,h=0;if(!p&&!c)return h;if(c){if(null==i||null==i.arcade)return void a.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,l=t.getViewInfo(e),r=t.createExecContext(o,l);if(!d){const e=t.createSyntaxTree(s.valueExpression);d=t.createFunction(e),s.cache.compiledFunc=d}h=t.executeFunction(d,r)}else u&&(h=u[p]||0);return h="number"!=typeof h||isNaN(h)?null:r+n*h,h}function d(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const l=function(e,t,i,s,l){switch(t.transformationType){case o.hL.Additive:return function(e,t,i,s){return e+((h(t.minSize,i,s)||t.minDataValue)??0)}(e,t,i,s);case o.hL.Constant:return function(e,t,i){const s=e.stops;let l=s&&s.length&&s[0].size;return null==l&&(l=e.minSize),h(l,t,i)}(t,i,s);case o.hL.ClampedLinear:return function(e,t,i,s){const l=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),r=h(t.minSize,i,s),n=h(t.maxSize,i,s),o=null!=s?s.shape:void 0;if(e<=t.minDataValue)return r;if(e>=t.maxDataValue)return n;if(null==r||null==n)return null;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?u*(r/2)**2:r*r,i=t+l*((e?u*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/u):Math.sqrt(i)}return r+l*(n-r)}(e,t,i,s);case o.hL.Proportional:return function(e,t,i,s){const l=null!=s?s.shape:void 0,r=e/t.minDataValue,n=h(t.minSize,i,s),o=h(t.maxSize,i,s);let a=null;return a="circle"===l?2*Math.sqrt(r*(n/2)**2):"square"===l||"diamond"===l||"image"===l?Math.sqrt(r*n**2):r*n,y(a,n,o)}(e,t,i,s);case o.hL.Stops:return function(e,t,i,s,l){const[r,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some(((t,l)=>e<t?(s=l,!0):(i=l,!1))),[i,s,(e-t[i])/(t[s]-t[i])]}(e,l);if(r===n)return h(t.stops?.[r].size,i,s);{const e=h(t.stops?.[r].size,i,s);return e+(h(t.stops?.[n].size,i,s)-e)*o}}(e,t,i,s,l);case o.hL.RealWorldSize:return function(e,t,i,s){const l=(null!=s&&s.resolution?s.resolution:1)*n.a[t.valueUnit],r=h(t.minSize,i,s),o=h(t.maxSize,i,s),{valueRepresentation:a}=t;let p=null;return p="area"===a?2*Math.sqrt(e/u)/l:"radius"===a||"distance"===a?2*e/l:e/l,y(p,r,o)}(e,t,i,s);case o.hL.Identity:return e;case o.hL.Unknown:return null}}(function(e,t,i){const s="number"==typeof t,l=s?null:t,r=l&&l.attributes;let n=s?t:null;const{isScaleDriven:u}=e.cache;let p=e.cache.compiledFunc;if(u){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case o.RY.Expression:{if(null==i||null==i.arcade)return void a.error("Use of arcade expressions requires an arcade context");const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,r=s.getViewInfo(t),o=s.createExecContext(l,r);if(!p){const t=s.createSyntaxTree(e.valueExpression);p=s.createFunction(t),e.cache.compiledFunc=p}n=s.executeFunction(p,o);break}case o.RY.Field:r&&(n=r[e.field]);break;case o.RY.Unknown:n=null}if(!(0,o.qh)(n))return null;if(s||!e.normalizationField)return n;const c=r?parseFloat(r[e.normalizationField]):null;return(0,o.qh)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==l||isNaN(l)?0:l}function h(e,t,i){return null==e?null:(0,o.iY)(e)?d(e,t,i):(0,o.qh)(e)?e:null}function y(e,t,i){return(0,o.qh)(i)&&e>i?i:(0,o.qh)(t)&&e<t?t:e}function m(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":d(r,t,i);switch(r.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,l.Bg)(r.axis)}}return s}},98046:(e,t,i)=>{i.d(t,{Z:()=>h});var s,l=i(43697),r=i(22303),n=i(22974),o=i(5600),a=i(75215),u=i(36030),p=i(52011),c=i(899);let d=s=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.d9)(this.fromColor),toColor:(0,n.d9)(this.toColor),algorithm:this.algorithm})}};(0,l._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],d.prototype,"fromColor",void 0),(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],d.prototype,"toColor",void 0),(0,l._)([(0,o.Cb)({type:["algorithmic"]})],d.prototype,"type",void 0),d=s=(0,l._)([(0,p.j)("esri.rest.support.AlgorithmicColorRamp")],d);const h=d},899:(e,t,i)=>{i.d(t,{Z:()=>a});var s=i(43697),l=i(96674),r=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let o=class extends l.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,r.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.j)("esri.rest.support.ColorRamp")],o);const a=o},1515:(e,t,i)=>{i.d(t,{Z:()=>c});var s,l=i(43697),r=i(22974),n=i(5600),o=(i(75215),i(52011)),a=i(98046),u=i(899);let p=s=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,r.d9)(this.colorRamps)})}};(0,l._)([(0,n.Cb)({type:[a.Z],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,l._)([(0,n.Cb)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,l._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],p);const c=p},94593:(e,t,i)=>{i.d(t,{V:()=>n,i:()=>o});var s=i(98046),l=i(899),r=i(1515);const n={key:"type",base:l.Z,typeMap:{algorithmic:s.Z,multipart:r.Z}};function o(e){return e&&e.type?"algorithmic"===e.type?s.Z.fromJSON(e):"multipart"===e.type?r.Z.fromJSON(e):null:null}}}]);