@arcgis/core 4.34.0-next.75 → 4.34.0-next.77

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 (269) hide show
  1. package/Basemap.js +1 -1
  2. package/Ground.js +1 -1
  3. package/applications/Components/arcadeEditorUtils.d.ts +4 -0
  4. package/applications/Components/arcadeEditorUtils.js +5 -0
  5. package/applications/Components/featureUtils.d.ts +1 -0
  6. package/applications/Components/featureUtils.js +1 -1
  7. package/arcade/Feature.js +1 -1
  8. package/arcade/Pixel.js +1 -1
  9. package/arcade/Voxel.js +1 -1
  10. package/arcade/arcadeAsyncRuntime.js +1 -1
  11. package/arcade/arcadeCompiler.js +1 -1
  12. package/arcade/arcadeRuntime.js +1 -1
  13. package/arcade/featureset/support/FeatureSetIterator.js +1 -1
  14. package/arcade/functions/feature.js +1 -1
  15. package/arcade/functions/featuresetbase.js +1 -1
  16. package/arcade/functions/geometry.js +1 -1
  17. package/assets/esri/core/workers/RemoteClient.js +1 -1
  18. package/assets/esri/core/workers/chunks/025f1d78dfa5ec93178b.js +1 -0
  19. package/assets/esri/core/workers/chunks/050429f516149ce3b517.js +1 -0
  20. package/assets/esri/core/workers/chunks/0652d7e525d99e39c957.js +1 -0
  21. package/assets/esri/core/workers/chunks/0668eee42b3169e1bf66.js +1 -0
  22. package/assets/esri/core/workers/chunks/07a355a9c95154971aab.js +1 -0
  23. package/assets/esri/core/workers/chunks/0dd6b8b3e634bb5f0ca7.js +1 -0
  24. package/assets/esri/core/workers/chunks/124f8757ea18bfd158ec.js +1 -0
  25. package/assets/esri/core/workers/chunks/16d66770ef841564ee3f.js +1 -0
  26. package/assets/esri/core/workers/chunks/17103e6542aae53c7301.js +1 -0
  27. package/assets/esri/core/workers/chunks/1990162dcf73601d54f7.js +1 -0
  28. package/assets/esri/core/workers/chunks/{5c30252c1bb8350cae5f.js → 1c52999a6392370844a6.js} +1 -1
  29. package/assets/esri/core/workers/chunks/20850b0fdb55fb17bc90.js +1 -0
  30. package/assets/esri/core/workers/chunks/{6a1b652ccbf58ac44658.js → 23e17b745adf71a5efc7.js} +1 -1
  31. package/assets/esri/core/workers/chunks/2605062e44f2d4e73f14.js +1 -0
  32. package/assets/esri/core/workers/chunks/29a86d51407310bb7745.js +1 -0
  33. package/assets/esri/core/workers/chunks/2a2a925c45d5fd58628b.js +1 -0
  34. package/assets/esri/core/workers/chunks/2fe96bf7dedef11a3b63.js +1 -0
  35. package/assets/esri/core/workers/chunks/3452ba299f6ce0582f09.js +1 -0
  36. package/assets/esri/core/workers/chunks/36a006c55766f9540bfc.js +1 -0
  37. package/assets/esri/core/workers/chunks/{18641332bee3e9b9c44a.js → 388482cea4b9fdeaf06e.js} +1 -1
  38. package/assets/esri/core/workers/chunks/3b23c37e5bc552dc81d4.js +1 -0
  39. package/assets/esri/core/workers/chunks/{9325000c87295c473291.js → 3b2ef975831eb75b40fb.js} +1 -1
  40. package/assets/esri/core/workers/chunks/3ff3e1507220d3869c76.js +1 -0
  41. package/assets/esri/core/workers/chunks/43818bf53dd5445a7bdb.js +1 -0
  42. package/assets/esri/core/workers/chunks/4823e4522bd7379d858e.js +1 -0
  43. package/assets/esri/core/workers/chunks/49e6202da7a20f06c661.js +353 -0
  44. package/assets/esri/core/workers/chunks/4d47187bc0821413492d.js +1 -0
  45. package/assets/esri/core/workers/chunks/{b818b5e392d5eb7c7e70.js → 4e6e8dda6c12f6fbed8e.js} +1 -1
  46. package/assets/esri/core/workers/chunks/5019f1b8186a65a0313b.js +1 -0
  47. package/assets/esri/core/workers/chunks/5102c20645d9708c34b4.js +1 -0
  48. package/assets/esri/core/workers/chunks/512dcd6e34e217029391.js +1 -0
  49. package/assets/esri/core/workers/chunks/5248581d23ada240c78d.js +1 -0
  50. package/assets/esri/core/workers/chunks/614a00a3179f8fe23f45.js +1 -0
  51. package/assets/esri/core/workers/chunks/{e12e8d69c05c182b6a69.js → 61bb39597ccf89f99a72.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{5477ff0ce432c9e5b3ab.js → 6201356f7f91e5c06425.js} +1 -1
  53. package/assets/esri/core/workers/chunks/6271a706ac3fcba91432.js +1 -0
  54. package/assets/esri/core/workers/chunks/6593b419339e7598b760.js +1 -0
  55. package/assets/esri/core/workers/chunks/{51ddda291bbbf5db9905.js → 65e279516170ddbd4a65.js} +1 -1
  56. package/assets/esri/core/workers/chunks/67fdc8074cdcf374af9a.js +1 -0
  57. package/assets/esri/core/workers/chunks/6dafb2b95bae552c1cc2.js +1 -0
  58. package/assets/esri/core/workers/chunks/7680d4d739f7aa3f7ae1.js +1 -0
  59. package/assets/esri/core/workers/chunks/7889a909394c61a9d3e0.js +1 -0
  60. package/assets/esri/core/workers/chunks/79e965e8f7cf822b4f45.js +1 -0
  61. package/assets/esri/core/workers/chunks/804e3b3df375177e6c86.js +1 -0
  62. package/assets/esri/core/workers/chunks/81a8addcb858086ff9ee.js +1 -0
  63. package/assets/esri/core/workers/chunks/83065bef261314f9b2c5.js +1 -0
  64. package/assets/esri/core/workers/chunks/8a5e40f48a8265fd1b42.js +1 -0
  65. package/assets/esri/core/workers/chunks/8bd6c27a93a697a7fa3d.js +1 -0
  66. package/assets/esri/core/workers/chunks/8c94448a44fb27054a22.js +1 -0
  67. package/assets/esri/core/workers/chunks/92d0e0155563c6355079.js +1 -0
  68. package/assets/esri/core/workers/chunks/930322c9790572bd0c49.js +1 -0
  69. package/assets/esri/core/workers/chunks/96a14689815bec741308.js +1 -0
  70. package/assets/esri/core/workers/chunks/97d71459ad72b4b780a3.js +1 -0
  71. package/assets/esri/core/workers/chunks/9835c579edfc08125d31.js +1 -0
  72. package/assets/esri/core/workers/chunks/9971de3f38a55735cec9.js +1 -0
  73. package/assets/esri/core/workers/chunks/99ac292a858bbedc6a89.js +1 -0
  74. package/assets/esri/core/workers/chunks/9ce599dc1d385e6893c1.js +1 -0
  75. package/assets/esri/core/workers/chunks/{fec572f03f9514244972.js → a05a7df07b74e1957538.js} +1 -1
  76. package/assets/esri/core/workers/chunks/a0edff37fd4a3f2cb2eb.js +1 -0
  77. package/assets/esri/core/workers/chunks/a7e649b3b02e664ada80.js +1 -0
  78. package/assets/esri/core/workers/chunks/a8a79a5c804ef715aa94.js +1 -0
  79. package/assets/esri/core/workers/chunks/{10ec10ca361842efce92.js → ab005fe84952f0676020.js} +1 -1
  80. package/assets/esri/core/workers/chunks/acb49f3d2b783e81a215.js +1 -0
  81. package/assets/esri/core/workers/chunks/adc61d88c3c6936ad75a.js +1 -0
  82. package/assets/esri/core/workers/chunks/afa3ca2bd2648774f133.js +1 -0
  83. package/assets/esri/core/workers/chunks/afb76f9d6abedef771df.js +1 -0
  84. package/assets/esri/core/workers/chunks/b168b6ffc16cd509d316.js +1 -0
  85. package/assets/esri/core/workers/chunks/b19d723d09f5bea9ca27.js +1 -0
  86. package/assets/esri/core/workers/chunks/b246ed6d86c2c8df56fb.js +1 -0
  87. package/assets/esri/core/workers/chunks/b4a053063e6022080d31.js +1 -0
  88. package/assets/esri/core/workers/chunks/b4ba7f8ea81522ad1e2e.js +1 -0
  89. package/assets/esri/core/workers/chunks/b8d02f1b73c374767a5f.js +1 -0
  90. package/assets/esri/core/workers/chunks/b97f224972f1b1abaee8.js +1 -0
  91. package/assets/esri/core/workers/chunks/b9e725d2b5a7d0132663.js +1 -0
  92. package/assets/esri/core/workers/chunks/ba6452acee3d6defb37e.js +1 -0
  93. package/assets/esri/core/workers/chunks/bbb3b32affde9ea78534.js +1 -0
  94. package/assets/esri/core/workers/chunks/bbb585f0b484ab5eabb3.js +1 -0
  95. package/assets/esri/core/workers/chunks/bc83bcfe123525d21884.js +1 -0
  96. package/assets/esri/core/workers/chunks/c799f1c03cb22ef52f5f.js +1 -0
  97. package/assets/esri/core/workers/chunks/cac5732f9dfece4bf2c5.js +1 -0
  98. package/assets/esri/core/workers/chunks/cafc19bf2caaf7a8c2e8.js +1 -0
  99. package/assets/esri/core/workers/chunks/cc7423413747566f56e2.js +1 -0
  100. package/assets/esri/core/workers/chunks/ccd157ede169b93eea65.js +1 -0
  101. package/assets/esri/core/workers/chunks/ce0bf0d0cd9e9a90093b.js +1 -0
  102. package/assets/esri/core/workers/chunks/ce49ff6bf20cff349726.js +1 -0
  103. package/assets/esri/core/workers/chunks/d1657a29321adb259166.js +1 -0
  104. package/assets/esri/core/workers/chunks/d2b69f91eb85b561fe01.js +1 -0
  105. package/assets/esri/core/workers/chunks/d51e8eeb1e1eb0605cc9.js +1 -0
  106. package/assets/esri/core/workers/chunks/d69bd6b5d781a6c527d1.js +1 -0
  107. package/assets/esri/core/workers/chunks/d7fc8ea2ff527a09f4b9.js +1 -0
  108. package/assets/esri/core/workers/chunks/d8494617cebc68e50d35.js +1 -0
  109. package/assets/esri/core/workers/chunks/d89832617bac4890893e.js +1 -0
  110. package/assets/esri/core/workers/chunks/{d55c55d39a253630d228.js → db2396bf062468ee8b60.js} +1 -1
  111. package/assets/esri/core/workers/chunks/e4833b718a813a8d125b.js +1 -0
  112. package/assets/esri/core/workers/chunks/{b5f197e24982f6e14468.js → e7af5caab9aa9b6a12e3.js} +3 -3
  113. package/assets/esri/core/workers/chunks/e81386199a6db9a50fd3.js +1 -0
  114. package/assets/esri/core/workers/chunks/ecac5ca00c742bfb5898.js +1 -0
  115. package/assets/esri/core/workers/chunks/f45c343527709f6f91c2.js +1 -0
  116. package/assets/esri/core/workers/chunks/f5710ced8d38f9a90fc5.js +1 -0
  117. package/assets/esri/core/workers/chunks/f592c4e5e1746d4619db.js +1 -0
  118. package/assets/esri/core/workers/chunks/f8d2c52cc51d5f1bbce2.js +1 -0
  119. package/assets/esri/core/workers/chunks/{0d946a226b846b3c0849.js → fc06014fb484fc8c697e.js} +1 -1
  120. package/assets/esri/core/workers/chunks/feed74ed275f21a68a1b.js +1 -0
  121. package/assets/esri/core/workers/chunks/ffee8cc83d703c1dc0c0.js +1 -0
  122. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  123. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  124. package/chunks/Compositing.glsl.js +4 -3
  125. package/chunks/cameraUtilsSpherical.js +1 -1
  126. package/chunks/lyr3DMain.js +1 -1
  127. package/chunks/lyr3DWorker.js +1 -1
  128. package/config.js +1 -1
  129. package/core/sql.d.ts +1 -0
  130. package/geometry/support/heightModelInfoUtils.js +1 -1
  131. package/geometry/support/normalizeUtils.js +1 -1
  132. package/geometry/support/spatialReferenceUtils.js +1 -1
  133. package/interfaces.d.ts +45 -0
  134. package/kernel.js +1 -1
  135. package/layers/GaussianSplatLayer.js +1 -1
  136. package/layers/Layer.js +1 -1
  137. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  138. package/layers/Lyr3DWorkerHandle.js +1 -1
  139. package/layers/catalog/catalogUtils.js +1 -1
  140. package/layers/mixins/ScaleRangeLayer.js +1 -1
  141. package/layers/support/tiles3DUtils.js +1 -1
  142. package/networks/CircuitManager.js +1 -1
  143. package/networks/support/Circuit.js +1 -1
  144. package/networks/support/CircuitSection.js +1 -1
  145. package/networks/support/Subcircuit.js +1 -1
  146. package/package.json +1 -1
  147. package/support/LayersMixin.js +1 -1
  148. package/support/TablesMixin.js +1 -1
  149. package/support/arcadeUtils.js +1 -1
  150. package/support/modeUtils.js +1 -1
  151. package/support/revision.js +1 -1
  152. package/symbols/support/symbolUtils.js +1 -1
  153. package/views/2d/layers/MediaLayerView2D.js +1 -1
  154. package/views/2d/layers/TileLayerView2D.js +1 -1
  155. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  156. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  157. package/views/3d/layers/Lyr3DWorker.js +1 -1
  158. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  159. package/views/3d/support/cameraUtils.js +1 -1
  160. package/views/3d/support/cameraUtilsSpherical.js +1 -1
  161. package/{layers/support/GaussianSplatAtlasPageAllocator.js → views/3d/support/gaussianSplatting/GaussianSplatAtlasPages.js} +1 -1
  162. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +5 -0
  163. package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +5 -0
  164. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +5 -0
  165. package/views/3d/support/gaussianSplatting/GaussianTile.js +5 -0
  166. package/views/3d/terrain/OverlayManager.js +1 -1
  167. package/views/3d/terrain/TerrainSurface.js +1 -1
  168. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +12 -13
  169. package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
  170. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  171. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  172. package/views/3d/webgl-engine/lib/edgeRendering/strokes.js +1 -1
  173. package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
  174. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  175. package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
  176. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +10 -11
  177. package/views/VideoView.js +1 -1
  178. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  179. package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
  180. package/widgets/support/widget.js +1 -1
  181. package/assets/esri/core/workers/chunks/03fac1122eb73bb14d2d.js +0 -1
  182. package/assets/esri/core/workers/chunks/0434a490326c0de47c22.js +0 -1
  183. package/assets/esri/core/workers/chunks/0618ea8bf9da93d713b1.js +0 -1
  184. package/assets/esri/core/workers/chunks/06b65105b15abf4d0fbf.js +0 -1
  185. package/assets/esri/core/workers/chunks/06bd58c219678315cf5c.js +0 -1
  186. package/assets/esri/core/workers/chunks/0751f539db31bdb5caec.js +0 -1
  187. package/assets/esri/core/workers/chunks/0b71100fa1e7ca706dbb.js +0 -1
  188. package/assets/esri/core/workers/chunks/181b3564a0e3939020bc.js +0 -1
  189. package/assets/esri/core/workers/chunks/19228ab0fe7944c554e5.js +0 -1
  190. package/assets/esri/core/workers/chunks/199a17b0a0f75cbaed16.js +0 -1
  191. package/assets/esri/core/workers/chunks/19c1f1431c0b2f4525a2.js +0 -1
  192. package/assets/esri/core/workers/chunks/28a2f74d4a449386d082.js +0 -1
  193. package/assets/esri/core/workers/chunks/2a19a4d7d1c580121065.js +0 -1
  194. package/assets/esri/core/workers/chunks/2afafaf40293d5ab1d8e.js +0 -1
  195. package/assets/esri/core/workers/chunks/2c399991e8627baa51b3.js +0 -1
  196. package/assets/esri/core/workers/chunks/2f44848916051f5501eb.js +0 -1
  197. package/assets/esri/core/workers/chunks/356c96fad88558be9054.js +0 -1
  198. package/assets/esri/core/workers/chunks/37ff19a9c5c99bd4e7c7.js +0 -1
  199. package/assets/esri/core/workers/chunks/38e7d1c6987aaa9b520b.js +0 -1
  200. package/assets/esri/core/workers/chunks/3bf99037befdedd75cb4.js +0 -1
  201. package/assets/esri/core/workers/chunks/3d2629357242492afcfa.js +0 -1
  202. package/assets/esri/core/workers/chunks/3e9c3e7c5cf7c0afbc80.js +0 -1
  203. package/assets/esri/core/workers/chunks/3fecfe4f8ca2a5fd7360.js +0 -1
  204. package/assets/esri/core/workers/chunks/43095bed5456251940b9.js +0 -1
  205. package/assets/esri/core/workers/chunks/433c4dc666a6b2c99063.js +0 -353
  206. package/assets/esri/core/workers/chunks/451761c7bd2da530e1d0.js +0 -1
  207. package/assets/esri/core/workers/chunks/48449abe795cb7a831eb.js +0 -1
  208. package/assets/esri/core/workers/chunks/4bc091770bab38874848.js +0 -1
  209. package/assets/esri/core/workers/chunks/52286d4135b8395a3400.js +0 -1
  210. package/assets/esri/core/workers/chunks/540506802776f77e47f3.js +0 -1
  211. package/assets/esri/core/workers/chunks/56f54d007b0da0d908aa.js +0 -1
  212. package/assets/esri/core/workers/chunks/5879cebb22157b0b4998.js +0 -1
  213. package/assets/esri/core/workers/chunks/5c4ba165816809e06340.js +0 -1
  214. package/assets/esri/core/workers/chunks/5f239972cb95afdfa77a.js +0 -1
  215. package/assets/esri/core/workers/chunks/61896e64e9ef49b4bb1b.js +0 -1
  216. package/assets/esri/core/workers/chunks/6531f33d6710960079e9.js +0 -1
  217. package/assets/esri/core/workers/chunks/6963ded8428cc8d51d85.js +0 -1
  218. package/assets/esri/core/workers/chunks/6c3ae96c6ef764fb9552.js +0 -1
  219. package/assets/esri/core/workers/chunks/6e59ba2afd444eb4be18.js +0 -1
  220. package/assets/esri/core/workers/chunks/7430c462c350fdd26349.js +0 -1
  221. package/assets/esri/core/workers/chunks/76ec3d2646ba64e3442f.js +0 -1
  222. package/assets/esri/core/workers/chunks/7aaa6b318195d7342e6c.js +0 -1
  223. package/assets/esri/core/workers/chunks/7e746427375e83fc4351.js +0 -1
  224. package/assets/esri/core/workers/chunks/810e4c16c6eae420508b.js +0 -1
  225. package/assets/esri/core/workers/chunks/8b587affaaa0b1e4368c.js +0 -1
  226. package/assets/esri/core/workers/chunks/8bc8caa384b24af12411.js +0 -1
  227. package/assets/esri/core/workers/chunks/8e428b0f33ef4688415e.js +0 -1
  228. package/assets/esri/core/workers/chunks/8fc13e0e1a5a8f3e4798.js +0 -1
  229. package/assets/esri/core/workers/chunks/90540fdfb0c5f68aa959.js +0 -1
  230. package/assets/esri/core/workers/chunks/925ad2665c2fe0f47cc3.js +0 -1
  231. package/assets/esri/core/workers/chunks/92d5b0559e128d62fbda.js +0 -1
  232. package/assets/esri/core/workers/chunks/9304c3cdf732745577fd.js +0 -1
  233. package/assets/esri/core/workers/chunks/93b2e0a300b2758a1ca4.js +0 -1
  234. package/assets/esri/core/workers/chunks/9421389888d4d9e4e809.js +0 -1
  235. package/assets/esri/core/workers/chunks/98c94a99e2e04d5ae65f.js +0 -1
  236. package/assets/esri/core/workers/chunks/9c35860439948638cb8f.js +0 -1
  237. package/assets/esri/core/workers/chunks/a0a519f498e9ea7623ff.js +0 -1
  238. package/assets/esri/core/workers/chunks/a25b75de1bca1dd21941.js +0 -1
  239. package/assets/esri/core/workers/chunks/a2baeb9fa805c3537049.js +0 -1
  240. package/assets/esri/core/workers/chunks/a33e1a031ba9f028023d.js +0 -1
  241. package/assets/esri/core/workers/chunks/ad3ebd4f05cc673140f3.js +0 -1
  242. package/assets/esri/core/workers/chunks/b03dcbc31bccb9fdf9fe.js +0 -1
  243. package/assets/esri/core/workers/chunks/b0de01f8c9b1c3182e0c.js +0 -1
  244. package/assets/esri/core/workers/chunks/b6c6f82df3b60c2f831f.js +0 -1
  245. package/assets/esri/core/workers/chunks/b7f5a26ff3a73c64552d.js +0 -1
  246. package/assets/esri/core/workers/chunks/bd2dc1282c49125ede89.js +0 -1
  247. package/assets/esri/core/workers/chunks/bd4e64d6e73cd4db9695.js +0 -1
  248. package/assets/esri/core/workers/chunks/c07507a42def2bd2a222.js +0 -1
  249. package/assets/esri/core/workers/chunks/c34a164a8ece4cb33e81.js +0 -1
  250. package/assets/esri/core/workers/chunks/c7ba8f2aca0fbd6ceded.js +0 -1
  251. package/assets/esri/core/workers/chunks/c908184d747d33366881.js +0 -1
  252. package/assets/esri/core/workers/chunks/d1711256493d55eca523.js +0 -1
  253. package/assets/esri/core/workers/chunks/e086b835a98b71a46825.js +0 -1
  254. package/assets/esri/core/workers/chunks/e3f2cdf5d71a7040894b.js +0 -1
  255. package/assets/esri/core/workers/chunks/e54df2128039425a9090.js +0 -1
  256. package/assets/esri/core/workers/chunks/e58c5c8639aa837c84d1.js +0 -1
  257. package/assets/esri/core/workers/chunks/e6e4e2fb9568319c6207.js +0 -1
  258. package/assets/esri/core/workers/chunks/e92d9e0ac789bcf1cdf4.js +0 -1
  259. package/assets/esri/core/workers/chunks/eb0a5d592f5805836203.js +0 -1
  260. package/assets/esri/core/workers/chunks/eccb4550edc4752cf41a.js +0 -1
  261. package/assets/esri/core/workers/chunks/ee391a41144855fc625d.js +0 -1
  262. package/assets/esri/core/workers/chunks/f060a52a9b69eb250d63.js +0 -1
  263. package/assets/esri/core/workers/chunks/f3ef59991c577ff5e825.js +0 -1
  264. package/assets/esri/core/workers/chunks/f749e2a89a14ab89ae59.js +0 -1
  265. package/assets/esri/core/workers/chunks/f7f5c4f30e5a0ddbf9a4.js +0 -1
  266. package/assets/esri/core/workers/chunks/fb0f729eff2f2911d6c3.js +0 -1
  267. package/assets/esri/core/workers/chunks/fdf2b980e8a8aa47ce91.js +0 -1
  268. package/assets/esri/core/workers/chunks/fe24c6d61a50898549a5.js +0 -1
  269. package/layers/support/gaussianSplatUtils.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2763],{6518:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(44208),i=n(75503),o=n(19419);const s={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.wq(9,(0,r.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,r)=>{e[t++]=r}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,o.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){s.minX=e[0],s.minY=e[1],s.maxX=e[2],s.maxY=e[3]})(t),e.search(s,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8303:(e,t,n)=>{n.d(t,{A:()=>M});var r=n(31635),i=n(92602),o=n(70333),s=n(78888),a=n(60999),l=n(49186),c=n(53966),u=n(97768),h=n(74887),p=n(84952),d=n(10107),f=(n(44208),n(87811),n(36005)),m=n(40608),g=n(43937),y=n(77548),x=n(20655),v=n(80812),_=n(41318),w=n(10407);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new v.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,h.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!o.id?.findCredential(this.url),i=e===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let s,a;if(i)s=n.portal.url;else try{s=await(0,y.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!s||!(0,p.b8)(s,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,c=!1,u=!1;if(!a)return{features:{edit:l,fullEdit:c},content:{updateItem:u}};try{if(i?await n.reload():(n=new v.default({id:e,portal:{url:s}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,r)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const n=(0,w.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const n=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=o.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=x.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(r))return i.user;const l=`${r}/community/self`,c=null!=e?e.signal:null,u=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?_.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||x.A.getDefault());return n&&r&&!(0,p.ut)(r.restUrl,n.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,d.MZ)({type:v.default})],M.prototype,"portalItem",null),(0,r.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,r.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,r.Cg)([(0,d.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,r.Cg)([(0,m.$)("esri.layers.mixins.PortalLayer")],M),M},b={credential:null,user:null}},10407:(e,t,n)=>{n.d(t,{It:()=>d,LG:()=>s,OM:()=>c,Sm:()=>u,Y:()=>a,bK:()=>l,mm:()=>p,sQ:()=>h});var r=n(98988),i=n(16930),o=n(28735);function s(e,t){if(!a(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,p.HOSTED_SERVICE)}function c(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function u(e,t,n){n?s(e,t):c(e,t)}async function h(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const n=i.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const p={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:t,isOrgItem:n,itemControl:r}=e,i=t.user?.privileges;let o=!i||i.includes("features:user:edit"),s=!!n&&!!i?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},13069:(e,t,n)=>{n.d(t,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},16494:(e,t,n)=>{n.d(t,{W5:()=>s});var r=n(37330);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new r.I({whiteList:i,onTagAttr:(e,t,n)=>{const r=`${t}="${n}"`;if(o.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)},19647:(e,t,n)=>{n.r(t),n.d(t,{default:()=>et});var r=n(31635),i=n(7762),o=n(49186),s=n(53966),a=n(92071),l=n(74887),c=n(10107),u=n(79901),h=(n(44208),n(87811),n(36005)),p=n(40608),d=n(43937),f=n(4146),m=n(63074),g=n(16131),y=n(8303),x=n(25036),v=n(69540),_=n(25482),w=n(77690),M=n(29242),b=n(37585),P=n(38954);const A=(0,n(51850).vt)(),C=(0,M.vt)(),I=(0,M.vt)(),R=(0,M.vt)();function S(e,t,n){return(0,P.i)(A,t[0],t[1],1),(0,P.o)(A,A,(0,w.mg)(C,n)),0===A[2]?(0,b.hZ)(e,A[0],A[1]):(0,b.hZ)(e,A[0]/A[2],A[1]/A[2])}function E(e,t,n){return O(I,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),O(R,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,w.lw)(e,(0,w.KC)(I,I),R),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function O(e,t,n,r,i,o,s,a,l){(0,w.hZ)(e,t,r,o,n,i,s,1,1,1),(0,P.i)(A,a,l,1),(0,w.KC)(C,e);const[c,u,h]=(0,P.o)(A,A,(0,w.mg)(C,C));return(0,w.hZ)(C,c,0,0,0,u,0,0,0,h),(0,w.lw)(e,C,e)}var L=n(90629),T=n(48163),B=n(86738),Z=n(39829),j=n(98988),$=n(16930);let Y=class extends v.Pw{projectOrWarn(e,t){if(null==e)return e;const{geometry:n,pending:r}=(0,j.projectOrLoad)(e,t);return r?null:r||n?n:(s.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:e,sourceSpatialReference:e.spatialReference,targetSpatialReference:t}),null)}};Y=(0,r.Cg)([(0,p.$)("esri.layers.support.GeoreferenceBase")],Y);const U=(0,M.vt)(),H=(0,T.vt)();let X=class extends _.o{};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],X.prototype,"x",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],X.prototype,"y",void 0),X=(0,r.Cg)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],X);let k=class extends v.Pw{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,c.MZ)()],k.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,c.MZ)({type:B.A})],k.prototype,"mapPoint",void 0),k=(0,r.Cg)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPoint")],k);let N=class extends((0,_.T)(Y)){constructor(e){super(e),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(e,t){const n=$.A.fromJSON(t.spatialReference),r=(0,M.fA)(...t.coefficients,1);return e.map(e=>((0,b.hZ)(H,e.x,e.y),S(H,H,r),{sourcePoint:e,mapPoint:new B.A({x:H[0],y:H[1],spatialReference:n})}))}writeControlPoints(e,t,n,r){if(null==this.transform){const e=new o.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:r?.layer,georeference:this});return void(r?.messages?r.messages.push(e):s.A.getLogger(this).error(e.name,e.message))}null!=e&&F(e[0])&&(t.controlPoints=e.map(e=>{const t=e.sourcePoint;return{x:t.x,y:t.y}}),t.spatialReference=e[0].mapPoint.spatialReference.toJSON(),t.coefficients=this.transform.slice(0,8))}get coords(){if(null==this.controlPoints)return null;const e=this._updateTransform(U);if(null==e||!F(this.controlPoints[0]))return null;const t=this.controlPoints[0].mapPoint.spatialReference;return function(e,t,n,r){const i=(0,T.fA)(0,n),o=(0,T.fA)(0,0),s=(0,T.fA)(t,0),a=(0,T.fA)(t,n);return S(i,i,e),S(o,o,e),S(s,s,e),S(a,a,e),new Z.A({rings:[[i,o,s,a,i]],spatialReference:r})}(e,this.width,this.height,t)}set coords(e){if(null==this.controlPoints||!F(this.controlPoints[0]))return;const t=this.controlPoints[0].mapPoint.spatialReference;if(null==(e=this.projectOrWarn(e,t)))return;const{width:n,height:r}=this,{rings:[[i,o,s,a]]}=e,l={sourcePoint:(0,L.tc)(0,r),mapPoint:new B.A({x:i[0],y:i[1],spatialReference:t})},c={sourcePoint:(0,L.tc)(0,0),mapPoint:new B.A({x:o[0],y:o[1],spatialReference:t})},u={sourcePoint:(0,L.tc)(n,0),mapPoint:new B.A({x:s[0],y:s[1],spatialReference:t})},h={sourcePoint:(0,L.tc)(n,r),mapPoint:new B.A({x:a[0],y:a[1],spatialReference:t})};F(l)&&F(c)&&F(u)&&F(h)&&(te(U,l,c,u,h),this.controlPoints=this.controlPoints.map(({sourcePoint:e})=>((0,b.hZ)(H,e.x,e.y),S(H,H,U),{sourcePoint:e,mapPoint:new B.A({x:H[0],y:H[1],spatialReference:t})})))}get inverseTransform(){return null==this.transform?null:(0,w.B8)((0,M.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(e){if(null==e||null==this.transform||null==this.controlPoints||!F(this.controlPoints[0]))return null;(0,b.hZ)(H,e.x,e.y);const t=this.controlPoints[0].mapPoint.spatialReference;return S(H,H,this.transform),new B.A({x:H[0],y:H[1],spatialReference:t})}toSource(e){if(null==e||null==this.inverseTransform||null==this.controlPoints||!F(this.controlPoints[0]))return null;const t=this.controlPoints[0].mapPoint.spatialReference;return e=e.normalize(),null==(e=(0,j.projectOrLoad)(e,t).geometry)?null:((0,b.hZ)(H,e.x,e.y),S(H,H,this.inverseTransform),(0,L.tc)(H[0],H[1]))}toSourceNormalized(e){const t=this.toSource(e);return null!=t&&(t.x/=this.width,t.y/=this.height),t}_updateTransform(e){const{controlPoints:t,width:n,height:r}=this;if(!(null!=t&&n>0&&r>0))return null;const[i,o,s,a]=t;if(!F(i))return null;const l=i.mapPoint.spatialReference,c=this._projectControlPoint(o,l),u=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!c.valid||!u.valid||!h.valid)return null;if(!F(c.controlPoint))return null;null==e&&(e=(0,M.vt)());let p=null;return p=F(u.controlPoint)&&F(h.controlPoint)?te(e,i,c.controlPoint,u.controlPoint,h.controlPoint):F(u.controlPoint)?function(e,t,n,r){return ee(z,G,t),ee(q,W,n),ee(V,K,r),(0,b.Cc)(D,z,q,.5),(0,b.e$)(D,V,D,Math.PI),(0,b.Cc)(J,G,W,.5),(0,b.e$)(J,K,J,Math.PI),oe(e,z,q,V,D,G,W,K,J)}(e,i,c.controlPoint,u.controlPoint):function(e,t,n){return ee(z,G,t),ee(q,W,n),(0,b.e$)(V,q,z,Q),(0,b.e$)(D,z,q,Q),(0,b.e$)(K,W,G,-Q),(0,b.e$)(J,G,W,-Q),oe(e,z,q,V,D,G,W,K,J)}(e,i,c.controlPoint),p.every(e=>0===e)?null:p}_projectControlPoint(e,t){if(!F(e))return{valid:!0,controlPoint:e};const{sourcePoint:n,mapPoint:r}=e,{geometry:i,pending:o}=(0,j.projectOrLoad)(r,t);return o?{valid:!1,controlPoint:null}:o||i?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:i}}:(s.A.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:e,sourceSpatialReference:r.spatialReference,targetSpatialReference:t}),{valid:!1,controlPoint:null})}};function F(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(0,r.Cg)([(0,c.MZ)({type:[k],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[X],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:$.A,isRequired:!0}}}}})],N.prototype,"controlPoints",void 0),(0,r.Cg)([(0,h.w)("controlPoints")],N.prototype,"readControlPoints",null),(0,r.Cg)([(0,d.K)("controlPoints")],N.prototype,"writeControlPoints",null),(0,r.Cg)([(0,c.MZ)({clonable:!1})],N.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],N.prototype,"height",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"inverseTransform",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],N.prototype,"transform",null),(0,r.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],N.prototype,"width",void 0),N=(0,r.Cg)([(0,p.$)("esri.layers.support.ControlPointsGeoreference")],N);const z=(0,T.vt)(),q=(0,T.vt)(),V=(0,T.vt)(),D=(0,T.vt)(),G=(0,T.vt)(),W=(0,T.vt)(),K=(0,T.vt)(),J=(0,T.vt)(),Q=Math.PI/2;function ee(e,t,n){(0,b.hZ)(e,n.sourcePoint.x,n.sourcePoint.y),(0,b.hZ)(t,n.mapPoint.x,n.mapPoint.y)}function te(e,t,n,r,i){return ee(z,G,t),ee(q,W,n),ee(V,K,r),ee(D,J,i),oe(e,z,q,V,D,G,W,K,J)}const ne=new Array(8).fill(0),re=new Array(8).fill(0);function ie(e,t,n,r,i){return e[0]=t[0],e[1]=t[1],e[2]=n[0],e[3]=n[1],e[4]=r[0],e[5]=r[1],e[6]=i[0],e[7]=i[1],e}function oe(e,t,n,r,i,o,s,a,l){return E(e,ie(ne,t,n,r,i),ie(re,o,s,a,l))}var se=n(78888),ae=n(21287),le=n(84952),ce=n(13069),ue=n(4902),he=n(92474),pe=n(35666),de=n(5443),fe=n(21325);const me=(0,T.vt)();let ge=class extends Y{constructor(e){super(e),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:e,topRight:t,bottomLeft:n,bottomRight:r}=this;if(null==e||null==t||null==n||null==r)return null;const i=e.spatialReference;return t=this.projectOrWarn(t,i),n=this.projectOrWarn(n,i),r=this.projectOrWarn(r,i),null==t||null==n||null==r?null:new Z.A({rings:[[[n.x,n.y],[e.x,e.y],[t.x,t.y],[r.x,r.y],[n.x,n.y]]],spatialReference:i})}set coords(e){const{topLeft:t}=this;if(null==t)return;const n=t.spatialReference;if(null==(e=this.projectOrWarn(e,n)))return;const{rings:[[r,i,o,s]]}=e;this.bottomLeft=new B.A({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new B.A({x:i[0],y:i[1],spatialReference:n}),this.topRight=new B.A({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new B.A({x:s[0],y:s[1],spatialReference:n})}toSourceNormalized(e){const{topLeft:t,topRight:n,bottomRight:r,bottomLeft:i}=this;if(null==e||null==t||null==n||null==r||null==i)return null;const o=t.spatialReference;e=e.normalize();const s=(0,j.projectOrLoad)(e,o).geometry;if(null==s)return null;(0,b.hZ)(me,s.x,s.y);const a=E((0,M.vt)(),[t.x,t.y,i.x,i.y,n.x,n.y,r.x,r.y],[0,0,0,1,1,0,1,1]);return S(me,me,a),(0,L.tc)(me[0],me[1])}};(0,r.Cg)([(0,c.MZ)({clonable:!1})],ge.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)({type:B.A})],ge.prototype,"bottomLeft",void 0),(0,r.Cg)([(0,c.MZ)({type:B.A})],ge.prototype,"bottomRight",void 0),(0,r.Cg)([(0,c.MZ)({type:B.A})],ge.prototype,"topLeft",void 0),(0,r.Cg)([(0,c.MZ)({type:B.A})],ge.prototype,"topRight",void 0),ge=(0,r.Cg)([(0,p.$)("esri.layers.support.CornersGeoreference")],ge);const ye=ge;var xe=n(34727),ve=n(34304);let _e=class extends Y{constructor(e){super(e),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:e,ymin:t,xmax:n,ymax:r,spatialReference:i}=this.extent;let o;if(this.rotation){const{x:i,y:s}=this.extent.center,a=we(i,s,this.rotation);o=[a(e,t),a(e,r),a(n,r),a(n,t)],o.push(o[0])}else o=[[e,t],[e,r],[n,r],[n,t],[e,t]];return new Z.A({rings:[o],spatialReference:i})}set coords(e){if(null==e||null==this.extent)return;const t=this.extent.spatialReference;if(e=this.projectOrWarn(e,t),null==e?.extent)return;const{rings:[[n,r,i]],extent:{center:{x:o,y:s}}}=e,a=(0,xe.KJ)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=we(o,s,-a),[c,u]=l(n[0],n[1]),[h,p]=l(i[0],i[1]);this.extent=new de.A({xmin:c,ymin:u,xmax:h,ymax:p,spatialReference:t}),this.rotation=a}toSourceNormalized(e){const{extent:t,rotation:n}=this;if(null==e||null==t)return null;const{xmin:r,ymin:i,xmax:o,ymax:s,center:a,spatialReference:l}=t;e=e.normalize();const c=(0,j.projectOrLoad)(e,l).geometry;if(null==c)return null;let u=c.x,h=c.y;return n&&([u,h]=we(a.x,a.y,-n)(u,h)),(0,L.tc)((0,xe.hs)(u,r,o,0,1),(0,xe.hs)(h,s,i,0,1))}};function we(e,t,n){const r=(0,ve.DF)(n),i=Math.cos(r),o=Math.sin(r);return(n,r)=>[i*(n-e)+o*(r-t)+e,i*(r-t)-o*(n-e)+t]}function Me(e,t){const n=(0,pe.aB)(t);return function(e){return"media"===e?.type}(e)&&!!e.portalItem&&null!=n&&n>3}function be(e,t,n){return{enabled:!Me(n?.layer,n?.origin),ignoreOrigin:!0}}(0,r.Cg)([(0,c.MZ)({clonable:!1})],_e.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)({type:de.A})],_e.prototype,"extent",void 0),(0,r.Cg)([(0,c.MZ)({type:Number})],_e.prototype,"rotation",void 0),_e=(0,r.Cg)([(0,p.$)("esri.layers.support.ExtentAndRotationGeoreference")],_e);const Pe={json:{name:"url",type:String,write:{overridePolicy:be}}},Ae={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:be}}},Ce={types:{key:"type",base:Y,typeMap:{"control-points":N,corners:ye,"extent-and-rotation":_e}},json:{types:{key:"type",base:Y,typeMap:{"control-points":N}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};let Ie=class extends((0,ue.PH)((0,a.P)(he.x_))){constructor(e){super(e),this.georeference=null,this.opacity=1}readGeoreference(e){return N.fromJSON(e)}writeGeoreference(e,t,n,r){const i=r?.resources?.pendingOperations,a=()=>{const i=function(e,t,n){if(!e||"control-points"===e.type)return e;const{coords:r}=e;if(5!==r?.rings[0]?.length)return null;const[i,o,s,a]=r.rings[0],{spatialReference:l}=r;return new N({controlPoints:[{mapPoint:new B.A({x:i[0],y:i[1],spatialReference:l}),sourcePoint:(0,L.tc)(0,n)},{mapPoint:new B.A({x:o[0],y:o[1],spatialReference:l}),sourcePoint:(0,L.tc)(0,0)},{mapPoint:new B.A({x:s[0],y:s[1],spatialReference:l}),sourcePoint:(0,L.tc)(t,0)},{mapPoint:new B.A({x:a[0],y:a[1],spatialReference:l}),sourcePoint:(0,L.tc)(t,n)}],width:t,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(i){if("control-points"!==e.type&&s.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${e.type}' has been automatically converted.`),4!==i.controlPoints?.length&&r?.messages)return void r.messages.push(new o.A("property:unsupported","only 'control-points' georeference with 4 control points may be persisted."));t[n]=i.write({},r)}};if("control-points"!==e.type&&!this.loaded&&i)return t[n]={},void i.push(this.load().then(a));a()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(e){const{georeference:t,contentWidth:n,contentHeight:r}=this;if(null==e||null==t||0===n||0===r)return null;const i=t.toSourceNormalized(e);return null==i?null:(i.x*=n,i.y*=r,i)}};(0,r.Cg)([(0,c.MZ)(Ce)],Ie.prototype,"georeference",void 0),(0,r.Cg)([(0,h.w)("georeference")],Ie.prototype,"readGeoreference",null),(0,r.Cg)([(0,d.K)("georeference")],Ie.prototype,"writeGeoreference",null),(0,r.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],Ie.prototype,"opacity",void 0),Ie=(0,r.Cg)([(0,p.$)("esri.layers.support.MediaElementBase")],Ie);var Re=n(85648);const Se=Symbol("ImageElementInstance"),Ee=Symbol("VideoElementInstance");function Oe(e){return function(e){return null!=e&&"object"==typeof e&&Se in e}(e)||function(e){return null!=e&&"object"==typeof e&&Ee in e}(e)}var Le,Te=n(97159);let Be=class extends Ie{static{Le=Se}constructor(e){super(e),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[Le]=!0,this.image=null}load(){const e=this.image;if("string"==typeof e){const t=(0,ae.M5)(e).then(e=>{this._set("content",e)});this.addResolvingPromise(t)}else if(e instanceof HTMLImageElement){const t=e.decode().then(()=>{this._set("content",e)});this.addResolvingPromise(t)}else e?this._set("content",e):this.addResolvingPromise(Promise.reject(new o.A("image-element:invalid-image-type","Invalid image type",{image:e})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(e,t,n){return(0,Te.f)(t.url,n)}writeImage(e,t,n,r){if(null==e)return;const i=r?.portalItem,o=r?.resources;if(!i||!o)return void("string"==typeof e&&(t[n]=(0,Te.t)(e,r)));const s=function(e){return"string"==typeof e&&!(0,le.DB)(e)&&!(0,le.w8)(e)}(e)?e:null;if(s){if(null==(0,Te.i)(s))return void(t[n]=s);const e=(0,Te.t)(s,{...r,verifyItemRelativeUrls:r?.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1);if(i&&e&&!(0,le.oP)(e))return o.toKeep.push({resource:i.resourceFromPath(e),compress:!1}),void(t[n]=e)}t[n]="<pending>",o.pendingOperations.push(async function(e){return"string"==typeof e?(0,le.DB)(e)?(0,le.N9)(e):(await(0,se.A)(e,{responseType:"blob"})).data:new Promise(t=>function(e){if(e instanceof HTMLCanvasElement)return e;const t=e instanceof HTMLImageElement?e.naturalWidth:e.width,n=e instanceof HTMLImageElement?e.naturalHeight:e.height,r=document.createElement("canvas"),i=r.getContext("2d");return r.width=t,r.height=n,e instanceof HTMLImageElement?i.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&i.putImageData(e,0,0),r}(e).toBlob(t))}(e).then(e=>{const r=function(e,t){const n=(0,ce.lk)(),r=`${(0,le.fj)("media",n)}.${(0,Re.n)({type:"blob",blob:e})}`;return t.resourceFromPath(r)}(e,i);t[n]=r.itemRelativeUrl,o.toAdd.push({resource:r,content:{type:"blob",blob:e},compress:!1,finish:e=>{this.image=e.url}})}))}};(0,r.Cg)([(0,c.MZ)()],Be.prototype,"animationOptions",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Be.prototype,"content",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Be.prototype,"contentWidth",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Be.prototype,"contentHeight",null),(0,r.Cg)([(0,c.MZ)(Pe)],Be.prototype,"image",void 0),(0,r.Cg)([(0,h.w)("image",["url"])],Be.prototype,"readImage",null),(0,r.Cg)([(0,d.K)("image")],Be.prototype,"writeImage",null),(0,r.Cg)([(0,c.MZ)(Ae)],Be.prototype,"type",void 0),Be=(0,r.Cg)([(0,p.$)("esri.layers.support.ImageElement")],Be);var Ze=n(62885),je=n(65529),$e=n(61893),Ye=n(36708),Ue=n(19419),He=n(12176),Xe=n(6518),ke=n(65008),Ne=n(89056);let Fe=class extends ke.A{constructor(e){super(e)}get bounds(){const e=this.coords;return null==e?.extent?null:(0,Ue.VY)(e.extent)}get coords(){const e=this.element.georeference?.coords;return(0,j.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return Z.A.fromJSON((0,Ne.jZ)(this.coords))}get normalizedBounds(){const e=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=e?(0,Ue.VY)(e):null}};(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"spatialReference",void 0),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"element",void 0),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"bounds",null),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"normalizedCoords",null),(0,r.Cg)([(0,c.MZ)()],Fe.prototype,"normalizedBounds",null),Fe=(0,r.Cg)([(0,p.$)("esri.layers.support.MediaElementView")],Fe);var ze,qe=n(16494),Ve=n(38969);const De=Symbol("canplay");let Ge=class extends Ie{static{ze=Ee}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type="video",this[ze]=!0}load(){const e=this.video;return"string"==typeof e?this.addResolvingPromise(this._preProcessVideoUrl(e).then(async e=>{const t=document.createElement("video");return t.src=qe.W5.sanitizeUrl((0,le.s2)(e)),t.crossOrigin="anonymous",t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set("content",t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set("content",e)})):this.addResolvingPromise(Promise.reject(new o.A("video-element:invalid-video-type","Invalid video type",{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;const t=(0,xe.qE)(e,0,this.content.duration);"fastSeek"in this.content?this.content.fastSeek(t):this.content.currentTime=t,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(e){"not-loaded"===this.loadStatus?this._set("video",e):s.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(e,t,n,r){if(!e)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source is missing")));const i=function(e){return"string"==typeof e&&!(0,le.DB)(e)&&!(0,le.w8)(e)}(e)?e:null;if(!i)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source must be an absolute url")));!(0,le.oP)(i)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(i);const s=(0,le.s2)(i);(0,Te.i)(s)?r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source cannot be an item resource")):t[n]=s}async _preProcessVideoUrl(e){if((0,le.zs)(e))return(0,le.yM)(e);try{return await(0,se.A)(e,{method:"head"}),e}catch{try{return(0,le.yM)(e,!0)}catch{return e}}}async _loadVideo(e){"anonymous"!==e.crossOrigin&&(e.crossOrigin="anonymous",(0,le.w8)(e.src)||(e.src=e.src));try{await(0,Ve.i)(e,e=>this.addHandles(e,De)),this.autoplay&&await e.play().catch(e=>{throw console.error(e),e})}finally{this.removeHandles(De)}}};(0,r.Cg)([(0,c.MZ)()],Ge.prototype,"autoplay",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Ge.prototype,"content",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Ge.prototype,"contentWidth",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Ge.prototype,"contentHeight",null),(0,r.Cg)([(0,c.MZ)({type:Number})],Ge.prototype,"currentTime",null),(0,r.Cg)([(0,c.MZ)({type:Number})],Ge.prototype,"duration",null),(0,r.Cg)([(0,c.MZ)(Pe)],Ge.prototype,"video",null),(0,r.Cg)([(0,d.K)("video")],Ge.prototype,"writeVideo",null),(0,r.Cg)([(0,c.MZ)(Ae)],Ge.prototype,"type",void 0),Ge=(0,r.Cg)([(0,p.$)("esri.layers.support.VideoElement")],Ge);const We={key:"type",defaultKeyValue:"image",base:Ie,typeMap:{image:Be,video:Ge}},Ke=i.A.ofType(We);let Je=class extends((0,he.WV)((0,$e.g)(je.nJ))){constructor(e){super(e),this._index=new Xe.F,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=e=>{for(const t of e.removed){const e=this._elementViewsMap.get(t);this._elementViewsMap.delete(t),this._index.delete(e),this.removeHandles(e),e.destroy(),this.notifyChange("fullExtent")}const{spatialReference:t}=this;for(const n of e.added){if(this._elementViewsMap.get(n))continue;const e=new Fe({spatialReference:t,element:n});this._elementViewsMap.set(n,e);const r=(0,Ye.wB)(()=>e.coords,()=>this._updateIndexForElement(e,!1));this._updateIndexForElement(e,!0),this.addHandles(r,e)}this._elementsIndexes.clear(),this.elements.forEach((e,t)=>this._elementsIndexes.set(e,t)),this.emit("refresh")},this.elements=new Ke}async load(e){if((0,l.Te)(e),!this.spatialReference){const e=this.elements.find(e=>null!=e.georeference?.coords);this._set("spatialReference",e?e.georeference.coords.spatialReference:$.A.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(e){this._set("elements",(0,Ze.V)(e,this._get("elements"),Ke))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const e=this._index.fullBounds;return null==e?null:new de.A({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:this.spatialReference})}set spatialReference(e){"not-loaded"===this.loadStatus?this._set("spatialReference",e):s.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(e,t){await this.load(),await(0,j.initializeProjection)(e.spatialReference,this.spatialReference,null,t);const n=(0,fe.aI)(e.spatialReference,this.spatialReference)?e:(0,j.project)(e,this.spatialReference);if(!n)return[];const r=n.normalize(),i=[];for(const e of r)this._index.forEachInBounds((0,Ue.VY)(e),({normalizedCoords:t,element:n})=>{null!=t&&(0,He.fA)(e,t)&&i.push(n)});return i.sort((e,t)=>this._elementsIndexes.get(e)-this._elementsIndexes.get(t)),i}hasElement(e){return this.elements.includes(e)}_updateIndexForElement(e,t){const n=e.normalizedBounds,r=this._index.has(e),i=null!=n;this._index.delete(e),i&&this._index.set(e,n),this.notifyChange("fullExtent"),t||(r!==i?this.emit("refresh"):this.emit("change",{element:e.element}))}};(0,r.Cg)([(0,c.MZ)()],Je.prototype,"elements",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Je.prototype,"fullExtent",null),(0,r.Cg)([(0,c.MZ)()],Je.prototype,"spatialReference",null),Je=(0,r.Cg)([(0,p.$)("esri.layers.support.LocalMediaElementSource")],Je);let Qe=class extends((0,m.dM)((0,x.j)((0,g.q)((0,y.A)((0,a.P)(f.A)))))){constructor(e){super(e),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,l.sg)(async(e,t,r)=>{const{save:i,saveAs:o}=await n.e(3561).then(n.bind(n,63561));switch(e){case 0:return i(this,t);case 1:return o(this,r,t)}}),this.source=new Je}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.loadFromPortal({supportedTypes:["Media Layer"]},e);let t=this.source;if(!t)throw new o.A("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");const n=this._getSourceOverride(t,this.georeference);n&&(this.setAtOrigin("source",n,"web-map"),this.setAtOrigin("source",n,"web-scene"),t=n);const r=Oe(t)?new Je({elements:new i.A([t])}):t;this._set("effectiveSource",r),this.spatialReference&&(r.spatialReference=this.spatialReference),await r.load(e),this.spatialReference=r.spatialReference}destroy(){this.effectiveSource?.destroy(),this.effectiveSource!==this.source&&this.source?.destroy()}readGeoreference(e,t){return e&&"itemId"in t&&t.itemId?e:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}get loaded(){return super.loaded}get source(){return this._get("source")}set source(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",e):s.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(e){return e?Array.isArray(e)?new Je({elements:new i.A(e)}):e instanceof i.A?new Je({elements:e}):e:null}readSource(e,t,n){if("itemId"in t&&t.itemId)return;const r=this._createSource(t);return r?.read(t,n),r}writeSource(e,t,n,r){if(e&&e instanceof Je){const t=e.elements.length;if(1!==t)return void(r?.messages&&r.messages.push(new o.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${t}.`)));e=e.elements.at(0)}Oe(e)?e.write(t,r):r?.messages&&(e?r.messages.push(new o.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):r.messages.push(new o.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_createSource(e){if("mediaType"in e)switch(e.mediaType){case"image":return new Be;case"video":return new Ge}return null}_getSourceOverride(e,t){if(Oe(e)&&3===this.originIdOf("source")&&t&&(5===this.originIdOf("georeference")||4===this.originIdOf("georeference"))){const n=e.toJSON(),r=this._createSource(n);return r.read({...n},{origin:"portal-item"}),r.read({georeference:t},{origin:"web-map"}),r.read({georeference:t},{origin:"web-scene"}),r}return null}};(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Qe.prototype,"effectiveSource",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],Qe.prototype,"georeference",void 0),(0,r.Cg)([(0,h.w)("web-document","georeference")],Qe.prototype,"readGeoreference",null),(0,r.Cg)([(0,c.MZ)({type:String})],Qe.prototype,"copyright",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Qe.prototype,"fullExtent",null),(0,r.Cg)([(0,c.MZ)({type:["MediaLayer"]})],Qe.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,c.MZ)({type:["show","hide"]})],Qe.prototype,"listMode",void 0),(0,r.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:N}},overridePolicy(e,t,n){return{enabled:!0,allowNull:!1,ignoreOrigin:Me(this,n?.origin)&&Oe(e)&&!!e.georeference&&e.originIdOf("georeference")>3}}}}})],Qe.prototype,"source",null),(0,r.Cg)([(0,u.w)("source")],Qe.prototype,"castSource",null),(0,r.Cg)([(0,h.w)("source",["url"])],Qe.prototype,"readSource",null),(0,r.Cg)([(0,d.K)("source")],Qe.prototype,"writeSource",null),(0,r.Cg)([(0,c.MZ)()],Qe.prototype,"spatialReference",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],Qe.prototype,"type",void 0),Qe=(0,r.Cg)([(0,p.$)("esri.layers.MediaLayer")],Qe);const et=Qe},21287:(e,t,n)=>{n.d(t,{M5:()=>h,eV:()=>u});var r=n(78888),i=n(49186),o=n(74887),s=n(84952),a=n(26306);let l=null,c=!0;function u(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(c)try{return new ImageData(e,t,n)}catch(e){c=!1}const i=function(e,t,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(e,t)}(t,n,r);return i.data.set(e,0),i}async function h(e,t){const{arrayBuffer:l,mediaType:c}=await async function(e,t){const n=(0,s.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const i=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(e,t),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(e(l))return r(l,t)}if(u){const{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(n.bind(n,22390));if(e(l))return r(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,o.zf)(e))throw new i.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:c}),t)}},25036:(e,t,n)=>{n.d(t,{j:()=>s});var r=n(31635),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608));const s=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===e.minScale&&n.maxScale===e.maxScale?n:e}};return(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,o.$)("esri.layers.mixins.ScaleRangeLayer")],n),n}},38954:(e,t,n)=>{n.d(t,{A:()=>f,B:()=>d,C:()=>u,D:()=>h,E:()=>T,F:()=>$,H:()=>U,a:()=>B,b:()=>y,c:()=>s,d:()=>c,e:()=>P,f:()=>l,g:()=>g,h:()=>A,i:()=>a,j:()=>x,k:()=>_,l:()=>o,m:()=>C,n:()=>b,o:()=>R,q:()=>L,r:()=>M,s:()=>v,t:()=>I,u:()=>w,v:()=>S,w:()=>p,x:()=>Y,y:()=>H,z:()=>m});var r=n(51850),i=n(34304);function o(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function u(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function m(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function x(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function _(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function b(e,t){const n=t[0],r=t[1],i=t[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function P(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2];return e[0]=i*l-o*a,e[1]=o*s-r*l,e[2]=r*a-i*s,e}function C(e,t,n,r){const i=t[0],o=t[1],s=t[2];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=s+r*(n[2]-s),e}function I(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12],e[1]=n[1]*r+n[5]*i+n[9]*o+n[13],e[2]=n[2]*r+n[6]*i+n[10]*o+n[14],e}function R(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e}function S(e,t,n){const r=n[0],i=n[1],o=n[2],s=n[3],a=t[0],l=t[1],c=t[2],u=i*c-o*l,h=o*a-r*c,p=r*l-i*a,d=i*p-o*h,f=o*u-r*p,m=r*h-i*u,g=2*s;return e[0]=a+u*g+2*d,e[1]=l+h*g+2*f,e[2]=c+p*g+2*m,e}const E=(0,r.vt)(),O=(0,r.vt)();function L(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function T(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],o=n[2]-t[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const B=c,Z=u,j=h,$=x,Y=v,U=o,H=_;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(e,t){b(E,e),b(O,t);const n=P(E,O);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,i,o){const s=1-o,a=s*s,l=o*o,c=a*s,u=3*o*a,h=3*l*s,p=l*o;return e[0]=t[0]*c+n[0]*u+r[0]*h+i[0]*p,e[1]=t[1]*c+n[1]*u+r[1]*h+i[1]*p,e[2]=t[2]*c+n[2]*u+r[2]*h+i[2]*p,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:A,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2],c=i*l-o*a,u=o*s-r*l,h=r*a-i*s,p=Math.sqrt(c*c+u*u+h*h);return e[0]=c/p,e[1]=u/p,e[2]=h/p,e},direction:T,dist:$,distance:x,div:j,divide:h,dot:P,equals:function(e,t){if(e===t)return!0;const n=e[0],r=e[1],o=e[2],s=t[0],a=t[1],l=t[2],c=(0,i.FD)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=c*Math.max(1,Math.abs(o),Math.abs(l))},exactEquals:L,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,c=s*(o-1),u=s*(3-2*o);return e[0]=t[0]*a+n[0]*l+r[0]*c+i[0]*u,e[1]=t[1]*a+n[1]*l+r[1]*c+i[1]*u,e[2]=t[2]*a+n[2]*l+r[2]*c+i[2]*u,e},inverse:M,len:U,length:o,lerp:C,max:m,min:f,mul:Z,multiply:u,negate:w,normalize:b,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=o*t,e},rotateX:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:y,set:a,sign:d,sqrDist:Y,sqrLen:H,squaredDistance:v,squaredLength:_,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:B,subtract:c,transformMat3:R,transformMat4:I,transformQuat:S},Symbol.toStringTag,{value:"Module"}))},38969:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(37955);function i(e,t){return new Promise((n,i)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(t((0,r.Oo)(e,"canplay",n)),t((0,r.Oo)(e,"error",i)))})}},48163:(e,t,n)=>{function r(){return[0,0]}function i(e){return[e[0],e[1]]}function o(e,t){return[e,t]}function s(){return o(1,1)}function a(){return o(1,0)}function l(){return o(0,1)}n.d(t,{Un:()=>c,fA:()=>o,o8:()=>i,vt:()=>r});const c=s(),u=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:h,ZEROS:[0,0],clone:i,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const n=Math.min(2,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t},fromValues:o,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},60999:(e,t,n)=>{n.d(t,{DZ:()=>f,Ke:()=>d,Tj:()=>u,UT:()=>m,jJ:()=>c});var r=n(31635),i=n(65008),o=n(97768),s=n(74887),a=n(10107),l=n(40608);function c(e,t,n){return(0,s.Lx)(e.map((e,r)=>t.apply(n,[e,r])))}async function u(e,t,n){return(await(0,s.Lx)(e.map((e,r)=>t.apply(n,[e,r])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function p(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return p(e)}}async function f(e){try{return h(await e)}catch(e){return(0,s.QP)(e),p(e)}}function m(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=p(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,r.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,r.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,r.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,r.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g)},62885:(e,t,n)=>{n.d(t,{H:()=>o,V:()=>i});var r=n(7762);function i(e,t,n=r.A){return t||(t=new n),t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function o(e){return e}},63074:(e,t,n)=>{n.d(t,{LF:()=>u,dM:()=>h,sU:()=>l});var r=n(31635),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),s=n(89317),a=n(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},c={read:{reader:a.LF},write:{allowNull:!0,writer:a.M9,layerContainerTypes:s.K}},u={json:{read:!1,write:!1,origins:{"web-map":c,"portal-item":c}}},h=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,i.MZ)(l)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,i.MZ)(u)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,o.$)("esri.layers.mixins.BlendLayer")],n),n}},69540:(e,t,n)=>{n.d(t,{OU:()=>u,Pw:()=>h});var r=n(31635),i=n(65008),o=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(40608);const c=Symbol("ClonableMixin"),u=e=>{var t;const n=e;let i=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,a.oY)(this);(0,s.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,r=t.store,i={},l=new Map;for(const t in n){const s=n[t],a=r?.originOf(t),c=s.clonable;if(s.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[t];let h=null;if("function"==typeof c)h=c(u,e);else if("reference"===c)h=u;else if(h=(0,o.TU)(u,e),null!=u&&null==h)continue;0===a?l.set(t,h):i[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){const e=(0,a.oY)(c)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return c}};return i=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],i),i},h=u(i.A)},75503:(e,t,n)=>{n.d(t,{EC:()=>A,wq:()=>a});var r=n(4576),i=n(21818),o=(n(44208),n(15142)),s=n(11006);class a{constructor(e=9,t){this._compareMinX=p,this._compareMinY=d,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),w.prune(),M.prune(),b.prune(),P.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const r=this._toBBox;if(v(e,n))for(w.clear();n;){for(let i=0,o=n.children.length;i<o;i++){const o=n.children[i],s=n.leaf?r(o):o;v(e,s)&&(n.leaf?t(o):x(e,s)?l(o,t):w.push(o))}n=w.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!v(e,t))return!1;for(w.clear();t;){for(let r=0,i=t.children.length;r<i;r++){const i=t.children[r],o=t.leaf?n(i):i;if(v(e,o)){if(t.leaf||x(e,o))return!0;w.push(i)}}t=w.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new I([]),this}remove(e){if(!e)return this;let t,n=this._data,o=null,s=0,a=!1;const l=this._toBBox(e);for(b.clear(),P.clear();n||b.length>0;){if(n||(n=b.pop(),o=b.data[b.length-1],s=P.pop()??0,a=!0),n.leaf&&(t=(0,r.qh)(n.children,(0,i.zI)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),b.push(n),this._condense(b),this;a||n.leaf||!x(n,l)?o?(s++,n=o.children[s],a=!1):n=null:(b.push(n),P.push(s),s=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,r){const i=n-t+1;let o=this._maxEntries;if(i<=o){const r=new I(e.slice(t,n+1));return c(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/o**(r-1)));const s=new R([]);s.height=r;const a=Math.ceil(i/o),l=a*Math.ceil(Math.sqrt(o));_(e,t,n,l,this._compareMinX);for(let i=t;i<=n;i+=l){const t=Math.min(i+l-1,n);_(e,i,t,a,this._compareMinY);for(let n=i;n<=t;n+=a){const i=Math.min(n+a-1,t);s.children.push(this._build(e,n,i,r-1))}}return c(s,this._toBBox),s}_insert(e,t,n){const r=this._toBBox,i=n?e:r(e);b.clear();const o=function(e,t,n,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let o=0,s=t.children.length;o<s;o++){const s=t.children[o],a=f(s),l=g(e,s)-a;l<i?(i=l,r=a<r?a:r,n=s):l===i&&a<r&&(r=a,n=s)}t=n||t.children[0]}return t}(i,this._data,t,b);for(o.children.push(e),h(o,i);t>=0&&b.data[t].children.length>this._maxEntries;)this._split(b,t),t--;!function(e,t,n){for(let r=n;r>=0;r--)h(t.data[r],e)}(i,b,t)}_split(e,t){const n=e.data[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const o=this._chooseSplitIndex(n,i,r);if(!o)return;const s=n.children.splice(o,n.children.length-o),a=n.leaf?new I(s):new R(s);a.height=n.height,c(n,this._toBBox),c(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new R([e,t]),this._data.height=e.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let r,i,o;r=i=1/0;for(let s=t;s<=n-t;s++){const t=u(e,0,s,this._toBBox),a=u(e,s,n,this._toBBox),l=y(t,a),c=f(t)+f(a);l<r?(r=l,o=s,i=c<i?c:i):l===r&&c<i&&(i=c,o=s)}return o}_chooseSplitAxis(e,t,n){const r=e.leaf?this._compareMinX:p,i=e.leaf?this._compareMinY:d;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)}_allDistMargin(e,t,n,r){e.children.sort(r);const i=this._toBBox,o=u(e,0,t,i),s=u(e,n-t,n,i);let a=m(o)+m(s);for(let r=t;r<n-t;r++){const t=e.children[r];h(o,e.leaf?i(t):t),a+=m(o)}for(let r=n-t-1;r>=t;r--){const t=e.children[r];h(s,e.leaf?i(t):t),a+=m(s)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const i=e.data[t-1],o=i.children;o.splice((0,r.qh)(o,n,o.length,i.indexHint),1)}else this.clear();else c(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(M.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,i.zI)(e));else M.pushArray(n.children);n=M.pop()??null}}function c(e,t){u(e,0,e.children.length,t,e)}function u(e,t,n,r,i){i||(i=new I([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o,s=t;s<n;s++)o=e.children[s],h(i,e.leaf?r(o):o);return i}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function p(e,t){return e.minX-t.minX}function d(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function g(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function y(e,t){const n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function x(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function v(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e,t,n,r,i){const o=[t,n];for(;o.length;){const t=o.pop(),n=o.pop();if(t-n<=r)continue;const a=n+Math.ceil((t-n)/r/2)*r;(0,s.q)(e,a,n,t,i),o.push(n,a,a,t)}}const w=new o.A,M=new o.A,b=new o.A,P=new o.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class C extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class I extends C{constructor(e){super(),this.children=e,this.leaf=!0}}class R extends C{constructor(e){super(),this.children=e,this.leaf=!1}}},76369:(e,t,n)=>{n.d(t,{LF:()=>M,M9:()=>b});var r=n(49186),i=n(93637),o=n(40876),s=n(59247),a=n(27865);class l extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let n=null;const r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(n){const e=this.location.end,r="".padEnd(o.line.toString().length," "),a=n[i.line-1],l=(i.line===e.line?e.column:a.length+1)-i.column||1;t+="\n --\x3e "+s+"\n"+r+" |\n"+o.line+" | "+a+"\n"+r+" | "+"".padEnd(i.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+s}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function i(e){return r?e.replace(r,e=>"\\u{"+n(e)+"}"):e}function o(e){return i(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}function s(e){return i(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}const a={literal:e=>'"'+o(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return a[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."}}function c(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=u(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:u(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function u(e){let t;if(!e)return[];try{t=function(e,t){const n={},r=(t=void 0!==t?t:{}).grammarSource,i={start:we};let o=we;const s="none",a=")",c=",",u="(",h="%",p="px",d="cm",f="mm",m="in",g="pt",y="pc",x="deg",v="rad",_="grad",w="turn",M="#",b=".",P="e",A=/^[ \t\n\r]/,C=/^[a-z\-]/,I=/^[0-9a-fA-F]/,R=/^[+\-]/,S=/^[0-9]/,E=ye("none"),O=me("none",!1),L=me(")",!1),T=me(",",!1),B=ge([" ","\t","\n","\r"],!1,!1,!1),Z=ye("function"),j=me("(",!1),$=ye("identifier"),Y=ge([["a","z"],"-"],!1,!1,!1),U=ye("percentage"),H=me("%",!1),X=ye("length"),k=me("px",!1),N=me("cm",!1),F=me("mm",!1),z=me("in",!1),q=me("pt",!1),V=me("pc",!1),D=ye("angle"),G=me("deg",!1),W=me("rad",!1),K=me("grad",!1),J=me("turn",!1),Q=ye("number"),ee=ye("color"),te=me("#",!1),ne=ge([["0","9"],["a","f"],["A","F"]],!1,!1,!1),re=ge(["+","-"],!1,!1,!1),ie=ge([["0","9"]],!1,!1,!1),oe=me(".",!1),se=me("e",!1);let ae=0|t.peg$currPos,le=ae;const ce=[{line:1,column:1}];let ue,he=ae,pe=t.peg$maxFailExpected||[],de=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=i[t.startRule]}function fe(){return e.substring(le,ae)}function me(e,t){return{type:"literal",text:e,ignoreCase:t}}function ge(e,t,n,r){return{type:"class",parts:e,inverted:t,ignoreCase:n,unicode:r}}function ye(e){return{type:"other",description:e}}function xe(t){let n,r=ce[t];if(r)return r;if(t>=ce.length)n=ce.length-1;else for(n=t;!ce[--n];);for(r=ce[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return ce[t]=r,r}function ve(e,t,n){const i=xe(e),o=xe(t);return{source:r,start:{offset:e,line:i.line,column:i.column},end:{offset:t,line:o.line,column:o.column}}}function _e(e){ae<he||(ae>he&&(he=ae,pe=[]),pe.push(e))}function we(){let e;return e=Me(),e===n&&(e=function(){let e,t;if(e=[],t=be(),t!==n)for(;t!==n;)e.push(t),t=be();else e=n;return e}()),e}function Me(){let t,r;return de++,t=ae,Ae(),e.substr(ae,4)===s?(r=s,ae+=4):(r=n,0===de&&_e(O)),r!==n?(Ae(),le=t,t=[]):(ae=t,t=n),de--,t===n&&0===de&&_e(E),t}function be(){let t,r,i,o;return t=ae,Ae(),r=function(){let t,r,i;return de++,t=ae,r=Ce(),r!==n?(40===e.charCodeAt(ae)?(i=u,ae++):(i=n,0===de&&_e(j)),i!==n?(le=t,t=r):(ae=t,t=n)):(ae=t,t=n),de--,t===n&&(r=n,0===de&&_e(Z)),t}(),r!==n?(Ae(),i=function(){let t,r,i,o,s,a,l,u;if(t=ae,r=Pe(),r!==n){for(i=[],o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=c,ae++):(a=n,0===de&&_e(T)),a===n&&(a=null),l=Ae(),u=Pe(),u!==n?(s=[s,a,l,u],o=s):(ae=o,o=n);o!==n;)i.push(o),o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=c,ae++):(a=n,0===de&&_e(T)),a===n&&(a=null),l=Ae(),u=Pe(),u!==n?(s=[s,a,l,u],o=s):(ae=o,o=n);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(r,i)}else ae=t,t=n;return t}(),i===n&&(i=null),Ae(),41===e.charCodeAt(ae)?(o=a,ae++):(o=n,0===de&&_e(L)),o!==n?(Ae(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(r,i)):(ae=t,t=n)):(ae=t,t=n),t}function Pe(){let e,t;return e=ae,t=Ie(),t===n&&(t=Re(),t===n&&(t=Se(),t===n&&(t=function(){let e,t;return de++,e=ae,Ae(),t=Oe(),t!==n?(le=e,e=function(e){return{value:e,unit:null}}(t)):(ae=e,e=n),de--,e===n&&0===de&&_e(Q),e}()))),t!==n&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===n&&(e=ae,t=Ee(),t!==n&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Ae(){let t,r;for(de++,t=[],r=e.charAt(ae),A.test(r)?ae++:(r=n,0===de&&_e(B));r!==n;)t.push(r),r=e.charAt(ae),A.test(r)?ae++:(r=n,0===de&&_e(B));return de--,t}function Ce(){let t,r,i;if(de++,t=ae,r=[],i=e.charAt(ae),C.test(i)?ae++:(i=n,0===de&&_e(Y)),i!==n)for(;i!==n;)r.push(i),i=e.charAt(ae),C.test(i)?ae++:(i=n,0===de&&_e(Y));else r=n;return r!==n&&(le=t,r=fe()),t=r,de--,t===n&&(r=n,0===de&&_e($)),t}function Ie(){let t,r,i;return de++,t=ae,Ae(),r=Oe(),r!==n?(37===e.charCodeAt(ae)?(i=h,ae++):(i=n,0===de&&_e(H)),i!==n?(le=t,t=function(e){return{value:e,unit:"%"}}(r)):(ae=t,t=n)):(ae=t,t=n),de--,t===n&&0===de&&_e(U),t}function Re(){let t,r,i;return de++,t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===p?(i=p,ae+=2):(i=n,0===de&&_e(k)),i!==n?(le=t,t=function(e){return{value:e,unit:"px"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===d?(i=d,ae+=2):(i=n,0===de&&_e(N)),i!==n?(le=t,t=function(e){return{value:e,unit:"cm"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===f?(i=f,ae+=2):(i=n,0===de&&_e(F)),i!==n?(le=t,t=function(e){return{value:e,unit:"mm"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===m?(i=m,ae+=2):(i=n,0===de&&_e(z)),i!==n?(le=t,t=function(e){return{value:e,unit:"in"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===g?(i=g,ae+=2):(i=n,0===de&&_e(q)),i!==n?(le=t,t=function(e){return{value:e,unit:"pt"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,Ae(),r=Oe(),r!==n?(e.substr(ae,2)===y?(i=y,ae+=2):(i=n,0===de&&_e(V)),i!==n?(le=t,t=function(e){return{value:e,unit:"pc"}}(r)):(ae=t,t=n)):(ae=t,t=n)))))),de--,t===n&&0===de&&_e(X),t}function Se(){let t,r,i;return de++,t=ae,r=Oe(),r!==n?(e.substr(ae,3)===x?(i=x,ae+=3):(i=n,0===de&&_e(G)),i!==n?(le=t,t=function(e){return{value:e,unit:"deg"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,r=Oe(),r!==n?(e.substr(ae,3)===v?(i=v,ae+=3):(i=n,0===de&&_e(W)),i!==n?(le=t,t=function(e){return{value:e,unit:"rad"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,r=Oe(),r!==n?(e.substr(ae,4)===_?(i=_,ae+=4):(i=n,0===de&&_e(K)),i!==n?(le=t,t=function(e){return{value:e,unit:"grad"}}(r)):(ae=t,t=n)):(ae=t,t=n),t===n&&(t=ae,r=Oe(),r!==n?(e.substr(ae,4)===w?(i=w,ae+=4):(i=n,0===de&&_e(J)),i!==n?(le=t,t=function(e){return{value:e,unit:"turn"}}(r)):(ae=t,t=n)):(ae=t,t=n)))),de--,t===n&&(r=n,0===de&&_e(D)),t}function Ee(){let t,r,i,o;if(de++,t=ae,35===e.charCodeAt(ae)?(r=M,ae++):(r=n,0===de&&_e(te)),r!==n){if(i=[],o=e.charAt(ae),I.test(o)?ae++:(o=n,0===de&&_e(ne)),o!==n)for(;o!==n;)i.push(o),o=e.charAt(ae),I.test(o)?ae++:(o=n,0===de&&_e(ne));else i=n;i!==n?(le=t,t={type:"hex",value:fe()}):(ae=t,t=n)}else ae=t,t=n;return t===n&&(t=ae,r=be(),r!==n&&(le=t,r=function(e){return{type:"function",value:e}}(r)),t=r,t===n&&(t=ae,r=Ce(),r!==n&&(le=t,r={type:"named",value:fe()}),t=r)),de--,t===n&&(r=n,0===de&&_e(ee)),t}function Oe(){let t,r,i,o,s,a,l,c;for(t=ae,r=e.charAt(ae),R.test(r)?ae++:(r=n,0===de&&_e(re)),r===n&&(r=null),i=ae,o=[],s=e.charAt(ae),S.test(s)?ae++:(s=n,0===de&&_e(ie));s!==n;)o.push(s),s=e.charAt(ae),S.test(s)?ae++:(s=n,0===de&&_e(ie));if(46===e.charCodeAt(ae)?(s=b,ae++):(s=n,0===de&&_e(oe)),s!==n){if(a=[],l=e.charAt(ae),S.test(l)?ae++:(l=n,0===de&&_e(ie)),l!==n)for(;l!==n;)a.push(l),l=e.charAt(ae),S.test(l)?ae++:(l=n,0===de&&_e(ie));else a=n;a!==n?(o=[o,s,a],i=o):(ae=i,i=n)}else ae=i,i=n;if(i===n)if(i=[],o=e.charAt(ae),S.test(o)?ae++:(o=n,0===de&&_e(ie)),o!==n)for(;o!==n;)i.push(o),o=e.charAt(ae),S.test(o)?ae++:(o=n,0===de&&_e(ie));else i=n;if(i!==n){if(o=ae,101===e.charCodeAt(ae)?(s=P,ae++):(s=n,0===de&&_e(se)),s!==n){if(a=e.charAt(ae),R.test(a)?ae++:(a=n,0===de&&_e(re)),a===n&&(a=null),l=[],c=e.charAt(ae),S.test(c)?ae++:(c=n,0===de&&_e(ie)),c!==n)for(;c!==n;)l.push(c),c=e.charAt(ae),S.test(c)?ae++:(c=n,0===de&&_e(ie));else l=n;l!==n?(s=[s,a,l],o=s):(ae=o,o=n)}else ae=o,o=n;o===n&&(o=null),le=t,t=parseFloat(fe())}else ae=t,t=n;return t}ue=o();const Le=ue!==n&&ae===e.length;function Te(){throw ue!==n&&ae<e.length&&_e({type:"end"}),function(e,t,n){return new l(l.buildMessage(e,t),e,t,n)}(pe,he<e.length?function(t=ae){const n=e.codePointAt(t);return void 0===n?"":String.fromCodePoint(n)}(he):null,he<e.length?ve(he,he+1):ve(he,he))}return t.peg$library?{peg$result:ue,peg$currPos:ae,peg$FAILED:n,peg$maxFailExpected:pe,peg$maxFailPos:he,peg$success:Le,peg$throw:Le?void 0:Te}:Le?ue:void Te()}(e)}catch(t){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return h(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=f[e.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${p(e)}`,{term:e})}(e),e.value*f[e.unit]||0}(e.parameters[0])),new s.Nd(t)}(e);case"blur":return function(e){let t=0;return h(e.parameters,1),1===e.parameters.length&&(t=y(e.parameters[0]),d(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let n=null;for(const i of e.parameters)if("color"===i.type){if(t.length&&Object.freeze(t),n)throw new r.A("effect:type-error","Accepts only one color",{});n=x(i)}else{const e=y(i);if(Object.isFrozen(t))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&d(e,i)}if(t.length<2||t.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new s.$b(t[0],t[1],t[2]||0,n||v("black"))}(e);case"bloom":return function(e){let t=1,n=0,r=0;return h(e.parameters,3),e.parameters[0]&&(t=g(e.parameters[0])),e.parameters[1]&&(n=y(e.parameters[1]),d(n,e.parameters[1])),e.parameters[2]&&(r=g(e.parameters[2])),new s.bv(t,n,r)}(e)}}catch(t){throw t.details.filter=e,t}throw new r.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function h(e,t){if(e.length>t)throw new r.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function p(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in m)return"<length>";if(e.unit in f)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function d(e,t){if(e<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const f={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(e)}`,{term:e})}(e);const t=e.value;return d(t,e),"%"===e.unit?.01*t:t}function y(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${p(e)}`,{term:e})}(e),e.value*m[e.unit]||0}function x(e){switch(e.colorType){case"hex":return(0,o.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(h(e.parameters,4),_.test(e.name))return[g(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1];if(w.test(e.name))return(0,o.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${p(e)}`,{term:e})}(e),d(e.value,e),e.value}(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,o.V6)(e))throw new r.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.c4)(e)}const _=/^rgba?/i,w=/^hsla?/i;function M(e,t,n){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const n of e)t.push({scale:n.scale,value:P(n.value)});return t}return P(e)}(e)}catch(e){n?.messages?.push(e)}return null}function b(e,t,n,r){try{const r=function(e){const t=c(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,i.sM)(n,r,t)}catch(e){r.messages&&r.messages.push(e)}}function P(e){if(!e?.length)return"";const t=[];for(const n of e){let e=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[A(n,"amount")];break;case"blur":e=[A(n,"radius","pt")];break;case"hue-rotate":e=[A(n,"angle","deg")];break;case"drop-shadow":e=[A(n,"xoffset","pt"),A(n,"yoffset","pt"),A(n,"blurRadius","pt"),C(n,"color")];break;case"bloom":e=[A(n,"strength"),A(n,"radius","pt"),A(n,"threshold")]}const r=`${n.type}(${e.filter(Boolean).join(" ")})`;c(r),t.push(r)}return t.join(" ")}function A(e,t,n){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return n?e[t]+n:""+e[t]}function C(e,t){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const n=e[t];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},78553:(e,t,n)=>{n.d(t,{D:()=>o,p:()=>i});var r=n(56507);function i(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function o(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},80754:(e,t,n)=>{n.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>c});var r=n(82799),i=n(16930),o=n(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=c(e);for(const e of n)for(const n of e)n[0]+=t;return e}function c(e){return(0,o.Bi)(e)?e.rings:e.paths}},85648:(e,t,n)=>{n.d(t,{n:()=>i});var r=n(84952);function i(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,r.Zo)(e);return l[t]||s}(e.url)}(e)]||a}const o={},s="text/plain",a=o[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)o[l[e]]=e},89056:(e,t,n)=>{n.d(t,{b3:()=>h,jZ:()=>u});var r=n(12195),i=n(19419),o=n(6606),s=n(95108),a=n(65864),l=n(80754),c=n(21325);function u(e){return p(e,!0)}function h(e){return p(e,!1)}function p(e,t){if(null==e)return null;const n=e.spatialReference,i=(0,c.Vp)(n),s=(0,r.W)(e)?e.toJSON():e;if(!i)return s;const u=(0,c.K8)(n)?102100:4326,h=l.j7[u].maxX,p=l.j7[u].minX;if((0,a.fT)(s))return f(s,h,p);if((0,a.U9)(s))return s.points=s.points.map(e=>f(e,h,p)),s;if((0,a.ZC)(s))return d(s,i);if((0,a.Bi)(s)||(0,a.Rg)(s)){const e=(0,o.Rg)(_,s),n={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},r=(0,l.kd)(n.xmin,p)*(2*h),i=0===r?s:(0,l.kS)(s,r);return n.xmin+=r,n.xmax+=r,n.xmax>h?x(i,h,t):n.xmin<p?x(i,p,t):i}return s}function d(e,t){if(!t)return e;const n=function(e,t){const n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=e,a=e.xmax-e.xmin,[l,c]=t.valid,{x:u,frameId:h}=m(e.xmin,t),{x:p,frameId:d}=m(e.xmax,t),f=u===p&&a>0;if(a>2*c){const e={xmin:o<s?u:p,ymin:r,xmax:c,ymax:i},t={xmin:l,ymin:r,xmax:o<s?p:u,ymax:i},a={xmin:0,ymin:r,xmax:c,ymax:i},f={xmin:l,ymin:r,xmax:0,ymax:i},m=[],y=[];g(e,a)&&m.push(h),g(e,f)&&y.push(h),g(t,a)&&m.push(d),g(t,f)&&y.push(d);for(let e=h+1;e<d;e++)m.push(e),y.push(e);n.push(new v(e,[h]),new v(t,[d]),new v(a,m),new v(f,y))}else u>p||f?n.push(new v({xmin:u,ymin:r,xmax:c,ymax:i},[h]),new v({xmin:l,ymin:r,xmax:p,ymax:i},[d])):n.push(new v({xmin:u,ymin:r,xmax:p,ymax:i},[h]));return n}(e,t).map(e=>e.extent);return n.length<2?n[0]||e:n.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:n.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function f(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,l.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,l.kd)(r,t);e.x+=n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e.x+=t*(-2*n)}}return e}function m(e,t){const[n,r]=t.valid,i=2*r;let o,s=0;return e>r?(o=Math.ceil(Math.abs(e-r)/i),e-=o*i,s=o):e<n&&(o=Math.ceil(Math.abs(e-n)/i),e+=o*i,s=-o),{x:e,frameId:s}}function g(e,t){const{xmin:n,ymin:r,xmax:i,ymax:o}=t;return y(e,n,r)&&y(e,n,o)&&y(e,i,o)&&y(e,i,r)}function y(e,t,n){return t>=e.xmin&&t<=e.xmax&&n>=e.ymin&&n<=e.ymax}function x(e,t,n=!0){const r=!(0,a.Rg)(e);if(r&&(0,s.m3)(e),n)return(new w).cut(e,t);const i=r?e.rings:e.paths,o=r?4:2,l=i.length,c=-2*t;for(let e=0;e<l;e++){const t=i[e];if(t&&t.length>=o){const e=[];for(const n of t)e.push([n[0]+c,n[1]]);i.push(e)}}return r?e.rings=i:e.paths=i,e}class v{constructor(e,t){this.extent=e,this.frameIds=t}}const _=(0,i.vt)();class w{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let n;if(this._xCut=t,e.rings)this._closed=!0,n=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,n=e.paths,this._minPts=2}for(const e of n){if(!e||e.length<this._minPts)continue;let t=!0;for(const n of e)t?(this.moveTo(n),t=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const e of this._linesIn)e&&e.length>=this._minPts&&n.push(e);const r=-2*this._xCut;for(const e of this._linesOut)if(e&&e.length>=this._minPts){for(const t of e)t[0]+=r;n.push(e)}return this._closed?e.rings=n:e.paths=n,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e[0],e[1],this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){const t=this._side(e[0]);if(t*this._prevSide===-1){const n=this._intersect(this._prevPt,e);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(e[0],e[1],t)}else this._lineTo(e[0],e[1],t);this._prevSide=t,this._prevPt=e}close(){const e=this._firstPt,t=this._prevPt;e[0]===t[0]&&e[1]===t[1]||this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t,n){this._closed?(this._lineIn.push([n<=0?e:this._xCut,t]),this._lineOut.push([n>=0?e:this._xCut,t])):(n<=0&&this._lineIn.push([e,t]),n>=0&&this._lineOut.push([e,t]))}_lineTo(e,t,n){this._closed?(M(this._lineIn,n<=0?e:this._xCut,t),M(this._lineOut,n>=0?e:this._xCut,t)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([e,t])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([e,t])):this._prevSide<0?(this._lineIn.push([e,t]),this._lineOut.push([e,t])):this._prevSide>0&&(this._lineOut.push([e,t]),this._lineIn.push([e,t]))}_checkClosingPt(e){const t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0][1]=e[t-2][1],e.pop())}_side(e){return e<this._xCut?-1:e>this._xCut?1:0}_intersect(e,t){const n=(this._xCut-e[0])/(t[0]-e[0]);return e[1]+n*(t[1]-e[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function M(e,t,n){const r=e.length;r>1&&e[r-1][0]===t&&e[r-2][0]===t?e[r-1][1]=n:e.push([t,n])}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3310],{9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>i});var l=n(37539);function i(e,t,n,i,r,s,o=Math.floor(e.length/3)){const u=(0,l.jd)(t,r);if(null==u)return!1;if(u===l.pO){if(e===i&&n===s)return!0;const t=n+3*o;for(let l=n,r=s;l<t;l++,r++)i[r]=e[l];return!0}const a=n+3*o;for(let t=n,l=s;t<a;t+=3,l+=3)u(e,t,i,l);return!0}},37539:(e,t,n)=>{n.d(t,{pO:()=>g,jd:()=>p,Tp:()=>h,w5:()=>f});var l=n(34727),i=n(83047),r=n(73941),s=n(79258);Math.PI;const o=s.$O.radius,u=s.$O.eccentricitySquared,a={a1:o*u,a2:o*u*o*u,a3:o*u*u/2,a4:o*u*o*u*2.5,a5:o*u+o*u*u/2,a6:1-u};s.$O.radius,s.$O.flattening,s.Sw.radius,s.Sw.flattening,s.sH.radius,s.sH.flattening,s.sH.radius;var c=n(21325);const f={2:{5:g,7:null,9:null,10:g,1:j,6:null,8:null,0:null,3:m,11:y,2:g,4:A},5:{5:g,7:null,9:null,10:g,1:j,6:null,8:null,0:null,3:m,11:y,2:g,4:A},7:{5:null,7:g,9:null,10:g,1:null,6:x,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:g,10:g,1:null,6:null,8:R,0:null,3:null,11:null,2:null,4:null},3:{5:w,7:null,9:null,10:w,1:function(e,t,n,l){const i=e[t]/Z,r=O-2*Math.atan(Math.exp(-e[t+1]/Z)),s=Z+e[t+2],o=Math.cos(r)*s;n[l]=Math.cos(i)*o,n[l+1]=Math.sin(i)*o,n[l+2]=Math.sin(r)*s},6:null,8:null,0:null,3:g,11:function(e,t,n,l){w(e,t,n,l),y(n,l,n,l)},2:w,4:function(e,t,n,l){w(e,t,n,l),A(n,l,n,l)}},4:{5:P,7:null,9:null,10:P,1:function(e,t,n,l){P(e,t,n,l),j(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){P(e,t,n,l),m(n,l,n,l)},11:function(e,t,n,l){P(e,t,n,l),y(n,l,n,l)},2:P,4:g},1:{5:k,7:null,9:null,10:k,1:g,6:null,8:null,0:null,3:function(e,t,n,l){k(e,t,n,l),m(n,l,n,l)},11:function(e,t,n,l){k(e,t,n,l),y(n,l,n,l)},2:k,4:function(e,t,n,l){k(e,t,n,l),A(n,l,n,l)}},6:{5:null,7:z,9:null,10:z,1:null,6:g,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:g,3:null,11:null,2:null,4:null},10:{5:g,7:g,9:g,10:g,1:j,6:x,8:R,0:null,3:m,11:y,2:g,4:A},11:{5:v,7:null,9:null,10:v,1:function(e,t,n,l){v(e,t,n,l),j(n,l,n,l)},6:null,8:null,0:null,3:function(e,t,n,l){v(e,t,n,l),m(n,l,n,l)},11:g,2:v,4:function(e,t,n,l){v(e,t,n,l),A(n,l,n,l)}}};function p(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(S.source.spatialReference===e&&S.dest.spatialReference===t)return S;const n=d(e,S.source),l=d(t,S.dest);return 0===n&&0===l?(0,c.aI)(e,t)?S.projector=g:S.projector=null:S.projector=f[n][l],S}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,r.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===r.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===r.FY.wkt?t.spatialReferenceId=6:e.wkt===r.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function g(e,t,n,l){e!==n&&(n[l++]=e[t++],n[l++]=e[t++],n[l]=e[t])}function w(e,t,n,l){n[l]=G*(e[t]/Z),n[l+1]=G*(O-2*Math.atan(Math.exp(-e[t+1]/Z))),n[l+2]=e[t+2]}function m(e,t,n,i){!function(e,t,n,i,r){const s=.4999999*Math.PI,o=(0,l.qE)(C*e[t+1],-s,s),u=Math.sin(o);n[i++]=C*e[t]*r.radius,n[i++]=r.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[i]=e[t+2]}(e,t,n,i,s.$O)}function y(e,t,n,l){n[l]=e[t]*b,n[l+1]=e[t+1]*b,n[l+2]=e[t+2]}function v(e,t,n,l){n[l]=e[t]*L,n[l+1]=e[t+1]*L,n[l+2]=e[t+2]}function M(e,t,n,l,i){const r=i+e[t+2],s=C*e[t+1],o=C*e[t],u=Math.cos(s)*r;n[l]=Math.cos(o)*u,n[l+1]=Math.sin(o)*u,n[l+2]=Math.sin(s)*r}function R(e,t,n,l){M(e,t,n,l,s.Sw.radius)}function x(e,t,n,l){M(e,t,n,l,s.sH.radius)}function j(e,t,n,l){M(e,t,n,l,s.$O.radius)}function I(e,t,n,i,r){const s=e[t],o=e[t+1],u=e[t+2],a=Math.sqrt(s*s+o*o+u*u),c=(0,l.YN)(u/(0===a?1:a)),f=Math.atan2(o,s);n[i++]=G*f,n[i++]=G*c,n[i]=a-r}function _(e,t,n,l){I(e,t,n,l,s.Sw.radius)}function z(e,t,n,l){I(e,t,n,l,s.sH.radius)}function k(e,t,n,l){I(e,t,n,l,s.$O.radius)}function A(e,t,n,l){!function(e,t,n,l,i){const r=C*e[t],s=C*e[t+1],o=e[t+2],u=Math.sin(s),a=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*u*u);n[l++]=(c+o)*a*Math.cos(r),n[l++]=(c+o)*a*Math.sin(r),n[l++]=(c*(1-i.eccentricitySquared)+o)*u}(e,t,n,l,s.$O)}function P(e,t,n,l){const i=a,r=e[t],o=e[t+1],u=e[t+2];let c,f,p,h,d,g,w,m,y,v,M,R,x,j,I,_,z,k,A,P,S;c=Math.abs(u),f=r*r+o*o,p=Math.sqrt(f),h=f+u*u,d=Math.sqrt(h),P=Math.atan2(o,r),g=u*u/h,w=f/h,j=i.a2/d,I=i.a3-i.a4/d,w>.3?(m=c/d*(1+w*(i.a1+j+g*I)/d),A=Math.asin(m),v=m*m,y=Math.sqrt(1-v)):(y=p/d*(1-g*(i.a5-j-w*I)/d),A=Math.acos(y),v=1-y*y,m=Math.sqrt(v)),M=1-s.$O.eccentricitySquared*v,R=s.$O.radius/Math.sqrt(M),x=i.a6*R,j=p-R*y,I=c-x*m,z=y*j+m*I,_=y*I-m*j,k=_/(x/M+z),A+=k,S=z+_*k/2,u<0&&(A=-A),n[l++]=G*P,n[l++]=G*A,n[l]=S}const S={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:g},C=(0,l.kU)(1),G=(0,l.KJ)(1),O=.5*Math.PI,Z=s.$O.radius,b=Z*Math.PI/180,L=180/(Z*Math.PI)},62815:(e,t,n)=>{n.d(t,{N:()=>s});var l=n(83047),i=n(73941),r=n(21325);function s(e,t,n){if(null==t||null==n||n.vcsWkid||(0,r.aI)(t,n)||(0,i.xP)(t)||(0,i.xP)(n))return null;const s=(0,l.G9)(t)/(0,l.G9)(n);if(1===s)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return null}}},72802:(e,t,n)=>{n.d(t,{U:()=>l});class l{constructor(e,t,n,l,i=void 0){this.id=e,this.level=t,this.row=n,this.col=l,this.extent=i}}},87045:(e,t,n)=>{n.d(t,{A:()=>R});var l,i=n(31635),r=n(66552),s=n(25482),o=n(83047),u=n(10107),a=n(56507),c=(n(44208),n(87811),n(36005)),f=n(40608),p=n(43937),h=n(86738),d=n(16930),g=n(19419),w=n(21325),m=n(28735),y=n(91806),v=n(72802);const M=new r.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let R=class extends s.o{static{l=this}static create(e={}){const{resolutionFactor:t=1,scales:n,size:i=256,spatialReference:r=d.A.WebMercator,numLODs:s=24}=e;if(!(0,w.fn)(r)){const e=[];if(n)for(let t=0;t<n.length;t++){const l=n[t];e.push(new y.A({level:t,scale:l,resolution:l}))}else{let t=5e-4;for(let n=s-1;n>=0;n--)e.unshift(new y.A({level:n,scale:t,resolution:t})),t*=2}return new l({dpi:96,lods:e,origin:new h.A(0,0,r),size:[i,i],spatialReference:r})}const u=(0,w.Vp)(r),a=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:r}):new h.A(u?{x:u.origin[0],y:u.origin[1],spatialReference:r}:{x:0,y:0,spatialReference:r}),c=1/(39.37*(0,o.GA)(r)*96),f=[];if(n)for(let e=0;e<n.length;e++){const t=n[e],l=t*c;f.push(new y.A({level:e,scale:t,resolution:l}))}else{let e=(0,w.EA)(r)?512/i*591657527.5917094:256/i*591657527.591555;const n=Math.ceil(s/t);f.push(new y.A({level:0,scale:e,resolution:e*c}));for(let l=1;l<n;l++){const n=e/2**t,i=n*c;f.push(new y.A({level:l,scale:n,resolution:i})),e=n}}return new l({dpi:96,lods:f,origin:a,size:[i,i],spatialReference:r})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const n=(0,w.Vp)(e);return e.isWrappable&&!!n&&Math.abs(n.origin[0]-t.x)<=n.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,n=0;const l=[],i=this._levelToLOD={};e&&(t=-1/0,n=1/0,e.forEach(e=>{l.push(e.scale),t=e.scale>t?e.scale:t,n=e.scale<n?e.scale:n,i[e.level]=e})),this._set("scales",l),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const n=Math.floor(e),l=n+1;return t[n]/(t[n]/t[l])**(e-n)}scaleToZoom(e){const t=this.scales,n=t.length-1;let l=0;for(;l<n;l++){const n=t[l],i=t[l+1];if(n<=e)return l;if(i===e)return l+1;if(n>e&&i<e)return l+Math.log(n/e)/Math.log(n/i)}return l}tileAt(e,t,n,l){const i=this.lodAt(e);if(!i)return null;let r,s;if("number"==typeof t)r=t,s=n;else if((0,w.aI)(t.spatialReference,this.spatialReference))r=t.x,s=t.y,l=n;else{const e=(0,m.Cv)(t,this.spatialReference);if(null==e)return null;r=e.x,s=e.y,l=n}const o=i.resolution*this.size[0],u=i.resolution*this.size[1];return l||(l=new v.U(null,0,0,0,(0,g.vt)())),l.level=e,l.row=Math.floor((this.origin.y-s)/u+.001),l.col=Math.floor((r-this.origin.x)/o+.001),this.updateTileInfo(l),l}updateTileInfo(e,t=0){let n=this.lodAt(e.level);if(!n&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(n=t)}if(!n)return;const l=e.level-n.level,i=n.resolution*this.size[0]/2**l,r=n.resolution*this.size[1]/2**l;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,g.vt)()),e.extent[0]=this.origin.x+e.col*i,e.extent[1]=this.origin.y-(e.row+1)*r,e.extent[2]=e.extent[0]+i,e.extent[3]=e.extent[1]+r}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const n=this.lodAt(t.level);if(null==n)return null;const{resolution:l}=n,i=l*this.size[0],r=l*this.size[1];return e[0]=this.origin.x+t.col*i,e[1]=this.origin.y-(t.row+1)*r,e[2]=e[0]+i,e[3]=e[1]+r,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return l.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const n=[],i=this.lods.length-t;for(let e=0;e<i;e++){const l=e+t,{scale:i,resolution:r}=l>=0?this.lods[l]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};n.push(new y.A({level:e,scale:i,resolution:r}))}return new l({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:n})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let n=0;n<e.length;n++){const l=e[n];this._upsampleLevels[l.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/l.resolution:0},t=l}}};(0,i.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],R.prototype,"compressionQuality",void 0),(0,i.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],R.prototype,"dpi",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{read:M.read,write:M.write,origins:{"web-scene":{read:!1,write:!1}}}})],R.prototype,"format",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"isWrappable",null),(0,i.Cg)([(0,u.MZ)({type:h.A,json:{write:!0}})],R.prototype,"origin",void 0),(0,i.Cg)([(0,c.w)("origin")],R.prototype,"readOrigin",null),(0,i.Cg)([(0,u.MZ)({type:[y.A],value:null,json:{write:!0}})],R.prototype,"lods",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"scales",void 0),(0,i.Cg)([(0,u.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],R.prototype,"size",void 0),(0,i.Cg)([(0,c.w)("size",["rows","cols"])],R.prototype,"readSize",null),(0,i.Cg)([(0,p.K)("size",{cols:{type:a.jz},rows:{type:a.jz}})],R.prototype,"writeSize",null),(0,i.Cg)([(0,u.MZ)({type:d.A,json:{write:!0}})],R.prototype,"spatialReference",void 0),R=l=(0,i.Cg)([(0,f.$)("esri.layers.support.TileInfo")],R)},91806:(e,t,n)=>{n.d(t,{A:()=>a});var l,i=n(31635),r=n(25482),s=n(10107),o=n(56507),u=(n(44208),n(87811),n(40608));let a=class extends r.o{static{l=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new l({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"cols",void 0),(0,i.Cg)([(0,s.MZ)({type:o.jz,json:{write:!0}})],a.prototype,"level",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"levelValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"origin",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"resolution",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],a.prototype,"rows",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"scale",void 0),a=l=(0,i.Cg)([(0,u.$)("esri.layers.support.LOD")],a)},98988:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>V,getTransformation:()=>q,getTransformations:()=>N,initializeProjection:()=>J,isEqualBaseGCS:()=>D,isLoaded:()=>C,isLoadedOrLoad:()=>G,isLoadedOrLoadFor:()=>O,load:()=>b,project:()=>L,projectExtent:()=>re,projectMany:()=>T,projectMultipoint:()=>X,projectOrLoad:()=>E,projectOrLoadMany:()=>$,projectPoint:()=>Q,projectPolygon:()=>le,projectPolyline:()=>te,projectWithZConversion:()=>U,projectWithoutEngine:()=>H,requiresLoad:()=>Z,test:()=>B,tryProjectWithZConversion:()=>F,unload:()=>K});var l=n(49186),i=n(74887),r=n(62788),s=n(95488),o=n(51850),u=n(21276),a=n(73941),c=n(5443),f=n(48526),p=n(83290),h=n(86738),d=n(39829),g=n(82799),w=n(16930),m=n(9762),y=n(37539);function v(e,t,n,l,i,r){return M[0]=e,M[1]=t,M[2]=n,(0,m.projectBuffer)(M,l,0,i,r,0)}const M=(0,o.vt)();let R=0;class x{static fromGE(e){const t=new x;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}constructor(e){this.uid=R++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=R++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=R++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=R++}getInverse(){const e=new x;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class j{static cacheKey(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(e){const t=new j;let n="";for(const l of e.steps){const e=x.fromGE(l);t.steps.push(e),n+=e.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=n,t}constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e?.steps)for(const t of e.steps)t instanceof x?this.steps.push(t):this.steps.push(new x({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const e=new j;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cachedProjection[j.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=n);const l=this._cachedProjection[j.cacheKey(e,t)];return void 0===l?null:l}}var I=n(21325),_=n(62815);let z=null,k=null,A=null,P={};const S=new s.I;function C(){return!!z&&(0,p.i)()}function G(){return!!C()||((0,r.gc)(S),b(),!1)}function O(e,t){return!e||!t||V(e,t)||G()}function Z(e,t){return!V(e,t)&&!C()}function b(e){return null==A&&(A=Promise.all([(0,p.l)(),n.e(9930).then(n.bind(n,49930)).then(e=>e.g),n.e(2731).then(n.bind(n,12731))])),A.then(([,t,{hydratedAdapter:n}])=>{(0,i.Te)(e),k=n,z=t.default,z._enableProjection(p.p),S.notify()})}function L(e,t,n=null,l=null){return Array.isArray(e)?0===e.length?[]:((0,u.H)(e),T(k,e,e[0].spatialReference,t,n,l)):((0,u.f)(e),T(k,[e],e.spatialReference,t,n,l)[0])}function T(e,t,n,l,i=null,r=null){if(null==n||null==l)return t;if(V(n,l,i))return t.map(e=>H(e,n,l));if(null==i&&(0,a.jA)(n))return t.map(e=>H(e,n,w.A.WGS84)).map(e=>F(e,l));if(null==i&&(0,a.jA)(l))return t.map(e=>F(e,w.A.WGS84)).map(e=>H(e,w.A.WGS84,l));if(null==i){const e=j.cacheKey(n,l);void 0!==P[e]?i=P[e]:(null==(i=q(n,l,void 0))&&(i=new j),P[e]=i)}if(null==z||null==e)throw new W;return null!=r?z._project(e,t,n,l,i,r):z._project(e,t,n,l,i)}function E(e,t){const n=$([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function $(e,t){if(!C())for(const n of e)if(null!=n&&!(0,I.aI)(n.spatialReference,t)&&(0,I.fn)(n.spatialReference)&&(0,I.fn)(t)&&!V(n.spatialReference,t))return(0,r.gc)(S),{pending:b(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,I.aI)(e.spatialReference,t)?e:(0,I.fn)(e.spatialReference)&&(0,I.fn)(t)?F(e,t):null)}}function q(e,t,n=null){if(null==e||null==t)return null;if(null==z||null==k)throw new W;const l=z._getTransformation(k,e,t,n,n?.spatialReference);return null!==l?j.fromGE(l):null}function N(e,t,n=null){if(null==z||null==k)throw new W;const l=z._getTransformationBySuitability(k,e,t,n,n?.spatialReference);if(null!==l){const e=[];for(const t of l)e.push(j.fromGE(t));return e}return[]}class W extends l.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function K(){z=null,k=null,A=null,P={}}const B={get loadPromise(){return A}};function F(e,t){try{const n=L(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const l=(0,_.N)(n.type,e.spatialReference,t);return null!=l&&l(n),n}catch(e){if(!(e instanceof W))throw e;return null}}async function U(e,t,n){const l=e.spatialReference;return null!=l&&null!=t&&await J(l,t,null,n),F(e,t)}function V(e,t,n){return!n&&(!!(0,I.aI)(e,t)||(0,I.fn)(e)&&(0,I.fn)(t)&&!!(0,y.jd)(e,t))}function D(e,t){if((0,I.aI)(e,t))return!0;if(!(0,I.fn)(e)||!(0,I.fn)(t))return!1;const n=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e),l=(0,I.oT)(t)||(0,I.K8)(t)||(0,I.x1)(t);return n&&l}async function J(e,t,n,l){if(C())return(0,i.NO)(l);if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:i}of e)if(t&&n&&!V(t,n,i))return b(l)}else if(e&&t&&!V(e,t,n))return b(l);return(0,i.NO)(l)}function H(e,t,n){return e?"x"in e?Y(e,t,new h.A,n,0):"xmin"in e?se(e,t,new c.A,n,0):"rings"in e?ie(e,t,new d.A,n,0):"paths"in e?ne(e,t,new g.A,n,0):"points"in e?ee(e,t,new f.A,n,0):null:null}function Q(e,t,n=t.spatialReference,l=0){return null!=n&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,n,l)}function Y(e,t,n,l,i){ue[0]=e.x,ue[1]=e.y;const r=e.z;return ue[2]=void 0!==r?r:i,(0,m.projectBuffer)(ue,t,0,ue,l,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=l,void 0!==r||(0,a.xP)(l)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function X(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ee(e,e.spatialReference,t,n,l)}function ee(e,t,n,l,i){const{points:r,hasZ:s,hasM:o}=e,u=[],c=r.length,f=[];for(const e of r)f.push(e[0],e[1],s?e[2]:i);if(!(0,m.projectBuffer)(f,t,0,f,l,0,c))return null;const p=s||(0,a.xP)(l);for(let e=0;e<c;++e){const t=3*e,n=f[t],l=f[t+1];p&&o?u.push([n,l,f[t+2],r[e][3]]):p?u.push([n,l,f[t+2]]):o?u.push([n,l,r[e][2]]):u.push([n,l])}return n.points=u,n.spatialReference=l,n.hasZ=s,n.hasM=o,n}function te(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ne(e,e.spatialReference,t,n,l)}function ne(e,t,n,l,i){const{paths:r,hasZ:s,hasM:o}=e,u=[];if(!oe(r,s??!1,o??!1,t,u,l,i))return null;const c=s||(0,a.xP)(l);return n.paths=u,n.spatialReference=l,n.hasZ=c,n.hasM=o,n}function le(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,l)}function ie(e,t,n,l,i){const{rings:r,hasZ:s,hasM:o}=e,u=[];if(!oe(r,s??!1,o??!1,t,u,l,i))return null;const c=s||(0,a.xP)(l);return n.rings=u,n.spatialReference=l,n.hasZ=c,n.hasM=o,n}function re(e,t,n=t.spatialReference,l=0){return null!=e.spatialReference&&null!=n&&null!=se(e,e.spatialReference,t,n,l)}function se(e,t,n,l,i){const{xmin:r,ymin:s,xmax:o,ymax:u,hasZ:c,hasM:f}=e;if(!v(r,s,c?e.zmin:i,t,ue,l))return null;const p=c||(0,a.xP)(l);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),v(o,u,c?e.zmax:i,t,ue,l)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),f&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=l,n):null}function oe(e,t,n,l,i,r,s=0){const o=new Array;for(const n of e)for(const e of n)o.push(e[0],e[1],t?e[2]:s);if(!(0,m.projectBuffer)(o,l,0,o,r,0))return!1;let u=0;i.length=0;const c=t||(0,a.xP)(r);for(const t of e){const e=new Array;for(const l of t)c&&n?e.push([o[u++],o[u++],o[u++],l[3]]):c?e.push([o[u++],o[u++],o[u++]]):n?(e.push([o[u++],o[u++],l[2]]),u++):(e.push([o[u++],o[u++]]),u++);i.push(e)}return!0}const ue=(0,o.vt)()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7136],{17136:(e,t,n)=>{n.d(t,{Y_:()=>j,O7:()=>S,el:()=>k});var s=n(92602),i=n(69052),r=n(49186),o=n(53966),c=n(39829),a=n(82799),l=n(16930),u=n(80754),f=n(21325),h=n(28735),p=n(78888),m=n(65864),g=n(2272),y=n(84952),d=n(92300);const M=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function A(e){return"polygon"===e[0].type}function x(e){return"polyline"===e[0].type}function w(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof c.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw M().error(e),new r.A("internal:geometry",e)}const n=(0,u.r8)(e),s=[];for(const e of n){const n=[];s.push(n),n.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const i=e[s][0],r=e[s][1],o=e[s+1][0],c=e[s+1][1],a=Math.sqrt((o-i)*(o-i)+(c-r)*(c-r)),l=(c-r)/a,u=(o-i)/a,f=a/t;if(f>1){for(let e=1;e<=f-1;e++){const s=e*t,o=u*s+i,c=l*s+r;n.push([o,c])}const e=(a+Math.floor(f-1)*t)/2,s=u*e+i,o=l*e+r;n.push([s,o])}n.push([o,c])}}return function(e){return"polygon"===e.type}(e)?new c.A({rings:s,spatialReference:e.spatialReference}):new a.A({paths:s,spatialReference:e.spatialReference})}(e,1e6);e=(0,h.ci)(t,!0)}return n&&(e=(0,u.kS)(e,n)),e}function b(e,t,n){if(Array.isArray(e)){const s=e[0];if(s>t){const n=(0,u.kd)(s,t);e[0]=s+n*(-2*t)}else if(s<n){const t=(0,u.kd)(s,n);e[0]=s+t*(-2*n)}}else{const s=e.x;if(s>t){const n=(0,u.kd)(s,t);e=e.clone().offset(n*(-2*t),0)}else if(s<n){const t=(0,u.kd)(s,n);e=e.clone().offset(t*(-2*n),0)}}return e}function R(e,t){let n=-1;for(let s=0;s<t.cutIndexes.length;s++){const i=t.cutIndexes[s],r=t.geometries[s],o=(0,u.r8)(r);for(let e=0;e<o.length;e++){const t=o[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const s=t[e][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<t.length;n++){const t=r.getPoint(e,n);r.setPoint(e,n,t.clone().offset(s,0))}return!0}})}if(i===n){if(A(e))for(const t of(0,u.r8)(r))e[i]=e[i].addRing(t);else if(x(e))for(const t of(0,u.r8)(r))e[i]=e[i].addPath(t)}else n=i,e[i]=r}return e}async function k(e,t,n){if(!Array.isArray(e))return k([e],t);t&&"string"!=typeof t&&M().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof t?t:t?.url??s.A.geometryServiceUrl;let r,o,l,A,x,S,X,j,L=0;const N=[],v=[];for(const t of e)if(null!=t)if(r||(r=t.spatialReference,o=(0,f.Vp)(r),l=r.isWebMercator,S=l?102100:4326,A=u.j7[S].maxX,x=u.j7[S].minX,X=u.j7[S].plus180Line,j=u.j7[S].minus180Line),o)if("mesh"===t.type)v.push(t);else if("point"===t.type)v.push(b(t.clone(),A,x));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>b(e,A,x)),v.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);v.push(e.rings?new c.A(e):e)}else if(t.extent){const e=t.extent,n=(0,u.kd)(e.xmin,x)*(2*A);let s=0===n?t.clone():(0,u.kS)(t.clone(),n);e.offset(n,0);let{xmin:i,xmax:r}=e;i=Number(i.toFixed(9)),r=Number(r.toFixed(9)),e.intersects(X)&&r!==A?(L=r>L?r:L,s=w(s,l),N.push(s),v.push("cut")):e.intersects(j)&&i!==x?(L=r*(2*A)>L?r*(2*A):L,s=w(s,l,360),N.push(s),v.push("cut")):v.push(s)}else v.push(t.clone());else v.push(t);else v.push(t);let z=(0,u.kd)(L,A),I=-90;const P=z,W=new a.A;for(;z>0;){const e=360*z-180;W.addPath([[e,I],[e,-1*I]]),I*=-1,z--}if(N.length>0&&P>0){const t=R(N,await async function(e,t,n,s){const i=(0,g.Dl)(e),r=t[0].spatialReference,o={...s,responseType:"json",query:{...i.query,f:"json",sr:(0,f.YX)(r),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},c=await(0,p.A)(i.path+"/cut",o),{cutIndexes:a,geometries:l=[]}=c.data;return{cutIndexes:a,geometries:l.map(e=>{const t=(0,m.rS)(e);return t.spatialReference=r,t})}}(i,N,W,n)),s=[],r=[];for(let n=0;n<v.length;n++){const i=v[n];if("cut"!==i)r.push(i);else{const i=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&i.rings.length>=o.rings.length?(s.push(i),r.push("simplify")):r.push(l?(0,h.Gh)(i):i)}}if(!s.length)return r;const o=await async function(e,t,n){const s="string"==typeof e?(0,y.An)(e):e,i=t[0].spatialReference,r=(0,m.$B)(t[0]),o={...n,query:{...s.query,f:"json",sr:(0,f.YX)(i),geometries:JSON.stringify((0,d.X)(t))}},{data:c}=await(0,p.A)(s.path+"/simplify",o);return(0,d.V)(c.geometries,r,i)}(i,s,n),c=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?c.push(t):c.push(l?(0,h.Gh)(o.shift()):o.shift())}return c}const q=[];for(let e=0;e<v.length;e++){const t=v[e];if("cut"!==t)q.push(t);else{const e=N.shift();q.push(!0===l?(0,h.Gh)(e):e)}}return q}function S(e,t,n){const s=(0,f.Vp)(n);if(null==s)return e;const[i,r]=s.valid,o=2*r;let c=0,a=0;t>r?c=Math.ceil(Math.abs(t-r)/o):t<i&&(c=-Math.ceil(Math.abs(t-i)/o)),e>r?a=Math.ceil(Math.abs(e-r)/o):e<i&&(a=-Math.ceil(Math.abs(e-i)/o));let l=e+(c-a)*o;const u=l-t;return u>r?l-=o:u<i&&(l+=o),l}function X(e){const t=(0,f.Vp)(e);if(null==t)return null;const[n,s]=t.valid;return new i.hr(n,s)}const j=X(l.A.WGS84);X(l.A.WebMercator)},69052:(e,t,n)=>{n.d(t,{hr:()=>i,ie:()=>a,uC:()=>c});var s=n(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return r(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,s.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+o(this.range,e-t,n)}minimalMonotonic(e,t,n){return r(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,s=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(s)?n:s}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function r(e,t,n,s,i=0,r=!1){return(s-=i)<t?s+=o(e,t-s):s>n&&(s-=o(e,s-n)),r&&s===n&&(s=t),s+i}function o(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const c=new i(0,2*Math.PI),a=(new i(-Math.PI,Math.PI),new i(0,360))},80754:(e,t,n)=>{n.d(t,{j7:()=>o,kS:()=>a,kd:()=>c,r8:()=>l});var s=n(82799),i=n(16930),r=n(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function c(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const n=l(e);for(const e of n)for(const n of e)n[0]+=t;return e}function l(e){return(0,r.Bi)(e)?e.rings:e.paths}},92300:(e,t,n)=>{n.d(t,{V:()=>r,X:()=>i});var s=n(65864);function i(e){return{geometryType:(0,s.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function r(e,t,n){const i=(0,s.xD)(t);return e.map(e=>{const t=i.fromJSON(e);return t.spatialReference=n,t})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7136,8628],{17136:(e,t,r)=>{r.d(t,{Y_:()=>E,O7:()=>R,el:()=>S});var n=r(92602),a=r(69052),s=r(49186),i=r(53966),o=r(39829),l=r(82799),u=r(16930),d=r(80754),p=r(21325),c=r(28735),h=r(78888),f=r(65864),m=r(2272),y=r(84952),g=r(92300);const b=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function A(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function F(e,t,r){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw b().error(e),new s.A("internal:geometry",e)}const r=(0,d.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const a=e[n][0],s=e[n][1],i=e[n+1][0],o=e[n+1][1],l=Math.sqrt((i-a)*(i-a)+(o-s)*(o-s)),u=(o-s)/l,d=(i-a)/l,p=l/t;if(p>1){for(let e=1;e<=p-1;e++){const n=e*t,i=d*n+a,o=u*n+s;r.push([i,o])}const e=(l+Math.floor(p-1)*t)/2,n=d*e+a,i=u*e+s;r.push([n,i])}r.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:n,spatialReference:e.spatialReference}):new l.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,c.ci)(t,!0)}return r&&(e=(0,d.kS)(e,r)),e}function v(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,d.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,d.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,d.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,d.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function I(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const a=t.cutIndexes[n],s=t.geometries[n],i=(0,d.r8)(s);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 n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,d.kd)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(n,0))}return!0}})}if(a===r){if(A(e))for(const t of(0,d.r8)(s))e[a]=e[a].addRing(t);else if(w(e))for(const t of(0,d.r8)(s))e[a]=e[a].addPath(t)}else r=a,e[a]=s}return e}async function S(e,t,r){if(!Array.isArray(e))return S([e],t);t&&"string"!=typeof t&&b().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const a="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let s,i,u,A,w,R,$,E,k=0;const M=[],O=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,i=(0,p.Vp)(s),u=s.isWebMercator,R=u?102100:4326,A=d.j7[R].maxX,w=d.j7[R].minX,$=d.j7[R].plus180Line,E=d.j7[R].minus180Line),i)if("mesh"===t.type)O.push(t);else if("point"===t.type)O.push(v(t.clone(),A,w));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>v(e,A,w)),O.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,i);O.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,r=(0,d.kd)(e.xmin,w)*(2*A);let n=0===r?t.clone():(0,d.kS)(t.clone(),r);e.offset(r,0);let{xmin:a,xmax:s}=e;a=Number(a.toFixed(9)),s=Number(s.toFixed(9)),e.intersects($)&&s!==A?(k=s>k?s:k,n=F(n,u),M.push(n),O.push("cut")):e.intersects(E)&&a!==w?(k=s*(2*A)>k?s*(2*A):k,n=F(n,u,360),M.push(n),O.push("cut")):O.push(n)}else O.push(t.clone());else O.push(t);else O.push(t);let x=(0,d.kd)(k,A),L=-90;const j=x,T=new l.A;for(;x>0;){const e=360*x-180;T.addPath([[e,L],[e,-1*L]]),L*=-1,x--}if(M.length>0&&j>0){const t=I(M,await async function(e,t,r,n){const a=(0,m.Dl)(e),s=t[0].spatialReference,i={...n,responseType:"json",query:{...a.query,f:"json",sr:(0,p.YX)(s),target:JSON.stringify({geometryType:(0,f.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},o=await(0,h.A)(a.path+"/cut",i),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,f.rS)(e);return t.spatialReference=s,t})}}(a,M,T,r)),n=[],s=[];for(let r=0;r<O.length;r++){const a=O[r];if("cut"!==a)s.push(a);else{const a=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&a.rings.length>=i.rings.length?(n.push(a),s.push("simplify")):s.push(u?(0,c.Gh)(a):a)}}if(!n.length)return s;const i=await async function(e,t,r){const n="string"==typeof e?(0,y.An)(e):e,a=t[0].spatialReference,s=(0,f.$B)(t[0]),i={...r,query:{...n.query,f:"json",sr:(0,p.YX)(a),geometries:JSON.stringify((0,g.X)(t))}},{data:o}=await(0,h.A)(n.path+"/simplify",i);return(0,g.V)(o.geometries,s,a)}(a,n,r),o=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?o.push(t):o.push(u?(0,c.Gh)(i.shift()):i.shift())}return o}const B=[];for(let e=0;e<O.length;e++){const t=O[e];if("cut"!==t)B.push(t);else{const e=M.shift();B.push(!0===u?(0,c.Gh)(e):e)}}return B}function R(e,t,r){const n=(0,p.Vp)(r);if(null==n)return e;const[a,s]=n.valid,i=2*s;let o=0,l=0;t>s?o=Math.ceil(Math.abs(t-s)/i):t<a&&(o=-Math.ceil(Math.abs(t-a)/i)),e>s?l=Math.ceil(Math.abs(e-s)/i):e<a&&(l=-Math.ceil(Math.abs(e-a)/i));let u=e+(o-l)*i;const d=u-t;return d>s?u-=i:d<a&&(u+=i),u}function $(e){const t=(0,p.Vp)(e);if(null==t)return null;const[r,n]=t.valid;return new a.hr(r,n)}const E=$(u.A.WGS84);$(u.A.WebMercator)},69052:(e,t,r)=>{r.d(t,{hr:()=>a,ie:()=>l,uC:()=>o});var n=r(34727);class a{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+i(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,n,a=0,s=!1){return(n-=a)<t?n+=i(e,t-n):n>r&&(n-=i(e,n-r)),s&&n===r&&(n=t),n+a}function i(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const o=new a(0,2*Math.PI),l=(new a(-Math.PI,Math.PI),new a(0,360))},78628:(e,t,r)=>{r.d(t,{applyEdits:()=>v,r3:()=>A,uploadAssets:()=>M,zp:()=>F});var n=r(52106),a=r(7762),s=r(49186),i=r(4718),o=r(53966),l=r(74887),u=r(84952),d=r(13069),p=r(17136),c=r(21325),h=r(47685),f=r(30524),m=r(20557),y=r(77548);function g(e){return null!=e?.applyEdits}function b(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function A(e){return e.every(b)}function w(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function F(e){return e.every(w)}async function v(e,t,r,n={}){let u;const p="gdbVersion"in e?e.gdbVersion:null,c=n.gdbVersion??p;if((0,h.Mk)(e)&&e.url)u=(0,h.Zk)(e.url,e.layerId,c,"original-and-current-features"===n.returnServiceEditsOption);else{u=(0,l.Tw)(),u.promise.then(t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)});const t={result:u.promise};e.emit("apply-edits",t)}try{const{results:l,edits:p}=await async function(e,t,r,n){if(await e.load(),!g(t))throw new s.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,y.tk)(e))throw new s.A(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,r){const n=(0,y.BR)(e),i=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),l=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),u=null!=e.infoFor3D;if(function(e,t,r,n,a,i){if(!(e&&(n||a)||r?.usingTelecomOperations))throw new s.A(`${i}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!t.editing.supportsGlobalId&&r?.globalIdUsed&&!r.usingFeatureServiceEndpoint)throw new s.A(`${i}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!t.editing.supportsGlobalId&&a)throw new s.A(`${i}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&a)throw new s.A(`${i}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(t,n,r,!!i,!!l,`${e.type}-layer`),!n.data.isVersioned&&r?.gdbVersion)throw new s.A(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!n.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new s.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const p={...r};if(null!=p.rollbackOnFailureEnabled||n.editing.supportsRollbackOnFailure||(p.rollbackOnFailureEnabled=!0),p.rollbackOnFailureEnabled||"original-and-current-features"!==p.returnServiceEditsOption||(!1===p.rollbackOnFailureEnabled&&o.A.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwritten and set to true."),p.rollbackOnFailureEnabled=!0),!n.editing.supportsReturnServiceEditsInSourceSpatialReference&&p.returnServiceEditsInSourceSR)throw new s.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(p.returnServiceEditsInSourceSR&&"original-and-current-features"!==p.returnServiceEditsOption)throw new s.A(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const c=function(e,t,r){const n=function(e){return{addFeatures:Array.from(e?.addFeatures??[]),updateFeatures:Array.from(e?.updateFeatures??[]),deleteFeatures:e&&a.A.isCollection(e.deleteFeatures)?e.deleteFeatures.toArray():e.deleteFeatures||[],addAttachments:e.addAttachments||[],updateAttachments:e.updateAttachments||[],deleteAttachments:e.deleteAttachments||[]}}(e);if(n.addFeatures?.length&&!t.operations.supportsAdd)throw new s.A(`${r}:unsupported-operation`,"Layer does not support adding features.");if(n.updateFeatures?.length&&!t.operations.supportsUpdate)throw new s.A(`${r}:unsupported-operation`,"Layer does not support updating features.");if(n.deleteFeatures?.length&&!t.operations.supportsDelete)throw new s.A(`${r}:unsupported-operation`,"Layer does not support deleting features.");return n.addFeatures=n.addFeatures.map(E),n.updateFeatures=n.updateFeatures.map(E),n.addAssetFeatures=[],n}(t,n,`${e.type}-layer`),h=r?.globalIdUsed||u,f=e.fields.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(h){const{globalIdField:t}=e;if(null==t)throw new s.A(`${e.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");c.addFeatures.forEach(e=>function(e,t){const{attributes:r}=e;null==r[t]&&(r[t]=(0,d.yS)())}(e,t))}return c.addFeatures.forEach(t=>function(e,t,r,n){I(e,t,r,n),S(e,t)}(t,e,h,f)),c.updateFeatures.forEach(t=>function(e,t,r,n){I(e,t,r,n),S(e,t);const a=(0,y.BR)(t);if("geometry"in e&&null!=e.geometry&&!a?.editing.supportsGeometryUpdate)throw new s.A(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h,f)),c.deleteFeatures.forEach(t=>function(e,t,r,n){I(e,t,r,n)}(t,e,h,f)),c.addAttachments.forEach(t=>R(t,e)),c.updateAttachments.forEach(t=>R(t,e)),u&&await async function(e,t){const{infoFor3D:r}=t;if(null==r)return;if(!(0,m.JQ)(r))throw new s.A(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:n}=e;for(const t of e.addFeatures??[])k(t)&&n.push(t);for(const t of e.updateFeatures??[])k(t)&&n.push(t)}(c,e),{edits:await $(c),options:p}}(e,r,n);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,n),c=e=>e.filter(e=>!e.error).map(i.o8),h={edits:p,addedFeatures:c(l.addFeatureResults),updatedFeatures:c(l.updateFeatureResults),deletedFeatures:c(l.deleteFeatureResults),addedAttachments:c(l.addAttachmentResults),updatedAttachments:c(l.updateAttachmentResults),deletedAttachments:c(l.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:l.editMoment?new Date(l.editMoment):null,globalIdToObjectId:n.globalIdToObjectId};return l.editedFeatureResults?.length&&(h.editedFeatures=l.editedFeatureResults),u.resolve(h),l}catch(e){throw u.reject(e),e}}function I(e,t,r,n){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new s.A(`${t.type}-layer:invalid-parameter`,`Feature should have '${t.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in e)&&!e.globalId)throw new s.A(`${t.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(n.length&&"attributes"in e)for(const r of n){const n=e.attributes[r.name];if(void 0!==n&&!(0,f.OG)(r,n))throw new s.A(`${t.type}-layer:invalid-parameter`,`Big-integer field '${r.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:e})}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new s.A(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new s.A(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function S(e,t){if("geometry"in e&&"mesh"===e.geometry?.type&&null!=t.infoFor3D&&null!=t.spatialReference){const{geometry:r}=e,{spatialReference:n,vertexSpace:a}=r,i=t.spatialReference,o="local"===a.type,l=(0,c.EA)(i),u=(0,c.aI)(i,n),d=u||(0,c.oT)(i)&&((0,c.oT)(n)||(0,c.K8)(n));if(!(o&&l&&d||!o&&!l&&u))throw new s.A(`${t.type}-layer:mesh-unsupported`,`Uploading a mesh with a ${a.type} vertex space and a spatial reference wkid:${n.wkid} to a layer with a spatial reference wkid:${i.wkid} is not supported.`)}}function R(e,t){const{feature:r,attachment:n}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new s.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new s.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!n.globalId)throw new s.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!n.data&&!n.uploadId)throw new s.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(n.data instanceof File&&n.data.name||n.name))throw new s.A(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&n.uploadId)throw new s.A(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof n.data){const e=(0,u.r$)(n.data);if(e&&!e.isBase64)throw new s.A(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function $(e){const t=e.addFeatures??[],r=e.updateFeatures??[],n=t.concat(r).map(e=>e.geometry),a=await(0,p.el)(n),s=t.length,i=r.length;return a.slice(0,s).forEach((e,r)=>t[r].geometry=e),a.slice(s,s+i).forEach((e,t)=>r[t].geometry=e),e}function E(e){const t=new n.A;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function k(e){return"mesh"===e?.geometry?.type}function M(e,t,r,n){if(!g(t))throw new s.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new s.A(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,n)}},80754:(e,t,r)=>{r.d(t,{j7:()=>i,kS:()=>l,kd:()=>o,r8:()=>u});var n=r(82799),a=r(16930),s=r(65864);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:a.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:a.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,s.Bi)(e)?e.rings:e.paths}},92300:(e,t,r)=>{r.d(t,{V:()=>s,X:()=>a});var n=r(65864);function a(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const a=(0,n.xD)(t);return e.map(e=>{const t=a.fromJSON(e);return t.spatialReference=r,t})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4903],{1626:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(31635),r=i(4718),n=i(10107),o=(i(44208),i(53966),i(36005)),a=i(40608),u=i(43937),p=i(2485),c=i(72606);let d=s=class extends c.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart",this.weights=void 0}writeColorRamps(e,t,i,s){const l=e?.map(e=>e.toJSON(s)),{weights:r}=this;if(l&&r?.length&&l.length===r?.length){const e=100/r.reduce((e,t)=>e+t);let t=0;l.forEach((i,s)=>{i.start=t,t+=r[s]*e,i.stop=t})}t.colorRamps=l}readWeights(e,t){const i=t.colorRamps?.map(({start:e,stop:t})=>null==e||null==t?-1:t-e);if(!i?.some(e=>e<0))return i}clone(){return new s({colorRamps:(0,r.o8)(this.colorRamps)})}};(0,l.Cg)([(0,n.MZ)({type:[p.A],json:{write:{isRequired:!0}}})],d.prototype,"colorRamps",void 0),(0,l.Cg)([(0,u.K)("colorRamps")],d.prototype,"writeColorRamps",null),(0,l.Cg)([(0,n.MZ)({type:["multipart"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,l.Cg)([(0,n.MZ)({type:[Number]})],d.prototype,"weights",void 0),(0,l.Cg)([(0,o.w)("weights",["colorRamps"])],d.prototype,"readWeights",null),d=s=(0,l.Cg)([(0,a.$)("esri.rest.support.MultipartColorRamp")],d)},2024:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(72500);let u=s=class extends o.A{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?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l.Cg)([(0,r.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,l.Cg)([(0,r.MZ)({type:["color"],json:{type:["colorInfo"]}})],u.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],u.prototype,"normalizationField",void 0),(0,l.Cg)([(0,r.MZ)({type:[a.A],json:{write:!0}})],u.prototype,"stops",null),u=s=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.ColorVariable")],u)},2485:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(31635),r=i(68197),n=i(4718),o=i(10107),a=i(56507),u=i(93223),p=i(40608),c=i(72606);let d=s=class extends c.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.o8)(this.fromColor),toColor:(0,n.o8)(this.toColor),algorithm:this.algorithm})}};(0,l.Cg)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,l.Cg)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"fromColor",void 0),(0,l.Cg)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],d.prototype,"toColor",void 0),(0,l.Cg)([(0,o.MZ)({type:["algorithmic"],json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),d=s=(0,l.Cg)([(0,p.$)("esri.rest.support.AlgorithmicColorRamp")],d)},2795:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(31635),l=i(66552),r=i(25482),n=i(53966),o=i(10107),a=i(79901),u=i(40608),p=i(56507),c=i(41078);const d=new l.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends r.o{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.A.getLogger(this).error(".field: field must be a string value"),null):(0,p.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s.Cg)([(0,o.MZ)()],h.prototype,"index",void 0),(0,s.Cg)([(0,o.MZ)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:{writer:d.write,isRequired:!0}}})],h.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s.Cg)([(0,a.w)("field")],h.prototype,"castField",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s.Cg)([(0,u.$)("esri.renderers.visualVariables.VisualVariable")],h)},12330:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(25482),n=i(90629),o=i(10107),a=(i(44208),i(53966),i(87811),i(40608));let u=s=class extends r.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:{isRequired:!0}}})],u.prototype,"size",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],u.prototype,"value",void 0),(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMinValue",void 0),(0,l.Cg)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMaxValue",void 0),u=s=(0,l.Cg)([(0,a.$)("esri.renderers.visualVariables.support.SizeStop")],u)},20061:(e,t,i)=>{i.d(t,{A:()=>y});var s,l=i(31635),r=i(69540),n=i(66552),o=i(25482),a=i(10107),u=i(56507),p=(i(44208),i(87811),i(93223)),c=i(40608);const d=(0,n.O)()({ascendingValues:"ascending-values",descendingValues:"descending-values"});let h=s=class extends((0,r.OU)(o.o)){static from(e){return(0,u.PZ)(s,e)}constructor(e){super(e),this.title=null,this.order=null}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,l.Cg)([(0,p.e)(d)],h.prototype,"order",void 0),h=s=(0,l.Cg)([(0,c.$)("esri.renderers.support.RendererLegendOptions")],h);const y=h},23461:(e,t,i)=>{i.d(t,{A:()=>a});var s,l=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795);let a=s=class extends o.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic"}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,l.Cg)([(0,r.MZ)({readOnly:!0})],a.prototype,"cache",null),(0,l.Cg)([(0,r.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],a.prototype,"axis",void 0),(0,l.Cg)([(0,r.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],a.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],a.prototype,"rotationType",void 0),a=s=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.RotationVariable")],a)},29266:(e,t,i)=>{i.d(t,{RV:()=>d,UT:()=>h,Yz:()=>g}),i(68197);var s=i(52106),l=i(21818),r=i(53966),n=i(31756),o=i(98205);const a=()=>r.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=e=>a().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),p=()=>a().error("Use of arcade expressions requires an arcade context"),c=(new s.A,Math.PI),d=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function h(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"rotation"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void u("RotationVariable");const l=s.axis||"heading",r="heading"===l&&"arithmetic"===s.rotationType?90:0,n="heading"===l&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,a=o?.attributes,c=s.field,{hasExpression:d}=s.cache;let h=s.cache.compiledFunc,y=null;if(!c&&!d)return y;if(d){if(null==i?.arcade)return void p();const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,l=t.getViewInfo(e),r=t.createExecContext(o,l,i.timeZone);if(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}y=t.executeFunction(h,r)}else a&&(y=a[c]);return y="number"!=typeof y||isNaN(y)?null:r+n*y,y}function y(e,t,i){const s="visualVariables"in e?e.visualVariables?.find(e=>"size"===e.type):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void u("SizeVariable");const l=function(e,t,i,s,l){switch(t.transformationType){case"additive":return function(e,t,i,s){const l=m(t.minSize,i,s)||t.minDataValue;return null==e&&null==l?null:(e??0)+(l??0)}(e,t,i,s);case"constant":return function(e,t,i){const s=e.stops;let l=s?.length&&s[0].size;return null==l&&(l=e.minSize),m(l,t,i)}(t,i,s);case"clamped-linear":return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e)return l;const{minDataValue:r,maxDataValue:n}=t;if(null==r||null==n)return null;const o=(e-r)/(n-r),a=m(t.maxSize,i,s),u=null!=s?s.shape:void 0;if(e<=r)return l;if(e>=n)return a;if(null==l||null==a)return null;if("area"===t.scaleBy&&u){const e="circle"===u,t=e?c*(l/2)**2:l*l,i=t+o*((e?c*(a/2)**2:a*a)-t);return e?2*Math.sqrt(i/c):Math.sqrt(i)}return l+o*(a-l)}(e,t,i,s);case"proportional":return function(e,t,i,s){const l=m(t.minSize,i,s);if(null==e||null==l)return l;const r=null!=s?s.shape:void 0,{minDataValue:n}=t;if(null==n)return null;const o=e/n,a=m(t.maxSize,i,s);let u=null;return u="circle"===r?2*Math.sqrt(o*(l/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(o*l**2):o*l,f(u,l,a)}(e,t,i,s);case"stops":return function(e,t,i,s,l){if(null==e)return null;const[r,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some((t,l)=>e<t?(s=l,!0):(i=l,!1)),[i,s,(e-t[i])/(t[s]-t[i])]}(e,l);if(r===n)return m(t.stops?.[r].size,i,s);{const e=m(t.stops?.[r].size,i,s),l=m(t.stops?.[n].size,i,s);return null==e||null==l?null:e+(l-e)*o}}(e,t,i,s,l);case"real-world-size":return function(e,t,i,s){const l=(s?.resolution??1)*n.j[t.valueUnit],r=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;if(null==e)return r;let u=null;return u="area"===a?2*Math.sqrt(e/c)/l:"radius"===a||"distance"===a?2*e/l:e/l,f(u,r,o)}(e,t,i,s);case"identity":return e;case"unknown":return null}}(function(e,t,i){const s="number"==typeof t,l=s?null:t,r=l?.attributes;let n=s?t:null;const{isScaleDriven:a}=e.cache;let u=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case"expression":{if(null==i?.arcade)return void p();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,r=s.getViewInfo(t),o=s.createExecContext(l,r,i.timeZone);if(!u){const t=s.createSyntaxTree(e.valueExpression);u=s.createFunction(t),e.cache.compiledFunc=u}n=s.executeFunction(u,o);break}case"field":r&&(n=r[e.field]);break;case"unknown":n=null}if(!(0,o.gf)(n))return null;if(s||!e.normalizationField)return n;const c=r?parseFloat(r[e.normalizationField]):null;return(0,o.gf)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==l||isNaN(l)?void 0:l}function m(e,t,i){return null==e?null:(0,o.of)(e)?y(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}function g(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":y(r,t,i)??"proportional";switch(r.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,l.Xb)(r.axis)}}return s}},30943:(e,t,i)=>{i.d(t,{A:()=>F});var s,l=i(31635),r=i(66552),n=i(25482),o=i(4718),a=i(10107),u=i(56507),p=i(36005),c=i(40608);i(44208),i(53966),i(87811);let d=s=class extends n.o{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.o{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l.Cg)([(0,a.MZ)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(79901);let g=m=class extends n.o{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"size",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=m=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoSizeStop")],g);const v=g;var b;const w=new r.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),V=new r.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),S={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},C=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size","spike"])],M=["seconds","minutes","hours","days","months","years"];let z=b=class extends n.o{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}get normalizationField(){return"reference-size"===this.theme||"spike"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}get spikeSymbolStyle(){return"spike"===this.theme?this._get("spikeSymbolStyle"):null}set spikeSymbolStyle(e){this._set("spikeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme||"spike"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}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 b({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,spikeSymbolStyle:this.spikeSymbolStyle,sizeStops:(0,o.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,l.Cg)([(0,a.MZ)({types:S,json:{write:!0}})],z.prototype,"endTime",void 0),(0,l.Cg)([(0,f.w)("endTime")],z.prototype,"castEndTime",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"normalizationField",null),(0,l.Cg)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeScale",null),(0,l.Cg)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeSymbolStyle",null),(0,l.Cg)([(0,a.MZ)({type:["triangle-closed-outline","triangle-gradient-fill-closed","triangle-gradient-fill-closed-outline","triangle-gradient-fill-open","triangle-gradient-fill-open-outline","triangle-open-outline","triangle-solid-fill-closed","triangle-solid-fill-closed-outline","triangle-solid-fill-open","triangle-solid-fill-open-outline"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"spikeSymbolStyle",null),(0,l.Cg)([(0,a.MZ)({types:S,json:{write:!0}})],z.prototype,"startTime",void 0),(0,l.Cg)([(0,f.w)("startTime")],z.prototype,"castStartTime",null),(0,l.Cg)([(0,a.MZ)({type:[v],json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"sizeStops",null),(0,l.Cg)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],z.prototype,"style",null),(0,l.Cg)([(0,a.MZ)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:C,write:{writer:(e,t)=>{C.includes(e)&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,l.Cg)([(0,a.MZ)({type:V.apiValues,json:{type:V.jsonValues,read:V.read,write:V.write}})],z.prototype,"type",void 0),(0,l.Cg)([(0,a.MZ)({type:M,json:{type:M,write:!0}})],z.prototype,"units",void 0),z=b=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const I=z;var _,A=i(95349);const j=new r.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),Z=new r.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers"];let F=_=class extends n.o{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,A.r)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new _({classificationMethod:this.classificationMethod,colorRamp:(0,o.o8)(this.colorRamp),fadeRatio:(0,o.o8)(this.fadeRatio),fields:this.fields?.slice(),field1:(0,o.o8)(this.field1),field2:(0,o.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(e=>e.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,l.Cg)([(0,a.MZ)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],F.prototype,"classificationMethod",null),(0,l.Cg)([(0,a.MZ)({types:A.g,json:{write:!0}})],F.prototype,"colorRamp",void 0),(0,l.Cg)([(0,p.w)("colorRamp")],F.prototype,"readColorRamp",null),(0,l.Cg)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"fadeRatio",void 0),(0,l.Cg)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],F.prototype,"fields",null),(0,l.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],F.prototype,"field1",null),(0,l.Cg)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],F.prototype,"field2",null),(0,l.Cg)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"flowTheme",null),(0,l.Cg)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],F.prototype,"focus",null),(0,l.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],F.prototype,"isAutoGenerated",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],F.prototype,"numClasses",null),(0,l.Cg)([(0,a.MZ)({type:q,json:{type:q,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],F.prototype,"lengthUnit",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"maxSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"minSliderValue",void 0),(0,l.Cg)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],F.prototype,"statistics",null),(0,l.Cg)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],F.prototype,"standardDeviationInterval",null),(0,l.Cg)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write}})],F.prototype,"type",null),(0,l.Cg)([(0,a.MZ)({type:[I],json:{write:!0}})],F.prototype,"visualVariables",void 0),(0,l.Cg)([(0,a.MZ)({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}}}})],F.prototype,"univariateSymbolStyle",null),(0,l.Cg)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],F.prototype,"univariateTheme",null),F=_=(0,l.Cg)([(0,c.$)("esri.renderers.support.AuthoringInfo")],F)},41078:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(31635),l=i(69540),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608));let a=class extends((0,l.OU)(r.o)){constructor(){super(...arguments),this.showLegend=null,this.title=null}};(0,s.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=(0,s.Cg)([(0,o.$)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},48940:(e,t,i)=>{i.d(t,{A:()=>M});var s=i(31635),l=i(49186),r=i(66552),n=i(53966),o=i(10107),a=i(79901),u=i(36005),p=i(40608),c=i(43937),d=i(2795),h=i(90629),y=i(12330),m=(i(44208),i(87811),i(41078));let f=class extends m.A{constructor(){super(...arguments),this.customValues=null}};(0,s.Cg)([(0,o.MZ)({type:[Number],json:{write:!0}})],f.prototype,"customValues",void 0),f=(0,s.Cg)([(0,p.$)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],f);const g=f;var v,b=i(98205),w=i(29266);const V=new r.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new r.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers"});function C(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,h.cr)(e)}(e):"size"===e.type?(0,b.of)(e)?e:(delete(e={...e}).type,new M(e)):void 0}function x(e,t,i){if("object"!=typeof e)return e;const s=new M;return s.read(e,i),s}let M=v=class extends d.A{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&w.RV.test(this.valueExpression)}}set index(e){(0,b.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,b.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,b.eh)(this)}set maxDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return C(e)}readMaxSize(e,t,i){return x(e,0,i)}set minDataValue(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(n.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return C(e)}readMinSize(e,t,i){return x(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter(e=>!!e)).sort((e,t)=>e.value-t.value):e&&(n.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,b.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s?.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.A("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 v({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,b.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,b.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map(e=>e.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if("clamped-linear"===this.transformationType){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if("stops"===this.transformationType){const e=this.stops;if(!e)return this;const t=e.map(e=>e.size).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops?.map(e=>e.value||0)}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],M.prototype,"axis",void 0),(0,s.Cg)([(0,o.MZ)()],M.prototype,"index",null),(0,s.Cg)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"inputValueType",null),(0,s.Cg)([(0,o.MZ)({type:g,json:{write:!0}})],M.prototype,"legendOptions",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxDataValue",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"maxSize",null),(0,s.Cg)([(0,a.w)("maxSize")],M.prototype,"castMaxSize",null),(0,s.Cg)([(0,u.w)("maxSize")],M.prototype,"readMaxSize",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minDataValue",null),(0,s.Cg)([(0,o.MZ)({type:Number,value:null,json:{write:!0}})],M.prototype,"minSize",null),(0,s.Cg)([(0,a.w)("minSize")],M.prototype,"castMinSize",null),(0,s.Cg)([(0,u.w)("minSize")],M.prototype,"readMinSize",null),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"normalizationField",void 0),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"arcadeRequired",null),(0,s.Cg)([(0,o.MZ)({type:String})],M.prototype,"scaleBy",void 0),(0,s.Cg)([(0,o.MZ)({type:[y.A],value:null,json:{write:!0}})],M.prototype,"stops",null),(0,s.Cg)([(0,o.MZ)({type:["outline"],json:{write:!0}})],M.prototype,"target",void 0),(0,s.Cg)([(0,o.MZ)({type:String,readOnly:!0})],M.prototype,"transformationType",null),(0,s.Cg)([(0,o.MZ)({type:["size"],json:{type:["sizeInfo"]}})],M.prototype,"type",void 0),(0,s.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],M.prototype,"useSymbolValue",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],M.prototype,"valueExpression",void 0),(0,s.Cg)([(0,u.w)("valueExpression",["valueExpression","expression"])],M.prototype,"readValueExpression",null),(0,s.Cg)([(0,c.K)("web-scene","valueExpression")],M.prototype,"writeValueExpressionWebScene",null),(0,s.Cg)([(0,o.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],M.prototype,"valueRepresentation",void 0),(0,s.Cg)([(0,o.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],M.prototype,"valueUnit",void 0),(0,s.Cg)([(0,u.w)("valueUnit")],M.prototype,"readValueUnit",null),M=v=(0,s.Cg)([(0,p.$)("esri.renderers.visualVariables.SizeVariable")],M)},49849:(e,t,i)=>{i.d(t,{As:()=>c,Ug:()=>d,Wp:()=>p,z4:()=>u});var s=i(93637),l=i(90360),r=i(65365),n=i(20378),o=i(73838),a=i(33910);const u={types:a.xK,json:{write:{writer:o.M9},origins:{"web-scene":{types:a.On,write:{writer:o.M9},read:{reader:(0,l.C)({types:a.On})}}}}},p=(0,s.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:n.A,key:"type",typeMap:{"simple-fill":a.Es.typeMap["simple-fill"],"picture-fill":a.Es.typeMap["picture-fill"],"polygon-3d":a.Es.typeMap["polygon-3d"],cim:a.Es.typeMap.cim}},json:{write:{writer:o.M9},origins:{"web-scene":{type:r.A,write:{writer:o.M9}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},60999:(e,t,i)=>{i.d(t,{DZ:()=>y,Ke:()=>h,Tj:()=>p,UT:()=>m,jJ:()=>u});var s=i(31635),l=i(65008),r=i(97768),n=i(74887),o=i(10107),a=i(40608);function u(e,t,i){return(0,n.Lx)(e.map((e,s)=>t.apply(i,[e,s])))}async function p(e,t,i){return(await(0,n.Lx)(e.map((e,s)=>t.apply(i,[e,s])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function y(e){try{return c(await e)}catch(e){return(0,n.QP)(e),d(e)}}function m(e,t){return new f(e,t)}let f=class extends l.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,n.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,s.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,s.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,s.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,s.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,s.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],f)},62724:(e,t,i)=>{i.d(t,{A:()=>f});var s,l=i(31635),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(25482),u=i(56507),p=i(36005),c=i(43937),d=i(78553);let h=s=class extends a.o{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,d.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,d.p)(e)}clone(){return new s({label:this.label,opacity:this.opacity,value:this.value})}};(0,l.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,l.Cg)([(0,r.MZ)({type:Number,json:{type:u.jz,write:{target:"transparency",isRequired:!0}}})],h.prototype,"opacity",void 0),(0,l.Cg)([(0,p.w)("opacity",["transparency"])],h.prototype,"readOpacity",null),(0,l.Cg)([(0,c.K)("opacity")],h.prototype,"writeOpacity",null),(0,l.Cg)([(0,r.MZ)({type:Number,json:{write:{isRequired:!0}}})],h.prototype,"value",void 0),h=s=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.support.OpacityStop")],h);const y=h;var m;let f=m=class extends o.A{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 m({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(e=>e.clone()),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map(e=>e.value||0)}};(0,l.Cg)([(0,r.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,l.Cg)([(0,r.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],f.prototype,"type",void 0),(0,l.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,l.Cg)([(0,r.MZ)({type:[y],json:{write:!0}})],f.prototype,"stops",null),f=m=(0,l.Cg)([(0,n.$)("esri.renderers.visualVariables.OpacityVariable")],f)},63988:(e,t,i)=>{i.d(t,{h:()=>x});var s=i(31635),l=i(10107),r=(i(44208),i(53966)),n=(i(87811),i(36005)),o=i(40608),a=i(43937),u=i(30524),p=i(2024),c=i(62724),d=i(23461),h=i(48940),y=i(2795),m=i(65008),f=i(66552),g=i(67076);const v={color:p.A,size:h.A,opacity:c.A,rotation:d.A},b=new f.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),w=/^\[([^\]]+)\]$/i;let V=class extends m.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e?.filter(e=>!!e),e?.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some(e=>!!e.target)&&e.sort((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i});for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:l}=t,n=s?.match(w),o=n?.[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:l,field:o})),e)return e.map(e=>{const t=b.read(e.type),s=v[t];s||(r.A.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new g.A("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const l=new s;return l.read(e,i),l})}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s.Cg)([(0,l.MZ)()],V.prototype,"visualVariables",null),V=(0,s.Cg)([(0,o.$)("esri.renderers.visualVariables.VisualVariableFactory")],V);var S=i(69309);const C={base:y.A,key:"type",typeMap:{opacity:c.A,color:p.A,rotation:d.A,size:h.A}},x=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._vvFactory=new V}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(){return this.visualVariables?.some(({arcadeRequired:e})=>e)??!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){return this.visualVariables?.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.rq)(e,t,s.field),s.normalizationField&&(0,u.rq)(e,t,s.normalizationField),s.valueExpression&&(M(s.valueExpression,e,t)||await(0,u.Dx)(e,t,null,s.valueExpression)))}};return(0,s.Cg)([(0,l.MZ)({types:[C],value:null,json:{write:!0}})],i.prototype,"visualVariables",null),(0,s.Cg)([(0,n.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],i.prototype,"readVisualVariables",null),(0,s.Cg)([(0,a.K)("visualVariables")],i.prototype,"writeVisualVariables",null),i=(0,s.Cg)([(0,o.$)("esri.renderers.mixins.VisualVariablesMixin")],i),i};function M(e,t,i){const s=(0,S.D)(e);return null!=s&&((0,u.rq)(t,i,s),!0)}},72500:(e,t,i)=>{i.d(t,{A:()=>d});var s,l=i(31635),r=i(68197),n=i(25482),o=i(10107),a=i(56507),u=(i(44208),i(87811),i(40608)),p=i(43937);let c=s=class extends n.o{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,l.Cg)([(0,o.MZ)({type:r.A,json:{type:[a.jz],write:{isRequired:!0}}})],c.prototype,"color",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,l.Cg)([(0,p.K)("value")],c.prototype,"writeValue",null),c=s=(0,l.Cg)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},72606:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(31635),l=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let o=class extends l.o{constructor(e){super(e),this.type=null}};(0,s.Cg)([(0,r.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s.Cg)([(0,n.$)("esri.rest.support.ColorRamp")],o)},73838:(e,t,i)=>{i.d(t,{rS:()=>k,M9:()=>j,oO:()=>Z});var s=i(49186),l=i(93637),r=i(77548),n=i(37757),o=i(13313),a=i(97887),u=i(68548),p=i(58592),c=i(75981),d=i(65365),h=i(94985),y=i(31593),m=i(53930),f=i(68249),g=i(68197),v=i(7762),b=(i(44208),i(90629)),w=i(27845),V=i(11506),S=i(39065),C=i(59868),x=i(93470);c.A.fromSimpleMarkerSymbol(C.UK),a.A.fromSimpleLineSymbol(C.A7),d.A.fromSimpleFillSymbol(C.Cx),new u.A({symbolLayers:new v.A([new w.A({material:{color:x.fT},edges:new S.A({size:(0,b.PN)(1),color:new g.A(x.JR)})})])});const M=new a.A({symbolLayers:new v.A([new V.A({material:{color:new g.A([0,0,0])},size:(0,b.PN)(1)})])}),z=new d.A({symbolLayers:new v.A([new w.A({outline:{color:new g.A([0,0,0]),size:(0,b.PN)(1)}})])});var I=i(33910);const _="#useCIMFallbackSymbology()",A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function j(e,t,i,s){const r=F(e,{},{context:s,isLabelSymbol:!1});null!=r&&(0,l.sM)(i,r,t)}function Z(e,t,i,s){const l=F(e,{},{context:s,isLabelSymbol:!0});null!=l&&(t[i]=l)}function q(e){return(0,I.wk)(e)||e instanceof n.A}function F(e,t,i){if(null==e)return null;const{context:l,isLabelSymbol:g}=i,v=l?.origin,b=l?.messages;if("web-scene"===v&&!q(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:l=A.ignoreDrivers,hasLabelingContext:r=A.hasLabelingContext,retainCIM:g=A.retainCIM,cimFallbackEnabled:v=A.cimFallbackEnabled}=t;let b=null;if((0,I.wk)(e))b=e.clone();else if("web-style"===e.type)b=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":b=g?e.clone():c.A.fromCIMSymbol(e);break;case"CIMLineSymbol":v&&(b=M.clone(),t?.logWarning?.(_,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":v&&(b=z.clone(),t?.logWarning?.(_,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!b)return{error:new s.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof y.A)b=a.A.fromSimpleLineSymbol(e);else if(e instanceof m.A)b=c.A.fromSimpleMarkerSymbol(e);else if(e instanceof p.A)b=c.A.fromPictureMarkerSymbol(e);else if(e instanceof h.A)b=t.geometryType&&"mesh"===t.geometryType?u.A.fromSimpleFillSymbol(e):d.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new s.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};b=r?o.A.fromTextSymbol(e):c.A.fromTextSymbol(e)}return i&&b&&"cim"!==b.type&&(b.id=e.id),!l||"cim"===b.type||b instanceof n.A||b.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:b}}(e,{retainCIM:!0,hasLabelingContext:g});return null!=i.symbol?i.symbol.write(t,l):(b?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:l,error:i.error})),null)}return(0,r.TU)(l?.layer)&&(w=e,"polygon-3d"===w?.type||"line-3d"===w?.type)?(b?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported on layers of type '${l?.layer?.declaredClass}'.`,{symbol:e,context:l})),null):("web-map"===v||"portal-item"===v&&!(0,r.TU)(l?.layer))&&q(e)?(b?.push(new s.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:l})),null):e.write(t,l);var w}function k(e,t){return(0,I.Bu)(e,null,t)}},85594:(e,t,i)=>{i.d(t,{jg:()=>v,cF:()=>c,bo:()=>d,yA:()=>m,o5:()=>h});var s=i(78888),l=i(49186),r=i(44208),n=i(74887),o=i(84952),a=i(20655),u=i(16405);const p=new Map;function c(e,t,i){return null!=e?.styleUrl?async function(e,t){try{return{data:(await m(e,t)).data,baseUrl:(0,o.nM)(e),styleUrl:e}}catch(e){return(0,n.QP)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:a.A.getDefault();let r;const n=`${s.url} - ${s.user?.username} - ${e}`,o=p.get(n);if(o)return o;const c=function(e,t,i){return t.load(i).then(()=>{const s=new u.A({disableExtraQuery:!0,query:`owner:${f} AND type:${g} AND typekeywords:"${e}"`});return t.queryItems(s,i)}).then(({results:t})=>{let s=null;const r=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some(e=>e.toLowerCase()===r);if(t&&e.type===g&&e.owner===f){s=e;break}}if(!s)throw new l.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)})}(e,s,i).then(e=>(r=e,e.fetchData())).then(t=>({data:t,baseUrl:r.itemUrl??"",styleName:e}));return p.set(n,c),c}(e.styleName,t,i):Promise.reject(new l.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t){for(const i of t)switch(i){case"cim":if(e.cimRef)return{format:i,url:encodeURI(e.cimRef)};break;case"web-gltf-basisu":{const t=y(e,"gltf_basisu");if(t)return{format:i,url:t};break}case"web-gltf":{const t=y(e,"gltf");if(t)return{format:i,url:t};break}case"web":{const t=y(e,"gltf");if(t)return{format:"web-gltf",url:t};if(e.webRef)return{format:i,url:encodeURI(e.webRef)};break}}}function y(e,t){if(!(0,r.A)("enable-feature:force-wosr"))return e.formatInfos?.find(e=>e.type===t)?.href}function m(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,o.S8)(e),i)}const f="esri_en",g="Style",v="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"},86162:(e,t,i)=>{i.d(t,{A:()=>I});var s,l=i(31635),r=i(66552),n=i(4718),o=i(53966),a=i(10107),u=i(79901),p=i(93223),c=i(36005),d=i(40608),h=i(43937),y=i(56507),m=i(30524),f=i(92438),g=i(63988),v=i(88542),b=i(49849),w=i(20061),V=i(43668),S=i(33910);const C="percent-of-total",x="field",M=new r.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:C,esriNormalizeByField:x}),z=(0,y.dp)(v.A);let I=s=class extends((0,g.h)(f.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map(e=>{const t=new v.A;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t})}writeClassBreakInfos(e,t,i,s){const l=e.map(e=>e.write({},s));this._areClassBreaksConsecutive()&&l.forEach(e=>delete e.classMinValue),t[i]=l}castField(e){return null==e?e:"function"==typeof e?(o.A.getLogger(this).error(".field: field must be a string value"),null):(0,y.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&C||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==C||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new v.A({minValue:e,maxValue:t,symbol:(0,S.dp)(i)}):z((0,n.o8)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&o.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,V.l)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void o.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,V.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}get symbols(){const e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol)}),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce((e,t)=>e+t.getMeshHash(),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,n.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,n.o8)(this.visualVariables),legendOptions:(0,n.o8)(this.legendOptions),authoringInfo:(0,n.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,m.Dx)(e,t,null,this.valueExpression)];(0,m.rq)(e,t,this.field),(0,m.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=r.arcadeUtils;if(!a){const e=u.createSyntaxTree(o);a=u.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=o;const p=u.executeFunction(a,u.createExecContext(e,u.getViewInfo({viewingMode:i,scale:s,spatialReference:l}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let l=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)l=Math.log(l)*Math.LOG10E;else if(s!==C||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,l.Cg)([(0,a.MZ)(b.As)],I.prototype,"backgroundFillSymbol",void 0),(0,l.Cg)([(0,a.MZ)({type:[v.A],json:{write:{isRequired:!0}}})],I.prototype,"classBreakInfos",void 0),(0,l.Cg)([(0,c.w)("classBreakInfos")],I.prototype,"readClassBreakInfos",null),(0,l.Cg)([(0,h.K)("classBreakInfos")],I.prototype,"writeClassBreakInfos",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"defaultLabel",void 0),(0,l.Cg)([(0,a.MZ)(b.z4)],I.prototype,"defaultSymbol",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"field",void 0),(0,l.Cg)([(0,u.w)("field")],I.prototype,"castField",null),(0,l.Cg)([(0,a.MZ)({type:Boolean})],I.prototype,"isMaxInclusive",void 0),(0,l.Cg)([(0,a.MZ)({type:w.A,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],I.prototype,"minValue",null),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,l.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],I.prototype,"normalizationTotal",void 0),(0,l.Cg)([(0,a.MZ)({type:M.apiValues,value:null,json:{type:M.jsonValues,read:M.read,write:M.write}})],I.prototype,"normalizationType",null),(0,l.Cg)([(0,p.e)({classBreaks:"class-breaks"})],I.prototype,"type",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,l.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpressionTitle",void 0),I=s=(0,l.Cg)([(0,d.$)("esri.renderers.ClassBreaksRenderer")],I)},88542:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends r.o{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l.Cg)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),u=s=(0,l.Cg)([(0,o.$)("esri.renderers.support.ClassBreakInfo")],u)},92438:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(31635),l=i(66552),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(30943);const u=new l.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends r.o{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){}get symbols(){return[]}get arcadeRequired(){return!1}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s.Cg)([(0,n.MZ)({type:a.A,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s.Cg)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0,isRequired:!0}}})],p.prototype,"type",void 0),p=(0,s.Cg)([(0,o.$)("esri.renderers.Renderer")],p)},93618:(e,t,i)=>{i.d(t,{A:()=>R});var s=i(31635),l=i(49186),r=i(4718),n=i(53966),o=i(93637),a=i(36708),u=i(10107),p=i(79901),c=i(93223),d=i(36005),h=i(40608),y=i(43937),m=i(6797),f=i(56507),g=i(30524),v=i(20655),b=i(92438),w=i(63988),V=i(49849),S=i(20061),C=i(69540),x=i(25482);i(44208),i(87811);let M=class extends((0,C.OU)(x.o)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s.Cg)([(0,u.MZ)(V.Ug)],M.prototype,"value",void 0),(0,s.Cg)([(0,u.MZ)(V.Ug)],M.prototype,"value2",void 0),(0,s.Cg)([(0,u.MZ)(V.Ug)],M.prototype,"value3",void 0),M=(0,s.Cg)([(0,h.$)("esri.renderers.support.UniqueValue")],M);var z=i(4576);let I=class extends((0,C.OU)(x.o)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map(e=>new M({value:e})):"object"===t?e[0]instanceof M?e:e.map(e=>new M(e)):null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"description",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"label",void 0),(0,s.Cg)([(0,u.MZ)(V.z4)],I.prototype,"symbol",void 0),(0,s.Cg)([(0,u.MZ)({type:[M],json:{type:[[String]],read:{reader:e=>e?e.map(e=>new M({value:e[0],value2:e[1],value3:e[2]})):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(z.Ru).map(e=>e.toString());i.push(e)}t.values=i}}}})],I.prototype,"values",void 0),(0,s.Cg)([(0,p.w)("values")],I.prototype,"castValues",null),I=(0,s.Cg)([(0,h.$)("esri.renderers.support.UniqueValueClass")],I);let _=class extends((0,C.OU)(x.o)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],_.prototype,"heading",void 0),(0,s.Cg)([(0,u.MZ)({type:[I],json:{write:{isRequired:!0}}})],_.prototype,"classes",void 0),_=(0,s.Cg)([(0,h.$)("esri.renderers.support.UniqueValueGroup")],_);var A,j=i(94833),Z=i(43668),q=i(97159),F=i(37757),k=i(85594),E=i(33910);const U="uvInfos-watcher",T="uvGroups-watcher",O=(0,f.dp)(j.A);function D(e){return null!=e&&""!==e&&("string"!=typeof e||""!==e.trim()&&"<null>"!==e.toLowerCase())||(e=null),e+""}let R=A=class extends((0,w.h)(b.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let l=0;l<t.length;l++){const r=e.find(e=>e.value===t[l].value);r?(0,m.Ui)(r,t[l])?(s.changed.push({type:"complete",oldValue:r,newValue:t[l]}),i=!0):s.unchanged.push({oldValue:r,newValue:t[l]}):(s.added.push(t[l]),i=!0)}for(let l=0;l<e.length;l++)t.find(t=>t.value===e[l].value)||(s.removed.push(e[l]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,f.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.A("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):n.A.getLogger(this).error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||v.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,q.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,q.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?n.A.getLogger(this).error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?n.A.getLogger(this).error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void n.A.getLogger(this).error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?O(e):new j.A({value:e,symbol:(0,E.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[D(i.value)]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void n.A.getLogger(this).error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(String(s.value)===String(e)){delete this._valueInfoMap[D(e)],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,Z.l)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void n.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i?.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){const e=await(0,Z.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s?.symbol||this.defaultSymbol}get symbols(){const e=[];if(this._isInfosSource)for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);else for(const t of this.uniqueValueGroups??[])for(const i of t.classes??[])i.symbol&&e.push(i.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce((e,t)=>e+t.getMeshHash(),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new A({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,r.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,r.o8)(this.visualVariables),legendOptions:(0,r.o8)(this.legendOptions),authoringInfo:(0,r.o8)(this.authoringInfo),backgroundFillSymbol:(0,r.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,r.o8)(this.uniqueValueInfos),i=(0,r.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,r.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.symbols.map(i=>i.collectRequiredFields(e,t)),(0,g.Dx)(e,t,null,this.valueExpression)];(0,g.rq)(e,t,this.field),(0,g.rq)(e,t,this.field2),(0,g.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,k.cF)(this.styleOrigin,{portal:this.portal}).then(e=>{const t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach(i=>{const s=new F.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const l=new j.A({value:i.name,symbol:s});t.push(l),this._valueInfoMap[D(i.name)]=l}),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this})}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[D(t.value)]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(U);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,a.wB)(()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description}),(e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(t,U)}}_watchUniqueValueGroups(){this.removeHandles(T);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,a.wB)(()=>({classes:i.classes}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const e of i.classes??[])t.push((0,a.wB)(()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description}),(e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(t,T)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueGroups:r,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of r)for(const r of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=r;for(const r of a??[]){const{value:a,value2:p,value3:c}=r,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(l||""):d[0]??void 0;e.push(new j.A({symbol:t,label:n,value:h,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:l,uniqueValueInfos:r}=this;if(!t&&!s||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=r.map(e=>{const{symbol:t,label:i,value:s,description:r}=e,[o,a,u]=n?s?.toString()?.split(l||"")||[]:[s];return new I({symbol:t,label:i,description:r,values:[new M({value:o,value2:a,value3:u})]})}),a=[new _({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=r.arcadeUtils;if(!o){const e=a.createSyntaxTree(this.valueExpression);o=a.createFunction(e),this._cache.compiledFunc=o}const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:l}),n));return this._valueInfoMap[D(u)]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,l=this.field3,r=[];t&&r.push(i[t]),e&&r.push(i[e]),l&&r.push(i[l]),s=r.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[D(s)]}static fromPortalStyle(e,t){const i=new A(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||v.A.getDefault());const s=i.populateFromStyle();return s.catch(t=>{n.A.getLogger(this.prototype).error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)}),s}static fromStyleUrl(e,t){const i=new A(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch(t=>{n.A.getLogger(this.prototype).error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)}),s}};(0,s.Cg)([(0,u.MZ)({readOnly:!0})],R.prototype,"_cache",null),(0,s.Cg)([(0,c.e)({uniqueValue:"unique-value"})],R.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)(V.As)],R.prototype,"backgroundFillSymbol",void 0),(0,s.Cg)([(0,u.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],R.prototype,"field",null),(0,s.Cg)([(0,p.w)("field")],R.prototype,"castField",null),(0,s.Cg)([(0,y.K)("field")],R.prototype,"writeField",null),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field2",null),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field3",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],R.prototype,"orderByClassesEnabled",void 0),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"valueExpression",null),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"valueExpressionTitle",void 0),(0,s.Cg)([(0,u.MZ)({type:S.A,json:{write:!0}})],R.prototype,"legendOptions",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],R.prototype,"defaultLabel",void 0),(0,s.Cg)([(0,u.MZ)((0,o.$N)({...V.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],R.prototype,"defaultSymbol",null),(0,s.Cg)([(0,u.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"fieldDelimiter",null),(0,s.Cg)([(0,u.MZ)({type:v.A,readOnly:!0})],R.prototype,"portal",void 0),(0,s.Cg)([(0,d.w)("portal",["styleName"])],R.prototype,"readPortal",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],R.prototype,"styleOrigin",void 0),(0,s.Cg)([(0,d.w)("styleOrigin",["styleName","styleUrl"])],R.prototype,"readStyleOrigin",null),(0,s.Cg)([(0,y.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],R.prototype,"writeStyleOrigin",null),(0,s.Cg)([(0,u.MZ)({type:[_],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueInfos:r,valueExpression:n}=e,o=!(!t||!i);return[{classes:(r??[]).map(e=>{const{symbol:r,label:a,value:u,description:p}=e,[c,d,h]=o?u?.toString()?.split(l||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:r,label:a,values:[y],description:p}})}]}(t)).map(e=>_.fromJSON(e,i))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],R.prototype,"uniqueValueGroups",null),(0,s.Cg)([(0,u.MZ)({type:[j.A],json:{read:!1,write:{isRequired:!0,overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0,isRequired:!0}}}}})],R.prototype,"uniqueValueInfos",null),R=A=(0,s.Cg)([(0,h.$)("esri.renderers.UniqueValueRenderer")],R)},94833:(e,t,i)=>{i.d(t,{A:()=>u});var s,l=i(31635),r=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends r.o{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${e}`}};(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,l.Cg)([(0,n.MZ)(a.Ug)],u.prototype,"value",void 0),u=s=(0,l.Cg)([(0,o.$)("esri.renderers.support.UniqueValueInfo")],u)},95349:(e,t,i)=>{i.d(t,{g:()=>n,r:()=>o});var s=i(2485),l=i(72606),r=i(1626);const n={key:"type",base:l.A,typeMap:{algorithmic:s.A,multipart:r.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?r.A.fromJSON(e):null:null}},98205:(e,t,i)=>{function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function l(e){return null!=e&&!isNaN(e)&&isFinite(e)}function r(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function n(e,t){const i=t||r(e),s=e.valueUnit||"unknown";return"unknown"===i?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}i.d(t,{KZ:()=>n,eh:()=>r,gf:()=>l,of:()=>s})}}]);