@arcgis/core 5.1.0-next.114 → 5.1.0-next.115

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 (294) hide show
  1. package/Map.js +1 -1
  2. package/analysis/ShadowCast/MinDurationOptions.d.ts +3 -5
  3. package/analysis/ShadowCastAnalysis.d.ts +1 -1
  4. package/arcgisGlobal.d.ts +4 -0
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/05c47ca3a266a271974b.js +1 -0
  7. package/assets/esri/core/workers/chunks/{29bbc0d6d847b065d10e.js → 062aadf426fe97a76bbb.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0954e82f739d25001bcb.js +1 -0
  9. package/assets/esri/core/workers/chunks/0aaee272520c6e5bb617.js +1 -0
  10. package/assets/esri/core/workers/chunks/{12053c1213465d07d2f6.js → 0b445c1cf281f158c1f1.js} +1 -1
  11. package/assets/esri/core/workers/chunks/102ff3710db4ba5f083d.js +1 -0
  12. package/assets/esri/core/workers/chunks/163ce1be8bfe20e77f97.js +1 -0
  13. package/assets/esri/core/workers/chunks/{e87d02af6d6b05e19d93.js → 16713986893adfbc9331.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → 1765042635084f75d2b3.js} +1 -1
  15. package/assets/esri/core/workers/chunks/185c670eb99474906836.js +1 -0
  16. package/assets/esri/core/workers/chunks/18ebf1d3ed05c8057f7d.js +1 -0
  17. package/assets/esri/core/workers/chunks/1da2c34743897d1b6a24.js +1 -0
  18. package/assets/esri/core/workers/chunks/22d4521637806a8b828f.js +1 -0
  19. package/assets/esri/core/workers/chunks/233ff588798c8a5eedf4.js +1 -0
  20. package/assets/esri/core/workers/chunks/24d9e4f1c7b8ff0d2cce.js +1 -0
  21. package/assets/esri/core/workers/chunks/2562d8905bd05ef6fd07.js +1 -0
  22. package/assets/esri/core/workers/chunks/{e5d969214d9eda5c0b4c.js → 2a5dbed88bbd96cfac9f.js} +1 -1
  23. package/assets/esri/core/workers/chunks/2bcd4d395bfe6a19ccc8.js +1 -0
  24. package/assets/esri/core/workers/chunks/3192586ec7fc73ed1165.js +1 -0
  25. package/assets/esri/core/workers/chunks/38ca59db0e8f45bd7811.js +1 -0
  26. package/assets/esri/core/workers/chunks/3b10a962e4ff2f3da5bc.js +1 -0
  27. package/assets/esri/core/workers/chunks/3e9709e61015993b1c7d.js +1 -0
  28. package/assets/esri/core/workers/chunks/425c04b26a6ec6d04b08.js +1 -0
  29. package/assets/esri/core/workers/chunks/4364a3e706294bb6ae41.js +1 -0
  30. package/assets/esri/core/workers/chunks/44e52fe98ffafe6a2807.js +1 -0
  31. package/assets/esri/core/workers/chunks/4cecc582513b8a83f194.js +1 -0
  32. package/assets/esri/core/workers/chunks/5022413f5a41b5d435ea.js +1 -0
  33. package/assets/esri/core/workers/chunks/{8ade869fa9bae446266a.js → 51816d79c6be15e4bfcf.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{cf9b0ba30a75c030ca92.js → 5524a71d1abc9568ce26.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{ba31616de9d73d83d867.js → 557e39e5156b313597f9.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{5ef37f37e405b3bb5450.js → 59dafa1e1340ea4043e6.js} +1 -1
  37. package/assets/esri/core/workers/chunks/624b1bb269744142b835.js +1 -0
  38. package/assets/esri/core/workers/chunks/{39987c06636e757d1f00.js → 62b5972d0ef9bf173308.js} +1 -1
  39. package/assets/esri/core/workers/chunks/641b8622fbb93c84671d.js +1 -0
  40. package/assets/esri/core/workers/chunks/643c7506f8fe8e06acd2.js +1 -0
  41. package/assets/esri/core/workers/chunks/65f02eca694cc1c9f5a7.js +1 -0
  42. package/assets/esri/core/workers/chunks/6d696beddcc5fbed5875.js +1 -0
  43. package/assets/esri/core/workers/chunks/728ad5bbbcbf88d6249f.js +1 -0
  44. package/assets/esri/core/workers/chunks/{0d2bc1be5802681666a4.js → 77859a61d059738d057f.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{03a4543b94f9adeb1852.js → 7a3b05e25de2ff150f38.js} +1 -1
  46. package/assets/esri/core/workers/chunks/7bbffe07e62897928773.js +1 -0
  47. package/assets/esri/core/workers/chunks/{14a241b07baa67743248.js → 7c292f7b181f3b93352b.js} +1 -1
  48. package/assets/esri/core/workers/chunks/7c2d7df4ef4d775cd648.js +1 -0
  49. package/assets/esri/core/workers/chunks/{6d20d741b8ae1a45b422.js → 7dc2c21d61ba66a3f461.js} +1 -1
  50. package/assets/esri/core/workers/chunks/7df05c3c82cd27b77300.js +1 -0
  51. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +1 -0
  52. package/assets/esri/core/workers/chunks/8461f50e9875db4ccfec.js +1 -0
  53. package/assets/esri/core/workers/chunks/{71e12db99589c98a4357.js → 8477b5fdd99c6ac5c27b.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{be1e4c3ec53fc92a26f1.js → 8598997340682113a2a5.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{548c34ea88f113d03c93.js → 86229634bf008f53dad4.js} +1 -1
  56. package/assets/esri/core/workers/chunks/86443e47ad99e555753a.js +1 -0
  57. package/assets/esri/core/workers/chunks/87a40e7f79f97ca637a9.js +1 -0
  58. package/assets/esri/core/workers/chunks/{27d6ad4ca5ab8c9d62cd.js → 8c443c52c846a096a250.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{86161025b53b916328ff.js → 8ca88cfc0b9f84dc5832.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{340f2c996f62f7f5ceae.js → 8e7ce4835b3106349684.js} +1 -1
  61. package/assets/esri/core/workers/chunks/90b0fe5584fb6fc99766.js +1 -0
  62. package/assets/esri/core/workers/chunks/9133c1b7cc1c9da27deb.js +1 -0
  63. package/assets/esri/core/workers/chunks/{d4749eb8a47869477037.js → 9250615c78f8570a9cda.js} +1 -1
  64. package/assets/esri/core/workers/chunks/92a7735973b2f82a66ce.js +1 -0
  65. package/assets/esri/core/workers/chunks/94a5a834e32fc6cc6ed4.js +1 -0
  66. package/assets/esri/core/workers/chunks/986d8c3907aeeb18c4f6.js +1 -0
  67. package/assets/esri/core/workers/chunks/98e489c2b85feded7776.js +1 -0
  68. package/assets/esri/core/workers/chunks/{271e42b7cd3c3441839e.js → 9eab1e1535494ff2050d.js} +10 -22
  69. package/assets/esri/core/workers/chunks/{466c250537415f12eb59.js → a01f0ffbe555f690bdca.js} +1 -1
  70. package/assets/esri/core/workers/chunks/a03c4c0bf138734a002e.js +1 -0
  71. package/assets/esri/core/workers/chunks/a814069325125466506b.js +1 -0
  72. package/assets/esri/core/workers/chunks/{e4b2120d7ee1c998b1fc.js → aa03f770178693167aa0.js} +1 -1
  73. package/assets/esri/core/workers/chunks/aea439d4c2308f88b295.js +1 -0
  74. package/assets/esri/core/workers/chunks/{7995e6983456c779adf9.js → b002304a45856b024b46.js} +1 -1
  75. package/assets/esri/core/workers/chunks/b0c242c4f5412e4cce73.js +1 -0
  76. package/assets/esri/core/workers/chunks/b44f1d08784f2e50c853.js +1 -0
  77. package/assets/esri/core/workers/chunks/c1b6de0d728d25d7905a.js +1 -0
  78. package/assets/esri/core/workers/chunks/{f8b884b529064df4a30a.js → caf80facb0322be054ab.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{25d795a1697803d77e56.js → ce0e627a5e1cb78adce8.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{63378b0b4265a547656b.js → d8ec0afb2b91ccf32e55.js} +1 -1
  81. package/assets/esri/core/workers/chunks/d97c0c18202b8c578f8c.js +1 -0
  82. package/assets/esri/core/workers/chunks/{2f99a95facddc44319a9.js → da3c54e27a808f4fcc18.js} +1 -1
  83. package/assets/esri/core/workers/chunks/db012650fb34c10cecd0.js +1 -0
  84. package/assets/esri/core/workers/chunks/dc6d50e1097a920ff820.js +1 -0
  85. package/assets/esri/core/workers/chunks/dce37324a2382d2eef0d.js +1 -0
  86. package/assets/esri/core/workers/chunks/e0bd550b10dd402c48f1.js +1 -0
  87. package/assets/esri/core/workers/chunks/e2ba57f7119b7182ba02.js +279 -0
  88. package/assets/esri/core/workers/chunks/e755477dc78e9d6038d4.js +1 -0
  89. package/assets/esri/core/workers/chunks/ea4057090cf15d602585.js +1 -0
  90. package/assets/esri/core/workers/chunks/ea8f642b1db933d2c26f.js +1 -0
  91. package/assets/esri/core/workers/chunks/eabd4a78221b7e733793.js +1 -0
  92. package/assets/esri/core/workers/chunks/eb16976b4eb7f1300f4a.js +1 -0
  93. package/assets/esri/core/workers/chunks/efae58f746b108163a50.js +1 -0
  94. package/assets/esri/core/workers/chunks/f231548c8ac7ecb59927.js +1 -0
  95. package/assets/esri/core/workers/chunks/fe2325efd0d8ad8369ed.js +1 -0
  96. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +26 -3
  97. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -13
  98. package/assets/esri/themes/dark/main.css +1 -1
  99. package/assets/esri/themes/light/main.css +1 -1
  100. package/assets/esri/themes/light/view.css +1 -1
  101. package/chunks/GlobalIllumination.glsl.js +22 -34
  102. package/config.js +1 -1
  103. package/core/screenUtils.js +1 -1
  104. package/core/typedArrayUtil.js +1 -1
  105. package/editing/templates/TemplateListing.d.ts +32 -0
  106. package/editing/templates/TemplateListing.js +2 -0
  107. package/geometry/support/buffer/BufferView.js +1 -1
  108. package/geometry/support/heightModelInfoUtils.js +1 -1
  109. package/interfaces.d.ts +14 -0
  110. package/kernel.js +1 -1
  111. package/layers/AnnotationLayer.d.ts +42 -0
  112. package/layers/AnnotationLayer.js +2 -0
  113. package/layers/DimensionFeatureLayer.d.ts +36 -1
  114. package/layers/DimensionFeatureLayer.js +1 -1
  115. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  116. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  117. package/layers/types.d.ts +1 -1
  118. package/networks/support/networkFieldUtils.js +1 -1
  119. package/package.json +1 -1
  120. package/rest/support/OutDistance.js +1 -1
  121. package/rest/support/Query.js +1 -1
  122. package/support/basemapEnsureType.js +1 -1
  123. package/support/revision.js +1 -1
  124. package/symbols/cim/CIMOperators.js +1 -1
  125. package/symbols/cim/CIMSymbolHelper.js +1 -1
  126. package/symbols/cim/utils.js +1 -1
  127. package/views/2d/engine/webgl/mesh/factories/FeatureMeshFactory.js +1 -1
  128. package/views/2d/engine/webgl/mesh/factories/ResourceProxy.js +1 -1
  129. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/createTestMeshData.js +1 -1
  131. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  132. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  133. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  134. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
  136. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  138. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  139. package/views/2d/engine/webgl/util/AnnotationMatcher.js +2 -0
  140. package/views/2d/engine/webgl/util/DimensionMatcher.js +2 -0
  141. package/views/2d/engine/webgl/util/Matcher.js +1 -1
  142. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  143. package/views/2d/layerViewModuleImportUtils.js +1 -1
  144. package/views/2d/layers/AnnotationLayerView2D.js +2 -0
  145. package/views/2d/layers/{DimensionLayerView2D.js → DimensionFeatureLayerView2D.js} +1 -1
  146. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  147. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  148. package/views/2d/layers/RouteLayerView2D.js +1 -1
  149. package/views/2d/layers/TileLayerView2D.js +1 -1
  150. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  151. package/views/2d/layers/features/FeatureContainer.js +1 -1
  152. package/views/2d/layers/features/Processor.js +1 -1
  153. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +2 -0
  154. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  155. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  156. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  157. package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
  158. package/views/2d/layers/features/support/FeatureSetReaderAnnotationJSON.js +2 -0
  159. package/views/2d/layers/features/support/FeatureSetReaderDimensionJSON.js +2 -0
  160. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  161. package/views/2d/layers/support/annodime/DimensionInfo.js +2 -0
  162. package/views/2d/layers/support/annodime/DimensionMatcherSchema.js +2 -0
  163. package/views/2d/layers/support/annodime/PrivateDimensionEffect.js +2 -0
  164. package/views/2d/layers/support/annodime/PrivatePlacementMultipoint.js +2 -0
  165. package/views/2d/layers/support/annodime/annotationGraphic.js +2 -0
  166. package/views/2d/layers/support/annodime/annotationSchema.js +2 -0
  167. package/views/2d/layers/support/annodime/annotationUtils.js +2 -0
  168. package/views/2d/layers/support/annodime/cimAnnotations.js +2 -0
  169. package/views/2d/layers/support/annodime/dimensionSchema.js +2 -0
  170. package/views/2d/layers/support/annodime/dimensionSymbols.js +2 -0
  171. package/views/2d/layers/support/annodime/dimensionUtils.js +2 -0
  172. package/views/2d/layers/support/annodime/fields.js +2 -0
  173. package/views/2d/layers/support/annodime/unsupported.js +2 -0
  174. package/views/2d/layers/support/annodime/utils.js +2 -0
  175. package/views/2d/layers/support/annodime/virtualFields.js +2 -0
  176. package/views/2d/support/clippingUtils.js +1 -1
  177. package/views/2d/support/hitTestUtils.js +1 -1
  178. package/views/2d/types.d.ts +5 -1
  179. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  180. package/views/3d/layerViewModuleImportUtils.js +1 -1
  181. package/views/3d/layers/MapImageLayerView3D.js +1 -1
  182. package/views/3d/layers/TileLayerView3D.js +1 -1
  183. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  184. package/views/3d/types.d.ts +2 -0
  185. package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
  186. package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
  187. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +8 -8
  188. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathEvaluate.glsl.js +53 -61
  189. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +23 -32
  190. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  191. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  192. package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
  193. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  194. package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
  195. package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
  196. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  197. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  198. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
  199. package/views/3d/webgl-engine/materials/PathLayouts.js +1 -1
  200. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  201. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  202. package/views/3d/webgl-engine/shaders/ditherNoise.glsl.js +18 -1
  203. package/views/PopupView.d.ts +3 -3
  204. package/views/PopupView.js +1 -1
  205. package/views/SceneView.js +1 -1
  206. package/views/View2D.js +1 -1
  207. package/views/layers/AnnotationLayerView.d.ts +18 -0
  208. package/views/layers/AnnotationLayerView.js +2 -0
  209. package/views/layers/DimensionFeatureLayerView.d.ts +18 -0
  210. package/views/layers/DimensionFeatureLayerView.js +2 -0
  211. package/views/layers/FeatureLikeLayerView.d.ts +2 -1
  212. package/views/layers/FeatureLikeLayerView.js +1 -1
  213. package/views/layers/ImageryLayerView.js +1 -1
  214. package/views/layers/ImageryTileLayerView.js +1 -1
  215. package/views/layers/WMSLayerView.js +1 -1
  216. package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
  217. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  218. package/widgets/BatchAttributeForm/css.js +1 -1
  219. package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +2 -0
  220. package/widgets/BatchAttributeForm.js +1 -1
  221. package/widgets/FeatureForm.js +1 -1
  222. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  223. package/widgets/OrientedImageryViewer/css.js +1 -1
  224. package/widgets/OrientedImageryViewer.js +1 -1
  225. package/widgets/support/iconUtils.js +1 -1
  226. package/assets/esri/core/workers/chunks/0175098da590a7109539.js +0 -1
  227. package/assets/esri/core/workers/chunks/019a4fe7e085b2fc6ae9.js +0 -1
  228. package/assets/esri/core/workers/chunks/023837e5d9d2b6af66d8.js +0 -1
  229. package/assets/esri/core/workers/chunks/03c46880b69ce75a010f.js +0 -1
  230. package/assets/esri/core/workers/chunks/040884cec4b84dd1bb17.js +0 -1
  231. package/assets/esri/core/workers/chunks/04ea806b933d4dd41609.js +0 -1
  232. package/assets/esri/core/workers/chunks/0e549d942d6cba1608cf.js +0 -1
  233. package/assets/esri/core/workers/chunks/13a8346abe5509167578.js +0 -1
  234. package/assets/esri/core/workers/chunks/13d43a0683c42b94feb6.js +0 -1
  235. package/assets/esri/core/workers/chunks/179ffa2168c42615ccf2.js +0 -1
  236. package/assets/esri/core/workers/chunks/1ebb613bbe09fcf274d8.js +0 -1
  237. package/assets/esri/core/workers/chunks/27d7c701306efeea6b82.js +0 -1
  238. package/assets/esri/core/workers/chunks/2b9661700743d1f9717e.js +0 -1
  239. package/assets/esri/core/workers/chunks/2bdfae998371e3aa9f2d.js +0 -1
  240. package/assets/esri/core/workers/chunks/2f0a3b22fc46d832e240.js +0 -1
  241. package/assets/esri/core/workers/chunks/3835097520296b0517af.js +0 -1
  242. package/assets/esri/core/workers/chunks/4605a68e40c5c3ac6e3e.js +0 -1
  243. package/assets/esri/core/workers/chunks/4b130db9b7b4e2e32ea4.js +0 -1
  244. package/assets/esri/core/workers/chunks/4bfeac7338df9e0b7ce1.js +0 -1
  245. package/assets/esri/core/workers/chunks/4c5cdd2712c938fafc5d.js +0 -1
  246. package/assets/esri/core/workers/chunks/4fa3840672c33adb9171.js +0 -1
  247. package/assets/esri/core/workers/chunks/4ffcca40e7aa24c8cc35.js +0 -1
  248. package/assets/esri/core/workers/chunks/534dd93c72ea448ee908.js +0 -1
  249. package/assets/esri/core/workers/chunks/5ea0096a282e87a269bd.js +0 -1
  250. package/assets/esri/core/workers/chunks/66fe1634c6e8f72fc653.js +0 -1
  251. package/assets/esri/core/workers/chunks/6920e7f700a9ba280dba.js +0 -1
  252. package/assets/esri/core/workers/chunks/6b1f2b36bdc6b2ff2ea5.js +0 -1
  253. package/assets/esri/core/workers/chunks/6b66a6f69aa03338c346.js +0 -1
  254. package/assets/esri/core/workers/chunks/6d59a9cf533ebc590f70.js +0 -1
  255. package/assets/esri/core/workers/chunks/75dfdd85abbac26ac899.js +0 -1
  256. package/assets/esri/core/workers/chunks/798c4d3201fcc9f2a42b.js +0 -1
  257. package/assets/esri/core/workers/chunks/817fd88fe9a48caf69fb.js +0 -1
  258. package/assets/esri/core/workers/chunks/825db2ea15308ee6e5dc.js +0 -1
  259. package/assets/esri/core/workers/chunks/82f7d83a2073d1b0111c.js +0 -1
  260. package/assets/esri/core/workers/chunks/89250d268dc2554a9ece.js +0 -1
  261. package/assets/esri/core/workers/chunks/8c8fed53c12fb80ef2ed.js +0 -1
  262. package/assets/esri/core/workers/chunks/8ff83c59462dea6e3427.js +0 -1
  263. package/assets/esri/core/workers/chunks/961995d8da45a9203255.js +0 -1
  264. package/assets/esri/core/workers/chunks/a9c9c00432ee41ec91ba.js +0 -1
  265. package/assets/esri/core/workers/chunks/af762422a65c551dcd54.js +0 -1
  266. package/assets/esri/core/workers/chunks/b041c22885193bdd3004.js +0 -1
  267. package/assets/esri/core/workers/chunks/b3e8ab68fc38306f13c6.js +0 -1
  268. package/assets/esri/core/workers/chunks/b684ff4bc93bd60d6a19.js +0 -1
  269. package/assets/esri/core/workers/chunks/bb2f6b0fcdfb8b158e26.js +0 -1
  270. package/assets/esri/core/workers/chunks/c5ab346a226df1894302.js +0 -1
  271. package/assets/esri/core/workers/chunks/cd2b2babcdc130b4c368.js +0 -1
  272. package/assets/esri/core/workers/chunks/cedf3e316d6f89cf7005.js +0 -1
  273. package/assets/esri/core/workers/chunks/d39f5590022d910ee951.js +0 -1
  274. package/assets/esri/core/workers/chunks/d412a43060441d347fb4.js +0 -1
  275. package/assets/esri/core/workers/chunks/d41b847d08c42e5329d6.js +0 -262
  276. package/assets/esri/core/workers/chunks/d52172439db02a349542.js +0 -1
  277. package/assets/esri/core/workers/chunks/d8c2bed12f937228c763.js +0 -1
  278. package/assets/esri/core/workers/chunks/de916dd0c11aefb6832e.js +0 -1
  279. package/assets/esri/core/workers/chunks/ecf4d07917efc97eb991.js +0 -1
  280. package/assets/esri/core/workers/chunks/eda51e512eff551ad858.js +0 -1
  281. package/assets/esri/core/workers/chunks/f14e3693cd644265f909.js +0 -1
  282. package/assets/esri/core/workers/chunks/f52c6efc5a2abf5ac845.js +0 -1
  283. package/assets/esri/core/workers/chunks/f635a8e3b0bfeda99ed5.js +0 -1
  284. package/assets/esri/core/workers/chunks/f9f331c76c96743d8522.js +0 -1
  285. package/assets/esri/core/workers/chunks/fcbacca99c5a3ee5b69a.js +0 -1
  286. package/symbols/dimensions/effects/LinearDimensionArrowEffect.js +0 -2
  287. package/symbols/dimensions/effects/LinearDimensionExtensionLineEffect.js +0 -2
  288. package/symbols/dimensions/effects/LinearDimensionLeaderLineEffect.js +0 -2
  289. package/symbols/dimensions/effects/LinearDimensionLineEffect.js +0 -2
  290. package/symbols/dimensions/effects/LinearDimensionPointEffect.js +0 -2
  291. package/symbols/dimensions/effects/LinearDimensionTextEffect.js +0 -2
  292. package/views/2d/layers/features/support/FeatureSetReaderDimension.js +0 -2
  293. package/views/3d/webgl-engine/effects/globalIllumination/BlueNoise.js +0 -2
  294. package/views/layers/support/dimensionUtils.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5816],{68197(t,e,s){s.d(e,{A:()=>l});var n=s(40876),i=s(4576),r=s(34727),o=s(56507);function a(t){return(0,r.qE)((0,o.Vr)(t),0,255)}function h(t,e){const s=t.toString(16).padStart(2,"0");return e?s.slice(0,1):s}class l{static blendColors(t,e,s,n=new l){return n.r=Math.round(t.r+(e.r-t.r)*s),n.g=Math.round(t.g+(e.g-t.g)*s),n.b=Math.round(t.b+(e.b-t.b)*s),n.a=t.a+(e.a-t.a)*s,n._sanitize()}static fromRgb(t,e){const s=(0,n.lT)(t);return s?l.fromArray(s,e):null}static fromHex(t,e=new l){const s=(0,n.oW)(t);return s?l.fromArray(s,e):null}static fromArray(t,e=new l){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const s=(0,n.Eq)(t);return s?l.fromArray(s,e):null}static fromJSON(t){return null!=t?new l([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)l.fromString(t,this);else if((0,i.yc)(t))l.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof l||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,s=t?.digits??6,n=3===s||4===s,i=4===s||8===s,r=`#${h(this.r,n)}${h(this.g,n)}${h(this.b,n)}${i?h(Math.round(255*this.a),n):""}`;return e?r.toUpperCase():r}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=a(this.r),s=a(this.g),n=a(this.b);return 0===t||1!==this.a?[e,s,n,a(255*this.a)]:[e,s,n]}clone(){return new l(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(t,e,s,n){this.r=t,this.g=e,this.b=s,this.a=n}}l.prototype.declaredClass="esri.Color"},40876(t,e,s){s.d(e,{Eq:()=>g,G1:()=>d,TS:()=>r,Tf:()=>_,V6:()=>i,Vm:()=>p,ay:()=>h,c1:()=>m,c4:()=>o,j5:()=>l,lT:()=>u,oW:()=>c,xV:()=>v});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(t){return!!n[t]||!!n[t.toLowerCase()]}function r(t){return n[t]??n[t.toLowerCase()]}function o(t){return[...r(t)]}function a(t,e,s){s<0&&++s,s>1&&--s;const n=6*s;return n<1?t+(e-t)*n:2*s<1?e:3*s<2?t+(e-t)*(2/3-s)*6:t}function h(t,e,s,n=1){const i=(t%360+360)%360/360,r=s<=.5?s*(e+1):s+e-s*e,o=2*s-r;return[Math.round(255*a(o,r,i+1/3)),Math.round(255*a(o,r,i)),Math.round(255*a(o,r,i-1/3)),n]}function l(t){const e=t.length>5,s=e?8:4,n=(1<<s)-1,i=e?1:17,r=e?9===t.length:5===t.length;let o=Number("0x"+t.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let h;return r&&(h=o&n,o>>=s,a[3]=i*h/255),h=o&n,o>>=s,a[2]=i*h,h=o&n,o>>=s,a[1]=i*h,h=o&n,o>>=s,a[0]=i*h,a}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),s=parseInt(t.slice(2,3),16),n=parseInt(t.slice(3,4),16),i=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,s+16*s,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function u(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),s=e[1];if("rgb"===s&&3===t.length||"rgba"===s&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===s&&3===t.length||"hsla"===s&&4===t.length)return h(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=m(t[0]),t[1]=m(t[1]),t[2]=m(t[2]),t[3]=4===t.length?d(t[3]):1,t}function g(t){let e=i(t)?r(t):null;return e??=u(t),e??=c(t),e}function p(t){const e=g(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function d(t){return b(t,0,1)}function m(t){return Math.round(b(t,0,255))}function b(t,e,s){return t=Number(t),isNaN(t)?s:t<e?e:t>s?s:t}const _=2.2,y=1/_;function v(t){return t**y}},7762(t,e,s){s.d(e,{A:()=>q});var n,i=s(5482),r=s(98291),o=s(4576),a=s(65529),h=s(36563),l=s(4718),c=s(53966),u=s(93687),f=s(76030),g=s(56507),p=s(62788),d=s(10107),m=s(7695),b=s(64108),_=s(95488),y=s(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}}class S{constructor(t,e,s,n,i){this.target=t,this.added=e,this.removed=s,this.start=n,this.deleteCount=i}}const w=new u.A(()=>new v,void 0,t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1});function C(t){t&&"object"==typeof t&&"destroy"in t&&"function"==typeof t.destroy&&t.destroy()}function k(t){return t?t instanceof I?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function A(t){if(t?.length)return t[0]}function M(t,e,s,n){const i=Math.min(t.length-s,e.length-n);let r=0;for(;r<i&&t[s+r]===e[n+r];)r++;return r}function x(t,e,s,n){e&&e.forEach((e,i,r)=>{t.push(e),x(t,s.call(n,e,i,r),s,n)})}const E=new Set,P=new Set,R=new Set,N=new Map;let L=0,I=n=class extends a.nJ{static ofType(t){if(!t)return n;if(N.has(t))return N.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const s in t.typeMap){const n=t.typeMap[s].prototype.declaredClass;e?e+=` | ${n}`:e=n}let s=class extends n{};return(0,i.Cg)([(0,m.u)({Type:t,ensureType:"function"==typeof t?(0,g.dp)(t):(0,g.aq)(t)})],s.prototype,"itemType",void 0),s=(0,i.Cg)([(0,b.$)(`esri.core.Collection<${e}>`)],s),N.set(t,s),s}static isCollection(t){return null!=t&&t instanceof n}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:L++})}normalizeCtorArgs(t){return t?(0,o.yc)(t)||t instanceof n?{items:t}:t:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(t){t>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(t,Math.max(0,this._length-t))}get items(){return(0,p.gc)(this._observable),this._items}set items(t){this._emitBeforeChanges(1)||(this._splice(0,this.length,k(t)),this._emitAfterChanges(1))}hasEventListener(t){return!this.destroyed&&("change"===t?this._chgListeners.length>0:super.hasEventListener(t))}on(t,e){if(this.destroyed)return(0,h.hA)();if("change"===t){const t=this._chgListeners,s={removed:!1,callback:e};return t.push(s),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,h.hA)(()=>{s.removed=!0,t.splice(t.indexOf(s),1)})}return super.on(t,e)}once(t,e){const s="deref"in e?()=>e.deref():()=>e,n=this.on(t,t=>{s()?.call(null,t),n.remove()});return n}add(t,e){if((0,p.gc)(this._observable),this._emitBeforeChanges(1))return this;const s=this.getNextIndex(e??null);return this._splice(s,0,[t]),this._emitAfterChanges(1),this}addMany(t,e=this._items.length){if((0,p.gc)(this._observable),!t?.length)return this;if(this._emitBeforeChanges(1))return this;const s=this.getNextIndex(e);return this._splice(s,0,k(t)),this._emitAfterChanges(1),this}at(t){if((0,p.gc)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const t=this._removeAllRaw();return this._emitAfterChanges(2),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(l.o8)})}concat(...t){(0,p.gc)(this._observable);const e=t.map(k);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const s=this._splice(0,this.length),n=s.length;for(let i=0;i<n;i++)t.call(e,s[i],i,s);this._emitAfterChanges(2)}destroyAll(){this.drain(C)}destroyMany(t){const e=this.removeMany(t);return e.forEach(C),e}every(t,e){return(0,p.gc)(this._observable),this._items.every(t,e)}filter(t,e){(0,p.gc)(this._observable);const s=2===arguments.length?this._items.filter(t,e):this._items.filter(t);return this._createNewInstance({items:s})}find(t,e){return(0,p.gc)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,p.gc)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,p.gc)(this._observable);const s=[];return x(s,this,t,e),new n(s)}forEach(t,e){return(0,p.gc)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,p.gc)(this._observable),this._items[t]}getNextIndex(t){(0,p.gc)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,p.gc)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,p.gc)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,p.gc)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,p.gc)(this._observable);const s=this._items.map(t,e);return new n({items:s})}reorder(t,e=this.length-1){(0,p.gc)(this._observable);const s=this.indexOf(t);if(-1!==s){if(e<0?e=0:e>=this.length&&(e=this.length-1),s!==e){if(this._emitBeforeChanges(4))return t;this._splice(s,1),this._splice(e,0,[t]),this._emitAfterChanges(4)}return t}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=A(this._splice(this.length-1,1));return this._emitAfterChanges(2),t}push(...t){return(0,p.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,t),this._emitAfterChanges(1)),this.length}reduce(t,e){(0,p.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(t,e):s.reduce(t)}reduceRight(t,e){(0,p.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(t,e):s.reduceRight(t)}remove(t){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,p.gc)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(2))return;const e=A(this._splice(t,1));return this._emitAfterChanges(2),e}removeMany(t){if((0,p.gc)(this._observable),!t?.length||this._emitBeforeChanges(2))return[];const e=t instanceof n?t.toArray():t,s=this._items,i=[],r=e.length;for(let t=0;t<r;t++){const n=e[t],r=s.indexOf(n);if(r>-1){const n=1+M(e,s,t+1,r+1),o=this._splice(r,n);o&&o.length>0&&i.push.apply(i,o),t+=n-1}}return this._emitAfterChanges(2),i}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(4))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(4),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=A(this._splice(0,1));return this._emitAfterChanges(2),t}slice(t=0,e=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,p.gc)(this._observable),this._items.some(t,e)}sort(t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(t))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(4),this}_requiresSort(t=(t,e)=>t===e?0:t<e?-1:1){const e=this.length-1;for(let s=0;s<e;s++)if(t(this.items[s],this.items[s+1])>0)return!0;return!1}splice(t,e,...s){(0,p.gc)(this._observable),1===arguments.length&&(e=this.length),e??=0;const n=(e?2:0)|(s.length?1:0);if(this._emitBeforeChanges(n))return[];const i=this._splice(t,e,s)||[];return this._emitAfterChanges(n),i}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(t){return(0,p.gc)(this._observable),this.toArray().map(e=>(0,y.W)(e)?e.toJSON(t):e)}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...t){return(0,p.gc)(this._observable),!t.length||this._emitBeforeChanges(1)||(this._splice(0,0,t),this._emitAfterChanges(1)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,s){const n=this._items,i=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,f._)(()=>this._dispatchChange())),t<0&&(t+=this.length),e){if(o=n.splice(t,e),this.hasEventListener("before-remove")){const e=w.acquire();e.target=this,e.cancellable=!0;for(let s=0,i=o.length;s<i;s++)r=o[s],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(s,1),n.splice(t,0,r),t+=1,s-=1,i-=1);w.release(e)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const t=w.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let s=0;s<e;s++)t.reset(o[s]),this.emit("after-remove",t);w.release(t)}}if(s?.length){if(i){const t=[];for(const e of s){const s=i.ensureType(e);null==s&&null!=e||t.push(s)}s=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const i=w.acquire();i.target=this,i.cancellable=!0;const a=w.acquire();a.target=this,a.cancellable=!1;for(const h of s)e?(i.reset(h),this.emit("before-add",i),i.defaultPrevented||(o?n.push(h):n.splice(t++,0,h),this._length=n.length,r&&(a.reset(h),this.emit("after-add",a)))):(o?n.push(h):n.splice(t++,0,h),this._length=n.length,a.reset(h),this.emit("after-add",a));w.release(a),w.release(i)}else{if(o)for(const t of s)n.push(t);else n.splice(t,0,...s);this._length=n.length}}if((s?.length||o?.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const n=new S(this,s,o,t,e);this.emit("after-splice",n)}return o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const s=w.acquire();s.target=this,s.cancellable=!0,s.type=t,this.emit("before-changes",s),e=s.defaultPrevented,w.release(s)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=w.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),w.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;E.clear(),P.clear(),R.clear();for(const{added:e,removed:s}of t){if(e)if(0===R.size&&0===P.size)for(const t of e)E.add(t);else for(const t of e)P.has(t)?(R.add(t),P.delete(t)):R.has(t)||E.add(t);if(s)if(0===R.size&&0===E.size)for(const t of s)P.add(t);else for(const t of s)E.has(t)?E.delete(t):(R.delete(t),P.add(t))}const s=r.A.acquire();E.forEach(t=>{s.push(t)});const n=r.A.acquire();P.forEach(t=>{n.push(t)});const i=this._items,o=e.items,a=r.A.acquire();if(R.forEach(t=>{o.indexOf(t)!==i.indexOf(t)&&a.push(t)}),e.listeners&&(s.length||n.length||a.length)){const t={target:this,added:s,removed:n,moved:a},i=e.listeners.length;for(let s=0;s<i;s++){const n=e.listeners[s];n.removed||n.callback.call(this,t)}}r.A.release(s),r.A.release(n),r.A.release(a)}E.clear(),P.clear(),R.clear()}};(0,i.Cg)([(0,d.MZ)()],I.prototype,"_updating",void 0),(0,i.Cg)([(0,d.MZ)()],I.prototype,"_length",void 0),(0,i.Cg)([(0,d.MZ)()],I.prototype,"length",null),(0,i.Cg)([(0,d.MZ)()],I.prototype,"items",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],I.prototype,"updating",null),I=n=(0,i.Cg)([(0,b.$)("esri.core.Collection")],I);const q=I},69052(t,e,s){s.d(e,{hr:()=>i,ie:()=>h,uC:()=>a});var n=s(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,s=!1){return r(this.range,this.min,this.max,t,e,s)}clamp(t,e=0){return(0,n.qE)(t-e,this.min,this.max)+e}monotonic(t,e,s){return t<e?e:e+o(this.range,t-e,s)}minimalMonotonic(t,e,s){return r(this.range,t,t+this.range,e,s)}center(t,e,s){return e=this.monotonic(t,e,s),this.normalize((t+e)/2,s)}diff(t,e,s){return this.monotonic(t,e,s)-t}shortestSignedDiff(t,e){t=this.normalize(t);const s=(e=this.normalize(e))-t,n=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(s)<Math.abs(n)?s:n}contains(t,e,s){return e=this.minimalMonotonic(t,e),(s=this.minimalMonotonic(t,s))>t&&s<e}}function r(t,e,s,n,i=0,r=!1){return(n-=i)<e?n+=o(t,e-n):n>s&&(n-=o(t,n-s)),r&&n===s&&(n=e),n+i}function o(t,e,s=0){return Math.ceil((e-s)/t)*t+s}const a=new i(0,2*Math.PI),h=(new i(-Math.PI,Math.PI),new i(0,360))},4902(t,e,s){s.d(e,{s:()=>o});var n=s(5482),i=s(64108);let r=0;const o=t=>{const e=t;let s=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return s=(0,n.Cg)([(0,i.$)("esri.core.Identifiable")],s),s};o(class{})},7695(t,e,s){function n(t){return(e,s)=>{e[s]=t}}s.d(e,{u:()=>n})},56512(t,e,s){function n(t){let e,s,n=[],i=!1;return function(...r){return i&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;++s)if(t[s]!==e[s])return!1;return!0}(r,n)||(s=t.apply(this,r),e=this,n=r,i=!0),s}}s.d(e,{B:()=>n})},36708(t,e,s){s.d(e,{C_:()=>f,OH:()=>d,Vh:()=>m,on:()=>u,pc:()=>b,wB:()=>h,z7:()=>l});var n=s(37955),i=s(36563),r=s(97768),o=s(17676),a=s(14012);function h(t,e,s={}){return c(t,e,s,g)}function l(t,e,s={}){return c(t,e,s,p)}function c(t,e,s={},n){let i=null;const o=s.once?(t,s)=>{n(t)&&((0,r.xt)(i),e(t,s))}:(t,s)=>{n(t)&&e(t,s)};if(i=(0,a.Cn)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return i}function u(t,e,s,o={}){let a=null,l=null,c=null;function u(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function f(t){o.once&&o.once&&(0,r.xt)(c),s(t)}const g=h(t,(t,s)=>{u(),(0,n.wb)(t)&&(a=t,l=(0,n.on)(t,e,f),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return c=(0,i.hA)(()=>{g.remove(),u()}),c}function f(t,e){return function(t,e,s){if((0,o.G4)(s))return Promise.reject((0,o.NK)());const n=t();if(e?.(n))return Promise.resolve(n);let a=null;function h(){a=(0,r.xt)(a)}return new Promise((n,r)=>{a=(0,i.vE)([(0,o.u7)(s,()=>{h(),r((0,o.NK)())}),c(t,t=>{h(),n(t)},{sync:!1,once:!0},e??g)])})}(t,p,e)}function g(t){return!0}function p(t){return!!t}s(80559);const d={sync:!0},m={initial:!0},b={sync:!0,initial:!0}},90629(t,e,s){s.d(e,{Lz:()=>i,PN:()=>r,cr:()=>o,gs:()=>h,r_:()=>l,tc:()=>a});const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(t){return t?t/72*96:0}function r(t){return t?72*t/96:0}function o(t){if("string"==typeof t){const e=t.match(n);if(e){const s=Number(e[1]),n=e[3]&&e[3].toLowerCase(),i=t.startsWith("-"),o="px"===n?r(s):s;return i?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function a(t=0,e=0){return{x:t,y:e}}function h(t=0,e=0){return[t,e]}function l(t=0,e=0,s=0){return[t,e,s]}},31411(t,e,s){s.d(e,{GS:()=>k,gh:()=>M});var n=s(49186),i=s(56512),r=s(65864),o=s(4305),a=s(50954),h=s(52006),l=s(49663),c=s(46068),u=s(15507);const f=1e-6,g=[0,0];function p(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class d{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:n,minSegmentsPerCurve:i}){const r=s*s,o=e*e,a=1/n,h=this.interpolate(0),l=this.interpolate(1);(0,u.kb)(this.curveStart,h)>f&&t.push(h),this.initialize(h,l);const c=1/i;for(let t=i-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===r||!isFinite(r)||(0,u.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,l)>f&&t.push([...this.curveEnd]),t}}class m extends d{constructor(t,e){const[s,n,i]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[n,i],this._arcControlPoints=[n,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:n,tEnd:i}=this,[r,o]=this._arcControlPoints,a=(t-n)/(i-n),h=(0,u.RS)([],e,r,a),l=(0,u.RS)(g,r,o,a),c=(0,u.RS)([],o,s,a),f=(0,u.RS)([],h,l,a),p=(0,u.RS)([],l,c,a),d=(0,u.RS)([],f,p,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([p,c]),this.tEndStack.push(t),this.arcEndStack.push(d),this._arcControlPoints[0]=h,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[n,i]=this._curveControlPoints;return(0,o.B4)(e,n,i,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,n]=this._arcControlPoints;return Math.max((0,u.yE)(s,t,e),(0,u.yE)(n,t,e))}}class b extends d{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function _(t,e,s,{cx:n,cy:i,radius:r,thetaStart:o,thetaEnd:a,isInvalid:h},{maxDeviation:l,maxSegmentLength:c,maxSegmentsPerCurve:g,minSegmentsPerCurve:p}){if(h)return t.push([...s]),t;const d=2*r,m=[n+r*Math.cos(o),i+r*Math.sin(o)],b=[n+r*Math.cos(a),i+r*Math.sin(a)];(0,u.kb)(e,m)>f&&t.push(m);const _=Math.abs(a-o),y=c>0&&c<d?2*Math.asin(c/d):_,v=l>0&&l<=r?2*Math.acos(1-l/r):_,S=Math.min(y,v),w=Math.min(g,Math.max(p,Math.ceil(Math.abs(_/S)))),C=1/w;for(let e=1;e<w;e++){const s=e*C,h=o*(1-s)+a*s;t.push([n+r*Math.cos(h),i+r*Math.sin(h)])}return t.push(b),(0,u.kb)(s,b)>f&&t.push([...s]),t}function y(t,e,s,n){return new m(e,s).densify(t,n)}function v(t,e,s,n){const i=(0,a.pM)(e,s),[r]=s.c;return _(t,e,r,i,n)}function S(t,e,s,n){const i=(0,l.io)(e,s),[r]=s.a;return _(t,e,r,i,n)}function w(t,e,s,n){const[i,r,o,a,h,l,c]=s.a;return 0===l||0===c?(t.push([...i]),t):new b(e,s).densify(t,n)}function C(t,e,s,n){return(0,h.Xq)(s)?(t.push([...s]),t):(0,h.n1)(s)?y(t,e,s,n):(0,h.aO)(s)?v(t,e,s,n):(0,h.DA)(s)?S(t,e,s,n):w(t,e,s,n)}function k(t,e={}){if(!(0,h.Ed)(t))return t;const s=p(e),n=(0,h.FD)(t),i=[];for(const t of n){const e=[];for(let n=0;n<t.length-1;n++){const i=n+1,r=[...(0,h.yP)(t[n])];0===n&&e.push(r),C(e,r,t[i],s)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const A=(0,i.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function M(t,e,i){const o=new Set(e);return await async function(t,e,i){let r=null;for(const o of t)if(o&&(0,h.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,h.V8)(o,e)){const t=o.spatialReference;if(!t)throw new n.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=x(t);if(i.has(e))o.spatialReference=i.get(e);else{r||(r=await Promise.all([s.e(6042),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(6312)]).then(s.bind(s,78125)));const a=r.fromSpatialReference(t),h=a?.getTolerance();if(null==h)throw new n.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const l=o.spatialReference.clone();l.read({xyTolerance:h}),o.spatialReference=l,i.set(e,l)}}}(t,o,i),t.map(t=>{if(!t||!(0,h.Ed)(t))return t;const s=t.spatialReference.xyTolerance;if(null==s)return t;const n=A(s);return(0,r.rS)(function(t,e,s){if(!(0,h.Ed)(t))return t;const n=new Set(e),i=p(s),r=(0,h.FD)(t),o=[];let a=!1;for(const t of r){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,o=[...(0,h.yP)(t[s])];0===s&&e.push(o);const l=t[r];(0,h.Xq)(l)?e.push([...l]):(0,h.n1)(l)&&!n.has("cubic-bezier")?y(e,o,l,i):(0,h.aO)(l)&&!n.has("circular-arc")?v(e,o,l,i):(0,h.DA)(l)&&!n.has("elliptic-arc")?S(e,o,l,i):(0,h.wY)(l)&&!n.has("elliptic-arc")?w(e,o,l,i):(e.push((0,h.tk)(l)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,n))})}function x(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,s){s.d(e,{Y_:()=>R,O7:()=>E,el:()=>x});var n=s(92602),i=s(69052),r=s(49186),o=s(53966),a=s(39829),h=s(82799),l=s(16930),c=s(80754),u=s(21325),f=s(28735),g=s(52006),p=s(31411),d=s(11254),m=s(60408),b=s(65864),_=s(2272),y=s(84952),v=s(92300);const S=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function w(t){return"polygon"===t[0].type}function C(t){return"polyline"===t[0].type}function k(t,e,s){const n=1e6;if(e){const e=(0,g.Ed)(t)?(0,p.GS)(t,{maxSegmentLength:n}):function(t,e){if(!(t instanceof h.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw S().error(t),new r.A("internal:geometry",t)}const s=(0,c.r8)(t),n=[];for(const t of s){const s=[];n.push(s),s.push([t[0][0],t[0][1]]);for(let n=0;n<t.length-1;n++){const i=t[n][0],r=t[n][1],o=t[n+1][0],a=t[n+1][1],h=Math.sqrt((o-i)*(o-i)+(a-r)*(a-r)),l=(a-r)/h,c=(o-i)/h,u=h/e;if(u>1){for(let t=1;t<=u-1;t++){const n=t*e,o=c*n+i,a=l*n+r;s.push([o,a])}const t=(h+Math.floor(u-1)*e)/2,n=c*t+i,o=l*t+r;s.push([n,o])}s.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:n,spatialReference:t.spatialReference}):new h.A({paths:n,spatialReference:t.spatialReference})}(t,n);t=(0,f.ci)(e,!0)}return s&&(t=(0,c.kS)(t,s)),t}function A(t,e,s){if(Array.isArray(t)){const n=t[0];if(n>e){const s=(0,c.kd)(n,e);t[0]=n+s*(-2*e)}else if(n<s){const e=(0,c.kd)(n,s);t[0]=n+e*(-2*s)}}else{const n=t.x;if(n>e){const s=(0,c.kd)(n,e);t=t.clone().offset(s*(-2*e),0)}else if(n<s){const e=(0,c.kd)(n,s);t=t.clone().offset(e*(-2*s),0)}}return t}function M(t,e){let s=-1;for(let n=0;n<e.cutIndexes.length;n++){const i=e.cutIndexes[n],r=e.geometries[n],o=(0,c.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const n=e[t][0];s=n>s?n:s}s=Number(s.toFixed(9));const n=-360*(0,c.kd)(s,180);for(let s=0;s<e.length;s++){const e=r.getPoint(t,s);r.setPoint(t,s,e.clone().offset(n,0))}return!0}})}if(i===s){if(w(t))for(const e of(0,c.r8)(r))t[i]=t[i].addRing(e);else if(C(t))for(const e of(0,c.r8)(r))t[i]=t[i].addPath(e)}else s=i,t[i]=r}return t}async function x(t,e,s){if(!Array.isArray(t))return x([t],e);e&&"string"!=typeof e&&S().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??n.A.geometryServiceUrl;let r,o,l,g,p,w,C,E,P=0;const R=[],N=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,u.Vp)(r),l=r.isWebMercator,w=l?102100:4326,g=c.j7[w].maxX,p=c.j7[w].minX,C=c.j7[w].plus180Line,E=c.j7[w].minus180Line),o)if("mesh"===e.type)N.push(e);else if("point"===e.type)N.push(A(e.clone(),g,p));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>A(t,g,p)),N.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);N.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,s=(0,c.kd)(t.xmin,p)*(2*g);let n=0===s?e.clone():(0,c.kS)(e.clone(),s);t.offset(s,0);let{xmin:i,xmax:r}=t;i=Number(i.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(C)&&r!==g?(P=r>P?r:P,n=k(n,l),R.push(n),N.push("cut")):t.intersects(E)&&i!==p?(P=r*(2*g)>P?r*(2*g):P,n=k(n,l,360),R.push(n),N.push("cut")):N.push(n)}else N.push(e.clone());else N.push(e);else N.push(e);let L=(0,c.kd)(P,g),I=-90;const q=L,O=new h.A;for(;L>0;){const t=360*L-180;O.addPath([[t,I],[t,-1*I]]),I*=-1,L--}if(R.length>0&&q>0){const e=M(R,await async function(t,e,s,n){const i=(0,_.Dl)(t),r=e[0].spatialReference,o={...n,responseType:"json",query:{...i.query,f:"json",sr:(0,u.YX)(r),target:JSON.stringify({geometryType:(0,m.$B)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},a=await(0,d.A)(i.path+"/cut",o),{cutIndexes:h,geometries:l=[]}=a.data;return{cutIndexes:h,geometries:l.map(t=>{const e=(0,b.rS)(t);return e.spatialReference=r,e})}}(i,R,O,s)),n=[],r=[];for(let s=0;s<N.length;s++){const i=N[s];if("cut"!==i)r.push(i);else{const i=e.shift(),o=t[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&i.rings.length>=o.rings.length?(n.push(i),r.push("simplify")):r.push(l?(0,f.Gh)(i):i)}}if(!n.length)return r;const o=await async function(t,e,s){const n="string"==typeof t?(0,y.An)(t):t,i=e[0].spatialReference,r=(0,m.$B)(e[0]),o={...s,query:{...n.query,f:"json",sr:(0,u.YX)(i),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,d.A)(n.path+"/simplify",o);return(0,v.V)(a.geometries,r,i)}(i,n,s),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(l?(0,f.Gh)(o.shift()):o.shift())}return a}const T=[];for(let t=0;t<N.length;t++){const e=N[t];if("cut"!==e)T.push(e);else{const t=R.shift();T.push(!0===l?(0,f.Gh)(t):t)}}return T}function E(t,e,s){const n=(0,u.Vp)(s);if(null==n)return t;const[i,r]=n.valid,o=2*r;let a=0,h=0;e>r?a=Math.ceil(Math.abs(e-r)/o):e<i&&(a=-Math.ceil(Math.abs(e-i)/o)),t>r?h=Math.ceil(Math.abs(t-r)/o):t<i&&(h=-Math.ceil(Math.abs(t-i)/o));let l=t+(a-h)*o;const c=l-e;return c>r?l-=o:c<i&&(l+=o),l}function P(t){const e=(0,u.Vp)(t);if(null==e)return null;const[s,n]=e.valid;return new i.hr(s,n)}const R=P(l.A.WGS84);P(l.A.WebMercator)},80754(t,e,s){s.d(e,{j7:()=>a,kS:()=>l,kd:()=>h,r8:()=>c});var n=s(82799),i=s(16930),r=s(60408),o=s(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,o.Ed)(t))for(const s of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of s){if((0,o.aO)(t)){const[s,n]=t.c;s[0]+=e,n[0]+=e;continue}if((0,o.FG)(t)){const[s,n]=t.a;s[0]+=e,n[0]+=e;continue}if((0,o.n1)(t)){const[s,n,i]=t.b;s[0]+=e,n[0]+=e,i[0]+=e;continue}t[0]+=e}for(const s of c(t))for(const t of s)t[0]+=e;return t}function c(t){return(0,r.Bi)(t)?t.rings:t.paths}},50498(t,e,s){s.d(e,{Ye:()=>u,gy:()=>c,iI:()=>g,yR:()=>f});var n=s(66552),i=s(5443),r=s(91075),o=s(48526),a=s(86738),h=s(39829),l=s(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),u=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:r.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:a.A,polyline:l.A,polygon:h.A}},g=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},73133(t,e,s){s.d(e,{j:()=>n});const n=(0,s(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5816],{68197(t,e,s){s.d(e,{A:()=>l});var n=s(40876),i=s(4576),r=s(34727),o=s(56507);function a(t){return(0,r.qE)((0,o.Vr)(t),0,255)}function h(t,e){const s=t.toString(16).padStart(2,"0");return e?s.slice(0,1):s}class l{static blendColors(t,e,s,n=new l){return n.r=Math.round(t.r+(e.r-t.r)*s),n.g=Math.round(t.g+(e.g-t.g)*s),n.b=Math.round(t.b+(e.b-t.b)*s),n.a=t.a+(e.a-t.a)*s,n._sanitize()}static fromRgb(t,e){const s=(0,n.lT)(t);return s?l.fromArray(s,e):null}static fromHex(t,e=new l){const s=(0,n.oW)(t);return s?l.fromArray(s,e):null}static fromArray(t,e=new l){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const s=(0,n.Eq)(t);return s?l.fromArray(s,e):null}static fromJSON(t){return null!=t?new l([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)l.fromString(t,this);else if((0,i.yc)(t))l.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof l||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,s=t?.digits??6,n=3===s||4===s,i=4===s||8===s,r=`#${h(this.r,n)}${h(this.g,n)}${h(this.b,n)}${i?h(Math.round(255*this.a),n):""}`;return e?r.toUpperCase():r}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=a(this.r),s=a(this.g),n=a(this.b);return 0===t||1!==this.a?[e,s,n,a(255*this.a)]:[e,s,n]}clone(){return new l(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(t,e,s,n){this.r=t,this.g=e,this.b=s,this.a=n}}l.prototype.declaredClass="esri.Color"},40876(t,e,s){s.d(e,{Eq:()=>g,G1:()=>d,TS:()=>r,Tf:()=>_,V6:()=>i,Vm:()=>p,ay:()=>h,c1:()=>m,c4:()=>o,j5:()=>l,lT:()=>u,oW:()=>c,xV:()=>v});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(t){return!!n[t]||!!n[t.toLowerCase()]}function r(t){return n[t]??n[t.toLowerCase()]}function o(t){return[...r(t)]}function a(t,e,s){s<0&&++s,s>1&&--s;const n=6*s;return n<1?t+(e-t)*n:2*s<1?e:3*s<2?t+(e-t)*(2/3-s)*6:t}function h(t,e,s,n=1){const i=(t%360+360)%360/360,r=s<=.5?s*(e+1):s+e-s*e,o=2*s-r;return[Math.round(255*a(o,r,i+1/3)),Math.round(255*a(o,r,i)),Math.round(255*a(o,r,i-1/3)),n]}function l(t){const e=t.length>5,s=e?8:4,n=(1<<s)-1,i=e?1:17,r=e?9===t.length:5===t.length;let o=Number("0x"+t.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let h;return r&&(h=o&n,o>>=s,a[3]=i*h/255),h=o&n,o>>=s,a[2]=i*h,h=o&n,o>>=s,a[1]=i*h,h=o&n,o>>=s,a[0]=i*h,a}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),s=parseInt(t.slice(2,3),16),n=parseInt(t.slice(3,4),16),i=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,s+16*s,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function u(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),s=e[1];if("rgb"===s&&3===t.length||"rgba"===s&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===s&&3===t.length||"hsla"===s&&4===t.length)return h(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=m(t[0]),t[1]=m(t[1]),t[2]=m(t[2]),t[3]=4===t.length?d(t[3]):1,t}function g(t){let e=i(t)?r(t):null;return e??=u(t),e??=c(t),e}function p(t){const e=g(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function d(t){return b(t,0,1)}function m(t){return Math.round(b(t,0,255))}function b(t,e,s){return t=Number(t),isNaN(t)?s:t<e?e:t>s?s:t}const _=2.2,y=1/_;function v(t){return t**y}},7762(t,e,s){s.d(e,{A:()=>q});var n,i=s(5482),r=s(98291),o=s(4576),a=s(65529),h=s(36563),l=s(4718),c=s(53966),u=s(93687),f=s(76030),g=s(56507),p=s(62788),d=s(10107),m=s(7695),b=s(64108),_=s(95488),y=s(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}}class S{constructor(t,e,s,n,i){this.target=t,this.added=e,this.removed=s,this.start=n,this.deleteCount=i}}const w=new u.A(()=>new v,void 0,t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1});function C(t){t&&"object"==typeof t&&"destroy"in t&&"function"==typeof t.destroy&&t.destroy()}function k(t){return t?t instanceof I?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function A(t){if(t?.length)return t[0]}function M(t,e,s,n){const i=Math.min(t.length-s,e.length-n);let r=0;for(;r<i&&t[s+r]===e[n+r];)r++;return r}function x(t,e,s,n){e&&e.forEach((e,i,r)=>{t.push(e),x(t,s.call(n,e,i,r),s,n)})}const E=new Set,P=new Set,R=new Set,N=new Map;let L=0,I=n=class extends a.nJ{static ofType(t){if(!t)return n;if(N.has(t))return N.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const s in t.typeMap){const n=t.typeMap[s].prototype.declaredClass;e?e+=` | ${n}`:e=n}let s=class extends n{};return(0,i.Cg)([(0,m.u)({Type:t,ensureType:"function"==typeof t?(0,g.dp)(t):(0,g.aq)(t)})],s.prototype,"itemType",void 0),s=(0,i.Cg)([(0,b.$)(`esri.core.Collection<${e}>`)],s),N.set(t,s),s}static isCollection(t){return null!=t&&t instanceof n}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:L++})}normalizeCtorArgs(t){return t?(0,o.yc)(t)||t instanceof n?{items:t}:t:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(t){t>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(t,Math.max(0,this._length-t))}get items(){return(0,p.gc)(this._observable),this._items}set items(t){this._emitBeforeChanges(1)||(this._splice(0,this.length,k(t)),this._emitAfterChanges(1))}hasEventListener(t){return!this.destroyed&&("change"===t?this._chgListeners.length>0:super.hasEventListener(t))}on(t,e){if(this.destroyed)return(0,h.hA)();if("change"===t){const t=this._chgListeners,s={removed:!1,callback:e};return t.push(s),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,h.hA)(()=>{s.removed=!0,t.splice(t.indexOf(s),1)})}return super.on(t,e)}once(t,e){const s="deref"in e?()=>e.deref():()=>e,n=this.on(t,t=>{s()?.call(null,t),n.remove()});return n}add(t,e){if((0,p.gc)(this._observable),this._emitBeforeChanges(1))return this;const s=this.getNextIndex(e??null);return this._splice(s,0,[t]),this._emitAfterChanges(1),this}addMany(t,e=this._items.length){if((0,p.gc)(this._observable),!t?.length)return this;if(this._emitBeforeChanges(1))return this;const s=this.getNextIndex(e);return this._splice(s,0,k(t)),this._emitAfterChanges(1),this}at(t){if((0,p.gc)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const t=this._removeAllRaw();return this._emitAfterChanges(2),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(l.o8)})}concat(...t){(0,p.gc)(this._observable);const e=t.map(k);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const s=this._splice(0,this.length),n=s.length;for(let i=0;i<n;i++)t.call(e,s[i],i,s);this._emitAfterChanges(2)}destroyAll(){this.drain(C)}destroyMany(t){const e=this.removeMany(t);return e.forEach(C),e}every(t,e){return(0,p.gc)(this._observable),this._items.every(t,e)}filter(t,e){(0,p.gc)(this._observable);const s=2===arguments.length?this._items.filter(t,e):this._items.filter(t);return this._createNewInstance({items:s})}find(t,e){return(0,p.gc)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,p.gc)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,p.gc)(this._observable);const s=[];return x(s,this,t,e),new n(s)}forEach(t,e){return(0,p.gc)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,p.gc)(this._observable),this._items[t]}getNextIndex(t){(0,p.gc)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,p.gc)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,p.gc)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,p.gc)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,p.gc)(this._observable);const s=this._items.map(t,e);return new n({items:s})}reorder(t,e=this.length-1){(0,p.gc)(this._observable);const s=this.indexOf(t);if(-1!==s){if(e<0?e=0:e>=this.length&&(e=this.length-1),s!==e){if(this._emitBeforeChanges(4))return t;this._splice(s,1),this._splice(e,0,[t]),this._emitAfterChanges(4)}return t}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=A(this._splice(this.length-1,1));return this._emitAfterChanges(2),t}push(...t){return(0,p.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,t),this._emitAfterChanges(1)),this.length}reduce(t,e){(0,p.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(t,e):s.reduce(t)}reduceRight(t,e){(0,p.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(t,e):s.reduceRight(t)}remove(t){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,p.gc)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(2))return;const e=A(this._splice(t,1));return this._emitAfterChanges(2),e}removeMany(t){if((0,p.gc)(this._observable),!t?.length||this._emitBeforeChanges(2))return[];const e=t instanceof n?t.toArray():t,s=this._items,i=[],r=e.length;for(let t=0;t<r;t++){const n=e[t],r=s.indexOf(n);if(r>-1){const n=1+M(e,s,t+1,r+1),o=this._splice(r,n);o&&o.length>0&&i.push.apply(i,o),t+=n-1}}return this._emitAfterChanges(2),i}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(4))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(4),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=A(this._splice(0,1));return this._emitAfterChanges(2),t}slice(t=0,e=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,p.gc)(this._observable),this._items.some(t,e)}sort(t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(t))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(4),this}_requiresSort(t=(t,e)=>t===e?0:t<e?-1:1){const e=this.length-1;for(let s=0;s<e;s++)if(t(this.items[s],this.items[s+1])>0)return!0;return!1}splice(t,e,...s){(0,p.gc)(this._observable),1===arguments.length&&(e=this.length),e??=0;const n=(e?2:0)|(s.length?1:0);if(this._emitBeforeChanges(n))return[];const i=this._splice(t,e,s)||[];return this._emitAfterChanges(n),i}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(t){return(0,p.gc)(this._observable),this.toArray().map(e=>(0,y.W)(e)?e.toJSON(t):e)}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...t){return(0,p.gc)(this._observable),!t.length||this._emitBeforeChanges(1)||(this._splice(0,0,t),this._emitAfterChanges(1)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,s){const n=this._items,i=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,f._)(()=>this._dispatchChange())),t<0&&(t+=this.length),e){if(o=n.splice(t,e),this.hasEventListener("before-remove")){const e=w.acquire();e.target=this,e.cancellable=!0;for(let s=0,i=o.length;s<i;s++)r=o[s],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(s,1),n.splice(t,0,r),t+=1,s-=1,i-=1);w.release(e)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const t=w.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let s=0;s<e;s++)t.reset(o[s]),this.emit("after-remove",t);w.release(t)}}if(s?.length){if(i){const t=[];for(const e of s){const s=i.ensureType(e);null==s&&null!=e||t.push(s)}s=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const i=w.acquire();i.target=this,i.cancellable=!0;const a=w.acquire();a.target=this,a.cancellable=!1;for(const h of s)e?(i.reset(h),this.emit("before-add",i),i.defaultPrevented||(o?n.push(h):n.splice(t++,0,h),this._length=n.length,r&&(a.reset(h),this.emit("after-add",a)))):(o?n.push(h):n.splice(t++,0,h),this._length=n.length,a.reset(h),this.emit("after-add",a));w.release(a),w.release(i)}else{if(o)for(const t of s)n.push(t);else n.splice(t,0,...s);this._length=n.length}}if((s?.length||o?.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const n=new S(this,s,o,t,e);this.emit("after-splice",n)}return o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const s=w.acquire();s.target=this,s.cancellable=!0,s.type=t,this.emit("before-changes",s),e=s.defaultPrevented,w.release(s)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=w.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),w.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;E.clear(),P.clear(),R.clear();for(const{added:e,removed:s}of t){if(e)if(0===R.size&&0===P.size)for(const t of e)E.add(t);else for(const t of e)P.has(t)?(R.add(t),P.delete(t)):R.has(t)||E.add(t);if(s)if(0===R.size&&0===E.size)for(const t of s)P.add(t);else for(const t of s)E.has(t)?E.delete(t):(R.delete(t),P.add(t))}const s=r.A.acquire();E.forEach(t=>{s.push(t)});const n=r.A.acquire();P.forEach(t=>{n.push(t)});const i=this._items,o=e.items,a=r.A.acquire();if(R.forEach(t=>{o.indexOf(t)!==i.indexOf(t)&&a.push(t)}),e.listeners&&(s.length||n.length||a.length)){const t={target:this,added:s,removed:n,moved:a},i=e.listeners.length;for(let s=0;s<i;s++){const n=e.listeners[s];n.removed||n.callback.call(this,t)}}r.A.release(s),r.A.release(n),r.A.release(a)}E.clear(),P.clear(),R.clear()}};(0,i.Cg)([(0,d.MZ)()],I.prototype,"_updating",void 0),(0,i.Cg)([(0,d.MZ)()],I.prototype,"_length",void 0),(0,i.Cg)([(0,d.MZ)()],I.prototype,"length",null),(0,i.Cg)([(0,d.MZ)()],I.prototype,"items",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],I.prototype,"updating",null),I=n=(0,i.Cg)([(0,b.$)("esri.core.Collection")],I);const q=I},69052(t,e,s){s.d(e,{hr:()=>i,ie:()=>h,uC:()=>a});var n=s(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,s=!1){return r(this.range,this.min,this.max,t,e,s)}clamp(t,e=0){return(0,n.qE)(t-e,this.min,this.max)+e}monotonic(t,e,s){return t<e?e:e+o(this.range,t-e,s)}minimalMonotonic(t,e,s){return r(this.range,t,t+this.range,e,s)}center(t,e,s){return e=this.monotonic(t,e,s),this.normalize((t+e)/2,s)}diff(t,e,s){return this.monotonic(t,e,s)-t}shortestSignedDiff(t,e){t=this.normalize(t);const s=(e=this.normalize(e))-t,n=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(s)<Math.abs(n)?s:n}contains(t,e,s){return e=this.minimalMonotonic(t,e),(s=this.minimalMonotonic(t,s))>t&&s<e}}function r(t,e,s,n,i=0,r=!1){return(n-=i)<e?n+=o(t,e-n):n>s&&(n-=o(t,n-s)),r&&n===s&&(n=e),n+i}function o(t,e,s=0){return Math.ceil((e-s)/t)*t+s}const a=new i(0,2*Math.PI),h=(new i(-Math.PI,Math.PI),new i(0,360))},4902(t,e,s){s.d(e,{s:()=>o});var n=s(5482),i=s(64108);let r=0;const o=t=>{const e=t;let s=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return s=(0,n.Cg)([(0,i.$)("esri.core.Identifiable")],s),s};o(class{})},7695(t,e,s){function n(t){return(e,s)=>{e[s]=t}}s.d(e,{u:()=>n})},56512(t,e,s){function n(t){let e,s,n=[],i=!1;return function(...r){return i&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;++s)if(t[s]!==e[s])return!1;return!0}(r,n)||(s=t.apply(this,r),e=this,n=r,i=!0),s}}s.d(e,{B:()=>n})},36708(t,e,s){s.d(e,{C_:()=>f,OH:()=>d,Vh:()=>m,on:()=>u,pc:()=>b,wB:()=>h,z7:()=>l});var n=s(37955),i=s(36563),r=s(97768),o=s(17676),a=s(14012);function h(t,e,s={}){return c(t,e,s,g)}function l(t,e,s={}){return c(t,e,s,p)}function c(t,e,s={},n){let i=null;const o=s.once?(t,s)=>{n(t)&&((0,r.xt)(i),e(t,s))}:(t,s)=>{n(t)&&e(t,s)};if(i=(0,a.Cn)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return i}function u(t,e,s,o={}){let a=null,l=null,c=null;function u(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function f(t){o.once&&o.once&&(0,r.xt)(c),s(t)}const g=h(t,(t,s)=>{u(),(0,n.wb)(t)&&(a=t,l=(0,n.on)(t,e,f),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return c=(0,i.hA)(()=>{g.remove(),u()}),c}function f(t,e){return function(t,e,s){if((0,o.G4)(s))return Promise.reject((0,o.NK)());const n=t();if(e?.(n))return Promise.resolve(n);let a=null;function h(){a=(0,r.xt)(a)}return new Promise((n,r)=>{a=(0,i.vE)([(0,o.u7)(s,()=>{h(),r((0,o.NK)())}),c(t,t=>{h(),n(t)},{sync:!1,once:!0},e??g)])})}(t,p,e)}function g(t){return!0}function p(t){return!!t}s(80559);const d={sync:!0},m={initial:!0},b={sync:!0,initial:!0}},90629(t,e,s){s.d(e,{Lz:()=>i,PN:()=>r,cr:()=>o,gs:()=>h,r_:()=>l,tc:()=>a}),s(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(t){return t?t/72*96:0}function r(t){return t?72*t/96:0}function o(t){if("string"==typeof t){const e=t.match(n);if(e){const s=Number(e[1]),n=e[3]&&e[3].toLowerCase(),i=t.startsWith("-"),o="px"===n?r(s):s;return i?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function a(t=0,e=0){return{x:t,y:e}}function h(t=0,e=0){return[t,e]}function l(t=0,e=0,s=0){return[t,e,s]}},31411(t,e,s){s.d(e,{GS:()=>k,gh:()=>M});var n=s(49186),i=s(56512),r=s(65864),o=s(4305),a=s(50954),h=s(52006),l=s(49663),c=s(46068),u=s(15507);const f=1e-6,g=[0,0];function p(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class d{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:n,minSegmentsPerCurve:i}){const r=s*s,o=e*e,a=1/n,h=this.interpolate(0),l=this.interpolate(1);(0,u.kb)(this.curveStart,h)>f&&t.push(h),this.initialize(h,l);const c=1/i;for(let t=i-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===r||!isFinite(r)||(0,u.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,l)>f&&t.push([...this.curveEnd]),t}}class m extends d{constructor(t,e){const[s,n,i]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[n,i],this._arcControlPoints=[n,i],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:n,tEnd:i}=this,[r,o]=this._arcControlPoints,a=(t-n)/(i-n),h=(0,u.RS)([],e,r,a),l=(0,u.RS)(g,r,o,a),c=(0,u.RS)([],o,s,a),f=(0,u.RS)([],h,l,a),p=(0,u.RS)([],l,c,a),d=(0,u.RS)([],f,p,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([p,c]),this.tEndStack.push(t),this.arcEndStack.push(d),this._arcControlPoints[0]=h,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[n,i]=this._curveControlPoints;return(0,o.B4)(e,n,i,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,n]=this._arcControlPoints;return Math.max((0,u.yE)(s,t,e),(0,u.yE)(n,t,e))}}class b extends d{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function _(t,e,s,{cx:n,cy:i,radius:r,thetaStart:o,thetaEnd:a,isInvalid:h},{maxDeviation:l,maxSegmentLength:c,maxSegmentsPerCurve:g,minSegmentsPerCurve:p}){if(h)return t.push([...s]),t;const d=2*r,m=[n+r*Math.cos(o),i+r*Math.sin(o)],b=[n+r*Math.cos(a),i+r*Math.sin(a)];(0,u.kb)(e,m)>f&&t.push(m);const _=Math.abs(a-o),y=c>0&&c<d?2*Math.asin(c/d):_,v=l>0&&l<=r?2*Math.acos(1-l/r):_,S=Math.min(y,v),w=Math.min(g,Math.max(p,Math.ceil(Math.abs(_/S)))),C=1/w;for(let e=1;e<w;e++){const s=e*C,h=o*(1-s)+a*s;t.push([n+r*Math.cos(h),i+r*Math.sin(h)])}return t.push(b),(0,u.kb)(s,b)>f&&t.push([...s]),t}function y(t,e,s,n){return new m(e,s).densify(t,n)}function v(t,e,s,n){const i=(0,a.pM)(e,s),[r]=s.c;return _(t,e,r,i,n)}function S(t,e,s,n){const i=(0,l.io)(e,s),[r]=s.a;return _(t,e,r,i,n)}function w(t,e,s,n){const[i,r,o,a,h,l,c]=s.a;return 0===l||0===c?(t.push([...i]),t):new b(e,s).densify(t,n)}function C(t,e,s,n){return(0,h.Xq)(s)?(t.push([...s]),t):(0,h.n1)(s)?y(t,e,s,n):(0,h.aO)(s)?v(t,e,s,n):(0,h.DA)(s)?S(t,e,s,n):w(t,e,s,n)}function k(t,e={}){if(!(0,h.Ed)(t))return t;const s=p(e),n=(0,h.FD)(t),i=[];for(const t of n){const e=[];for(let n=0;n<t.length-1;n++){const i=n+1,r=[...(0,h.yP)(t[n])];0===n&&e.push(r),C(e,r,t[i],s)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:i,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:i,spatialReference:t.spatialReference}}const A=(0,i.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function M(t,e,i){const o=new Set(e);return await async function(t,e,i){let r=null;for(const o of t)if(o&&(0,h.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,h.V8)(o,e)){const t=o.spatialReference;if(!t)throw new n.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=x(t);if(i.has(e))o.spatialReference=i.get(e);else{r||(r=await Promise.all([s.e(6042),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(6312)]).then(s.bind(s,78125)));const a=r.fromSpatialReference(t),h=a?.getTolerance();if(null==h)throw new n.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const l=o.spatialReference.clone();l.read({xyTolerance:h}),o.spatialReference=l,i.set(e,l)}}}(t,o,i),t.map(t=>{if(!t||!(0,h.Ed)(t))return t;const s=t.spatialReference.xyTolerance;if(null==s)return t;const n=A(s);return(0,r.rS)(function(t,e,s){if(!(0,h.Ed)(t))return t;const n=new Set(e),i=p(s),r=(0,h.FD)(t),o=[];let a=!1;for(const t of r){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,o=[...(0,h.yP)(t[s])];0===s&&e.push(o);const l=t[r];(0,h.Xq)(l)?e.push([...l]):(0,h.n1)(l)&&!n.has("cubic-bezier")?y(e,o,l,i):(0,h.aO)(l)&&!n.has("circular-arc")?v(e,o,l,i):(0,h.DA)(l)&&!n.has("elliptic-arc")?S(e,o,l,i):(0,h.wY)(l)&&!n.has("elliptic-arc")?w(e,o,l,i):(e.push((0,h.tk)(l)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,n))})}function x(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,s){s.d(e,{Y_:()=>R,O7:()=>E,el:()=>x});var n=s(92602),i=s(69052),r=s(49186),o=s(53966),a=s(39829),h=s(82799),l=s(16930),c=s(80754),u=s(21325),f=s(28735),g=s(52006),p=s(31411),d=s(11254),m=s(60408),b=s(65864),_=s(2272),y=s(84952),v=s(92300);const S=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function w(t){return"polygon"===t[0].type}function C(t){return"polyline"===t[0].type}function k(t,e,s){const n=1e6;if(e){const e=(0,g.Ed)(t)?(0,p.GS)(t,{maxSegmentLength:n}):function(t,e){if(!(t instanceof h.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw S().error(t),new r.A("internal:geometry",t)}const s=(0,c.r8)(t),n=[];for(const t of s){const s=[];n.push(s),s.push([t[0][0],t[0][1]]);for(let n=0;n<t.length-1;n++){const i=t[n][0],r=t[n][1],o=t[n+1][0],a=t[n+1][1],h=Math.sqrt((o-i)*(o-i)+(a-r)*(a-r)),l=(a-r)/h,c=(o-i)/h,u=h/e;if(u>1){for(let t=1;t<=u-1;t++){const n=t*e,o=c*n+i,a=l*n+r;s.push([o,a])}const t=(h+Math.floor(u-1)*e)/2,n=c*t+i,o=l*t+r;s.push([n,o])}s.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:n,spatialReference:t.spatialReference}):new h.A({paths:n,spatialReference:t.spatialReference})}(t,n);t=(0,f.ci)(e,!0)}return s&&(t=(0,c.kS)(t,s)),t}function A(t,e,s){if(Array.isArray(t)){const n=t[0];if(n>e){const s=(0,c.kd)(n,e);t[0]=n+s*(-2*e)}else if(n<s){const e=(0,c.kd)(n,s);t[0]=n+e*(-2*s)}}else{const n=t.x;if(n>e){const s=(0,c.kd)(n,e);t=t.clone().offset(s*(-2*e),0)}else if(n<s){const e=(0,c.kd)(n,s);t=t.clone().offset(e*(-2*s),0)}}return t}function M(t,e){let s=-1;for(let n=0;n<e.cutIndexes.length;n++){const i=e.cutIndexes[n],r=e.geometries[n],o=(0,c.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const n=e[t][0];s=n>s?n:s}s=Number(s.toFixed(9));const n=-360*(0,c.kd)(s,180);for(let s=0;s<e.length;s++){const e=r.getPoint(t,s);r.setPoint(t,s,e.clone().offset(n,0))}return!0}})}if(i===s){if(w(t))for(const e of(0,c.r8)(r))t[i]=t[i].addRing(e);else if(C(t))for(const e of(0,c.r8)(r))t[i]=t[i].addPath(e)}else s=i,t[i]=r}return t}async function x(t,e,s){if(!Array.isArray(t))return x([t],e);e&&"string"!=typeof e&&S().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??n.A.geometryServiceUrl;let r,o,l,g,p,w,C,E,P=0;const R=[],N=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,u.Vp)(r),l=r.isWebMercator,w=l?102100:4326,g=c.j7[w].maxX,p=c.j7[w].minX,C=c.j7[w].plus180Line,E=c.j7[w].minus180Line),o)if("mesh"===e.type)N.push(e);else if("point"===e.type)N.push(A(e.clone(),g,p));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>A(t,g,p)),N.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);N.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,s=(0,c.kd)(t.xmin,p)*(2*g);let n=0===s?e.clone():(0,c.kS)(e.clone(),s);t.offset(s,0);let{xmin:i,xmax:r}=t;i=Number(i.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(C)&&r!==g?(P=r>P?r:P,n=k(n,l),R.push(n),N.push("cut")):t.intersects(E)&&i!==p?(P=r*(2*g)>P?r*(2*g):P,n=k(n,l,360),R.push(n),N.push("cut")):N.push(n)}else N.push(e.clone());else N.push(e);else N.push(e);let L=(0,c.kd)(P,g),I=-90;const q=L,O=new h.A;for(;L>0;){const t=360*L-180;O.addPath([[t,I],[t,-1*I]]),I*=-1,L--}if(R.length>0&&q>0){const e=M(R,await async function(t,e,s,n){const i=(0,_.Dl)(t),r=e[0].spatialReference,o={...n,responseType:"json",query:{...i.query,f:"json",sr:(0,u.YX)(r),target:JSON.stringify({geometryType:(0,m.$B)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},a=await(0,d.A)(i.path+"/cut",o),{cutIndexes:h,geometries:l=[]}=a.data;return{cutIndexes:h,geometries:l.map(t=>{const e=(0,b.rS)(t);return e.spatialReference=r,e})}}(i,R,O,s)),n=[],r=[];for(let s=0;s<N.length;s++){const i=N[s];if("cut"!==i)r.push(i);else{const i=e.shift(),o=t[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&i.rings.length>=o.rings.length?(n.push(i),r.push("simplify")):r.push(l?(0,f.Gh)(i):i)}}if(!n.length)return r;const o=await async function(t,e,s){const n="string"==typeof t?(0,y.An)(t):t,i=e[0].spatialReference,r=(0,m.$B)(e[0]),o={...s,query:{...n.query,f:"json",sr:(0,u.YX)(i),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,d.A)(n.path+"/simplify",o);return(0,v.V)(a.geometries,r,i)}(i,n,s),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(l?(0,f.Gh)(o.shift()):o.shift())}return a}const T=[];for(let t=0;t<N.length;t++){const e=N[t];if("cut"!==e)T.push(e);else{const t=R.shift();T.push(!0===l?(0,f.Gh)(t):t)}}return T}function E(t,e,s){const n=(0,u.Vp)(s);if(null==n)return t;const[i,r]=n.valid,o=2*r;let a=0,h=0;e>r?a=Math.ceil(Math.abs(e-r)/o):e<i&&(a=-Math.ceil(Math.abs(e-i)/o)),t>r?h=Math.ceil(Math.abs(t-r)/o):t<i&&(h=-Math.ceil(Math.abs(t-i)/o));let l=t+(a-h)*o;const c=l-e;return c>r?l-=o:c<i&&(l+=o),l}function P(t){const e=(0,u.Vp)(t);if(null==e)return null;const[s,n]=e.valid;return new i.hr(s,n)}const R=P(l.A.WGS84);P(l.A.WebMercator)},80754(t,e,s){s.d(e,{j7:()=>a,kS:()=>l,kd:()=>h,r8:()=>c});var n=s(82799),i=s(16930),r=s(60408),o=s(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,o.Ed)(t))for(const s of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of s){if((0,o.aO)(t)){const[s,n]=t.c;s[0]+=e,n[0]+=e;continue}if((0,o.FG)(t)){const[s,n]=t.a;s[0]+=e,n[0]+=e;continue}if((0,o.n1)(t)){const[s,n,i]=t.b;s[0]+=e,n[0]+=e,i[0]+=e;continue}t[0]+=e}for(const s of c(t))for(const t of s)t[0]+=e;return t}function c(t){return(0,r.Bi)(t)?t.rings:t.paths}},50498(t,e,s){s.d(e,{Ye:()=>u,gy:()=>c,iI:()=>g,yR:()=>f});var n=s(66552),i=s(5443),r=s(91075),o=s(48526),a=s(86738),h=s(39829),l=s(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),u=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:r.A,key:"type",typeMap:{extent:i.A,multipoint:o.A,point:a.A,polyline:l.A,polygon:h.A}},g=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},73133(t,e,s){s.d(e,{j:()=>n});const n=(0,s(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1214],{61760(e,t,i){i.d(t,{PU:()=>n,YW:()=>a,ex:()=>r,hv:()=>l,zp:()=>o}),i(34727);var s=i(90629);i(78955),i(91829);const r=2.4;function o(e){return(0,s.PN)(e*r)}function n(e){return(0,s.Lz)(e)/r}function l(e,t,i){const s=Math.sqrt(e**2+t**2)/i;return s>1?0:3/(Math.PI*i**2)*(1-s**2)**2}function a(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},41214(e,t,i){i.d(t,{Hg:()=>pe,XJ:()=>ye});var s=i(53966),r=i(86162),o=i(5482),n=i(11254),l=i(4718),a=i(91429),u=i(30524),p=i(92438),y=i(63988),c=i(66344),d=i(60408),h=i(68197);class g{static parse(e,t,i){const s=[],r=[],o=e.split(";");for(let e=0;e<o.length;e++){const n=o[e];if(n){if(n.includes("po:")){const e=n.slice(3).split("|");if(3===e.length){const[t,i,s]=e,o=f(t,i,s);o&&r.push(o)}continue}if(n.includes("|")){for(const e of n.split("|"))if(t.has(e)){s.push(e);break}}else if(t.has(n))s.push(n);else if(0===e){s.length=0,s.push(b(i));break}}}return new g(s,r)}constructor(e,t){this.partNames=e,this.overrides=t}}function m(e,t){if("DashTemplate"===e)return t.split(" ").map(e=>Number(e));if("Color"===e){const e=new h.A(t).toRgba();return[e[0],e[1],e[2],255*e[3]]}return Number(t)}function f(e,t,i){return{type:"CIMPrimitiveOverride",primitiveName:e,propertyName:t,value:m(t,i),defaultValue:null}}function b(e){switch(e){case"esriGeometryPolyline":return"Invalid_L";case"esriGeometryPolygon":return"Invalid_A";default:return"Invalid_P"}}var v=i(73681),w=i(55674),C=i(40863),x=i(93397);const S={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,width:.5,color:[0,0,0,255]}]}};class M{constructor(e,t,i,s){this.url=e,this.fieldMap=i,this.dictionaryInfo=s,this._symbolPartCache=new c.q(100),this._evaluator=(async()=>v.n.from(await s,t,i))()}async getSymbolAsync(e,t,i=!0){const s=await this._evaluator,r=t?.fields??(0,w.lL)(e.attributes),o=s.createDictionaryFieldsIndex(r),n=s.evaluate(e,t?.scale??0,o,t?.spatialReference);if(null==n)return null;const l=(0,d.$B)(e.geometry),a=g.parse(n,s.itemNames,l),u="esriGeometryPoint"===l&&!e.geometry?.hasZ;return await this._cimPartsToCIMSymbol(e,a.partNames,a.overrides,u,t,i,o)}async getSymbolForControlString(e,t,i){const s=await this._evaluator,r=g.parse(e,s.itemNames,t),o="esriGeometryPoint"===t&&!i,n=_(await Promise.all(r.partNames.map(e=>this._getSymbolPart(e))),r.overrides,o);return new C.A({data:n})}async _cimPartsToCIMSymbol(e,t,s,r,o,n,a){const u=t.map(e=>this._getSymbolPart(e,o));let p=await Promise.all(u);if(n&&this.fieldMap&&p.length>0){const{OverrideHelper:t}=await i.e(3937).then(i.bind(i,73937));p=(0,l.o8)(p);for(const i of p)t.applyDictionaryTextOverrides(i,e,this.fieldMap,a,(0,x.bs)(i))}const y=_(p,s,r);return new C.A({data:y})}async _fetchSymbolPart(e,t){const i=await this.dictionaryInfo,s=(this.url+"/"+i.cimRefTemplateUrl).replaceAll(/\{itemName\}/gi,e),{data:r}=await(0,n.A)(s,{responseType:"json",query:{f:"json"},...t});return r}async _getSymbolPart(e,t){let i=this._symbolPartCache.get(e);return i||(i=this._fetchSymbolPart(e,t),this._symbolPartCache.put(e,i)),i}}function _(e,t,i){if(!e||0===e.length)return null;const s={...e[0]};if(e.length>1){s.effects=null,s.symbolLayers=[];for(const t of e){const e=t;if(null!=e.effects)for(const t of e.symbolLayers)null==t.effects?t.effects=e.effects:t.effects.unshift(...e.effects);s.symbolLayers.unshift(...e.symbolLayers)}}return i&&(s.callout=S),{type:"CIMSymbolReference",symbol:s,primitiveOverrides:t}}var I,Z=i(43937);let j=I=class extends((0,y.h)(p.A)){constructor(e){super(e),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this._styleName=null,this._styleVersion=null,this._styleSymbolFields=null,this._styleTextFields=null,this._styleConfigProperties=null,this._styleUISchema=null,this.type="dictionary"}get _loader(){const e=this.getDictionaryInfo();return e.then(e=>{this._styleName=e.dictionary_name,this._styleVersion=e.dictionary_version,this._styleConfigProperties=e.authoringInfo.configuration,this._styleSymbolFields=e.authoringInfo.symbol,this._styleTextFields=e.authoringInfo.text,this._styleUISchema=e.dictionary_ui_schema?JSON.parse(e.dictionary_ui_schema):null}),new M(this.url,this.config,this.fieldMap??{},e)}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}get styleName(){return this._styleName}get styleVersion(){return this._styleVersion}get styleSymbolFields(){return this._styleSymbolFields}get styleTextFields(){return this._styleTextFields}get styleConfigProperties(){return this._styleConfigProperties}get styleUISchema(){return this._styleUISchema}writeVisualVariables(e,t,i,s){s?.origin||super.writeVisualVariables(e,t,i,s)}clone(){return new I({config:(0,l.o8)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,l.o8)(this.fieldMap),url:(0,l.o8)(this.url),visualVariables:(0,l.o8)(this.visualVariables)})}async getSymbolAsync(e,t,i=!0){return this._loader.getSymbolAsync(e,t,i)}async getSymbolForControlString(e,t,i){return this._loader.getSymbolForControlString(e,t,i)}getDictionaryInfo(){return this._dictionaryInfoPromise||(this._dictionaryInfoPromise=this._fetchDictionaryInfo()),this._dictionaryInfoPromise}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,u.Dx)(e,t,null,this.scaleExpression);for(const i in this.fieldMap){const s=this.fieldMap[i];t.has(s)&&e.add(s)}}get arcadeRequired(){return!0}getSymbol(){return null}get symbols(){return[]}async _fetchDictionaryInfo(){const{data:e}=await(0,n.A)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"}});return e}};(0,o.Cg)([(0,a.MZ)({type:M})],j.prototype,"_loader",null),(0,o.Cg)([(0,a.MZ)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],j.prototype,"config",void 0),(0,o.Cg)([(0,a.MZ)({type:Object,json:{write:!0}})],j.prototype,"fieldMap",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],j.prototype,"scaleExpression",void 0),(0,o.Cg)([(0,Z.K)("scaleExpression")],j.prototype,"writeData",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],j.prototype,"scaleExpressionTitle",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"url",void 0),(0,o.Cg)([(0,a.MZ)({type:String})],j.prototype,"styleName",null),(0,o.Cg)([(0,a.MZ)({type:String})],j.prototype,"styleVersion",null),(0,o.Cg)([(0,a.MZ)({type:[String]})],j.prototype,"styleSymbolFields",null),(0,o.Cg)([(0,a.MZ)({type:[String]})],j.prototype,"styleTextFields",null),(0,o.Cg)([(0,a.MZ)({type:[Object]})],j.prototype,"styleConfigProperties",null),(0,o.Cg)([(0,a.MZ)({type:Object})],j.prototype,"styleUISchema",null),(0,o.Cg)([(0,Z.K)("visualVariables")],j.prototype,"writeVisualVariables",null),j=I=(0,o.Cg)([(0,a.$K)("esri.renderers.DictionaryRenderer")],j);var A,D=i(25482),P=i(56507);let E=A=class extends D.o{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(s.A.getLogger(this).error(".field: field must be a string value"),null):(0,P.GX)(e)}clone(){return new A({color:this.color?.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o.Cg)([(0,a.MZ)({type:h.A,json:{type:[Number],write:!0}})],E.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"field",void 0),(0,o.Cg)([(0,a.wg)("field")],E.prototype,"castField",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"label",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"valueExpression",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"valueExpressionTitle",void 0),E=A=(0,o.Cg)([(0,a.$K)("esri.renderers.support.AttributeColorInfo")],E);const V=E;var N;let T=N=class extends D.o{constructor(e){super(e),this.unit=null}clone(){return new N({unit:this.unit})}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"unit",void 0),T=N=(0,o.Cg)([(0,a.$K)("esri.renderers.support.DotDensityLegendOptions")],T);const R=T;var O,F=i(94985),k=i(31593),q=i(93223);let L=O=class extends((0,y.h)(p.A)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new h.A([0,0,0,0]),this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new k.A,this.dotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new F.A({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}get visualVariables(){return super.visualVariables}set visualVariables(e){super.visualVariables=e}clone(){return new O({attributes:(0,l.o8)(this.attributes),backgroundColor:(0,l.o8)(this.backgroundColor),dotBlendingEnabled:(0,l.o8)(this.dotBlendingEnabled),dotShape:(0,l.o8)(this.dotShape),dotSize:(0,l.o8)(this.dotSize),dotValue:(0,l.o8)(this.dotValue),legendOptions:(0,l.o8)(this.legendOptions),outline:(0,l.o8)(this.outline),referenceScale:(0,l.o8)(this.referenceScale),seed:(0,l.o8)(this.seed),visualVariables:(0,l.o8)(this.visualVariables),authoringInfo:(0,l.o8)(this.authoringInfo)})}getControllerHash(){const e=this.attributes?.map(e=>e.field||e.valueExpression||"");return`${e}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes??[])i.valueExpression&&await(0,u.Dx)(e,t,null,i.valueExpression),i.field&&e.add(i.field)}};(0,o.Cg)([(0,a.MZ)({type:[V],json:{write:!0}})],L.prototype,"attributes",void 0),(0,o.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],L.prototype,"backgroundColor",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],L.prototype,"dotBlendingEnabled",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!1}})],L.prototype,"dotShape",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],L.prototype,"dotSize",void 0),(0,o.Cg)([(0,a.MZ)({type:R,json:{write:!0}})],L.prototype,"legendOptions",void 0),(0,o.Cg)([(0,a.MZ)({type:k.A,json:{default:null,write:!0}})],L.prototype,"outline",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],L.prototype,"dotValue",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],L.prototype,"referenceScale",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],L.prototype,"seed",void 0),(0,o.Cg)([(0,q.e)({dotDensity:"dot-density"})],L.prototype,"type",void 0),L=O=(0,o.Cg)([(0,a.$K)("esri.renderers.DotDensityRenderer")],L);var z,$=i(90629),K=i(30943);let U=z=class extends D.o{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new z({color:this.color&&this.color.clone(),ratio:this.ratio})}};(0,o.Cg)([(0,a.MZ)({type:h.A,json:{type:[P.jz],default:null,write:{isRequired:!0}}})],U.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],U.prototype,"ratio",void 0),U=z=(0,o.Cg)([(0,a.$K)("esri.renderers.support.HeatmapColorStop")],U);var B=i(69540);let H=class extends((0,B.OU)(D.o)){constructor(e){super(e),this.minLabel=null,this.maxLabel=null,this.title=null}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],H.prototype,"minLabel",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],H.prototype,"maxLabel",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],H.prototype,"title",void 0),H=(0,o.Cg)([(0,a.$K)("esri.renderers.support.HeatmapLegendOptions")],H);const G=H;var J,X=i(61760),W=i(53930);function Y(e){if(null!=e){const{maxDensity:t,minDensity:i,radius:s}=e;if(null!=t||null!=i||null!=s){const{blurRadius:t,maxPixelIntensity:i,minPixelIntensity:s,...r}=e;return r}}return e}let Q=J=class extends p.A{constructor(e){super(e),this.authoringInfo=null,this.colorStops=[new U({ratio:0,color:new h.A("rgba(255, 140, 0, 0)")}),new U({ratio:.75,color:new h.A("rgba(255, 140, 0, 1)")}),new U({ratio:.9,color:new h.A("rgba(255, 0, 0, 1)")})],this.field=null,this.legendOptions=null,this.maxDensity=.04,this.minDensity=0,this.referenceScale=0,this.type="heatmap",this.valueExpression=null,this.valueExpressionTitle=null}normalizeCtorArgs(e){return Y(e)}get blurRadius(){return(0,X.PU)(this.radius)}set blurRadius(e){const t=this.maxPixelIntensity,i=this.minPixelIntensity;this._set("radius",(0,X.zp)(e)),this._set("maxDensity",t*this._pixelIntensityToDensity),this._set("minDensity",i*this._pixelIntensityToDensity)}get maxPixelIntensity(){return this.maxDensity/this._pixelIntensityToDensity}set maxPixelIntensity(e){this._set("maxDensity",e*this._pixelIntensityToDensity)}get minPixelIntensity(){return this.minDensity/this._pixelIntensityToDensity}set minPixelIntensity(e){this._set("minDensity",e*this._pixelIntensityToDensity)}get radius(){return this._get("radius")??18}set radius(e){this._set("radius",e)}get _pixelIntensityToDensity(){return 24/(X.ex**2*this.blurRadius**4)}read(e,t){e=Y(e),super.read(e,t)}getSymbol(){return new W.A}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}async collectRequiredFields(e,t){const i=this.field,s=this.valueExpression;i&&"string"==typeof i&&(0,u.rq)(e,t,i),s&&"string"==typeof s&&await(0,u.Dx)(e,t,null,s)}clone(){return new J({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:(0,l.o8)(this.colorStops),field:this.field,legendOptions:(0,l.o8)(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o.Cg)([(0,a.MZ)({type:K.A,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],Q.prototype,"authoringInfo",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Q.prototype,"blurRadius",null),(0,o.Cg)([(0,a.MZ)({type:[U],json:{write:{isRequired:!0}}})],Q.prototype,"colorStops",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],Q.prototype,"field",void 0),(0,o.Cg)([(0,a.MZ)({type:G,json:{write:!0}})],Q.prototype,"legendOptions",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Q.prototype,"maxDensity",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Q.prototype,"maxPixelIntensity",null),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Q.prototype,"minDensity",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Q.prototype,"minPixelIntensity",null),(0,o.Cg)([(0,a.MZ)({type:Number,cast:$.cr,json:{write:!0}})],Q.prototype,"radius",null),(0,o.Cg)([(0,a.MZ)({type:Number,range:{min:0},json:{default:0,write:!0}})],Q.prototype,"referenceScale",void 0),(0,o.Cg)([(0,q.e)({heatmap:"heatmap"})],Q.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],Q.prototype,"valueExpression",void 0),(0,o.Cg)([(0,a.MZ)({type:String})],Q.prototype,"valueExpressionTitle",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],Q.prototype,"_pixelIntensityToDensity",null),Q=J=(0,o.Cg)([(0,a.$K)("esri.renderers.HeatmapRenderer")],Q);var ee=i(4576),te=i(49849);let ie=class extends((0,B.OU)(D.o)){constructor(e){super(e),this.color=new h.A([0,0,0,0]),this.label=null,this.threshold=0}};(0,o.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],ie.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],ie.prototype,"label",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],ie.prototype,"threshold",void 0),ie=(0,o.Cg)([(0,a.$K)("esri.renderers.support.OthersCategory")],ie);var se=i(20061),re=i(62724),oe=i(48940);const ne={base:i(2795).A,key:"type",typeMap:{size:oe.A,opacity:re.A}};let le=class extends((0,y.h)((0,B.OU)(p.A))){constructor(e){super(e),this.attributes=null,this.backgroundFillSymbol=null,this.defaultColor=new h.A([0,0,0,0]),this.defaultLabel=null,this.holePercentage=0,this.othersCategory=new ie,this.legendOptions=null,this.outline=null,this.type="pie-chart",this.visualVariables=null}get size(){return this._get("size")??12}set size(e){this._set("size",e)}getSymbol(){return new W.A({size:this.size?this.size/2+(this.outline?.width||0):0})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol(),this.backgroundFillSymbol].filter(ee.Ru)}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes)i.valueExpression&&await(0,u.Dx)(e,t,null,i.valueExpression),i.field&&e.add(i.field)}};(0,o.Cg)([(0,a.MZ)({type:[V],json:{write:!0}})],le.prototype,"attributes",void 0),(0,o.Cg)([(0,a.MZ)(te.As)],le.prototype,"backgroundFillSymbol",void 0),(0,o.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],le.prototype,"defaultColor",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],le.prototype,"defaultLabel",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],le.prototype,"holePercentage",void 0),(0,o.Cg)([(0,a.MZ)({type:ie,json:{write:!0}})],le.prototype,"othersCategory",void 0),(0,o.Cg)([(0,a.MZ)({type:se.A,json:{write:!0}})],le.prototype,"legendOptions",void 0),(0,o.Cg)([(0,a.MZ)({type:k.A,json:{default:null,write:!0}})],le.prototype,"outline",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,cast:$.cr,json:{write:!0}})],le.prototype,"size",null),(0,o.Cg)([(0,q.e)({pieChart:"pie-chart"})],le.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({types:[ne]})],le.prototype,"visualVariables",void 0),le=(0,o.Cg)([(0,a.$K)("esri.renderers.PieChartRenderer")],le);var ae=i(96576),ue=i(93618);const pe={key:"type",base:p.A,typeMap:{heatmap:Q,simple:ae.A,"unique-value":ue.A,"class-breaks":r.A,"dot-density":L,dictionary:j,"pie-chart":le},errorContext:"renderer"},ye={key:"type",base:p.A,typeMap:{simple:ae.A,"unique-value":ue.A,"class-breaks":r.A,heatmap:Q},errorContext:"renderer",validate:function(e){switch(e.type){case"simple":return function(e){if(e.symbol)return e;s.A.getLogger("esri.renderers.support.types").error("Removed invalid 'simple' renderer without a symbol from web scene.")}(e);case"unique-value":return function(e){const t=e.uniqueValueInfos,i=t?.filter(({symbol:e,label:t},i)=>(e||s.A.getLogger("esri.renderers.support.types").error(`Removed invalid unique value info ([${i}] ${t}) without a symbol from web scene.`),!!e));return i?.length!==t?.length&&(e.uniqueValueInfos=i),e}(e);case"class-breaks":return function(e){const t=e.classBreakInfos,i=t?.filter(({symbol:e,label:t},i)=>(e||s.A.getLogger("esri.renderers.support.types").error(`Removed invalid class break info ([${i}] ${t}) without a symbol from web scene.`),!!e));return i?.length!==t?.length&&(e.classBreakInfos=i),e}(e);case"heatmap":return e}}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1214],{61760(e,t,i){i.d(t,{PU:()=>n,YW:()=>a,ex:()=>r,hv:()=>l,zp:()=>o}),i(34727);var s=i(90629);i(78955),i(91829);const r=2.4;function o(e){return(0,s.PN)(e*r)}function n(e){return(0,s.Lz)(e)/r}function l(e,t,i){const s=Math.sqrt(e**2+t**2)/i;return s>1?0:3/(Math.PI*i**2)*(1-s**2)**2}function a(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},41214(e,t,i){i.d(t,{Hg:()=>pe,XJ:()=>ye});var s=i(53966),r=i(86162),o=i(5482),n=i(11254),l=i(4718),a=i(91429),u=i(30524),p=i(92438),y=i(63988),c=i(66344),d=i(60408),h=i(68197);class g{static parse(e,t,i){const s=[],r=[],o=e.split(";");for(let e=0;e<o.length;e++){const n=o[e];if(n){if(n.includes("po:")){const e=n.slice(3).split("|");if(3===e.length){const[t,i,s]=e,o=f(t,i,s);o&&r.push(o)}continue}if(n.includes("|")){for(const e of n.split("|"))if(t.has(e)){s.push(e);break}}else if(t.has(n))s.push(n);else if(0===e){s.length=0,s.push(b(i));break}}}return new g(s,r)}constructor(e,t){this.partNames=e,this.overrides=t}}function m(e,t){if("DashTemplate"===e)return t.split(" ").map(e=>Number(e));if("Color"===e){const e=new h.A(t).toRgba();return[e[0],e[1],e[2],255*e[3]]}return Number(t)}function f(e,t,i){return{type:"CIMPrimitiveOverride",primitiveName:e,propertyName:t,value:m(t,i),defaultValue:null}}function b(e){switch(e){case"esriGeometryPolyline":return"Invalid_L";case"esriGeometryPolygon":return"Invalid_A";default:return"Invalid_P"}}var v=i(73681),w=i(55674),C=i(40863),x=i(93397);const S={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,width:.5,color:[0,0,0,255]}]}};class M{constructor(e,t,i,s){this.url=e,this.fieldMap=i,this.dictionaryInfo=s,this._symbolPartCache=new c.q(100),this._evaluator=(async()=>v.n.from(await s,t,i))()}async getSymbolAsync(e,t,i=!0){const s=await this._evaluator,r=t?.fields??(0,w.lL)(e.attributes),o=s.createDictionaryFieldsIndex(r),n=s.evaluate(e,t?.scale??0,o,t?.spatialReference);if(null==n)return null;const l=(0,d.$B)(e.geometry),a=g.parse(n,s.itemNames,l),u="esriGeometryPoint"===l&&!e.geometry?.hasZ;return await this._cimPartsToCIMSymbol(e,a.partNames,a.overrides,u,t,i,o)}async getSymbolForControlString(e,t,i){const s=await this._evaluator,r=g.parse(e,s.itemNames,t),o="esriGeometryPoint"===t&&!i,n=_(await Promise.all(r.partNames.map(e=>this._getSymbolPart(e))),r.overrides,o);return new C.A({data:n})}async _cimPartsToCIMSymbol(e,t,s,r,o,n,a){const u=t.map(e=>this._getSymbolPart(e,o));let p=await Promise.all(u);if(n&&this.fieldMap&&p.length>0){const{OverrideHelper:t}=await i.e(3650).then(i.bind(i,23650));p=(0,l.o8)(p);for(const i of p)t.applyDictionaryTextOverrides(i,e,this.fieldMap,a,(0,x.bs)(i))}const y=_(p,s,r);return new C.A({data:y})}async _fetchSymbolPart(e,t){const i=await this.dictionaryInfo,s=(this.url+"/"+i.cimRefTemplateUrl).replaceAll(/\{itemName\}/gi,e),{data:r}=await(0,n.A)(s,{responseType:"json",query:{f:"json"},...t});return r}async _getSymbolPart(e,t){let i=this._symbolPartCache.get(e);return i||(i=this._fetchSymbolPart(e,t),this._symbolPartCache.put(e,i)),i}}function _(e,t,i){if(!e||0===e.length)return null;const s={...e[0]};if(e.length>1){s.effects=null,s.symbolLayers=[];for(const t of e){const e=t;if(null!=e.effects)for(const t of e.symbolLayers)null==t.effects?t.effects=e.effects:t.effects.unshift(...e.effects);s.symbolLayers.unshift(...e.symbolLayers)}}return i&&(s.callout=S),{type:"CIMSymbolReference",symbol:s,primitiveOverrides:t}}var I,Z=i(43937);let j=I=class extends((0,y.h)(p.A)){constructor(e){super(e),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this._styleName=null,this._styleVersion=null,this._styleSymbolFields=null,this._styleTextFields=null,this._styleConfigProperties=null,this._styleUISchema=null,this.type="dictionary"}get _loader(){const e=this.getDictionaryInfo();return e.then(e=>{this._styleName=e.dictionary_name,this._styleVersion=e.dictionary_version,this._styleConfigProperties=e.authoringInfo.configuration,this._styleSymbolFields=e.authoringInfo.symbol,this._styleTextFields=e.authoringInfo.text,this._styleUISchema=e.dictionary_ui_schema?JSON.parse(e.dictionary_ui_schema):null}),new M(this.url,this.config,this.fieldMap??{},e)}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}get styleName(){return this._styleName}get styleVersion(){return this._styleVersion}get styleSymbolFields(){return this._styleSymbolFields}get styleTextFields(){return this._styleTextFields}get styleConfigProperties(){return this._styleConfigProperties}get styleUISchema(){return this._styleUISchema}writeVisualVariables(e,t,i,s){s?.origin||super.writeVisualVariables(e,t,i,s)}clone(){return new I({config:(0,l.o8)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,l.o8)(this.fieldMap),url:(0,l.o8)(this.url),visualVariables:(0,l.o8)(this.visualVariables)})}async getSymbolAsync(e,t,i=!0){return this._loader.getSymbolAsync(e,t,i)}async getSymbolForControlString(e,t,i){return this._loader.getSymbolForControlString(e,t,i)}getDictionaryInfo(){return this._dictionaryInfoPromise||(this._dictionaryInfoPromise=this._fetchDictionaryInfo()),this._dictionaryInfoPromise}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,u.Dx)(e,t,null,this.scaleExpression);for(const i in this.fieldMap){const s=this.fieldMap[i];t.has(s)&&e.add(s)}}get arcadeRequired(){return!0}getSymbol(){return null}get symbols(){return[]}async _fetchDictionaryInfo(){const{data:e}=await(0,n.A)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"}});return e}};(0,o.Cg)([(0,a.MZ)({type:M})],j.prototype,"_loader",null),(0,o.Cg)([(0,a.MZ)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],j.prototype,"config",void 0),(0,o.Cg)([(0,a.MZ)({type:Object,json:{write:!0}})],j.prototype,"fieldMap",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],j.prototype,"scaleExpression",void 0),(0,o.Cg)([(0,Z.K)("scaleExpression")],j.prototype,"writeData",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],j.prototype,"scaleExpressionTitle",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"url",void 0),(0,o.Cg)([(0,a.MZ)({type:String})],j.prototype,"styleName",null),(0,o.Cg)([(0,a.MZ)({type:String})],j.prototype,"styleVersion",null),(0,o.Cg)([(0,a.MZ)({type:[String]})],j.prototype,"styleSymbolFields",null),(0,o.Cg)([(0,a.MZ)({type:[String]})],j.prototype,"styleTextFields",null),(0,o.Cg)([(0,a.MZ)({type:[Object]})],j.prototype,"styleConfigProperties",null),(0,o.Cg)([(0,a.MZ)({type:Object})],j.prototype,"styleUISchema",null),(0,o.Cg)([(0,Z.K)("visualVariables")],j.prototype,"writeVisualVariables",null),j=I=(0,o.Cg)([(0,a.$K)("esri.renderers.DictionaryRenderer")],j);var A,D=i(25482),P=i(56507);let E=A=class extends D.o{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(s.A.getLogger(this).error(".field: field must be a string value"),null):(0,P.GX)(e)}clone(){return new A({color:this.color?.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o.Cg)([(0,a.MZ)({type:h.A,json:{type:[Number],write:!0}})],E.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"field",void 0),(0,o.Cg)([(0,a.wg)("field")],E.prototype,"castField",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"label",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"valueExpression",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"valueExpressionTitle",void 0),E=A=(0,o.Cg)([(0,a.$K)("esri.renderers.support.AttributeColorInfo")],E);const V=E;var N;let T=N=class extends D.o{constructor(e){super(e),this.unit=null}clone(){return new N({unit:this.unit})}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"unit",void 0),T=N=(0,o.Cg)([(0,a.$K)("esri.renderers.support.DotDensityLegendOptions")],T);const R=T;var O,F=i(94985),k=i(31593),q=i(93223);let L=O=class extends((0,y.h)(p.A)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new h.A([0,0,0,0]),this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new k.A,this.dotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new F.A({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}get visualVariables(){return super.visualVariables}set visualVariables(e){super.visualVariables=e}clone(){return new O({attributes:(0,l.o8)(this.attributes),backgroundColor:(0,l.o8)(this.backgroundColor),dotBlendingEnabled:(0,l.o8)(this.dotBlendingEnabled),dotShape:(0,l.o8)(this.dotShape),dotSize:(0,l.o8)(this.dotSize),dotValue:(0,l.o8)(this.dotValue),legendOptions:(0,l.o8)(this.legendOptions),outline:(0,l.o8)(this.outline),referenceScale:(0,l.o8)(this.referenceScale),seed:(0,l.o8)(this.seed),visualVariables:(0,l.o8)(this.visualVariables),authoringInfo:(0,l.o8)(this.authoringInfo)})}getControllerHash(){const e=this.attributes?.map(e=>e.field||e.valueExpression||"");return`${e}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes??[])i.valueExpression&&await(0,u.Dx)(e,t,null,i.valueExpression),i.field&&e.add(i.field)}};(0,o.Cg)([(0,a.MZ)({type:[V],json:{write:!0}})],L.prototype,"attributes",void 0),(0,o.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],L.prototype,"backgroundColor",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],L.prototype,"dotBlendingEnabled",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!1}})],L.prototype,"dotShape",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],L.prototype,"dotSize",void 0),(0,o.Cg)([(0,a.MZ)({type:R,json:{write:!0}})],L.prototype,"legendOptions",void 0),(0,o.Cg)([(0,a.MZ)({type:k.A,json:{default:null,write:!0}})],L.prototype,"outline",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],L.prototype,"dotValue",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],L.prototype,"referenceScale",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],L.prototype,"seed",void 0),(0,o.Cg)([(0,q.e)({dotDensity:"dot-density"})],L.prototype,"type",void 0),L=O=(0,o.Cg)([(0,a.$K)("esri.renderers.DotDensityRenderer")],L);var z,$=i(90629),K=i(30943);let U=z=class extends D.o{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new z({color:this.color&&this.color.clone(),ratio:this.ratio})}};(0,o.Cg)([(0,a.MZ)({type:h.A,json:{type:[P.jz],default:null,write:{isRequired:!0}}})],U.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],U.prototype,"ratio",void 0),U=z=(0,o.Cg)([(0,a.$K)("esri.renderers.support.HeatmapColorStop")],U);var B=i(69540);let H=class extends((0,B.OU)(D.o)){constructor(e){super(e),this.minLabel=null,this.maxLabel=null,this.title=null}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],H.prototype,"minLabel",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],H.prototype,"maxLabel",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],H.prototype,"title",void 0),H=(0,o.Cg)([(0,a.$K)("esri.renderers.support.HeatmapLegendOptions")],H);const G=H;var J,X=i(61760),W=i(53930);function Y(e){if(null!=e){const{maxDensity:t,minDensity:i,radius:s}=e;if(null!=t||null!=i||null!=s){const{blurRadius:t,maxPixelIntensity:i,minPixelIntensity:s,...r}=e;return r}}return e}let Q=J=class extends p.A{constructor(e){super(e),this.authoringInfo=null,this.colorStops=[new U({ratio:0,color:new h.A("rgba(255, 140, 0, 0)")}),new U({ratio:.75,color:new h.A("rgba(255, 140, 0, 1)")}),new U({ratio:.9,color:new h.A("rgba(255, 0, 0, 1)")})],this.field=null,this.legendOptions=null,this.maxDensity=.04,this.minDensity=0,this.referenceScale=0,this.type="heatmap",this.valueExpression=null,this.valueExpressionTitle=null}normalizeCtorArgs(e){return Y(e)}get blurRadius(){return(0,X.PU)(this.radius)}set blurRadius(e){const t=this.maxPixelIntensity,i=this.minPixelIntensity;this._set("radius",(0,X.zp)(e)),this._set("maxDensity",t*this._pixelIntensityToDensity),this._set("minDensity",i*this._pixelIntensityToDensity)}get maxPixelIntensity(){return this.maxDensity/this._pixelIntensityToDensity}set maxPixelIntensity(e){this._set("maxDensity",e*this._pixelIntensityToDensity)}get minPixelIntensity(){return this.minDensity/this._pixelIntensityToDensity}set minPixelIntensity(e){this._set("minDensity",e*this._pixelIntensityToDensity)}get radius(){return this._get("radius")??18}set radius(e){this._set("radius",e)}get _pixelIntensityToDensity(){return 24/(X.ex**2*this.blurRadius**4)}read(e,t){e=Y(e),super.read(e,t)}getSymbol(){return new W.A}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}async collectRequiredFields(e,t){const i=this.field,s=this.valueExpression;i&&"string"==typeof i&&(0,u.rq)(e,t,i),s&&"string"==typeof s&&await(0,u.Dx)(e,t,null,s)}clone(){return new J({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:(0,l.o8)(this.colorStops),field:this.field,legendOptions:(0,l.o8)(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o.Cg)([(0,a.MZ)({type:K.A,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],Q.prototype,"authoringInfo",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Q.prototype,"blurRadius",null),(0,o.Cg)([(0,a.MZ)({type:[U],json:{write:{isRequired:!0}}})],Q.prototype,"colorStops",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],Q.prototype,"field",void 0),(0,o.Cg)([(0,a.MZ)({type:G,json:{write:!0}})],Q.prototype,"legendOptions",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Q.prototype,"maxDensity",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Q.prototype,"maxPixelIntensity",null),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Q.prototype,"minDensity",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Q.prototype,"minPixelIntensity",null),(0,o.Cg)([(0,a.MZ)({type:Number,cast:$.cr,json:{write:!0}})],Q.prototype,"radius",null),(0,o.Cg)([(0,a.MZ)({type:Number,range:{min:0},json:{default:0,write:!0}})],Q.prototype,"referenceScale",void 0),(0,o.Cg)([(0,q.e)({heatmap:"heatmap"})],Q.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],Q.prototype,"valueExpression",void 0),(0,o.Cg)([(0,a.MZ)({type:String})],Q.prototype,"valueExpressionTitle",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],Q.prototype,"_pixelIntensityToDensity",null),Q=J=(0,o.Cg)([(0,a.$K)("esri.renderers.HeatmapRenderer")],Q);var ee=i(4576),te=i(49849);let ie=class extends((0,B.OU)(D.o)){constructor(e){super(e),this.color=new h.A([0,0,0,0]),this.label=null,this.threshold=0}};(0,o.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],ie.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],ie.prototype,"label",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],ie.prototype,"threshold",void 0),ie=(0,o.Cg)([(0,a.$K)("esri.renderers.support.OthersCategory")],ie);var se=i(20061),re=i(62724),oe=i(48940);const ne={base:i(2795).A,key:"type",typeMap:{size:oe.A,opacity:re.A}};let le=class extends((0,y.h)((0,B.OU)(p.A))){constructor(e){super(e),this.attributes=null,this.backgroundFillSymbol=null,this.defaultColor=new h.A([0,0,0,0]),this.defaultLabel=null,this.holePercentage=0,this.othersCategory=new ie,this.legendOptions=null,this.outline=null,this.type="pie-chart",this.visualVariables=null}get size(){return this._get("size")??12}set size(e){this._set("size",e)}getSymbol(){return new W.A({size:this.size?this.size/2+(this.outline?.width||0):0})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol(),this.backgroundFillSymbol].filter(ee.Ru)}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes)i.valueExpression&&await(0,u.Dx)(e,t,null,i.valueExpression),i.field&&e.add(i.field)}};(0,o.Cg)([(0,a.MZ)({type:[V],json:{write:!0}})],le.prototype,"attributes",void 0),(0,o.Cg)([(0,a.MZ)(te.As)],le.prototype,"backgroundFillSymbol",void 0),(0,o.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],le.prototype,"defaultColor",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],le.prototype,"defaultLabel",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],le.prototype,"holePercentage",void 0),(0,o.Cg)([(0,a.MZ)({type:ie,json:{write:!0}})],le.prototype,"othersCategory",void 0),(0,o.Cg)([(0,a.MZ)({type:se.A,json:{write:!0}})],le.prototype,"legendOptions",void 0),(0,o.Cg)([(0,a.MZ)({type:k.A,json:{default:null,write:!0}})],le.prototype,"outline",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,cast:$.cr,json:{write:!0}})],le.prototype,"size",null),(0,o.Cg)([(0,q.e)({pieChart:"pie-chart"})],le.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({types:[ne]})],le.prototype,"visualVariables",void 0),le=(0,o.Cg)([(0,a.$K)("esri.renderers.PieChartRenderer")],le);var ae=i(96576),ue=i(93618);const pe={key:"type",base:p.A,typeMap:{heatmap:Q,simple:ae.A,"unique-value":ue.A,"class-breaks":r.A,"dot-density":L,dictionary:j,"pie-chart":le},errorContext:"renderer"},ye={key:"type",base:p.A,typeMap:{simple:ae.A,"unique-value":ue.A,"class-breaks":r.A,heatmap:Q},errorContext:"renderer",validate:function(e){switch(e.type){case"simple":return function(e){if(e.symbol)return e;s.A.getLogger("esri.renderers.support.types").error("Removed invalid 'simple' renderer without a symbol from web scene.")}(e);case"unique-value":return function(e){const t=e.uniqueValueInfos,i=t?.filter(({symbol:e,label:t},i)=>(e||s.A.getLogger("esri.renderers.support.types").error(`Removed invalid unique value info ([${i}] ${t}) without a symbol from web scene.`),!!e));return i?.length!==t?.length&&(e.uniqueValueInfos=i),e}(e);case"class-breaks":return function(e){const t=e.classBreakInfos,i=t?.filter(({symbol:e,label:t},i)=>(e||s.A.getLogger("esri.renderers.support.types").error(`Removed invalid class break info ([${i}] ${t}) without a symbol from web scene.`),!!e));return i?.length!==t?.length&&(e.classBreakInfos=i),e}(e);case"heatmap":return e}}}}}]);
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2942],{4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>l,jh:()=>s,l5:()=>o,yH:()=>u});var r=n(34275),i=n(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function a(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function o(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e,t){if(0===t.length)return a(e);if(0===e.length)return a(t);const n=s(e.length+t.length);for(let t=0;t<e.length;++t)n[t]=e[t];for(let r=0;r<t.length;++r)n[e.length+r]=t[r];return n}function l(e){return[...e]}function c(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>b,DC:()=>d,Ej:()=>f,Ie:()=>x,Jt:()=>g,Ne:()=>v,RF:()=>c,aI:()=>I,fA:()=>a,gE:()=>u,hZ:()=>h,iT:()=>m,is:()=>y,qv:()=>w,vI:()=>p,vY:()=>o,v_:()=>M,vt:()=>s,w1:()=>l}),n(35522);var r=n(5443),i=(n(19419),n(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,n,r,i,a,o=s()){return o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a,o}function o(e,t=s()){return function(e,t,n,r=s()){return h(r,w),function(e,t,n=0,r=t.length/3){let i=e[0],s=e[1],a=e[2],o=e[3],u=e[4],l=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),a=Math.min(a,t[n+3*e+2]),o=Math.max(o,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),l=Math.max(l,t[n+3*e+2]);e[0]=i,e[1]=s,e[2]=a,e[3]=o,e[4]=u,e[5]=l}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){const[n,r,s,a,o,u]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=o,t[8]=s,t[9]=n,t[10]=o,t[11]=u,t[12]=a,t[13]=r,t[14]=s,t[15]=a,t[16]=r,t[17]=u,t[18]=a,t[19]=o,t[20]=s,t[21]=a,t[22]=o,t[23]=u,t}function l(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function v(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function p(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function x(e){return e?h(e,w):s(w)}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function b(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function y(e){return 6===e.length}function I(e,t,n){if(null==e||null==t)return e===t;if(!y(e)||!y(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},54339(e,t,n){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},37352(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),s=n(7762),a=n(25482),o=n(91429);let u=r=class extends a.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"floorField",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.LayerFloorInfo")],u)},5682(e,t,n){n.d(t,{s1:()=>c});var r=n(11254),i=(n(4576),n(49186),n(44208),n(58083),n(9093)),s=(n(35522),n(51850)),a=(n(91218),n(16930),n(27993),n(19419));n(39516),n(30524),n(61956);var o=n(59418);n(73941),n(48353);var u=n(91829);(0,u.fA)(0,0,0,.2);(0,u.fA)(0,0,0,.2),n(34727);var l=n(57005);async function c(e,t,n,i,s,a,u,l){const c=[];for(const r of t)if(r&&s.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;c.push({url:t,storageInfo:r})}const d=await Promise.allSettled(c.map(e=>(0,r.A)(e.url,{responseType:"array-buffer",query:{...u,token:a},signal:l?.signal}).then(t=>(0,o.m0)(e.storageInfo,t.data)))),m=[];for(const e of i){const t={};for(let n=0;n<d.length;n++){const r=d[n];if("fulfilled"===r.status){const i=r.value;t[c[n].storageInfo.name]=(0,o.E5)(i,e)}}m.push(t)}return m}n(22911),(0,a.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,a.vt)(),(0,a.vt)(),new l.ab,(0,s.vt)(),new Array(72),(0,i.vt)()},49255(e,t,n){function r(e){return function(e){return l(e)||4===e}(e)||function(e){return 5===(t=e)||6===t||7===t||8===e||9===e;var t}(e)}function i(e){return 10===e||11===e}function s(e){return u(e)||i(e)}function a(e){return 1===e}function o(e){return 2===e}function u(e){return 0===e||function(e){return a(e)||o(e)}(e)}function l(e){return function(e){return u(e)||i(e)}(e)||c(e)}function c(e){return 3===e}n.d(t,{Ex:()=>i,Rb:()=>o,Sp:()=>a,_o:()=>u,eh:()=>c,gr:()=>l,i3:()=>s,uw:()=>r})},53466(e,t,n){n.d(t,{U:()=>i});var r=n(31821);function i(e,t){switch(t.textureCoordinateType){case 1:return e.attributes.add("uv0","vec2"),e.varyings.add("vuv0","vec2"),void e.vertex.code.add(r.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return e.attributes.add("uv0","vec2"),e.attributes.add("uvRegion","vec4"),e.varyings.add("vuv0","vec2"),e.varyings.add("vuvRegion","vec4"),void e.vertex.code.add(r.H`void forwardTextureCoordinates() {
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2942],{4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>l,jh:()=>s,l5:()=>o,yH:()=>u});var r=n(34275),i=n(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function a(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function o(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e,t){if(0===t.length)return a(e);if(0===e.length)return a(t);const n=s(e.length+t.length);for(let t=0;t<e.length;++t)n[t]=e[t];for(let r=0;r<t.length;++r)n[e.length+r]=t[r];return n}function l(e){return[...e]}function c(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>b,DC:()=>d,Ej:()=>f,Ie:()=>x,Jt:()=>g,Ne:()=>v,RF:()=>c,aI:()=>I,fA:()=>a,gE:()=>u,hZ:()=>h,iT:()=>m,is:()=>y,qv:()=>w,vI:()=>p,vY:()=>o,v_:()=>M,vt:()=>s,w1:()=>l}),n(35522);var r=n(5443),i=(n(19419),n(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,n,r,i,a,o=s()){return o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=i,o[5]=a,o}function o(e,t=s()){return function(e,t,n,r=s()){return h(r,w),function(e,t,n=0,r=t.length/3){let i=e[0],s=e[1],a=e[2],o=e[3],u=e[4],l=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),a=Math.min(a,t[n+3*e+2]),o=Math.max(o,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),l=Math.max(l,t[n+3*e+2]);e[0]=i,e[1]=s,e[2]=a,e[3]=o,e[4]=u,e[5]=l}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){const[n,r,s,a,o,u]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=o,t[8]=s,t[9]=n,t[10]=o,t[11]=u,t[12]=a,t[13]=r,t[14]=s,t[15]=a,t[16]=r,t[17]=u,t[18]=a,t[19]=o,t[20]=s,t[21]=a,t[22]=o,t[23]=u,t}function l(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function v(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function p(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function x(e){return e?h(e,w):s(w)}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function b(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function y(e){return 6===e.length}function I(e,t,n){if(null==e||null==t)return e===t;if(!y(e)||!y(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},54339(e,t,n){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},37352(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),s=n(7762),a=n(25482),o=n(91429);let u=r=class extends a.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"floorField",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.LayerFloorInfo")],u)},5682(e,t,n){n.d(t,{s1:()=>c});var r=n(11254),i=(n(4576),n(49186),n(44208),n(58083),n(9093)),s=(n(35522),n(51850)),a=(n(91218),n(16930),n(27993),n(19419));n(39516),n(30524),n(97552);var o=n(59418);n(73941),n(48353),n(90629);var u=n(91829);(0,u.fA)(0,0,0,.2);(0,u.fA)(0,0,0,.2),n(34727);var l=n(57005);async function c(e,t,n,i,s,a,u,l){const c=[];for(const r of t)if(r&&s.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;c.push({url:t,storageInfo:r})}const d=await Promise.allSettled(c.map(e=>(0,r.A)(e.url,{responseType:"array-buffer",query:{...u,token:a},signal:l?.signal}).then(t=>(0,o.m0)(e.storageInfo,t.data)))),m=[];for(const e of i){const t={};for(let n=0;n<d.length;n++){const r=d[n];if("fulfilled"===r.status){const i=r.value;t[c[n].storageInfo.name]=(0,o.E5)(i,e)}}m.push(t)}return m}n(22911),(0,a.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,a.vt)(),(0,a.vt)(),new l.ab,(0,s.vt)(),new Array(72),(0,i.vt)()},49255(e,t,n){function r(e){return function(e){return l(e)||4===e}(e)||function(e){return 5===(t=e)||6===t||7===t||8===e||9===e;var t}(e)}function i(e){return 10===e||11===e}function s(e){return u(e)||i(e)}function a(e){return 1===e}function o(e){return 2===e}function u(e){return 0===e||function(e){return a(e)||o(e)}(e)}function l(e){return function(e){return u(e)||i(e)}(e)||c(e)}function c(e){return 3===e}n.d(t,{Ex:()=>i,Rb:()=>o,Sp:()=>a,_o:()=>u,eh:()=>c,gr:()=>l,i3:()=>s,uw:()=>r})},53466(e,t,n){n.d(t,{U:()=>i});var r=n(31821);function i(e,t){switch(t.textureCoordinateType){case 1:return e.attributes.add("uv0","vec2"),e.varyings.add("vuv0","vec2"),void e.vertex.code.add(r.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return e.attributes.add("uv0","vec2"),e.attributes.add("uvRegion","vec4"),e.varyings.add("vuv0","vec2"),e.varyings.add("vuvRegion","vec4"),void e.vertex.code.add(r.H`void forwardTextureCoordinates() {
2
2
  vuv0 = uv0;
3
3
  vuvRegion = uvRegion;
4
4
  }`);default:t.textureCoordinateType;case 0:return void e.vertex.code.add(r.H`void forwardTextureCoordinates() {}`);case 3:return}}},99208(e,t,n){n.d(t,{r:()=>a});var r=n(53466),i=n(31821);function s(e){e.fragment.code.add(i.H`vec4 textureAtlasLookup(sampler2D tex, vec2 textureCoordinates, vec4 atlasRegion) {