@arcgis/core 4.23.0-next.20220126 → 4.23.0-next.20220127

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 (247) hide show
  1. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
  4. package/assets/esri/core/workers/chunks/0317f37b6c8705b363fd.js +1 -0
  5. package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
  6. package/assets/esri/core/workers/chunks/{97ec9eef0048760fa260.js → 0d02c6ad1f4688bfa374.js} +1 -1
  7. package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
  8. package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
  9. package/assets/esri/core/workers/chunks/12c0cabb6c59e65d8546.js +1 -0
  10. package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
  11. package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
  12. package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
  13. package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
  14. package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
  15. package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
  16. package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
  17. package/assets/esri/core/workers/chunks/2c8fe9bc988c3c5760a5.js +1 -0
  18. package/assets/esri/core/workers/chunks/322d917e8cb398816a93.js +1 -0
  19. package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
  20. package/assets/esri/core/workers/chunks/{e6165e17fbb07bfc40a1.js → 391e96192d1ec4e55ce2.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{23b15e7c2f96d260e16c.js → 392b6382e06652dd4c80.js} +1 -1
  22. package/assets/esri/core/workers/chunks/3aa73119b055e05bbbeb.js +1 -0
  23. package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{438f0b5ae5c53ae4f06a.js → 4954fd86b48cc68b737c.js} +1 -1
  25. package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
  26. package/assets/esri/core/workers/chunks/52ea678ba1da0e349919.js +1 -0
  27. package/assets/esri/core/workers/chunks/56274b37ff74ca0d68a6.js +1 -0
  28. package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{5dfe1f8d520025e2118b.js → 57b349d1dbc0bed75b79.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{b2ebe4f6d100e15b512d.js → 5948923e07bd1662c24a.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{97a28641b3b2fd31bea2.js → 5bcb3240b3c005e5fe72.js} +1 -1
  32. package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
  33. package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
  34. package/assets/esri/core/workers/chunks/5ee497d5d7b0e580526a.js +1 -0
  35. package/assets/esri/core/workers/chunks/5f1dcb6556820cd0aa31.js +1 -0
  36. package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
  37. package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
  38. package/assets/esri/core/workers/chunks/6e6a3c5866e8d8820457.js +1 -0
  39. package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
  40. package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
  41. package/assets/esri/core/workers/chunks/8001b0e514bfffe9d7f8.js +1 -0
  42. package/assets/esri/core/workers/chunks/83b8fec1650e061aaa56.js +1 -0
  43. package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
  44. package/assets/esri/core/workers/chunks/842db82733635dbf25cb.js +1 -0
  45. package/assets/esri/core/workers/chunks/{434b16731c6a81f868ef.js → 85b1f36790df95b17659.js} +1 -1
  46. package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
  47. package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
  49. package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
  50. package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
  51. package/assets/esri/core/workers/chunks/{f760a3e030b0f358a92a.js → aeaa1667c2d9f1b3366b.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → b62e3dccd9f662c0afeb.js} +1 -1
  53. package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
  54. package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
  55. package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
  56. package/assets/esri/core/workers/chunks/{e4b84ca8ddfd48dd79b1.js → bac9fc90e6756e211160.js} +1 -1
  57. package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
  58. package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
  59. package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
  60. package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
  61. package/assets/esri/core/workers/chunks/{e4e2036373166c1d5cf5.js → c2253a9f29c1aabb2b75.js} +1 -1
  62. package/assets/esri/core/workers/chunks/c9cbf8135e95f0f42cd9.js +1 -0
  63. package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
  64. package/assets/esri/core/workers/chunks/d07440469fe7d181c4fd.js +1 -0
  65. package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
  66. package/assets/esri/core/workers/chunks/d835b2a683fcd8aeeed8.js +1 -0
  67. package/assets/esri/core/workers/chunks/dbf192b4ce7e608610f6.js +1 -0
  68. package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
  69. package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
  70. package/assets/esri/core/workers/chunks/{22b09e276c9b9f22f0f8.js → dee9929d95e9fe26929c.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{6f50a9647f026a8d4729.js → e0c8d61c7a85ce15499a.js} +1 -1
  72. package/assets/esri/core/workers/chunks/e12d91ef44d6f879a02a.js +1 -0
  73. package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → e4896cf85fb2da8a9cc7.js} +1 -1
  74. package/assets/esri/core/workers/chunks/e657ba0cab29f05d02da.js +1 -0
  75. package/assets/esri/core/workers/chunks/e8741bf421f80213f1d3.js +1 -0
  76. package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
  77. package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
  78. package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
  79. package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
  80. package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
  81. package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
  82. package/assets/esri/core/workers/chunks/f9ff3eaf4eb324429fbd.js +1 -0
  83. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  84. package/assets/esri/themes/base/widgets/_Weather.scss +1 -1
  85. package/assets/esri/themes/dark/main.css +1 -1
  86. package/assets/esri/themes/dark-blue/main.css +1 -1
  87. package/assets/esri/themes/dark-green/main.css +1 -1
  88. package/assets/esri/themes/dark-purple/main.css +1 -1
  89. package/assets/esri/themes/dark-red/main.css +1 -1
  90. package/assets/esri/themes/light/main.css +1 -1
  91. package/assets/esri/themes/light/view.css +1 -1
  92. package/assets/esri/themes/light-blue/main.css +1 -1
  93. package/assets/esri/themes/light-green/main.css +1 -1
  94. package/assets/esri/themes/light-purple/main.css +1 -1
  95. package/assets/esri/themes/light-red/main.css +1 -1
  96. package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
  97. package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
  98. package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
  99. package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
  100. package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
  101. package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
  102. package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
  103. package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
  104. package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
  105. package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
  106. package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
  107. package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
  108. package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
  109. package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
  110. package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
  111. package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
  112. package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
  113. package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
  114. package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
  115. package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
  116. package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
  117. package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
  118. package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
  119. package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
  120. package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
  121. package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
  122. package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
  123. package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
  124. package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
  125. package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
  126. package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
  127. package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
  128. package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
  129. package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
  130. package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
  131. package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
  132. package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
  133. package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
  134. package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
  135. package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
  136. package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
  137. package/chunks/Precipitation.glsl.js +91 -0
  138. package/chunks/vxlLayer.js +1 -1
  139. package/core/clock.js +1 -1
  140. package/core/jsonMap.js +1 -1
  141. package/core/promiseUtils.js +1 -1
  142. package/core/reactiveUtils.js +1 -1
  143. package/form/ExpressionInfo.js +1 -1
  144. package/interfaces.d.ts +28 -28
  145. package/package.json +1 -1
  146. package/rest/print.js +1 -1
  147. package/support/arcadeOnDemand.js +1 -1
  148. package/support/featureFlags.js +1 -1
  149. package/support/revision.js +1 -1
  150. package/views/2d/MapViewConstraints.js +1 -1
  151. package/views/2d/viewpointUtils.js +1 -1
  152. package/views/3d/environment/CloudsPresets.js +1 -1
  153. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  154. package/views/3d/environment/Precipitation.glsl.js +5 -0
  155. package/views/3d/environment/Precipitation.js +5 -0
  156. package/views/3d/environment/PrecipitationTechnique.js +5 -0
  157. package/views/3d/environment/RainyWeather.js +1 -1
  158. package/views/3d/environment/SnowyWeather.js +5 -0
  159. package/views/3d/environment/weather.js +1 -1
  160. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  161. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  162. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  163. package/views/3d/layers/GraphicsView3D.js +1 -1
  164. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  165. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  166. package/views/3d/support/sunUtils.js +1 -1
  167. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  168. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  169. package/views/MapView.js +1 -1
  170. package/views/View.js +1 -1
  171. package/views/input/recognizers/DoubleTapDrag.js +1 -1
  172. package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
  173. package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
  174. package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
  175. package/views/support/DefaultsFromMap.js +1 -1
  176. package/views/support/projectionUtils.js +5 -0
  177. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  178. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  179. package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
  180. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  181. package/widgets/BasemapGallery.js +1 -1
  182. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  183. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  184. package/widgets/Slice/SliceViewModel.js +1 -1
  185. package/widgets/Weather/WeatherViewModel.js +1 -1
  186. package/widgets/Weather/css.js +1 -1
  187. package/widgets/Weather/enums.js +5 -0
  188. package/widgets/Weather.js +1 -1
  189. package/widgets/support/InteractiveToolViewModel.js +1 -1
  190. package/assets/esri/core/workers/chunks/00c5bb5eecb0e89266df.js +0 -1
  191. package/assets/esri/core/workers/chunks/021a37e2b191298e80b7.js +0 -1
  192. package/assets/esri/core/workers/chunks/1370c92c40fd6271553c.js +0 -1
  193. package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
  194. package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
  195. package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
  196. package/assets/esri/core/workers/chunks/1fbcc8424452d0256bd6.js +0 -1
  197. package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
  198. package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
  199. package/assets/esri/core/workers/chunks/2792ca40f1e92849247c.js +0 -1
  200. package/assets/esri/core/workers/chunks/2a96f1bba9ce6883e5e0.js +0 -1
  201. package/assets/esri/core/workers/chunks/3231ee3e090bb4cac3fc.js +0 -1
  202. package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
  203. package/assets/esri/core/workers/chunks/36e250278b5622ccf068.js +0 -1
  204. package/assets/esri/core/workers/chunks/395ba088d4864588ff66.js +0 -1
  205. package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
  206. package/assets/esri/core/workers/chunks/3cc77692b2eee27b9c9e.js +0 -1
  207. package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
  208. package/assets/esri/core/workers/chunks/4385a268c2a64281d1c1.js +0 -1
  209. package/assets/esri/core/workers/chunks/46b4bb66a54bbd8e2e57.js +0 -1
  210. package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
  211. package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
  212. package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
  213. package/assets/esri/core/workers/chunks/5d991b74d958005c26c4.js +0 -1
  214. package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
  215. package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
  216. package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
  217. package/assets/esri/core/workers/chunks/7d661129a0d8c466eeec.js +0 -1
  218. package/assets/esri/core/workers/chunks/8070972c0efb78523b68.js +0 -1
  219. package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
  220. package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
  221. package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
  222. package/assets/esri/core/workers/chunks/98986e6601b0366376b4.js +0 -1
  223. package/assets/esri/core/workers/chunks/9cdcf9309d6feda70185.js +0 -1
  224. package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
  225. package/assets/esri/core/workers/chunks/aace7e1fef256bb961c9.js +0 -1
  226. package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
  227. package/assets/esri/core/workers/chunks/af5694b4d278cf1db2d9.js +0 -1
  228. package/assets/esri/core/workers/chunks/afbb4f802ca5774f0326.js +0 -1
  229. package/assets/esri/core/workers/chunks/b2c5f92e3d7606297ca9.js +0 -1
  230. package/assets/esri/core/workers/chunks/b8316c6469a543029bc6.js +0 -1
  231. package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
  232. package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
  233. package/assets/esri/core/workers/chunks/bf0a65b4be31959f921d.js +0 -1
  234. package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
  235. package/assets/esri/core/workers/chunks/c890c7fca27170e3341f.js +0 -1
  236. package/assets/esri/core/workers/chunks/c976785f2391c77d8a30.js +0 -1
  237. package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
  238. package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
  239. package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
  240. package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
  241. package/assets/esri/core/workers/chunks/e4f93c55eaefab4192b5.js +0 -1
  242. package/assets/esri/core/workers/chunks/ec89466f76d0ba22525e.js +0 -1
  243. package/assets/esri/core/workers/chunks/ee45618c45806ab654cb.js +0 -1
  244. package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
  245. package/assets/esri/core/workers/chunks/f4baa5ea2e42b1317941.js +0 -1
  246. package/assets/esri/core/workers/chunks/face43cf5abcd2f5bd9d.js +0 -1
  247. package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6841],{36030:(e,t,n)=>{n.d(t,{J:()=>a});var i=n(35454),l=n(5600);function a(e,t={}){var n;const a=e instanceof i.X?e:new i.X(e,t),r={type:null==(n=null==t?void 0:t.ignoreUnknown)||n?a.apiValues:String,json:{type:a.jsonValues,read:(null==t||!t.readOnly)&&{reader:a.read},write:{writer:a.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(r.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(r.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(r.json.name=t.name),(0,l.Cb)(r)}},66577:(e,t,n)=>{n.d(t,{qM:()=>c});var i=n(75215),l=n(6570),a=n(9361),r=n(65091),o=n(13473),s=n(17332),u=n(58901);n(82971),n(86973),n(33955);const c={base:a.Z,key:"type",typeMap:{extent:l.Z,multipoint:r.Z,point:o.Z,polyline:u.Z,polygon:s.Z}};(0,i.N7)(c)},33955:(e,t,n)=>{n.d(t,{im:()=>y,q9:()=>b,Ji:()=>h,YX:()=>c,aW:()=>d,wp:()=>m,oU:()=>p,l9:()=>f});var i=n(70586),l=n(6570),a=n(9361),r=n(65091),o=n(13473),s=n(17332),u=n(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function d(e){return void 0!==e.points}function m(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function p(e){return void 0!==e.rings}function y(e){return(0,i.Wi)(e)?null:e instanceof a.Z?e:m(e)?o.Z.fromJSON(e):f(e)?u.Z.fromJSON(e):p(e)?s.Z.fromJSON(e):d(e)?r.Z.fromJSON(e):c(e)?l.Z.fromJSON(e):null}function h(e){return e?m(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":p(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const v={esriGeometryPoint:o.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:s.Z,esriGeometryEnvelope:l.Z,esriGeometryMultipoint:r.Z};function b(e){return e&&v[e]||null}},86973:(e,t,n)=>{n.d(t,{Mk:()=>l,P$:()=>a});var i=n(35454);const l=(0,i.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),a=(0,i.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},35671:(e,t,n)=>{n.d(t,{io:()=>v,AB:()=>h,gd:()=>y,Mu:()=>F,Q0:()=>p,YN:()=>c,UF:()=>m,O5:()=>b,os:()=>V,H7:()=>N,qN:()=>M,Pz:()=>P,Qc:()=>O,vP:()=>U});var i,l,a=n(20102),r=n(78286);(l=i||(i={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",l.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var o=n(59266);const s=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],u=["field","normalizationField"];function c(e,t){if(null!=e&&null!=t)for(const n of Array.isArray(e)?e:[e])if(d(s,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)d(u,e,t)}function d(e,t,n){if(e)for(const i of e){const e=(0,r.hS)(i,t),l=e&&"function"!=typeof e&&n.get(e);l&&(0,r.RB)(i,l.name,t)}}function m(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const n=t.get(e.startField),i=t.get(e.endField);e.startField=n&&n.name||null,e.endField=i&&i.name||null}else{const n=t.get(e.startTimeField),i=t.get(e.endTimeField);e.startTimeField=n&&n.name||null,e.endTimeField=i&&i.name||null}}const f=new Set;function p(e,t){return e&&t?(f.clear(),y(f,e,t),Array.from(f).sort()):[]}function y(e,t,n){var i;if(n)if(null!=t&&null!=(i=t.fields)&&i.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const i of n)h(e,t,i);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)e.add(t)}}function h(e,t,n){if("string"==typeof n)if(t){const i=t.get(n);i&&e.add(i.name)}else e.add(n)}async function v(e,t,n){var i;if(!n)return;const{arcadeUtils:l}=await(0,o.LC)(),a=l.extractFieldNames(n,null==t||null==(i=t.fields)?void 0:i.map((e=>e.name)));for(const n of a)h(e,t,n)}function b({displayField:e,fields:t}){return e||(t&&t.length?g(t,"name-or-title")||g(t,"unique-identifier")||g(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function g(e,t){for(const n of e)if(n&&n.valueType&&n.valueType===t)return n.name;return null}async function F(e,t){const{labelingInfo:i,fieldsIndex:l}=t;i&&i.length&&await Promise.all(i.map((t=>async function(e,t,i){if(!i)return;const l=i.getLabelExpression(),r=i.where;if("arcade"===l.type)await v(e,t,l.expression);else{const n=l.expression.match(/{[^}]*}/g);n&&n.forEach((n=>{h(e,t,n.slice(1,-1))}))}await async function(e,t,i){if(i&&"1=1"!==i){const l=(await Promise.all([n.e(1534),n.e(5732)]).then(n.bind(n,41534))).WhereClause.create(i,t);if(!l.isStandardized)throw new a.Z("fieldUtils:collectFilterFields","Where clause is not standardized");y(e,t,l.fieldNames)}}(e,t,r)}(e,l,t))))}function V(e){const t=e.defaultValue;return void 0!==t&&z(e,t)?t:e.nullable?null:void 0}function T(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function x(e){return null===e||T(e)}const w="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function S(e){return null===e||w(e)}function _(e){return null!=e&&"string"==typeof e}function I(e){return null===e||_(e)}function C(){return!0}function z(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":n=e.nullable?S:w;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?x:T;break;case"string":case"esriFieldTypeString":n=e.nullable?I:_;break;default:n=C}return 1===arguments.length?n:n(t)}const D=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function N(e){return null!=e&&D.has(e.type)}function M(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var E,k;function P(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function O(e,t){return e.nullable&&null===t?null:N(e)&&!function(e,t){const n="string"==typeof e?A(e):e;return!!n&&(n.isInteger?w(t)&&t>=n.min&&t<=n.max:t>=n.min&&t<=n.max)}(e.type,Number(t))?E.OUT_OF_RANGE:z(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const n="range"in e?e.range[0]:e.minValue,l="range"in e?e.range[1]:e.maxValue;if(+t<n||+t>l)return i.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return i.INVALID_CODED_VALUE}return null}(e.domain,t):null:k.INVALID_TYPE}function A(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return G;case"esriFieldTypeInteger":case"integer":return Z;case"esriFieldTypeSingle":case"single":return L;case"esriFieldTypeDouble":case"double":return q}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(E||(E={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(k||(k={}));const G={min:-32768,max:32767,isInteger:!0},Z={min:-2147483648,max:2147483647,isInteger:!0},L={min:-34e37,max:12e37,isInteger:!1},q={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function U(e,t,n){switch(e){case i.INVALID_CODED_VALUE:return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case i.VALUE_OUT_OF_RANGE:return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case k.INVALID_TYPE:return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case E.OUT_OF_RANGE:{const{min:e,max:i}=A(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${i}`}}}},98046:(e,t,n)=>{n.d(t,{Z:()=>f});var i,l=n(43697),a=n(22303),r=n(22974),o=n(5600),s=n(75215),u=n(36030),c=n(52011),d=n(899);let m=i=class extends d.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new i({fromColor:(0,r.d9)(this.fromColor),toColor:(0,r.d9)(this.toColor),algorithm:this.algorithm})}};(0,l._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],m.prototype,"algorithm",void 0),(0,l._)([(0,o.Cb)({type:a.Z,json:{type:[s.z8],write:!0}})],m.prototype,"fromColor",void 0),(0,l._)([(0,o.Cb)({type:a.Z,json:{type:[s.z8],write:!0}})],m.prototype,"toColor",void 0),(0,l._)([(0,o.Cb)({type:["algorithmic"]})],m.prototype,"type",void 0),m=i=(0,l._)([(0,c.j)("esri.rest.support.AlgorithmicColorRamp")],m);const f=m},57316:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(43697),l=n(35454),a=n(5600),r=(n(67676),n(80442),n(75215),n(52011)),o=n(96674),s=n(94593),u=n(89164);const c=new l.X({classBreaksDef:"class-breaks-definition",uniqueValueDef:"unique-value-definition"});let d=class extends o.wq{constructor(){super(...arguments),this.baseSymbol=null,this.colorRamp=null,this.type=null}};(0,i._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],d.prototype,"baseSymbol",void 0),(0,i._)([(0,a.Cb)({types:s.V,json:{read:{reader:s.i},write:!0}})],d.prototype,"colorRamp",void 0),(0,i._)([(0,a.Cb)({json:{read:c.read,write:c.write}})],d.prototype,"type",void 0),d=(0,i._)([(0,r.j)("esri.rest.support.ClassificationDefinition")],d);const m=d,f=new l.X({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),p=new l.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let y=class extends m{constructor(){super(...arguments),this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null,this.type="class-breaks-definition"}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"breakCount",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"classificationField",void 0),(0,i._)([(0,a.Cb)({type:String,json:{read:f.read,write:f.write}})],y.prototype,"classificationMethod",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,i._)([(0,a.Cb)({json:{read:p.read,write:p.write}})],y.prototype,"normalizationType",void 0),(0,i._)([(0,a.Cb)({value:null,json:{write:!0}})],y.prototype,"standardDeviationInterval",null),(0,i._)([(0,a.Cb)({value:null,json:{write:!0}})],y.prototype,"definedInterval",null),(0,i._)([(0,a.Cb)()],y.prototype,"type",void 0),y=(0,i._)([(0,r.j)("esri.rest.support.ClassBreaksDefinition")],y);const h=y},899:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(43697),l=n(96674),a=n(5600),r=(n(67676),n(80442),n(75215),n(52011));let o=class extends l.wq{constructor(e){super(e),this.type=null}};(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,i._)([(0,r.j)("esri.rest.support.ColorRamp")],o);const s=o},1515:(e,t,n)=>{n.d(t,{Z:()=>d});var i,l=n(43697),a=n(22974),r=n(5600),o=(n(75215),n(52011)),s=n(98046),u=n(899);let c=i=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new i({colorRamps:(0,a.d9)(this.colorRamps)})}};(0,l._)([(0,r.Cb)({type:[s.Z],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,l._)([(0,r.Cb)({type:["multipart"]})],c.prototype,"type",void 0),c=i=(0,l._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],c);const d=c},94593:(e,t,n)=>{n.d(t,{i:()=>o,V:()=>r});var i=n(98046),l=n(899),a=n(1515);const r={key:"type",base:l.Z,typeMap:{algorithmic:i.Z,multipart:a.Z}};function o(e){return e&&e.type?"algorithmic"===e.type?i.Z.fromJSON(e):"multipart"===e.type?a.Z.fromJSON(e):null:null}},36841:(e,t,n)=>{n.r(t),n.d(t,{classBreaks:()=>c,histogram:()=>d,summaryStatistics:()=>s,uniqueValues:()=>u}),n(20102);var i=n(82971),l=(n(35671),n(8418)),a=n(59266);let r=null;async function o(e,t){if(!t)return[];const n=e.field,o=e.valueExpression,s=e.normalizationType,u=e.normalizationField,c=e.normalizationTotal,d=[],m=e.viewInfoParams;let f=null,p=null;if(o){if(!r){const{arcadeUtils:e}=await(0,a.LC)();r=e}f=r.createFunction(o),p=m&&r.getViewInfo({viewingMode:m.viewingMode,scale:m.scale,spatialReference:new i.Z(m.spatialReference)})}return t.forEach((e=>{const t=e.attributes;let i;if(o){const t=r.createExecContext(e,p);i=r.executeFunction(f,t)}else t&&(i=t[n]);if(s&&isFinite(i)){const e=t&&parseFloat(t[u]);i=(0,l.fk)(i,s,e,c)}d.push(i)})),d}async function s(e){const{attribute:t,features:n}=e,{normalizationType:i,normalizationField:a,minValue:r,maxValue:s,fieldType:u}=t,c=await o({field:t.field,valueExpression:t.valueExpression,normalizationType:i,normalizationField:a,normalizationTotal:t.normalizationTotal,viewInfoParams:t.viewInfoParams},n),d=(0,l.S5)({normalizationType:i,normalizationField:a,minValue:r,maxValue:s}),m={value:.5,fieldType:u},f="esriFieldTypeString"===u?(0,l.H0)({values:c,supportsNullCount:d,percentileParams:m}):(0,l.i5)({values:c,minValue:r,maxValue:s,useSampleStdDev:!i,supportsNullCount:d,percentileParams:m});return(0,l.F_)(f,"esriFieldTypeDate"===u)}async function u(e){const{attribute:t,features:n}=e,i=await o({field:t.field,valueExpression:t.valueExpression,viewInfoParams:t.viewInfoParams},n),a=(0,l.eT)(i);return(0,l.Qm)(a,t.domain,t.returnAllCodedValues)}async function c(e){const{attribute:t,features:n}=e,{field:i,normalizationType:a,normalizationField:r,normalizationTotal:s,classificationMethod:u}=t,c=await o({field:i,valueExpression:t.valueExpression,normalizationType:a,normalizationField:r,normalizationTotal:s,viewInfoParams:t.viewInfoParams},n),d=(0,l.G2)(c,{field:i,normalizationType:a,normalizationField:r,normalizationTotal:s,classificationMethod:u,standardDeviationInterval:t.standardDeviationInterval,numClasses:t.numClasses,minValue:t.minValue,maxValue:t.maxValue});return(0,l.DL)(d,u)}async function d(e){const{attribute:t,features:n}=e,{field:i,normalizationType:a,normalizationField:r,normalizationTotal:s,classificationMethod:u}=t,c=await o({field:i,valueExpression:t.valueExpression,normalizationType:a,normalizationField:r,normalizationTotal:s,viewInfoParams:t.viewInfoParams},n);return(0,l.oF)(c,{field:i,normalizationType:a,normalizationField:r,normalizationTotal:s,classificationMethod:u,standardDeviationInterval:t.standardDeviationInterval,numBins:t.numBins,minValue:t.minValue,maxValue:t.maxValue})}},8418:(e,t,n)=>{n.d(t,{G2:()=>w,oF:()=>_,XL:()=>h,i5:()=>y,H0:()=>p,eT:()=>V,Qm:()=>T,Lq:()=>v,fk:()=>x,S5:()=>f,F_:()=>F,DL:()=>S});var i=n(57316);function l(e,t){return Number(e.toFixed(t))}function a(e){const t=e.definition,{classificationMethod:n,breakCount:i,normalizationType:a,definedInterval:s}=t,u=[];let c=e.values;if(0===c.length)return[];c=c.sort(((e,t)=>e-t));const d=c[0],m=c[c.length-1];if("equal-interval"===n)if(c.length>=i){const e=(m-d)/i;let t=d;for(let n=1;n<i;n++){const i=l(d+n*e,6);u.push({minValue:t,maxValue:i,label:r(t,i,a)}),t=i}u.push({minValue:t,maxValue:m,label:r(t,m,a)})}else c.forEach((e=>{u.push({minValue:e,maxValue:e,label:r(e,e,a)})}));else if("natural-breaks"===n){const t=function(e){const t=[],n=[];let i=Number.MIN_VALUE,l=1,a=-1;for(let r=0;r<e.length;r++){const o=e[r];o===i?(l++,n[a]=l):null!==o&&(t.push(o),i=o,l=1,n.push(l),a++)}return{uniqueValues:t,valueFrequency:n}}(c),n=e.valueFrequency||t.valueFrequency,s=o(t.uniqueValues,n,i);let f=d;for(let e=1;e<i;e++)if(t.uniqueValues.length>e){const n=l(t.uniqueValues[s[e]],6);u.push({minValue:f,maxValue:n,label:r(f,n,a)}),f=n}u.push({minValue:f,maxValue:m,label:r(f,m,a)})}else if("quantile"===n)if(c.length>=i&&d!==m){let e=d,t=Math.ceil(c.length/i),n=0;for(let l=1;l<i;l++){let o=t+n-1;o>c.length&&(o=c.length-1),o<0&&(o=0),u.push({minValue:e,maxValue:c[o],label:r(e,c[o],a)}),e=c[o],n+=t,t=Math.ceil((c.length-n)/(i-l))}u.push({minValue:e,maxValue:m,label:r(e,m,a)})}else{let e=-1;for(let t=0;t<c.length;t++){const n=c[t];n!==e&&(e=n,u.push({minValue:e,maxValue:n,label:r(e,n,a)}),e=n)}}else if("standard-deviation"===n){const e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(c),t=function(e,t){let n=0;for(let i=0;i<e.length;i++){const l=e[i];n+=(l-t)*(l-t)}return n/=e.length,Math.sqrt(n)}(c,e);if(0===t)u.push({minValue:c[0],maxValue:c[0],label:r(c[0],c[0],a)});else{const n=function(e,t,n,i,l){let a=Math.max(i-e,t-i)/l/n;return a=a>=1?1:a>=.5?.5:.25,a}(d,m,i,e,t)*t;let o=0,s=d;for(let t=i;t>=1;t--){const i=l(e-(t-.5)*n,6);u.push({minValue:s,maxValue:i,label:r(s,i,a)}),s=i,o++}let c=l(e+.5*n,6);u.push({minValue:s,maxValue:c,label:r(s,c,a)}),s=c,o++;for(let t=1;t<=i;t++)c=o===2*i?m:l(e+(t+.5)*n,6),u.push({minValue:s,maxValue:c,label:r(s,c,a)}),s=c,o++}}else if("defined-interval"===n){if(!s)return u;const e=c[0],t=c[c.length-1],n=Math.ceil((t-e)/s);let i=e;for(let t=1;t<n;t++){const n=l(e+t*s,6);u.push({minValue:i,maxValue:n,label:r(i,n,a)}),i=n}u.push({minValue:i,maxValue:t,label:r(i,t,a)})}return u}function r(e,t,n){let i=null;return i=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,i}function o(e,t,n){const i=e.length,l=[];n>i&&(n=i);for(let e=0;e<n;e++)l.push(Math.round(e*i/n-1));l.push(i-1);let a=s(l,e,t,n);return function(e,t,n,i,l,a){let r=0,o=0,s=0,c=0,d=!0;for(let m=0;m<2&&d;m++){0===m&&(d=!1);for(let m=0;m<a-1;m++)for(;n[m+1]+1!==n[m+2];){n[m+1]=n[m+1]+1;const a=u(m,n,i,l);s=a.sbMean,r=a.sbSdcm;const f=u(m+1,n,i,l);if(c=f.sbMean,o=f.sbSdcm,!(r+o<t[m]+t[m+1])){n[m+1]=n[m+1]-1;break}t[m]=r,t[m+1]=o,e[m]=s,e[m+1]=c,d=!0}for(let m=a-1;m>0;m--)for(;n[m]!==n[m-1]+1;){n[m]=n[m]-1;const a=u(m-1,n,i,l);s=a.sbMean,r=a.sbSdcm;const f=u(m,n,i,l);if(c=f.sbMean,o=f.sbSdcm,!(r+o<t[m-1]+t[m])){n[m]=n[m]+1;break}t[m-1]=r,t[m]=o,e[m-1]=s,e[m]=c,d=!0}}return d}(a.mean,a.sdcm,l,e,t,n)&&(a=s(l,e,t,n)),l}function s(e,t,n,i){let l=[],a=[],r=[],o=0;const s=[],c=[];for(let l=0;l<i;l++){const i=u(l,e,t,n);s.push(i.sbMean),c.push(i.sbSdcm),o+=c[l]}let d,m=o,f=!0;for(;f||o<m;){f=!1,l=[];for(let t=0;t<i;t++)l.push(e[t]);for(let n=0;n<i;n++)for(let l=e[n]+1;l<=e[n+1];l++)if(d=t[l],n>0&&l!==e[n+1]&&Math.abs(d-s[n])>Math.abs(d-s[n-1]))e[n]=l;else if(n<i-1&&e[n]!==l-1&&Math.abs(d-s[n])>Math.abs(d-s[n+1])){e[n+1]=l-1;break}m=o,o=0,a=[],r=[];for(let l=0;l<i;l++){a.push(s[l]),r.push(c[l]);const i=u(l,e,t,n);s[l]=i.sbMean,c[l]=i.sbSdcm,o+=c[l]}}if(o>m){for(let t=0;t<i;t++)e[t]=l[t],s[t]=a[t],c[t]=r[t];o=m}return{mean:s,sdcm:c}}function u(e,t,n,i){let l=0,a=0;for(let r=t[e]+1;r<=t[e+1];r++){const e=i[r];l+=n[r]*e,a+=e}a<=0&&console.log("Exception in Natural Breaks calculation");const r=l/a;let o=0;for(let l=t[e]+1;l<=t[e+1];l++)o+=i[l]*(n[l]-r)**2;return{sbMean:r,sbSdcm:o}}const c=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,d=new Set(["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]),m=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function f(e){const t=null!=e.normalizationField||null!=e.normalizationType,n=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!n&&!i}function p(e){const t=e.returnDistinct?[...new Set(e.values)]:e.values,n=t.filter((e=>null!=e)).length,i={count:n};return e.supportsNullCount&&(i.nullcount=t.length-n),e.percentileParams&&(i.median=h(t,e.percentileParams)),i}function y(e){const{values:t,useSampleStdDev:n,supportsNullCount:i}=e;let l=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,r=null,o=null,s=null,u=null,c=0;const d=null==e.minValue?-1/0:e.minValue,m=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=d&&e<=m&&(r+=e,l=Math.min(l,e),a=Math.max(a,e),c++):"string"==typeof e&&c++;if(c&&null!=r){o=r/c;let e=0;for(const n of t)Number.isFinite(n)&&n>=d&&n<=m&&(e+=(n-o)**2);u=n?c>1?e/(c-1):0:c>0?e/c:0,s=Math.sqrt(u)}else l=null,a=null;const f={avg:o,count:c,max:a,min:l,stddev:s,sum:r,variance:u};return i&&(f.nullcount=t.length-c),e.percentileParams&&(f.median=h(t,e.percentileParams)),f}function h(e,t){const{fieldType:n,value:i,orderBy:l,isDiscrete:a}=t,r=v(n,"desc"===l);if(0===(e=[...e].filter((e=>null!=e)).sort(((e,t)=>r(e,t)))).length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];const o=(e.length-1)*i,s=Math.floor(o),u=s+1,c=o%1,d=e[s],m=e[u];return u>=e.length||a||"string"==typeof d||"string"==typeof m?d:d*(1-c)+m*c}function v(e,t){const n=t?1:-1,i=function(e){return e?(e,t)=>t-e:(e,t)=>e-t}(t),l=b(t);if(!e||!["esriFieldTypeDate","esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...d].includes(e))return(e,t)=>"number"==typeof e&&"number"==typeof t?i(e,t):"string"==typeof e&&"string"==typeof t?l(e,t):n;if("esriFieldTypeDate"===e)return(e,t)=>{const l=new Date(e).getTime(),a=new Date(t).getTime();return isNaN(l)||isNaN(a)?n:i(l,a)};if(d.has(e))return(e,t)=>i(e,t);if("esriFieldTypeString"===e)return(e,t)=>l(e,t);if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e){const e=b(t);return(t,n)=>e(g(t),g(n))}return t?(e,t)=>1:(e,t)=>-1}function b(e){return e?(e,t)=>(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0:(e,t)=>(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function g(e){return e.substr(24,12)+e.substr(19,4)+e.substr(16,2)+e.substr(14,2)+e.substr(11,2)+e.substr(9,2)+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)+e.substr(0,2)}function F(e,t){let n;for(n in e)m.indexOf(n)>-1&&(Number.isFinite(e[n])||(e[n]=null));return t?(["avg","stddev","variance"].forEach((t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]))})),e):e}function V(e){const t={};for(let n of e)(null==n||"string"==typeof n&&""===n.trim())&&(n=null),null==t[n]?t[n]={count:1,data:n}:t[n].count++;return{count:t}}function T(e,t,n){const i=e.count,l=[];n&&t&&"coded-value"===t.type&&t.codedValues.forEach((e=>{const t=e.code;i.hasOwnProperty(t)||(i[t]={data:t,count:0})}));for(const e in i){const t=i[e];l.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:l}}function x(e,t,n,i){let l=null;switch(t){case"log":0!==e&&(l=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(l=e/i*100);break;case"field":Number.isFinite(n)&&0!==n&&(l=e/n);break;case"natural-log":e>0&&(l=Math.log(e));break;case"square-root":e>0&&(l=e**.5)}return l}function w(e,t){const n=function(e){const t=e.field,n=e.classificationMethod||"equal-interval",l=e.normalizationType,a=e.normalizationField,r=new i.Z;return r.classificationField=t,r.breakCount=e.breakCount,r.classificationMethod=n,r.standardDeviationInterval="standard-deviation"===n?e.standardDeviationInterval||1:void 0,r.normalizationType=l,r.normalizationField="field"===l?a:void 0,r}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,breakCount:t.numClasses||5});return e=function(e,t,n){return t=null==t?-1/0:t,n=null==n?1/0:n,e.filter((e=>Number.isFinite(e)&&e>=t&&e<=n))}(e,t.minValue,t.maxValue),function(e){const{normalizationTotal:t}=e;return{classBreaks:a(e),normalizationTotal:t}}({definition:n,values:e,normalizationTotal:t.normalizationTotal})}function S(e,t){let n=e.classBreaks;const i=n.length,l=n[0].minValue,a=n[i-1].maxValue,r="standard-deviation"===t,o=c;return n=n.map((e=>{const t=e.label,n={minValue:e.minValue,maxValue:e.maxValue,label:t};if(r&&t){const e=t.match(o).map((e=>+e.trim()));2===e.length?(n.minStdDev=e[0],n.maxStdDev=e[1],e[0]<0&&e[1]>0&&(n.hasAvg=!0)):1===e.length&&(t.includes("<")?(n.minStdDev=null,n.maxStdDev=e[0]):t.includes(">")&&(n.minStdDev=e[0],n.maxStdDev=null))}return n})),{minValue:l,maxValue:a,classBreakInfos:n,normalizationTotal:e.normalizationTotal}}function _(e,t){const{min:n,max:i,intervals:l}=function(e,t){const{field:n,classificationMethod:i,standardDeviationInterval:l,normalizationType:a,normalizationField:r,normalizationTotal:o,minValue:s,maxValue:u}=t,c=t.numBins||10;let d=null,m=null,p=null;if(i&&"equal-interval"!==i||a){const{classBreaks:t}=w(e,{field:n,normalizationType:a,normalizationField:r,normalizationTotal:o,classificationMethod:i,standardDeviationInterval:l,minValue:s,maxValue:u,numClasses:c});d=t[0].minValue,m=t[t.length-1].maxValue,p=t.map((e=>[e.minValue,e.maxValue]))}else{if(null!=s&&null!=u)d=s,m=u;else{const t=y({values:e,minValue:s,maxValue:u,useSampleStdDev:!a,supportsNullCount:f({normalizationType:a,normalizationField:r,minValue:s,maxValue:u})});d=t.min,m=t.max}p=function(e,t,n){const i=(t-e)/n,l=[];let a,r=e;for(let e=1;e<=n;e++)a=r+i,a=Number(a.toFixed(16)),l.push([r,e===n?t:a]),r=a;return l}(d,m,c)}return{min:d,max:m,intervals:p}}(e,t),a=l.map(((e,t)=>({minValue:l[t][0],maxValue:l[t][1],count:0})));for(const t of e)if(null!=t&&t>=n&&t<=i){const e=I(l,t);e>-1&&a[e].count++}return{bins:a,minValue:n,maxValue:i,normalizationTotal:t.normalizationTotal}}function I(e,t){let n=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){n=i;break}return n}},59266:(e,t,n)=>{n.d(t,{mz:()=>c,pp:()=>u,WW:()=>o,Yi:()=>s,LC:()=>r}),n(66577);var i=n(70586),l=n(82971);let a;function r(){return a||(a=(async()=>{const e=await Promise.all([n.e(9490),n.e(6690)]).then(n.bind(n,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),a}const o=(e,t,n)=>c.create(e,t,n,null,["$feature"]),s=(e,t,n)=>c.create(e,t,n,null,["$feature","$view"]),u=(e,t,n,i)=>c.create(e,t,n,i,["$feature","$view"]);class c{constructor(e,t,n,i,l,a,r,o){this.script=e,this.evaluate=l;const s=Array.isArray(r)?r:r.fields;this.fields=s,this._syntaxTree=i,this._arcade=t,this._arcadeDictionary=n,this._arcadeFeature=a,this._spatialReference=o,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,n,a,o,s){const{arcade:u,Feature:d,Dictionary:m}=await r(),f=l.Z.fromJSON(t),p=u.parseScript(e,s),y=o.reduce(((e,t)=>({...e,[t]:null})),{});let h=null;(0,i.pC)(a)&&(h=new m(a),h.immutable=!0,y.$config=null);const v=u.scriptUsesGeometryEngine(p)&&u.enableGeometrySupport(),b=u.scriptUsesFeatureSet(p)&&u.enableFeatureSetSupport(),g=u.scriptIsAsync(p)&&u.enableAsyncSupport(),F={vars:y,spatialReference:f,useAsync:!!g},V=new m;V.immutable=!1,V.setField("scale",0);const T=u.compileScript(p,F);return await Promise.all([v,b,g]),new c(e,u,m,p,(e=>("$view"in e&&e.$view&&(V.setField("scale",e.$view.scale),e.$view=V),h&&(e.$config=h),T({vars:e,spatialReference:f}))),new d,n,f)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},89164:(e,t,n)=>{n.d(t,{Z:()=>f});var i=n(43697),l=n(22303),a=n(35454),r=n(96674),o=n(5600),s=(n(67676),n(80442),n(75215),n(71715)),u=n(52011);const c=new a.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let d=0,m=class extends r.wq{constructor(e){super(e),this.id="sym"+d++,this.type=null,this.color=new l.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i._)([(0,o.Cb)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write}}})],m.prototype,"type",void 0),(0,i._)([(0,o.Cb)({type:l.Z,json:{write:{allowNull:!0}}})],m.prototype,"color",void 0),(0,i._)([(0,s.r)("color")],m.prototype,"readColor",null),m=(0,i._)([(0,u.j)("esri.symbols.Symbol")],m);const f=m}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1773],{51773:(t,e,o)=>{o.d(e,{Z:()=>$});var i=o(43697),r=o(80539),s=o(96674),n=o(22974),a=o(92604),l=o(95330),p=o(5600),d=o(90578),h=o(71715),c=o(52011),y=o(30556),u=o(75215),m=o(35671),f=o(84649),g=o(63801),v=o(48074),_=o(38745),b=o(9190),w=o(10214),x=o(44951);const C={base:null,key:"type",typeMap:{attachment:f.Z,media:w.Z,text:x.Z,expression:_.Z,field:b.Z}};var I,j=o(11223),F=o(422);o(67676),o(80442);let T=I=class extends s.wq{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new I({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],T.prototype,"returnTopmostRaster",void 0),(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],T.prototype,"showNoDataRecords",void 0),T=I=(0,i._)([(0,c.j)("esri.popup.LayerOptions")],T);const S=T;var Z,N=o(44729);let O=Z=class extends s.wq{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new Z({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,n.d9)(this.orderByFields):null})}};(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],O.prototype,"showRelatedRecords",void 0),(0,i._)([(0,p.Cb)({type:[N.Z],json:{write:!0}})],O.prototype,"orderByFields",void 0),O=Z=(0,i._)([(0,c.j)("esri.popup.RelatedRecordsInfo")],O);const M=O;var A,L=o(79742),D=o(15923),E=o(10699);let R=A=class extends((0,E.I)(D.Z)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new A({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,i._)([(0,p.Cb)()],R.prototype,"active",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"className",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"disabled",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"id",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"indicator",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"title",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"type",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"visible",void 0),R=A=(0,i._)([(0,c.j)("esri.support.actions.ActionBase")],R);const Y=R;var J;let B=J=class extends Y{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new J({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,i._)([(0,p.Cb)()],B.prototype,"image",void 0),B=J=(0,i._)([(0,c.j)("esri.support.Action.ActionButton")],B);const k=B;var q;let U=q=class extends Y{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new q({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,i._)([(0,p.Cb)()],U.prototype,"image",void 0),(0,i._)([(0,p.Cb)()],U.prototype,"value",void 0),U=q=(0,i._)([(0,c.j)("esri.support.Action.ActionToggle")],U);const V=U;var P;const z=r.Z.ofType({key:"type",defaultKeyValue:"button",base:Y,typeMap:{button:k,toggle:V}}),K={base:g.Z,key:"type",typeMap:{media:w.Z,custom:v.Z,text:x.Z,attachments:f.Z,fields:b.Z,expression:_.Z}},G="esri.PopupTemplate",W=a.Z.getLogger(G),H=["attachments","fields","media","text","expression"];let X=P=class extends s.wq{constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title="",this.relatedRecordsInfo=null}castContent(t){return Array.isArray(t)?t.map((t=>(0,u.N7)(K,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,l.y8)(t)?t:(W.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e):this._readPopupInfo(e)}writeContent(t,e,o,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>-1!==H.indexOf(t.type))).map((t=>t&&t.toJSON(i))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type&&this._writeTextContent(t,e)}))):e.description=t}writeFieldInfos(t,e,o,i){const{content:r}=this,s=Array.isArray(r)?r:null;if(t){const o=s?s.filter((t=>"fields"===t.type)):[],r=o.length&&o.every((t=>{var e;return null==(e=t.fieldInfos)?void 0:e.length}));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(i);return r&&(e.visible=!1),e}))}if(s)for(const t of s)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}clone(){const{actions:t}=this,e=t?(0,n.d9)(t.toArray()):[];return new P({actions:e,content:Array.isArray(this.content)?(0,n.d9)(this.content):this.content,expressionInfos:Array.isArray(this.expressionInfos)?(0,n.d9)(this.expressionInfos):null,fieldInfos:Array.isArray(this.fieldInfos)?(0,n.d9)(this.fieldInfos):null,layerOptions:this.layerOptions?(0,n.d9)(this.layerOptions):null,lastEditInfoEnabled:this.lastEditInfoEnabled,outFields:Array.isArray(this.outFields)?(0,n.d9)(this.outFields):null,overwriteActions:this.overwriteActions,returnGeometry:this.returnGeometry,title:this.title,relatedRecordsInfo:this.relatedRecordsInfo?(0,n.d9)(this.relatedRecordsInfo):null})}async collectRequiredFields(t,e){await this._collectExpressionInfoFields(t,e,this._getContentExpressionInfos(this.content,this.expressionInfos)),(0,m.gd)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const o=(0,n.d9)(t.fieldInfos);Array.isArray(e.fieldInfos)?o.forEach((t=>{const o=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));o?o.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=o}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,n.d9)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements({description:t,mediaInfos:e,popupElements:o}){const i={description:!1,mediaInfos:!1};return o.map((o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),w.Z.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),x.Z.fromJSON(o)):"attachments"===o.type?f.Z.fromJSON(o):"fields"===o.type?b.Z.fromJSON(o):"expression"===o.type?_.Z.fromJSON(o):void 0)).filter(Boolean)}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o}){const i=[];return t?i.push(new x.Z({text:t})):i.push(new b.Z),Array.isArray(e)&&e.length&&i.push(w.Z.fromJSON({mediaInfos:e})),o&&i.push(f.Z.fromJSON({displayType:"auto"})),i.length?i:t}_getContentElementFields(t){const e=null==t?void 0:t.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos||this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,r=i||{},{fields:s=[],normalizeField:n,tooltipField:a,sourceURL:l,linkURL:p}=r,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(p),...s];return n&&d.push(n),a&&d.push(a),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e||[]):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,o){o&&await Promise.all(o.map((o=>(0,m.io)(t,e,o.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>-1===t.indexOf("relationships/")&&-1===t.indexOf("expression/"))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=t.match(/{[^}]*}/g);if(!e)return[];const o=/\{(\w+):.+\}/,i=e.filter((t=>!(0===t.indexOf("{relationships/")||0===t.indexOf("{expression/")))).map((t=>t.replace(o,"{$1}")));return i?i.map((t=>t.slice(1,-1))):[]}};(0,i._)([(0,p.Cb)({type:z})],X.prototype,"actions",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"content",void 0),(0,i._)([(0,d.p)("content")],X.prototype,"castContent",null),(0,i._)([(0,h.r)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments"])],X.prototype,"readContent",null),(0,i._)([(0,y.c)("content",{popupElements:{type:r.Z.ofType(C)},showAttachments:{type:Boolean},mediaInfos:{type:r.Z.ofType(L.V)},description:{type:String}})],X.prototype,"writeContent",null),(0,i._)([(0,p.Cb)({type:[j.Z],json:{write:!0}})],X.prototype,"expressionInfos",void 0),(0,i._)([(0,p.Cb)({type:[F.Z]})],X.prototype,"fieldInfos",void 0),(0,i._)([(0,y.c)("fieldInfos")],X.prototype,"writeFieldInfos",null),(0,i._)([(0,p.Cb)({type:S})],X.prototype,"layerOptions",void 0),(0,i._)([(0,y.c)("layerOptions")],X.prototype,"writeLayerOptions",null),(0,i._)([(0,p.Cb)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],X.prototype,"lastEditInfoEnabled",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"outFields",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"overwriteActions",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"returnGeometry",void 0),(0,i._)([(0,p.Cb)({json:{type:String}})],X.prototype,"title",void 0),(0,i._)([(0,y.c)("title")],X.prototype,"writeTitle",null),(0,i._)([(0,p.Cb)({type:M,json:{write:!0}})],X.prototype,"relatedRecordsInfo",void 0),X=P=(0,i._)([(0,c.j)(G)],X);const $=X},90344:(t,e,o)=>{o.d(e,{Ze:()=>f,p6:()=>g});var i=o(35454),r=o(70171);const s={year:"numeric",month:"numeric",day:"numeric"},n={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},d={...p,second:"numeric"},h={"short-date":s,"short-date-short-time":{...s,...p},"short-date-short-time-24":{...s,...p,hour12:!1},"short-date-long-time":{...s,...d},"short-date-long-time-24":{...s,...d,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...p},"short-date-le-short-time-24":{...s,...p,hour12:!1},"short-date-le-long-time":{...s,...d},"short-date-le-long-time-24":{...s,...d,hour12:!1},"long-month-day-year":n,"long-month-day-year-short-time":{...n,...p},"long-month-day-year-short-time-24":{...n,...p,hour12:!1},"long-month-day-year-long-time":{...n,...d},"long-month-day-year-long-time-24":{...n,...d,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...p},"day-short-month-year-short-time-24":{...a,...p,hour12:!1},"day-short-month-year-long-time":{...a,...d},"day-short-month-year-long-time-24":{...a,...d,hour12:!1},"long-date":l,"long-date-short-time":{...l,...p},"long-date-short-time-24":{...l,...p,hour12:!1},"long-date-long-time":{...l,...d},"long-date-long-time-24":{...l,...d,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":d},c=(0,i.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),y=(c.apiValues,c.toJSON.bind(c),c.fromJSON.bind(c),{ar:"ar-u-nu-latn-ca-gregory"});let u=new WeakMap,m=h["short-date-short-time"];function f(t){return h[t]||null}function g(t,e){return function(t){const e=t||m;if(!u.has(e)){const t=(0,r.Kd)(),o=y[(0,r.Kd)()]||t;u.set(e,new Intl.DateTimeFormat(o,e))}return u.get(e)}(e).format(t)}(0,r.Ze)((()=>{u=new WeakMap,m=h["short-date-short-time"]}))},18848:(t,e,o)=>{o.d(e,{sh:()=>l,uf:()=>p});var i=o(70586),r=o(70171);const s={ar:"ar-u-nu-latn"};let n=new WeakMap,a={};function l(t={}){const e={};return null!=t.digitSeparator&&(e.useGrouping=t.digitSeparator),null!=t.places&&(e.minimumFractionDigits=e.maximumFractionDigits=t.places),e}function p(t,e){return function(t){const e=t||a;if(!n.has(e)){const o=(0,r.Kd)(),i=s[(0,r.Kd)()]||o;n.set(e,new Intl.NumberFormat(i,t))}return(0,i.j0)(n.get(e))}(e).format(t)}(0,r.Ze)((()=>{n=new WeakMap,a={}}))},11223:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(96674),n=o(5600),a=(o(67676),o(80442),o(75215),o(52011));let l=i=class extends s.wq{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r._)([(0,n.Cb)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r._)([(0,a.j)("esri.popup.ExpressionInfo")],l);const p=l},422:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(35454),n=o(96674),a=o(22974),l=o(5600),p=(o(75215),o(36030)),d=o(52011),h=o(63061);let c=i=class extends n.wq{constructor(t){super(t),this.fieldName=null,this.format=null,this.isEditable=!1,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new i({fieldName:this.fieldName,format:this.format?(0,a.d9)(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,r._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],c.prototype,"format",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0,default:!1}})],c.prototype,"isEditable",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,p.J)(new s.X({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,r._)([(0,l.Cb)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=i=(0,r._)([(0,d.j)("esri.popup.FieldInfo")],c);const y=c},84649:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(63801);let l=i=class extends a.Z{constructor(t){super(t),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new i({description:this.description,displayType:this.displayType,title:this.title})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:["auto","preview","list"],json:{write:!0}})],l.prototype,"displayType",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.content.AttachmentsContent")],l);const p=l},41463:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="bar-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.BarChartMediaInfo")],p);const d=p},87131:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="column-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.ColumnChartMediaInfo")],p);const d=p},63801:(t,e,o)=>{o.d(e,{Z:()=>l});var i=o(43697),r=o(96674),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011));let a=class extends r.wq{constructor(t){super(t),this.type=null}};(0,i._)([(0,s.Cb)({type:["attachments","custom","fields","media","text","expression"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,n.j)("esri.popup.content.Content")],a);const l=a},48074:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(52011)),l=o(63801);let p=i=class extends l.Z{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,s.d9)(this.outFields):null})}};(0,r._)([(0,n.Cb)()],p.prototype,"creator",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"destroyer",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"outFields",void 0),(0,r._)([(0,n.Cb)({type:["custom"],readOnly:!0})],p.prototype,"type",void 0),p=i=(0,r._)([(0,a.j)("esri.popup.content.CustomContent")],p);const d=p},38745:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(96674);let l=i=class extends a.wq{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new i({title:this.title,expression:this.expression})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r._)([(0,s.Cb)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.ElementExpressionInfo")],l);const p=l;var d,h=o(63801);let c=d=class extends h.Z{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){var t;return new d({expressionInfo:null==(t=this.expressionInfo)?void 0:t.clone()})}};(0,r._)([(0,s.Cb)({type:p,json:{write:!0}})],c.prototype,"expressionInfo",void 0),(0,r._)([(0,s.Cb)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),c=d=(0,r._)([(0,n.j)("esri.popup.content.ExpressionContent")],c);const y=c},9190:(t,e,o)=>{o.d(e,{Z:()=>c});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(52011)),l=o(30556),p=o(422),d=o(63801);let h=i=class extends d.Z{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new i((0,s.d9)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],h.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:[p.Z]})],h.prototype,"fieldInfos",void 0),(0,r._)([(0,l.c)("fieldInfos")],h.prototype,"writeFieldInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=i=(0,r._)([(0,a.j)("esri.popup.content.FieldsContent")],h);const c=h},13151:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(35320),l=o(96674);let p=i=class extends l.wq{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new i({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"linkURL",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"sourceURL",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.support.ImageMediaInfoValue")],p);const d=p;var h;let c=h=class extends a.Z{constructor(t){super(t),this.refreshInterval=null,this.type="image",this.value=null}clone(){return new h({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],c.prototype,"refreshInterval",void 0),(0,r._)([(0,s.Cb)({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:d,json:{write:!0}})],c.prototype,"value",void 0),c=h=(0,r._)([(0,n.j)("esri.popup.content.ImageMediaInfo")],c);const y=c},55869:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="line-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.LineChartMediaInfo")],p);const d=p},10214:(t,e,o)=>{o.d(e,{Z:()=>v});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(71715)),l=o(52011),p=o(30556),d=o(41463),h=o(87131),c=o(63801),y=o(13151),u=o(55869),m=o(13353),f=o(79742);let g=i=class extends c.Z{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?y.Z.fromJSON(t):"barchart"===t.type?d.Z.fromJSON(t):"columnchart"===t.type?h.Z.fromJSON(t):"linechart"===t.type?u.Z.fromJSON(t):"piechart"===t.type?m.Z.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new i((0,s.d9)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r._)([(0,n.Cb)()],g.prototype,"activeMediaInfoIndex",void 0),(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],g.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],g.prototype,"description",void 0),(0,r._)([(0,n.Cb)({types:[f.V]})],g.prototype,"mediaInfos",void 0),(0,r._)([(0,a.r)("mediaInfos")],g.prototype,"readMediaInfos",null),(0,r._)([(0,p.c)("mediaInfos")],g.prototype,"writeMediaInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],g.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],g.prototype,"type",void 0),g=i=(0,r._)([(0,l.j)("esri.popup.content.MediaContent")],g);const v=g},13353:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="pie-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.PieChartMediaInfo")],p);const d=p},44951:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(63801);let l=i=class extends a.Z{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new i({text:this.text})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"text",void 0),(0,r._)([(0,s.Cb)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.content.TextContent")],l);const p=l},50379:(t,e,o)=>{o.d(e,{Z:()=>g});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(35320),l=o(96674),p=o(22974),d=o(15923);let h=i=class extends d.Z{constructor(t){super(t),this.tooltip=null,this.value=null}clone(){return new i({tooltip:this.tooltip,value:this.value})}};(0,r._)([(0,s.Cb)()],h.prototype,"tooltip",void 0),(0,r._)([(0,s.Cb)()],h.prototype,"value",void 0),h=i=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValueSeries")],h);const c=h;var y;let u=y=class extends l.wq{constructor(t){super(t),this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new y({fields:(0,p.d9)(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})}};(0,r._)([(0,s.Cb)({type:[String],json:{write:!0}})],u.prototype,"fields",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"normalizeField",void 0),(0,r._)([(0,s.Cb)({type:[c],json:{read:!1}})],u.prototype,"series",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"tooltipField",void 0),u=y=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValue")],u);const m=u;let f=class extends a.Z{constructor(t){super(t),this.type=null,this.value=null}};(0,r._)([(0,s.Cb)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],f.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:m,json:{write:!0}})],f.prototype,"value",void 0),f=(0,r._)([(0,n.j)("esri.popup.content.mixins.ChartMediaInfo")],f);const g=f},35320:(t,e,o)=>{o.d(e,{Z:()=>l});var i=o(43697),r=o(96674),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011));let a=class extends r.wq{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"altText",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"caption",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i._)([(0,s.Cb)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,n.j)("esri.popup.content.mixins.MediaInfo")],a);const l=a},87102:(t,e,o)=>{o.d(e,{l:()=>i});const i=(0,o(35454).w)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},79742:(t,e,o)=>{o.d(e,{V:()=>l});var i=o(41463),r=o(87131),s=o(13151),n=o(55869),a=o(13353);const l={base:o(35320).Z,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":i.Z,"column-chart":r.Z,"line-chart":n.Z,"pie-chart":a.Z,image:s.Z}}},63061:(t,e,o)=>{o.d(e,{Z:()=>u});var i=o(43697);const r=(0,o(35454).w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"});r.toJSON.bind(r),r.fromJSON.bind(r);var s,n=o(96674),a=o(5600),l=(o(67676),o(80442),o(75215)),p=o(36030),d=o(52011),h=o(90344),c=o(18848);let y=s=class extends n.wq{constructor(t){super(t),this.dateFormat=null,this.dateTimeFormatOptions=null,this.digitSeparator=!1,this.places=null}clone(){return new s({dateFormat:this.dateFormat,digitSeparator:this.digitSeparator,places:this.places})}format(t){return this.dateFormat?(0,h.p6)(t,{...(0,h.Ze)(this.dateFormat),...this.dateTimeFormatOptions}):(0,c.uf)(t,(0,c.sh)(this))}};(0,i._)([(0,p.J)(r)],y.prototype,"dateFormat",void 0),(0,i._)([(0,a.Cb)({type:Object,json:{read:!1}})],y.prototype,"dateTimeFormatOptions",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"digitSeparator",void 0),(0,i._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],y.prototype,"places",void 0),y=s=(0,i._)([(0,d.j)("esri.popup.support.FieldInfoFormat")],y);const u=y},44729:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(96674),n=o(5600),a=(o(67676),o(80442),o(75215),o(52011));let l=i=class extends s.wq{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,r._)([(0,n.Cb)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,r._)([(0,a.j)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const p=l}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5517],{38581:(e,t,r)=>{r.d(t,{aX:()=>I});var s=r(68773),n=r(20102),o=r(92604),i=r(70586),a=r(17332),u=r(58901),l=r(73913),c=r(8744),d=r(40488),h=(r(66577),r(3172)),p=r(17452),f=r(33955);const y=o.Z.getLogger("esri.geometry.support.normalizeUtils");function m(e){return"polygon"===e[0].type}function g(e){return"polyline"===e[0].type}function b(e,t,r){if(t){const t=function(e,t){if(!(e instanceof u.Z||e instanceof a.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y.error(e),new n.Z(e)}const r=(0,l.x3)(e),s=[];for(const e of r){const r=[];s.push(r),r.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const n=e[s][0],o=e[s][1],i=e[s+1][0],a=e[s+1][1],u=Math.sqrt((i-n)*(i-n)+(a-o)*(a-o)),l=(a-o)/u,c=(i-n)/u,d=u/t;if(d>1){for(let e=1;e<=d-1;e++){const s=e*t,i=c*s+n,a=l*s+o;r.push([i,a])}const e=(u+Math.floor(d-1)*t)/2,s=c*e+n,i=l*e+o;r.push([s,i])}r.push([i,a])}}return function(e){return"polygon"===e.type}(e)?new a.Z({rings:s,spatialReference:e.spatialReference}):new u.Z({paths:s,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.Sx)(t,!0)}return r&&(e=(0,l.Sy)(e,r)),e}function F(e,t,r){if(Array.isArray(e)){const s=e[0];if(s>t){const r=(0,l.XZ)(s,t);e[0]=s+r*(-2*t)}else if(s<r){const t=(0,l.XZ)(s,r);e[0]=s+t*(-2*r)}}else{const s=e.x;if(s>t){const r=(0,l.XZ)(s,t);e=e.clone().offset(r*(-2*t),0)}else if(s<r){const t=(0,l.XZ)(s,r);e=e.clone().offset(t*(-2*r),0)}}return e}function R(e,t){let r=-1;for(let s=0;s<t.cutIndexes.length;s++){const n=t.cutIndexes[s],o=t.geometries[s],i=(0,l.x3)(o);for(let e=0;e<i.length;e++){const t=i[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const s=t[e][0];r=s>r?s:r}r=Number(r.toFixed(9));const s=-360*(0,l.XZ)(r,180);for(let r=0;r<t.length;r++){const t=o.getPoint(e,r);o.setPoint(e,r,t.clone().offset(s,0))}return!0}}))}if(n===r){if(m(e))for(const t of(0,l.x3)(o))e[n]=e[n].addRing(t);else if(g(e))for(const t of(0,l.x3)(o))e[n]=e[n].addPath(t)}else r=n,e[n]=o}return e}async function I(e,t,r){var n;if(!Array.isArray(e))return I([e],t);const o=null!=(n=null==t?void 0:t.url)?n:s.Z.geometryServiceUrl;let y,m,g,S,O,x,w,q,_=0;const Z=[],v=[];for(const t of e)if((0,i.Wi)(t))v.push(t);else if(y||(y=t.spatialReference,m=(0,c.C5)(y),g=y.isWebMercator,x=g?102100:4326,S=l.UZ[x].maxX,O=l.UZ[x].minX,w=l.UZ[x].plus180Line,q=l.UZ[x].minus180Line),m)if("mesh"===t.type)v.push(t);else if("point"===t.type)v.push(F(t.clone(),S,O));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>F(e,S,O))),v.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,m);v.push(e.rings?new a.Z(e):e)}else if(t.extent){const e=t.extent,r=(0,l.XZ)(e.xmin,O)*(2*S);let s=0===r?t.clone():(0,l.Sy)(t.clone(),r);e.offset(r,0),e.intersects(w)&&e.xmax!==S?(_=e.xmax>_?e.xmax:_,s=b(s,g),Z.push(s),v.push("cut")):e.intersects(q)&&e.xmin!==O?(_=e.xmax*(2*S)>_?e.xmax*(2*S):_,s=b(s,g,360),Z.push(s),v.push("cut")):v.push(s)}else v.push(t.clone());else v.push(t);let C=(0,l.XZ)(_,S),T=-90;const N=C,j=new u.Z;for(;C>0;){const e=360*C-180;j.addPath([[e,T],[e,-1*T]]),T*=-1,C--}if(Z.length>0&&N>0){const t=R(Z,await async function(e,t,r,s){const n="string"==typeof e?(0,p.mN)(e):e,o=t[0].spatialReference,i={...s,query:{...n.query,f:"json",sr:JSON.stringify(o),target:JSON.stringify({geometryType:(0,f.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,h.default)(n.path+"/cut",i),{cutIndexes:u,geometries:l=[]}=a.data;return{cutIndexes:u,geometries:l.map((e=>{const t=(0,f.im)(e);return t.spatialReference=o,t}))}}(o,Z,j,r)),s=[],n=[];for(let r=0;r<v.length;r++){const o=v[r];if("cut"!==o)n.push(o);else{const o=t.shift(),a=e[r];(0,i.pC)(a)&&"polygon"===a.type&&a.rings&&a.rings.length>1&&o.rings.length>=a.rings.length?(s.push(o),n.push("simplify")):n.push(g?(0,d.$)(o):o)}}if(!s.length)return n;const a=await async function(e,t,r){const s="string"==typeof e?(0,p.mN)(e):e,n=t[0].spatialReference,o=(0,f.Ji)(t[0]),i={...r,query:{...s.query,f:"json",sr:n.wkid?n.wkid:JSON.stringify(n),geometries:JSON.stringify((a=t,{geometryType:(0,f.Ji)(a[0]),geometries:a.map((e=>e.toJSON()))}))}};var a;return function(e,t,r){const s=(0,f.q9)(t);return e.map((e=>{const t=s.fromJSON(e);return t.spatialReference=r,t}))}((await(0,h.default)(s.path+"/simplify",i)).data,o,n)}(o,s,r),u=[];for(let e=0;e<n.length;e++){const t=n[e];"simplify"!==t?u.push(t):u.push(g?(0,d.$)(a.shift()):a.shift())}return u}const P=[];for(let e=0;e<v.length;e++){const t=v[e];if("cut"!==t)P.push(t);else{const e=Z.shift();P.push(!0===g?(0,d.$)(e):e)}}return Promise.resolve(P)}},73913:(e,t,r)=>{r.d(t,{UZ:()=>i,x3:()=>l,XZ:()=>a,Sy:()=>u});var s=r(58901),n=r(82971),o=r(33955);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new s.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new s.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const r=l(e);for(const e of r)for(const r of e)r[0]+=t;return e}function l(e){return(0,o.oU)(e)?e.rings:e.paths}},70272:(e,t,r)=>{r.d(t,{nd:()=>i,ZP:()=>n,S6:()=>o});var s=r(70586);class n{constructor(e=null,t={},r,s){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=s,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function o(e){return!((0,s.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class i extends n{}},44876:(e,t,r)=>{r.d(t,{Z:()=>s});class s{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new s;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,r)=>{r.d(t,{Z:()=>s});class s{constructor(e=[],t=[],r=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=r}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];for(let r=0;r<s;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=s}}clone(e){return e?(e.set(this.coords),new s(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new s(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},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,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},98732:(e,t,r)=>{r.d(t,{XA:()=>k,h_:()=>V,Yn:()=>J,GH:()=>Q,Uy:()=>M,EI:()=>U,cn:()=>B,di:()=>z,Iv:()=>N,fQ:()=>S,eG:()=>E,J6:()=>P,oB:()=>oe,zj:()=>Y,$:()=>ee,lz:()=>ne,RZ:()=>$,Nh:()=>W,Jd:()=>b,IN:()=>F,hY:()=>re,lM:()=>X,$g:()=>te});var s=r(20102),n=r(92604),o=r(70586),i=r(33955),a=r(70272),u=r(44876),l=r(5428);function c(e,t){return e?t?4:3:t?3:2}const d=n.Z.getLogger("esri.tasks.support.optimizedFeatureSet"),h={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},p=(e,t,r,s,n,o)=>{e[r]=n,e[r+1]=o},f=(e,t,r,s,n,o)=>{e[r]=n,e[r+1]=o,e[r+2]=t[s+2]},y=(e,t,r,s,n,o)=>{e[r]=n,e[r+1]=o,e[r+2]=t[s+3]},m=(e,t,r,s,n,o)=>{e[r]=n,e[r+1]=o,e[r+2]=t[s+2],e[r+3]=t[s+3]};function g(e,t,r,s){if(e){if(r)return t&&s?m:f;if(t&&s)return y}else if(t&&s)return f;return p}function b({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function F({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function R({scale:e,translate:t},r){return r*e[0]+t[0]}function I({scale:e,translate:t},r){return t[1]-r*e[1]}function S(e,t,r){return e?t?r?v(e):w(e):r?_(e):O(e):null}function O(e){const t=e.coords;return{x:t[0],y:t[1]}}function x(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function w(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function q(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function _(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function Z(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function v(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function C(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function T(e,t){return e&&t?C:e?q:t?Z:x}function N(e,t,r){if((0,o.Wi)(e))return null;const s=c(t,r),n=[];for(let t=0;t<e.coords.length;t+=s){const r=[];for(let n=0;n<s;n++)r.push(e.coords[t+n]);n.push(r)}return t?r?{points:n,hasZ:t,hasM:r}:{points:n,hasZ:t}:r?{points:n,hasM:r}:{points:n}}function j(e,t,r=c(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const s=e.coords;let n=0;for(const e of t.points)for(let t=0;t<r;t++)s[n++]=e[t];return e}function P(e,t,r){if(!e)return null;const s=c(t,r),{coords:n,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<s;t++)e.push(n[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function G(e,t,r=c(t.hasZ,t.hasM)){const{lengths:s,coords:n}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)n[o++]=t[e];s.push(e.length)}return e}function E(e,t,r){if(!e)return null;const s=c(t,r),{coords:n,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<s;t++)e.push(n[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function M(e,t,r=t.hasZ,s=t.hasM){return function(e,t,r,s){const n=c(r,s),{lengths:o,coords:i}=e;let a=0;o.length=i.length=0;for(const e of t){for(const t of e)for(let e=0;e<n;e++)i[a++]=t[e];o.push(e.length)}}(e,t.rings,r,s),e}const D=[],A=[];function k(e,t,r,s,n){D[0]=e;const[o]=J(A,D,t,r,s,n);return D.length=A.length=0,o}function J(e,t,r,n,i,u){if(e.length=0,!r){for(const r of t){const t=r.attributes[u];e.push(new a.ZP(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,s,n){const o=T(r,s);for(const r of t){const{geometry:t,attributes:s}=r;let i;t&&(i=o(new l.Z,t)),e.push(new a.ZP(i,s,null,s[n]))}return e}(e,t,n,i,u);case"esriGeometryMultipoint":return function(e,t,r,s,n){const o=c(r,s);for(const r of t){const t=r.geometry,s=r.attributes;let i;t&&(i=j(new l.Z,t,o)),e.push(new a.ZP(i,s,null,s[n]))}return e}(e,t,n,i,u);case"esriGeometryPolyline":return function(e,t,r,s,n){const o=c(r,s);for(const r of t){const t=r.geometry,s=r.attributes;let i;t&&(i=G(new l.Z,t,o)),e.push(new a.ZP(i,s,null,s[n]))}return e}(e,t,n,i,u);case"esriGeometryPolygon":return function(e,t,r,s,n){for(const i of t){const t=i.geometry,u=i.centroid,c=i.attributes;let d;t&&(d=M(new l.Z,t,r,s)),(0,o.pC)(u)?e.push(new a.ZP(d,c,x(new l.Z,u),c[n])):e.push(new a.ZP(d,c,null,c[n]))}return e}(e,t,n,i,u);default:d.error("convertToFeatureSet:unknown-geometry",new s.Z(`Unable to parse unknown geometry type '${r}'`)),e.length=0}return e}function U(e,t,r,s){A[0]=e,L(D,A,t,r,s);const n=D[0];return D.length=A.length=0,n}function Q(e,t,r){if((0,o.Wi)(e))return null;const n=new l.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,i.wp)(e)?T(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(n,e):(0,i.oU)(e)?M(n,e,t,r):(0,i.l9)(e)?G(n,e,c(t,r)):(0,i.aW)(e)?j(n,e,c(t,r)):void d.error("convertFromGeometry:unknown-geometry",new s.Z(`Unable to parse unknown geometry type '${e}'`))}function z(e,t,r,n){const i=e&&("coords"in e?e:e.geometry);if((0,o.Wi)(i))return null;switch(t){case"esriGeometryPoint":{let e=O;return r&&n?e=v:r?e=w:n&&(e=_),e(i)}case"esriGeometryMultipoint":return N(i,r,n);case"esriGeometryPolyline":return P(i,r,n);case"esriGeometryPolygon":return E(i,r,n);default:return void d.error("convertToGeometry:unknown-geometry",new s.Z(`Unable to parse unknown geometry type '${t}'`))}}function L(e,t,r,n,i){if(e.length=0,(0,o.Wi)(r))return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,s){let n=O;r&&s?n=v:r?n=w:s&&(n=_);for(const r of t){const{geometry:t,attributes:s}=r,i=(0,o.pC)(t)?n(t):null;e.push({attributes:s,geometry:i})}return e}(e,t,n,i);case"esriGeometryMultipoint":return function(e,t,r,s){for(const n of t){const{geometry:t,attributes:o}=n;let i;t&&(i=N(t,r,s)),e.push({attributes:o,geometry:i})}return e}(e,t,n,i);case"esriGeometryPolyline":return function(e,t,r,s){for(const n of t){const{geometry:t,attributes:i}=n;let a;(0,o.pC)(t)&&(a=P(t,r,s)),e.push({attributes:i,geometry:a})}return e}(e,t,n,i);case"esriGeometryPolygon":return function(e,t,r,s){for(const n of t){const{geometry:t,attributes:i,centroid:a}=n;let u;if((0,o.pC)(t)&&(u=E(t,r,s)),a){const t=O(a);e.push({attributes:i,centroid:t,geometry:u})}else e.push({attributes:i,geometry:u})}return e}(e,t,n,i);default:d.error("convertToFeatureSet:unknown-geometry",new s.Z(`Unable to parse unknown geometry type '${r}'`))}return e}function B(e){const{objectIdFieldName:t,spatialReference:r,transform:s,fields:n,hasM:o,hasZ:i,features:a,geometryType:u,exceededTransferLimit:l,uniqueIdField:c,queryGeometry:d,queryGeometryType:h}=e,p={features:L([],a,u,i,o),fields:n,geometryType:u,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:z(d,h,!1,!1)};return s&&(p.transform=s),l&&(p.exceededTransferLimit=l),o&&(p.hasM=o),i&&(p.hasZ=i),p}function V(e,t){const r=new u.Z,{hasM:n,hasZ:o,features:i,objectIdFieldName:a,spatialReference:l,geometryType:c,exceededTransferLimit:h,transform:p,fields:f}=e;return f&&(r.fields=f),r.geometryType=c,r.objectIdFieldName=a||t,r.spatialReference=l,r.objectIdFieldName?(i&&J(r.features,i,c,o,n,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),n&&(r.hasM=n),o&&(r.hasZ=o),p&&(r.transform=p),r):(d.error(new s.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function X(e){const{transform:t,features:r,hasM:s,hasZ:n}=e;if(!t)return e;for(const e of r)(0,o.pC)(e.geometry)&&te(e.geometry,e.geometry,s,n,t),e.centroid&&te(e.centroid,e.centroid,s,n,t);return e.transform=null,e}function $(e,t){const{geometryType:r,features:s,hasM:n,hasZ:o}=t;if(!e)return t;for(let t=0;t<s.length;t++){const i=s[t],a=i.weakClone();a.geometry=new l.Z,W(a.geometry,i.geometry,n,o,r,e),i.centroid&&(a.centroid=new l.Z,W(a.centroid,i.centroid,n,o,"esriGeometryPoint",e)),s[t]=a}return t.transform=e,t}function W(e,t,r,s,n,i,a=r,u=s){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,o.Wi)(t)||!t.coords.length)return null;const l=h[n],{coords:d,lengths:p}=t,f=c(r,s),y=c(r&&a,s&&u),m=g(r,s,a,u);if(!p.length)return m(e.coords,d,0,0,b(i,d[0]),F(i,d[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=f,e;let R,I,S,O,x=0,w=0,q=w;for(const t of p){if(t<l)continue;let r=0;w=q,S=R=b(i,d[x]),O=I=F(i,d[x+1]),m(e.coords,d,w,x,S,O),r++,x+=f,w+=y;for(let s=1;s<t;s++,x+=f)S=b(i,d[x]),O=F(i,d[x+1]),S===R&&O===I||(m(e.coords,d,w,x,S-R,O-I),w+=y,r++,R=S,I=O);r>=l&&(e.lengths.push(r),q=w)}return e.coords.length=q,e.coords.length?e:null}function Y(e,t,r,s,n,o,i=r,a=s){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const u=h[n],{coords:l,lengths:d}=t,p=c(r,s),f=c(r&&i,s&&a),y=g(r,s,i,a);if(!d.length)return y(e.coords,l,0,0,l[0],l[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=p,e;let m=0;const b=o*o;for(const t of d){if(t<u){m+=t*p;continue}const r=e.coords.length/f,s=m,n=m+(t-1)*p;y(e.coords,l,e.coords.length,s,l[s],l[s+1]),K(e.coords,l,p,b,y,s,n),y(e.coords,l,e.coords.length,n,l[n],l[n+1]);const o=e.coords.length/f-r;o>=u?e.lengths.push(o):e.coords.length=r*f,m+=t*p}return e.coords.length?e:null}function H(e,t,r,s){const n=e[t],o=e[t+1],i=e[r],a=e[r+1],u=e[s],l=e[s+1];let c=i,d=a,h=u-c,p=l-d;if(0!==h||0!==p){const e=((n-c)*h+(o-d)*p)/(h*h+p*p);e>1?(c=u,d=l):e>0&&(c+=h*e,d+=p*e)}return h=n-c,p=o-d,h*h+p*p}function K(e,t,r,s,n,o,i){let a,u=s,l=0;for(let e=o+r;e<i;e+=r)a=H(t,e,o,i),a>u&&(l=e,u=a);u>s&&(l-o>r&&K(e,t,r,s,n,o,l),n(e,t,e.length,l,t[l],t[l+1]),i-l>r&&K(e,t,r,s,n,l,i))}function ee(e,t,r,s){if((0,o.Wi)(t)||!t.coords||!t.coords.length)return null;const n=c(r,s);let i=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=n){const r=e[t],s=e[t+1];i=Math.min(i,r),u=Math.max(u,r),a=Math.min(a,s),l=Math.max(l,s)}}return e[0]=i,e[1]=a,e[2]=u,e[3]=l,e}function te(e,t,r,s,n){const{coords:o,lengths:i}=t,a=r?s?m:f:s?f:p,u=c(r,s);if(!o.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!i.length)return a(e.coords,o,0,0,R(n,o[0]),I(n,o[1])),e!==t&&(e.lengths.length=0,e.coords.length=u),e;const[l,d]=n.scale;let h=0;for(let t=0;t<i.length;t++){const r=i[t];e.lengths[t]=r;let s=R(n,o[h]),c=I(n,o[h+1]);a(e.coords,o,h,h,s,c),h+=u;for(let t=1;t<r;t++,h+=u)s+=o[h]*l,c-=o[h+1]*d,a(e.coords,o,h,h,s,c)}return e!==t&&(e.lengths.length=i.length,e.coords.length=o.length),e}function re(e,t,r,s,n,o){const i=c(r,s),a=g(r,s,n,o),u=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1]);return e}function se(e,t,r,s){let n=0,o=e[s*t],i=e[s*(t+1)];for(let a=1;a<r;a++){const r=o+e[s*(t+a)],u=i+e[s*(t+a)+1],l=(r-o)*(u+i);o=r,i=u,n+=l}return.5*n}function ne(e,t){const{coords:r,lengths:s}=e;let n=0,o=0;for(let e=0;e<s.length;e++)o+=se(r,n,s[e],t),n+=e;return Math.abs(o)}function oe(e,t){if((0,o.Wi)(e))return null;const r=e.clone(),s=e.coords,n=e.lengths;let i=0;for(let e=0;e<n.length;e++){const o=n[e];let a=s[t*i],u=s[t*i+1];for(let e=1;e<o;e++){const n=a+s[t*(i+e)],o=u+s[t*(i+e)+1];r.coords[t*(i+e)]=n,r.coords[t*(i+e)+1]=o,a=n,u=o}i+=o}return r}},85517:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ue});var s=r(43697),n=(r(66577),r(1692)),o=r(3172),i=r(92835),a=r(20102),u=r(80442),l=r(35454),c=r(83379),d=r(70586),h=r(78286),p=r(95330),f=r(17452),y=r(5600),m=(r(67676),r(75215),r(52011)),g=r(6570),b=r(33955),F=r(25278),R=r(59431),I=r(40330),S=r(76497),O=r(98326);function x(e){const t=e.toJSON();return t.attachmentTypes&&(t.attachmentTypes=t.attachmentTypes.join(",")),t.keywords&&(t.keywords=t.keywords.join(",")),t.globalIds&&(t.globalIds=t.globalIds.join(",")),t.objectIds&&(t.objectIds=t.objectIds.join(",")),t.size&&(t.size=t.size.join(",")),t}function w(e,t){const r={};for(const s of e){const{parentObjectId:e,parentGlobalId:n,attachmentInfos:o}=s;for(const s of o){const{id:o}=s,i=(0,f.qg)((0,I.Dp)(`${t}/${e}/attachments/${o}`)),a=O.Z.fromJSON(s);a.set({url:i,parentObjectId:e,parentGlobalId:n}),r[e]?r[e].push(a):r[e]=[a]}}return r}function q(e,t,r){let s={query:(0,S.A)({...e.query,f:"json",...x(t)})};return r&&(s={...r,...s,query:{...r.query,...s.query}}),(0,o.default)(e.path+"/queryAttachments",s)}var _=r(10158),Z=r(11282),v=r(56545),C=r(41818),T=r(34599),N=r(57444),j=r(5396),P=r(4967),G=r(74085),E=r(69285),M=r(98732);function D(e,t){return t}function A(e,t,r,s){switch(r){case 0:return Q(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?Q(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function k(e,t,r,s){return 2===r?Q(e,t,2):A(e,t,r,s)}function J(e,t,r,s){return 2===r?Q(e,t,3):A(e,t,r,s)}function U(e,t,r,s){return 3===r?Q(e,t,3):k(e,t,r,s)}function Q({translate:e,scale:t},r,s){return e[s]+r*t[s]}class z{constructor(e){this.options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this.previousCoordinate=[0,0],this.transform=null,this.applyTransform=D,this.lengths=[],this.currentLengthIndex=0,this.toAddInCurrentPath=0,this.vertexDimension=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,this._attributesConstructor=function(){}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this.options.applyTransform&&(e.transform=null),this._attributesConstructor=function(){},this.coordinateBuffer=null,this.lengths.length=0,!e.hasZ)return;const t=(0,E.k)(e.geometryType,this.options.sourceSpatialReference,e.spatialReference);if(!(0,d.Wi)(t))for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){e.fields.push(t);const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)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);break;default:(0,G.Bg)(e.geometryType)}}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,n=(0,M.$g)(r.clone(),r,!1,!1,this.transform),o=(0,M.di)(n,s,!1,!1);e.queryGeometryType=s,e.queryGeometry={...o}}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){switch(t=this.applyTransform(this.transform,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;return t<=1&&(r=this.previousCoordinate[t],this.previousCoordinate[t]+=e),this.applyTransform(this.transform,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),n=e[e.length-1];0===r&&(this.coordinateBufferPtr=0,this.coordinateBuffer=new Array(this.vertexDimension),n.push(this.coordinateBuffer)),this.coordinateBuffer[this.coordinateBufferPtr++]=s}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?U:t?k:r?J:A}}var L=r(74889);function B(e,t){const r=e.toJSON();return r.objectIds&&(r.objectIds=r.objectIds.join(",")),r.orderByFields&&(r.orderByFields=r.orderByFields.join(",")),!r.outFields||null!=t&&t.returnCountOnly?delete r.outFields:-1!==r.outFields.indexOf("*")?r.outFields="*":r.outFields=r.outFields.join(","),r.outSpatialReference&&(r.outSR=r.outSR.wkid||JSON.stringify(r.outSR.toJSON()),delete r.outSpatialReference),r.dynamicDataSource&&(r.layer=JSON.stringify({source:r.dynamicDataSource}),delete r.dynamicDataSource),r}async function V(e,t,r={},s){const n=(0,S.A)({...e.query,f:"json",...s,...B(t,s)});return(0,o.default)(e.path+"/queryRelatedRecords",{...r,query:{...r.query,...n}})}var X=r(75935);var $=r(38581),W=r(28694);const Y="Layer does not support extent calculation.";function H(e,t){var r,s;const n=e.geometry,o=e.toJSON(),i=o;if((0,d.pC)(n)&&(i.geometry=JSON.stringify(n),i.geometryType=(0,b.Ji)(n),i.inSR=n.spatialReference.wkid||JSON.stringify(n.spatialReference)),null!=(r=o.topFilter)&&r.groupByFields&&(i.topFilter.groupByFields=o.topFilter.groupByFields.join(",")),null!=(s=o.topFilter)&&s.orderByFields&&(i.topFilter.orderByFields=o.topFilter.orderByFields.join(",")),o.topFilter&&(i.topFilter=JSON.stringify(i.topFilter)),o.objectIds&&(i.objectIds=o.objectIds.join(",")),o.orderByFields&&(i.orderByFields=o.orderByFields.join(",")),o.outFields&&!(null!=t&&t.returnCountOnly||null!=t&&t.returnExtentOnly||null!=t&&t.returnIdsOnly)?-1!==o.outFields.indexOf("*")?i.outFields="*":i.outFields=o.outFields.join(","):delete i.outFields,o.outSR?i.outSR=o.outSR.wkid||JSON.stringify(o.outSR):n&&o.returnGeometry&&(i.outSR=i.inSR),o.returnGeometry&&delete o.returnGeometry,o.timeExtent){const e=o.timeExtent,{start:t,end:r}=e;null==t&&null==r||(i.time=t===r?t:`${null==t?"null":t},${null==r?"null":r}`),delete o.timeExtent}return i}function K(e,t,r,s={},n={}){const i="string"==typeof e?(0,f.mN)(e):e,a=t.geometry?[t.geometry]:[];return s.responseType="pbf"===r?"array-buffer":"json",(0,$.aX)(a,null,s).then((e=>{const a=e&&e[0];(0,d.pC)(a)&&((t=t.clone()).geometry=a);const u=(0,S.A)({...i.query,f:r,...n,...H(t,n)});return(0,o.default)((0,f.v_)(i.path,"queryTopFeatures"),{...s,query:{...u,...s.query}})}))}var ee=r(28141);var te=r(59633);let re=class extends te.Z{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.format="json",this.gdbVersion=null,this.infoFor3D=null,this.sourceSpatialReference=null}execute(e,t){return this.executeJSON(e,t).then((r=>this.featureSetFromJSON(e,r,t)))}async executeJSON(e,t){var r;const s={...this.requestOptions,...t},n=this._normalizeQuery(e),o=null!=(null==(r=e.outStatistics)?void 0:r[0]),i=(0,u.Z)("featurelayer-pbf-statistics"),a=!o||i;let l;if("pbf"===this.format&&a)try{l=await async function(e,t,r){const s=(0,Z.en)(e),n={...r},o=N.Z.from(t),i=!o.quantizationParameters,{data:a}=await(0,T.executeQueryPBF)(s,o,new z({sourceSpatialReference:o.sourceSpatialReference,applyTransform:i}),n);return a}(this.url,n,s)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.format="json"}return"json"!==this.format&&a||(l=await(0,P.F)(this.url,n,s)),this._normalizeFields(l.fields),l}async featureSetFromJSON(e,t,s){if(!(this._queryIs3DObjectFormat(e)&&(0,d.pC)(this.infoFor3D)&&t.features&&t.features.length))return L.default.fromJSON(t);const{meshFeatureSetFromJSON:n}=await(0,p.Hl)(Promise.all([r.e(4547),r.e(6481),r.e(6459),r.e(8163)]).then(r.bind(r,38163)),s);return n(e,this.infoFor3D,t)}executeForCount(e,t){const r={...this.requestOptions,...t},s=this._normalizeQuery(e);return(0,C.P)(this.url,s,r)}executeForExtent(e,t){const r={...this.requestOptions,...t},s=this._normalizeQuery(e);return async function(e,t,r){const s=(0,Z.en)(e);return(0,T.executeQueryForExtent)(s,N.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:g.Z.fromJSON(e.data.extent)})))}(this.url,s,r)}executeForIds(e,t){const r={...this.requestOptions,...t},s=this._normalizeQuery(e);return(0,j.G)(this.url,s,r)}executeRelationshipQuery(e,t){e=X.Z.from(e);const r={...this.requestOptions,...t};return(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),async function(e,t,r){return t=X.Z.from(t),async function(e,t,r){const s=await V(e,t,r),n=s.data,o=n.geometryType,i=n.spatialReference,a={};for(const e of n.relatedRecordGroups){const t={fields:void 0,objectIdFieldName:void 0,geometryType:o,spatialReference:i,hasZ:!!n.hasZ,hasM:!!n.hasM,features:e.relatedRecords};if(null!=e.objectId)a[e.objectId]=t;else for(const r in e)e.hasOwnProperty(r)&&"relatedRecords"!==r&&(a[e[r]]=t)}return{...s,data:a}}((0,Z.en)(e),t,r).then((e=>{const t=e.data,r={};return Object.keys(t).forEach((e=>r[e]=L.default.fromJSON(t[e]))),r}))}(this.url,e,r)}executeRelationshipQueryForCount(e,t){e=X.Z.from(e);const r={...this.requestOptions,...t};return(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),async function(e,t,r){return t=X.Z.from(t),async function(e,t,r){const s=await V(e,t,r,{returnCountOnly:!0}),n=s.data,o={};for(const e of n.relatedRecordGroups)null!=e.objectId&&(o[e.objectId]=e.count);return{...s,data:o}}((0,Z.en)(e),t,{...r}).then((e=>e.data))}(this.url,e,r)}executeAttachmentQuery(e,t){const r={...this.requestOptions,...t};return async function(e,t,r){const s=(0,Z.en)(e);return q(s,v.Z.from(t),{...r}).then((e=>w(e.data.attachmentGroups,s.path)))}(this.url,e,r)}executeTopFeaturesQuery(e,t){const r={...this.requestOptions,...t};return async function(e,t,r,s){const n=(0,Z.en)(e),o={...s},{data:i}=await async function(e,t,r,s){const n=await K(e,t,"json",s);return(0,W.p)(t,r,n.data),n}(n,ee.Z.from(t),r,o);return L.default.fromJSON(i)}(this.parsedUrl,e,this.sourceSpatialReference,r)}executeForTopIds(e,t){const r={...this.requestOptions,...t};return async function(e,t,r){const s=(0,Z.en)(e);return(await async function(e,t,r){return(0,d.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):K(e,t,"json",r,{returnIdsOnly:!0})}(s,ee.Z.from(t),{...r})).data.objectIds}(this.parsedUrl,e,r)}executeForTopExtents(e,t){const r={...this.requestOptions,...t};return async function(e,t,r){const s=(0,Z.en)(e),n=await async function(e,t,r){return(0,d.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):K(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then((e=>{const t=e.data;if(t.hasOwnProperty("extent"))return e;if(t.features)throw new Error(Y);if(t.hasOwnProperty("count"))throw new Error(Y);return e}))}(s,ee.Z.from(t),{...r});return{count:n.data.count,extent:g.Z.fromJSON(n.data.extent)}}(this.parsedUrl,e,r)}executeForTopCount(e,t){const r={...this.requestOptions,...t};return async function(e,t,r){const s=(0,Z.en)(e);return(await function(e,t,r){return(0,d.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):K(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}(s,ee.Z.from(t),{...r})).data.count}(this.parsedUrl,e,r)}_normalizeQuery(e){let t=N.Z.from(e);if(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?_.n.from(e.dynamicDataSource):this.dynamicDataSource),(0,d.pC)(this.infoFor3D)&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;for(const e of this.infoFor3D.queryFormats){if("3D_glb"===e.id){t.formatOf3DObjects=e.id;break}"3D_gltf"!==e.id||t.formatOf3DObjects||(t.formatOf3DObjects=e.id)}if(!t.formatOf3DObjects)throw new a.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((0,d.Wi)(t.outFields)||!t.outFields.includes("*")){t=t===e?t.clone():t,(0,d.Wi)(t.outFields)&&(t.outFields=[]);const{originX:r,originY:s,originZ:n,translationX:o,translationY:i,translationZ:a,scaleX:u,scaleY:l,scaleZ:c,rotationX:h,rotationY:p,rotationZ:f,rotationDeg:y}=this.infoFor3D.transformFieldRoles;t.outFields.push(r,s,n,o,i,a,u,l,c,h,p,f,y)}}return t}_normalizeFields(e){if((0,d.pC)(this.fieldsIndex)&&(0,d.pC)(e))for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return(0,d.pC)(this.infoFor3D)&&e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,s._)([(0,y.Cb)({type:_.n})],re.prototype,"dynamicDataSource",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"fieldsIndex",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"format",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"gdbVersion",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"infoFor3D",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"sourceSpatialReference",void 0),re=(0,s._)([(0,m.j)("esri.tasks.QueryTask")],re);const se=re;var ne=r(82971);const oe=new l.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),ie=new Set(["Feature Layer","Table"]);let ae=class extends c.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,p.Ds)((async()=>{var e,t;await this.load();const r=null==(e=this.sourceJSON.editingInfo)?void 0:e.lastEditDate;if(null==r)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const s=r!==(null==(t=this.sourceJSON.editingInfo)?void 0:t.lastEditDate);return{dataChanged:s,updates:s?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}))}load(e){const t=(0,d.pC)(e)?e.signal:null;return this.addResolvingPromise(this._fetchService(this.layer.sourceJSON,t)),Promise.resolve(this)}get queryTask(){const{capabilities:{query:{supportsFormatPBF:e}},parsedUrl:t,dynamicDataSource:r,infoFor3D:s,gdbVersion:n,spatialReference:o,fieldsIndex:i}=this.layer,a=(0,u.Z)("featurelayer-pbf")&&e&&(0,d.Wi)(s)?"pbf":"json";return new se({url:t.path,format:a,fieldsIndex:i,infoFor3D:s,dynamicDataSource:r,gdbVersion:n,sourceSpatialReference:o})}async addAttachment(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",n=this._getLayerRequestOptions(),i=this._getFormDataForAttachment(t,n.query);try{const e=await(0,o.default)(s,{body:i});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],n=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",i=this._getLayerRequestOptions({query:{attachmentId:t}}),a=this._getFormDataForAttachment(r,i.query);try{const e=await(0,o.default)(n,{body:a});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async applyEdits(e,t){await this.load();const r=e.addFeatures.map(this._serializeFeature,this),s=e.updateFeatures.map(this._serializeFeature,this),n=this._getFeatureIds(e.deleteFeatures,null==t?void 0:t.globalIdUsed);(0,R.P)(r,s,this.layer.spatialReference);const i=[],a=[],u=[...e.deleteAttachments];for(const t of e.addAttachments)i.push(await this._serializeAttachment(t));for(const t of e.updateAttachments)a.push(await this._serializeAttachment(t));const l=i.length||a.length||u.length?{adds:i,updates:a,deletes:u}:null,c={gdbVersion:(null==t?void 0:t.gdbVersion)||this.layer.gdbVersion,rollbackOnFailure:null==t?void 0:t.rollbackOnFailureEnabled,useGlobalIds:null==t?void 0:t.globalIdUsed,returnEditMoment:null==t?void 0:t.returnEditMoment,usePreviousEditMoment:null==t?void 0:t.usePreviousEditMoment,sessionId:null==t?void 0:t.sessionId};null!=t&&t.returnServiceEditsOption?(c.edits=JSON.stringify([{id:this.layer.layerId,adds:r,updates:s,deletes:n,attachments:l}]),c.returnServiceEditsOption=oe.toJSON(null==t?void 0:t.returnServiceEditsOption),c.returnServiceEditsInSourceSR=null==t?void 0:t.returnServiceEditsInSourceSR):(c.adds=r.length?JSON.stringify(r):null,c.updates=s.length?JSON.stringify(s):null,c.deletes=n.length?null!=t&&t.globalIdUsed?JSON.stringify(n):n.join(","):null,c.attachments=l&&JSON.stringify(l));const d=this._getLayerRequestOptions({method:"post",query:c}),h=null!=t&&t.returnServiceEditsOption?this.layer.url:this.layer.parsedUrl.path,p=await(0,o.default)(h+"/applyEdits",d);return this._createEditsResult(p)}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,o.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:n}=await(0,o.default)(`${s}/${r}`,t),{id:a,extent:u,fullExtent:l,timeExtent:c}=n,d=u||l;return{id:a,fullExtent:d&&g.Z.fromJSON(d),timeExtent:c&&i.Z.fromJSON({start:c[0],end:c[1]})}}))}async queryAttachments(e,t={}){const{parsedUrl:r}=this.layer,s=r.path;await this.load();const n=this._getLayerRequestOptions(t);if(!this.layer.get("capabilities.operations.supportsQueryAttachments")){const{objectIds:t}=e,r=[];for(const e of t){const t=s+"/"+e+"/attachments";r.push((0,o.default)(t,n))}return Promise.all(r).then((e=>t.map(((t,r)=>({parentObjectId:t,attachmentInfos:e[r].data.attachmentInfos}))))).then((e=>w(e,s)))}return this.queryTask.executeAttachmentQuery(e,n)}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)})}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...null==e?void 0:e.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:r}=await(0,o.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,u.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=r}this.sourceJSON=this._patchServiceJSON(e);const r=e.type;if(!ie.has(r))throw new a.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(e){var t;if("Table"!==e.type&&e.geometryType&&(null==e||null==(t=e.drawingInfo)||!t.renderer)&&!e.defaultSymbol){const t=(0,F.bU)(e.geometryType).renderer;(0,h.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}_serializeFeature(e){const{geometry:t,attributes:r}=e;return(0,d.Wi)(t)?{attributes:r}:"mesh"===t.type||"extent"===t.type?null:{geometry:t.toJSON(),attributes:r}}async _serializeAttachment(e){const{feature:t,attachment:r}=e,{globalId:s,name:n,contentType:o,data:i,uploadId:a}=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),a)u.uploadId=a;else if(i){const e=await async function(e){return"string"==typeof e?(0,f.sJ)(e)||{data:e}:new Promise(((t,r)=>{const s=new FileReader;s.readAsDataURL(e),s.onload=()=>t((0,f.sJ)(s.result)),s.onerror=e=>r(e)}))}(i);u.contentType=e.mediaType,u.data=e.data,i instanceof File&&(u.name=i.name)}return n&&(u.name=n),o&&(u.contentType=o),u}_getFeatureIds(e,t){const r=e[0];return r?this._canUseGlobalIds(t,e)?this._getGlobalIdsFromFeatureIdentifier(e):"objectId"in r?this._getObjectIdsFromFeatureIdentifier(e):this._getIdsFromFeatures(e):[]}_getIdsFromFeatures(e){const t=this.layer.objectIdField;return e.map((e=>e.attributes&&e.attributes[t]))}_canUseGlobalIds(e,t){return e&&"globalId"in t[0]}_getObjectIdsFromFeatureIdentifier(e){return e.map((e=>e.objectId))}_getGlobalIdsFromFeatureIdentifier(e){return e.map((e=>e.globalId))}_createEditsResult(e){var t;const r=e.data,{layerId:s}=this.layer,n=[];let o=null;if(Array.isArray(r))for(const e of r)n.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===s&&(o={addResults:e.addResults,updateResults:e.updateResults,deleteResults:e.deleteResults,attachments:e.attachments,editMoment:e.editMoment});else o=r;const i=null==(t=o)?void 0:t.attachments,a={addFeatureResults:o.addResults?o.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:o.updateResults?o.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:o.deleteResults?o.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(o.editMoment&&(a.editMoment=o.editMoment),n.length>0){a.editedFeatureResults=[];for(const e of n){const{adds:t,updates:r,deletes:s,spatialReference:n}=e.editedFeatures,o=n?new ne.Z(n):null;a.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:(null==t?void 0:t.map((e=>this._createEditedFeature(e,o))))||[],updates:(null==r?void 0:r.map((e=>({original:this._createEditedFeature(e[0],o),current:this._createEditedFeature(e[1],o)}))))||[],deletes:(null==s?void 0:s.map((e=>this._createEditedFeature(e,o))))||[],spatialReference:o}})}}return a}_createEditedFeature(e,t){return new n.Z({attributes:e.attributes,geometry:(0,b.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 a.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 a.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"}}};(0,s._)([(0,y.Cb)()],ae.prototype,"type",void 0),(0,s._)([(0,y.Cb)({constructOnly:!0})],ae.prototype,"layer",void 0),(0,s._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"queryTask",null),ae=(0,s._)([(0,m.j)("esri.layers.graphics.sources.FeatureLayerSource")],ae);const ue=ae},25278:(e,t,r)=>{r.d(t,{MS:()=>c,Dm:()=>u,Hq:()=>l,bU:()=>a});var s=r(80442),n=r(22974),o=r(61159),i=r(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}function u(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${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const s=new Function(r);return()=>new s}catch(r){return()=>({[t]:null,...e})}}function l(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(e)}}]}function c(e,t){return{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,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},59633:(e,t,r)=>{r.d(t,{Z:()=>l});var s=r(43697),n=r(15923),o=r(17452),i=r(5600),a=(r(67676),r(80442),r(75215),r(52011));let u=class extends n.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,o.mN)(e):null}_encode(e,t,r){const s={};for(const n in e){if("declaredClass"===n)continue;const o=e[n];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){s[n]=[];for(let e=0;e<o.length;e++)s[n][e]=this._encode(o[e])}else if("object"==typeof o)if(o.toJSON){const e=o.toJSON(r&&r[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?o:JSON.stringify(o);else s[n]=o}return s}};(0,s._)([(0,i.Cb)({readOnly:!0})],u.prototype,"parsedUrl",null),(0,s._)([(0,i.Cb)()],u.prototype,"requestOptions",void 0),(0,s._)([(0,i.Cb)({type:String})],u.prototype,"url",void 0),u=(0,s._)([(0,a.j)("esri.tasks.Task")],u);const l=u}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[755],{5499:(e,t,i)=>{i.d(t,{Z:()=>h});var s=i(43697),r=i(35454),a=i(96674),l=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),o=i(69237);const p=new r.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary"},{ignoreUnknown:!0});let u=class extends a.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,l.Cb)({type:o.Z,json:{write:!0}})],u.prototype,"authoringInfo",void 0),(0,s._)([(0,l.Cb)({type:p.apiValues,readOnly:!0,json:{type:p.jsonValues,read:!1,write:{writer:p.write,ignoreOrigin:!0}}})],u.prototype,"type",void 0),u=(0,s._)([(0,n.j)("esri.renderers.Renderer")],u);const h=u},12571:(e,t,i)=>{i.d(t,{W:()=>q});var s,r=i(43697),a=i(5600),l=(i(67676),i(80442),i(75215)),n=i(71715),o=i(52011),p=i(30556),u=i(35671),h=i(77997),d=i(21849);let c=s=class extends h.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 s({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,r._)([(0,a.Cb)({readOnly:!0})],c.prototype,"cache",null),(0,r._)([(0,a.Cb)({type:["color"],json:{type:["colorInfo"]}})],c.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:[d.Z],json:{write:!0}})],c.prototype,"stops",null),c=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],c);const y=c;var b,v=i(96674),m=i(65242);let w=b=class extends v.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,m.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,m.a)(e)}clone(){return new b({label:this.label,opacity:this.opacity,value:this.value})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],w.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{type:l.z8,write:{target:"transparency"}}})],w.prototype,"opacity",void 0),(0,r._)([(0,n.r)("opacity",["transparency"])],w.prototype,"readOpacity",null),(0,r._)([(0,p.c)("opacity")],w.prototype,"writeOpacity",null),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],w.prototype,"value",void 0),w=b=(0,r._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],w);const g=w;var V;let _=V=class extends h.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 V({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,r._)([(0,a.Cb)({readOnly:!0})],_.prototype,"cache",null),(0,r._)([(0,a.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],_.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],_.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:[g],json:{write:!0}})],_.prototype,"stops",null),_=V=(0,r._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],_);const f=_;var x=i(89513),S=i(23847),z=i(15923),C=i(35454),j=i(92604),T=i(20941);const E=j.Z.getLogger("esri.renderers.visualVariables.VisualVariableFactory"),F={color:y,size:S.Z,opacity:f,rotation:x.Z},O=new C.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),D=/^\[([^\]]+)\]$/i;let I=class extends z.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:r}=t,a=s&&s.match(D),l=a&&a[1];if(l&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:l})),e)return e.map((e=>{const t=O.read(e.type),s=F[t];s||(E.warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new T.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}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,r._)([(0,a.Cb)()],I.prototype,"visualVariables",null),I=(0,r._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],I);const k=I,Z={base:h.Z,key:"type",typeMap:{opacity:f,color:y,rotation:x.Z,size:S.Z}},q=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new k}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&&await(0,u.io)(e,t,s.valueExpression))}};return(0,r._)([(0,a.Cb)({types:[Z],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,r._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,r._)([(0,p.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,r._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t}},69237:(e,t,i)=>{i.d(t,{Z:()=>I});var s,r=i(43697),a=i(35454),l=i(96674),n=i(22974),o=i(5600),p=i(75215),u=i(71715),h=i(52011);i(67676),i(80442);let d=s=class extends l.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,r._)([(0,h.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);const c=d;var y;let b=y=class extends l.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new y({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,n.d9)(this.classBreakInfos)})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],b.prototype,"field",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],b.prototype,"normalizationField",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:[c],json:{write:!0}})],b.prototype,"classBreakInfos",void 0),b=y=(0,r._)([(0,h.j)("esri.renderers.support.AuthoringInfoFieldInfo")],b);const v=b;var m,w=i(90578);const g=new a.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),V=new a.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),_={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},f=["high-to-low","above-and-below","centered-on","extremes"],x=[...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"])],S=["seconds","minutes","hours","days","months","years"];let z=m=class extends l.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,r._)([(0,o.Cb)({types:_,json:{write:!0}})],z.prototype,"endTime",void 0),(0,r._)([(0,w.p)("endTime")],z.prototype,"castEndTime",null),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,r._)([(0,o.Cb)({types:_,json:{write:!0}})],z.prototype,"startTime",void 0),(0,r._)([(0,w.p)("startTime")],z.prototype,"castStartTime",null),(0,r._)([(0,o.Cb)({type:g.apiValues,value:null,json:{type:g.jsonValues,read:g.read,write:g.write}})],z.prototype,"style",null),(0,r._)([(0,o.Cb)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:f,write:{writer:(e,t)=>{f.indexOf(e)>-1&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,r._)([(0,o.Cb)({type:V.apiValues,json:{type:V.jsonValues,read:V.read,write:V.write}})],z.prototype,"type",void 0),(0,r._)([(0,o.Cb)({type:S,json:{type:S,write:!0}})],z.prototype,"units",void 0),z=m=(0,r._)([(0,h.j)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const C=z;var j,T=i(94593);const E=new a.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),F=new a.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),O=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let D=j=class extends l.wq{constructor(e){super(e),this.colorRamp=null,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){if(e)return(0,T.i)(e)}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 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 j({classificationMethod:this.classificationMethod,colorRamp:(0,n.d9)(this.colorRamp),fields:this.fields&&this.fields.slice(0),field1:(0,n.d9)(this.field1),field2:(0,n.d9)(this.field2),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})}};(0,r._)([(0,o.Cb)({type:E.apiValues,value:null,json:{type:E.jsonValues,read:E.read,write:E.write,origins:{"web-document":{default:"manual",type:E.jsonValues,read:E.read,write:E.write}}}})],D.prototype,"classificationMethod",null),(0,r._)([(0,o.Cb)({types:T.V,json:{write:!0}})],D.prototype,"colorRamp",void 0),(0,r._)([(0,u.r)("colorRamp")],D.prototype,"readColorRamp",null),(0,r._)([(0,o.Cb)({type:[String],value:null,json:{write:!0}})],D.prototype,"fields",null),(0,r._)([(0,o.Cb)({type:v,value:null,json:{write:!0}})],D.prototype,"field1",null),(0,r._)([(0,o.Cb)({type:v,value:null,json:{write:!0}})],D.prototype,"field2",null),(0,r._)([(0,o.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],D.prototype,"focus",null),(0,r._)([(0,o.Cb)({type:Number,value:null,json:{type:p.z8,write:!0}})],D.prototype,"numClasses",null),(0,r._)([(0,o.Cb)({type:O,json:{type:O,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],D.prototype,"lengthUnit",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],D.prototype,"maxSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],D.prototype,"minSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],D.prototype,"statistics",null),(0,r._)([(0,o.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],D.prototype,"standardDeviationInterval",null),(0,r._)([(0,o.Cb)({type:F.apiValues,value:null,json:{type:F.jsonValues,read:F.read,write:F.write}})],D.prototype,"type",null),(0,r._)([(0,o.Cb)({type:[C],json:{write:!0}})],D.prototype,"visualVariables",void 0),(0,r._)([(0,o.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}}}})],D.prototype,"univariateSymbolStyle",null),(0,r._)([(0,o.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],D.prototype,"univariateTheme",null),D=j=(0,r._)([(0,h.j)("esri.renderers.support.AuthoringInfo")],D);const I=D},66338:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),a=i(96674),l=i(5600),n=(i(67676),i(80442),i(75215),i(52011));let o=s=class extends a.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],o.prototype,"title",void 0),o=s=(0,r._)([(0,n.j)("esri.renderers.support.LegendOptions")],o);const p=o},89513:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),a=i(20102),l=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),o=i(30556),p=i(77997);let u=s=class extends p.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 a.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,r._)([(0,l.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,r._)([(0,l.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],u.prototype,"axis",void 0),(0,r._)([(0,l.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],u.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],u.prototype,"rotationType",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],u.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,o.c)("web-scene","valueExpressionTitle")],u.prototype,"writeValueExpressionTitleWebScene",null),u=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.RotationVariable")],u);const h=u},23847:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),a=i(20102),l=i(35454),n=i(92604),o=i(62357),p=i(5600),u=(i(67676),i(80442),i(90578)),h=i(71715),d=i(52011),c=i(30556),y=i(77997),b=i(30856),v=(i(75215),i(58439));let m=s=class extends v.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,r._)([(0,p.Cb)({type:[Number],json:{write:!0}})],m.prototype,"customValues",void 0),m=s=(0,r._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],m);const w=m;var g,V=i(51706),_=i(28101);const f=n.Z.getLogger("esri.renderers.visualVariables.SizeVariable"),x=new l.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new l.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 z(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,o.t_)(e):"size"===e.type?(0,V.iY)(e)?e:(delete(e={...e}).type,new j(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;const s=new j;return s.read(e,i),s}let j=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:_.B3.test(this.valueExpression)}}set expression(e){f.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,V.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,V.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,V.PS)(this)}set maxDataValue(e){e&&this.stops&&(f.warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(f.warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return z(e)}readMaxSize(e,t,i){return C(e,0,i)}set minDataValue(e){e&&this.stops&&(f.warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(f.warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return z(e)}readMinSize(e,t,i){return C(e,0,i)}get arcadeRequired(){return!!this.valueExpression||this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||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&&(f.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,V.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 a.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,V.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,V.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===V.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===V.hL.Stops){const e=this.stops,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,r._)([(0,p.Cb)({readOnly:!0})],j.prototype,"cache",null),(0,r._)([(0,p.Cb)({type:x.apiValues,json:{type:x.jsonValues,origins:{"web-map":{read:!1}},read:x.read,write:x.write}})],j.prototype,"axis",void 0),(0,r._)([(0,p.Cb)({type:String,value:null,json:{read:!1}})],j.prototype,"expression",null),(0,r._)([(0,p.Cb)()],j.prototype,"index",null),(0,r._)([(0,p.Cb)({type:String,readOnly:!0})],j.prototype,"inputValueType",null),(0,r._)([(0,p.Cb)({type:w,json:{write:!0}})],j.prototype,"legendOptions",void 0),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"maxDataValue",null),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"maxSize",null),(0,r._)([(0,u.p)("maxSize")],j.prototype,"castMaxSize",null),(0,r._)([(0,h.r)("maxSize")],j.prototype,"readMaxSize",null),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"minDataValue",null),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"minSize",null),(0,r._)([(0,u.p)("minSize")],j.prototype,"castMinSize",null),(0,r._)([(0,h.r)("minSize")],j.prototype,"readMinSize",null),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),(0,r._)([(0,p.Cb)({readOnly:!0})],j.prototype,"arcadeRequired",null),(0,r._)([(0,p.Cb)({type:String})],j.prototype,"scaleBy",void 0),(0,r._)([(0,p.Cb)({type:[b.Z],value:null,json:{write:!0}})],j.prototype,"stops",null),(0,r._)([(0,p.Cb)({type:["outline"],json:{write:!0}})],j.prototype,"target",void 0),(0,r._)([(0,p.Cb)({type:String,readOnly:!0})],j.prototype,"transformationType",null),(0,r._)([(0,p.Cb)({type:["size"],json:{type:["sizeInfo"]}})],j.prototype,"type",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],j.prototype,"useSymbolValue",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),(0,r._)([(0,h.r)("valueExpression",["valueExpression","expression"])],j.prototype,"readValueExpression",null),(0,r._)([(0,c.c)("web-scene","valueExpression")],j.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,p.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],j.prototype,"valueRepresentation",void 0),(0,r._)([(0,p.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],j.prototype,"valueUnit",void 0),(0,r._)([(0,h.r)("valueUnit")],j.prototype,"readValueUnit",null),j=g=(0,r._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],j);const T=j},77997:(e,t,i)=>{i.d(t,{Z:()=>b});var s=i(43697),r=i(35454),a=i(96674),l=i(92604),n=i(5600),o=(i(67676),i(80442),i(90578)),p=i(52011),u=i(75215),h=i(58439);const d=l.Z.getLogger("esri.renderers.visualVariables.VisualVariable"),c=new r.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let y=class extends a.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?(d.error(".field: field must be a string value"),null):(0,u.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,n.Cb)()],y.prototype,"index",void 0),(0,s._)([(0,n.Cb)({type:c.apiValues,readOnly:!0,json:{read:c.read,write:c.write}})],y.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,s._)([(0,o.p)("field")],y.prototype,"castField",null),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,n.Cb)({readOnly:!0})],y.prototype,"arcadeRequired",null),(0,s._)([(0,n.Cb)({type:h.Z,json:{write:!0}})],y.prototype,"legendOptions",void 0),y=(0,s._)([(0,p.j)("esri.renderers.visualVariables.VisualVariable")],y);const b=y},21849:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),a=i(22303),l=i(96674),n=i(5600),o=(i(67676),i(80442),i(75215)),p=i(52011),u=i(30556);let h=s=class extends l.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=null==e?0:e}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,n.Cb)({type:a.Z,json:{type:[o.z8],write:!0}})],h.prototype,"color",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],h.prototype,"value",void 0),(0,r._)([(0,u.c)("value")],h.prototype,"writeValue",null),h=s=(0,r._)([(0,p.j)("esri.renderers.visualVariables.support.ColorStop")],h);const d=h},30856:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),a=i(96674),l=i(62357),n=i(5600),o=(i(67676),i(80442),i(75215),i(52011));let p=s=class extends a.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,r._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],p.prototype,"size",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],p.prototype,"value",void 0),p=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.support.SizeStop")],p);const u=p},58439:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),a=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),n=i(66338);let o=s=class extends n.Z{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],o.prototype,"showLegend",void 0),o=s=(0,r._)([(0,l.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],o);const p=o}}]);