@arcgis/core 6.0.0-next.6 → 6.0.0-next.8

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 (257) hide show
  1. package/arcade/functions/knowledgegraph.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{f09c9d9a554c33a753b4.js → 02253bdffbd580af22d8.js} +1 -1
  4. package/assets/esri/core/workers/chunks/06ab24a083c3229228dd.js +1 -0
  5. package/assets/esri/core/workers/chunks/09a63cc1987f8636c5b0.js +1 -0
  6. package/assets/esri/core/workers/chunks/{8ba32d3a0df4a206ef1c.js → 15cc2c295682f48030f9.js} +1 -1
  7. package/assets/esri/core/workers/chunks/17b76e0d401c7e396d10.js +1 -0
  8. package/assets/esri/core/workers/chunks/{c18189710d6198516175.js → 19b9d393046a780e6c3f.js} +1 -1
  9. package/assets/esri/core/workers/chunks/1b35ec54968fbeec17ce.js +1 -0
  10. package/assets/esri/core/workers/chunks/1c0c5cb13c2590aae906.js +1 -0
  11. package/assets/esri/core/workers/chunks/1e0d2715d603f48a7e0b.js +1 -0
  12. package/assets/esri/core/workers/chunks/{83589144eeeb08f45557.js → 2aeb5cc32284dd3e4d22.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{9a7fc93cc693fd12b5d8.js → 2b6c74646ff475a6e302.js} +1 -1
  14. package/assets/esri/core/workers/chunks/2d9a1f23ec6ce90723ac.js +1 -0
  15. package/assets/esri/core/workers/chunks/340621182db9e8edbec2.js +1 -0
  16. package/assets/esri/core/workers/chunks/{71f739bb3f7350704af6.js → 384ae10053d35940de73.js} +1 -1
  17. package/assets/esri/core/workers/chunks/3b3e519f15ed52c83f0c.js +1 -0
  18. package/assets/esri/core/workers/chunks/{72019baeba520edb6bb0.js → 3b737dae6efed627406e.js} +1 -1
  19. package/assets/esri/core/workers/chunks/3c0ed15b544df6fb0903.js +1 -0
  20. package/assets/esri/core/workers/chunks/3ffda5bf0b91700dc308.js +1 -0
  21. package/assets/esri/core/workers/chunks/{1317ecdfd0cfa683a493.js → 42323093827adffe56d3.js} +1 -1
  22. package/assets/esri/core/workers/chunks/451d7d456df0f4466563.js +1 -0
  23. package/assets/esri/core/workers/chunks/4a6b92ecbb1f1c55cc43.js +1 -0
  24. package/assets/esri/core/workers/chunks/4e544de61f07ca660236.js +1 -0
  25. package/assets/esri/core/workers/chunks/{67ac6b326bf80fc3d33d.js → 53be85d04cd2da4f391d.js} +1 -1
  26. package/assets/esri/core/workers/chunks/54778dec1598818d93cb.js +1 -0
  27. package/assets/esri/core/workers/chunks/{06e7400f5ebe0719b81c.js → 5a5d80c2519aa3ea8878.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{fb4ff0ac2bc445fec413.js → 5b434e8c98e7119d4a3b.js} +1 -1
  29. package/assets/esri/core/workers/chunks/606ea251075fe81a1206.js +1 -0
  30. package/assets/esri/core/workers/chunks/{3ac9dcbb0571a2580236.js → 62c8c9ad09e0166207fd.js} +1 -1
  31. package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +1 -0
  32. package/assets/esri/core/workers/chunks/{ac4cc49104d26c384e98.js → 658b2642ab6880770e4e.js} +1 -1
  33. package/assets/esri/core/workers/chunks/68be3fb88ca61f82fb90.js +1 -0
  34. package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +1 -0
  35. package/assets/esri/core/workers/chunks/6ebe73f69ae822053b70.js +1 -0
  36. package/assets/esri/core/workers/chunks/6ef647b7769d27529f9c.js +1 -0
  37. package/assets/esri/core/workers/chunks/709e019885822b1f6f3e.js +1 -0
  38. package/assets/esri/core/workers/chunks/70cc2d79653d66e85b58.js +1 -0
  39. package/assets/esri/core/workers/chunks/{cbe6c0f32608cb504695.js → 776ae25a34352d3468bc.js} +1 -1
  40. package/assets/esri/core/workers/chunks/8730e7e6e0296f43f10b.js +1 -0
  41. package/assets/esri/core/workers/chunks/8bea0d706ede6f84f8aa.js +1 -0
  42. package/assets/esri/core/workers/chunks/900181f68449d8f82eeb.js +1 -0
  43. package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +1 -0
  44. package/assets/esri/core/workers/chunks/{1ef39aef6b33c530cbe4.js → 966d0832a3c1f03668a0.js} +1 -1
  45. package/assets/esri/core/workers/chunks/9a28a66807a1e3557018.js +1 -0
  46. package/assets/esri/core/workers/chunks/{2f9033890c465acff698.js → 9bf48a907f91ea004648.js} +1 -1
  47. package/assets/esri/core/workers/chunks/9c7fa9d324fa0bf64d9c.js +1 -0
  48. package/assets/esri/core/workers/chunks/9ce91a909eccc4dfe388.js +1 -0
  49. package/assets/esri/core/workers/chunks/{1ba1f705b6ce5c8ea702.js → a655ebdb4bf0660615a2.js} +1 -1
  50. package/assets/esri/core/workers/chunks/ad76f7ab2f3e6d5a5b3c.js +1 -0
  51. package/assets/esri/core/workers/chunks/af349c7bc8ef41a0e1bd.js +1 -0
  52. package/assets/esri/core/workers/chunks/{250d3be6d3849d71fed8.js → c29c474c4b1049352d3e.js} +1 -1
  53. package/assets/esri/core/workers/chunks/c8ba0673d1b87216e619.js +1 -0
  54. package/assets/esri/core/workers/chunks/{4d3f97a48046021713a6.js → ceb112fe7aef354f8051.js} +1 -1
  55. package/assets/esri/core/workers/chunks/d6ad4390df576198e45b.js +1 -0
  56. package/assets/esri/core/workers/chunks/ddf0671976648f621269.js +1 -0
  57. package/assets/esri/core/workers/chunks/ded8b64a46992c3ae693.js +1 -0
  58. package/assets/esri/core/workers/chunks/{0b36abcbf03037b4073d.js → e1af43e2a8f2ef1059e3.js} +1 -1
  59. package/assets/esri/core/workers/chunks/eaf6d587477399a83088.js +1 -0
  60. package/assets/esri/core/workers/chunks/ecaac39dde7ec4213264.js +1 -0
  61. package/assets/esri/core/workers/chunks/f122c18af10e56f9ec2b.js +1 -0
  62. package/assets/esri/core/workers/chunks/f31b424a3667686af10c.js +1 -0
  63. package/assets/esri/core/workers/chunks/{711cfb84659cb4437679.js → f528ac5c648ca6a98582.js} +1 -1
  64. package/assets/esri/core/workers/chunks/f92364afaefbac7e8f77.js +1 -0
  65. package/assets/esri/core/workers/chunks/fb444954be74c1962ced.js +1 -0
  66. package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +1 -0
  67. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationSettings.scss +1 -1
  68. package/assets/esri/themes/base/widgets/_Features.scss +1 -1
  69. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +5 -9
  70. package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +2 -4
  71. package/assets/esri/themes/base/widgets/_Tooltip.scss +1 -1
  72. package/assets/esri/themes/dark/main.css +1 -1
  73. package/assets/esri/themes/light/main.css +1 -1
  74. package/assets/esri/themes/light/view.css +1 -1
  75. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  76. package/chunks/GlobalIllumination.glsl.js +4 -2
  77. package/chunks/GlobalIlluminationBlur.glsl.js +3 -5
  78. package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
  79. package/config.js +1 -1
  80. package/core/colorUtils.js +1 -1
  81. package/core/has.js +1 -1
  82. package/core/workers/workerFactory.js +1 -1
  83. package/form/elements/inputs/DynamicChoiceInput.d.ts +35 -5
  84. package/geometry/projectionUtils.js +1 -1
  85. package/geometry/support/scaleUtils.js +1 -1
  86. package/kernel.js +1 -1
  87. package/layers/ParquetLayer.d.ts +3 -2
  88. package/layers/ParquetLayer.js +1 -1
  89. package/layers/graphics/data/FeatureStore.js +1 -1
  90. package/layers/graphics/data/QueryEngineResult.js +1 -1
  91. package/layers/graphics/data/geometryUtils.js +1 -1
  92. package/layers/graphics/data/projectionSupport.js +1 -1
  93. package/layers/knowledgeGraph/layerUtils.js +1 -1
  94. package/layers/knowledgeGraph/nodeMovementUtils.js +1 -1
  95. package/layers/mixins/ScaleRangeLayer.js +1 -1
  96. package/layers/mixins/SublayersOwner.js +1 -1
  97. package/layers/raster/datasets/TIFFRaster.js +1 -1
  98. package/layers/support/Sublayer.js +1 -1
  99. package/layers/support/SubtypeSublayer.js +1 -1
  100. package/package.json +2 -2
  101. package/popup/FeaturesModel.d.ts +26 -5
  102. package/popup/FeaturesModel.js +1 -1
  103. package/rest/support/printTaskUtils.js +1 -1
  104. package/symbols/cim/CIMSymbolHelper.js +1 -1
  105. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  106. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  107. package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
  108. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  109. package/views/2d/layers/LayerView2D.js +1 -1
  110. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  111. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  112. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  113. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  114. package/views/2d/layers/features/sources/strategies/AFeatureTileLoadStrategy.js +1 -1
  115. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  116. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  117. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  118. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  119. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  120. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  121. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  122. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  123. package/views/3d/analysis/Viewshed/types.d.ts +3 -1
  124. package/views/3d/environment/Environment.d.ts +2 -2
  125. package/views/3d/environment/Environment.js +1 -1
  126. package/views/3d/environment/EnvironmentView.js +2 -0
  127. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  128. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  129. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  130. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  131. package/views/3d/layers/FlowSubView3D.js +1 -1
  132. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  133. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  134. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  135. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  136. package/views/3d/layers/MediaLayerView3D.js +1 -1
  137. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  138. package/views/3d/layers/RouteLayerView3D.js +1 -1
  139. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  140. package/views/3d/layers/SceneLayerView3D.js +1 -1
  141. package/views/3d/layers/TiledLayerView3D.js +1 -1
  142. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  143. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  144. package/views/3d/layers/graphics/Labeler.js +1 -1
  145. package/views/3d/layers/support/FeatureTile.js +1 -1
  146. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  147. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  148. package/views/3d/layers/support/SampledGeometryMaxDistanceRatio.js +1 -1
  149. package/views/3d/support/elevationUpdateUtils.js +1 -1
  150. package/views/3d/support/popupHitTest.js +1 -1
  151. package/views/3d/terrain/TerrainRenderer.js +1 -1
  152. package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
  153. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
  154. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  155. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +2 -2
  156. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  157. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  158. package/views/SceneView.js +1 -1
  159. package/views/draw/Draw.d.ts +1 -1
  160. package/views/draw/support/InteractiveHandle.js +1 -1
  161. package/views/interactive/options/SnappingOptions.d.ts +1 -0
  162. package/views/interactive/options/TooltipOptions.d.ts +1 -0
  163. package/views/interactive/options/ViewOptions.d.ts +1 -0
  164. package/views/interactive/snapping/FeatureSnappingSourceInfo.js +1 -1
  165. package/views/interactive/support/Units.d.ts +1 -0
  166. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  167. package/views/interactive/tooltip/components/ElevationModeSelect.js +1 -1
  168. package/views/layers/LayerView.js +1 -1
  169. package/views/layers/LineOfSightLayerView.d.ts +3 -4
  170. package/views/layers/ViewshedLayerView.d.ts +5 -6
  171. package/views/support/layerViewUtils.js +1 -1
  172. package/views/support/projectionUtils.js +1 -1
  173. package/widgets/BasemapLayerList.js +1 -1
  174. package/widgets/BatchAttributeForm.js +1 -1
  175. package/widgets/DirectionalPad.js +1 -1
  176. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  177. package/widgets/Editor.d.ts +10 -0
  178. package/widgets/Expand.js +1 -1
  179. package/widgets/FeatureForm.d.ts +2 -2
  180. package/widgets/FeatureForm.js +1 -1
  181. package/widgets/FeatureTable/FieldColumn.js +1 -1
  182. package/widgets/FeatureTable.js +1 -1
  183. package/widgets/Features/FeaturesDrillIn.js +1 -1
  184. package/widgets/Features.js +1 -1
  185. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  186. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  187. package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
  188. package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
  189. package/widgets/PanoramicVideoViewer.js +1 -1
  190. package/widgets/Print.js +1 -1
  191. package/widgets/ScaleRangeSlider.js +1 -1
  192. package/widgets/Search/SearchResultRenderer.js +1 -1
  193. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  194. package/widgets/Sketch/SketchViewModel.d.ts +1 -1
  195. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  196. package/widgets/Sketch.d.ts +1 -1
  197. package/widgets/Track/TrackViewModel.d.ts +1 -1
  198. package/widgets/UtilityNetworkAssociations.js +1 -1
  199. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  200. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  201. package/widgets/UtilityNetworkTrace/types.d.ts +2 -2
  202. package/widgets/UtilityNetworkTrace.js +1 -1
  203. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  204. package/widgets/ValuePicker.js +1 -1
  205. package/widgets/VideoPlayer/components/PlayerActionsGroup.js +1 -1
  206. package/widgets/VideoPlayer/components/PlayerControlsGroup.js +1 -1
  207. package/widgets/support/GridControls.js +1 -1
  208. package/widgets/support/PluginSettingsControls.js +1 -1
  209. package/widgets/support/SelectionToolbar.js +1 -1
  210. package/widgets/support/SnappingControls.js +1 -1
  211. package/widgets/support/componentsUtils.js +1 -1
  212. package/assets/esri/core/workers/chunks/00a600c71ceebe7bfeee.js +0 -1
  213. package/assets/esri/core/workers/chunks/00d24415bdeb0adae3df.js +0 -1
  214. package/assets/esri/core/workers/chunks/0193df3f9fb23633da87.js +0 -1
  215. package/assets/esri/core/workers/chunks/02d4f91652a79d2b637e.js +0 -1
  216. package/assets/esri/core/workers/chunks/07aa6d36f1006b6ab7ff.js +0 -1
  217. package/assets/esri/core/workers/chunks/107b025dc5b09465a78f.js +0 -1
  218. package/assets/esri/core/workers/chunks/1f43e06dcfe56229bb0f.js +0 -1
  219. package/assets/esri/core/workers/chunks/25d6c674b1c4829f040f.js +0 -1
  220. package/assets/esri/core/workers/chunks/25e6013e2c095629b236.js +0 -1
  221. package/assets/esri/core/workers/chunks/2a570ce6b99dac6ee996.js +0 -1
  222. package/assets/esri/core/workers/chunks/2c90f7a6432cd716db8b.js +0 -1
  223. package/assets/esri/core/workers/chunks/2e6a2f4d686b71249c0e.js +0 -1
  224. package/assets/esri/core/workers/chunks/303fde8f3459dde16555.js +0 -1
  225. package/assets/esri/core/workers/chunks/350540770781b281c39a.js +0 -1
  226. package/assets/esri/core/workers/chunks/3880d2c7fb14955d7f93.js +0 -1
  227. package/assets/esri/core/workers/chunks/3b017b718ea2d4ed498f.js +0 -1
  228. package/assets/esri/core/workers/chunks/43fc42405167a5537039.js +0 -1
  229. package/assets/esri/core/workers/chunks/4d82db661365daa513a6.js +0 -1
  230. package/assets/esri/core/workers/chunks/56851011276de0b3e318.js +0 -1
  231. package/assets/esri/core/workers/chunks/5f3ab77a79c408423fde.js +0 -1
  232. package/assets/esri/core/workers/chunks/633a9051580c5302d2f7.js +0 -1
  233. package/assets/esri/core/workers/chunks/6469c0d18d3663e7da4b.js +0 -1
  234. package/assets/esri/core/workers/chunks/65654e481cce9ae40e54.js +0 -1
  235. package/assets/esri/core/workers/chunks/669e39c3437d7273f0c7.js +0 -1
  236. package/assets/esri/core/workers/chunks/798a63653f82c0e842c5.js +0 -1
  237. package/assets/esri/core/workers/chunks/84fcbf7a1d04f01685d1.js +0 -1
  238. package/assets/esri/core/workers/chunks/8b54589f173259c1ba55.js +0 -1
  239. package/assets/esri/core/workers/chunks/8e511079918e2fd9261f.js +0 -1
  240. package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +0 -1
  241. package/assets/esri/core/workers/chunks/9673a9efec86040b8c13.js +0 -1
  242. package/assets/esri/core/workers/chunks/a010d2e4e34eb7bc1fec.js +0 -1
  243. package/assets/esri/core/workers/chunks/b05a41a60e30935644be.js +0 -1
  244. package/assets/esri/core/workers/chunks/bff767ec5bb4c0d6b324.js +0 -1
  245. package/assets/esri/core/workers/chunks/c906f984b2b6e7578c06.js +0 -1
  246. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +0 -1
  247. package/assets/esri/core/workers/chunks/d270cc9807161033686e.js +0 -1
  248. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +0 -1
  249. package/assets/esri/core/workers/chunks/e5943f3a4bbc12c06c4d.js +0 -1
  250. package/assets/esri/core/workers/chunks/ec9a2425b4a498054a19.js +0 -1
  251. package/assets/esri/core/workers/chunks/f0a68d2900d24f56afa0.js +0 -1
  252. package/assets/esri/core/workers/chunks/f0aaa646b17ffdbdcefa.js +0 -1
  253. package/assets/esri/core/workers/chunks/f46a0d7cf588ba1b4157.js +0 -1
  254. package/assets/esri/core/workers/chunks/f762f70e7d39634ce797.js +0 -1
  255. package/assets/esri/core/workers/chunks/fccbb902fe08448f91de.js +0 -1
  256. package/assets/esri/core/workers/chunks/fd0254c6fc6c03ec11ba.js +0 -1
  257. package/views/3d/environment/EnvironmentManager.js +0 -2
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1402,1560,3312,4500,5651,6217],{52106(e,t,r){r.d(t,{A:()=>S});var i,o,n=r(32198),l=r(37838),s=r(69540),a=r(51447),p=r(25482),u=r(53966),d=r(36708),y=r(24326),c=r(91429),g=r(12195),f=r(65864),h=r(50498),m=r(55156),v=r(60950),b=r(54339),w=r(94128),C=r(33910);const M=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let S=class extends((0,s.OU)(p.o)){static{i=w.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(M);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],M)}};(0,n.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,f.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],S.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,c.MZ)({value:null})],S.prototype,"attributes",null),(0,n.Cg)([(0,c.MZ)({value:null,types:h.yR,json:{read:f.rS}})],S.prototype,"geometry",null),(0,n.Cg)([(0,c.MZ)()],S.prototype,"distance",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,n.Cg)([(0,c.MZ)({type:l.A,value:null})],S.prototype,"popupTemplate",null),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,c.MZ)({value:null,types:C.Es})],S.prototype,"symbol",null),(0,n.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=o=(0,n.Cg)([(0,c.$K)("esri.Graphic")],S)},19334(e,t,r){r.d(t,{e:()=>l});var i=r(54639),o=r(14112);class n{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function l(e){if(null==e)return null;switch(e.type){case"point":if((0,o.e6)(e))return null;break;case"polygon":if((0,o.Wq)(e))return null;break;case"polyline":if((0,o.IY)(e))return null;break;case"multipoint":if((0,o.DG)(e))return null;break;case"extent":if((0,o.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new n(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>p,p:()=>u});var i=r(54639),o=r(14112),n=r(16930),l=r(60408),s=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,s.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function p(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof n.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new n.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,l.fT)(e)?u("point",e,r):(0,l.Rg)(e)?u("polyline",e,r):(0,l.Bi)(e)?u("polygon",e,r):(0,l.U9)(e)?u("multipoint",e,r):(0,l.ZC)(e)?u("extent",e,r):null}function u(e,t,r){if(null==t)return null;let n=!1,l=!1;switch(e){case"point":if((0,o.e6)(t))return null;n=void 0!==t.z,l=void 0!==t.m;break;case"polygon":if((0,o.Wq)(t))return null;n=!0===t.hasZ,l=!0===t.hasM;break;case"polyline":if((0,o.IY)(t))return null;n=!0===t.hasZ,l=!0===t.hasM;break;case"multipoint":if((0,o.DG)(t))return null;n=!0===t.hasZ,l=!0===t.hasM;break;case"extent":if((0,o.As)(t))return null;n=null!=t.zmin&&null!=t.zmax,l=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,n,l,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function o(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function n(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function l(e){return 0===e.points.length}function s(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>s,DG:()=>l,IY:()=>n,Wq:()=>o,e6:()=>i})},6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),o=r(7762),n=r(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof o.A?Object.keys(e.items):s(e)?(0,n.oY)(e).keys():e?Object.keys(e):[]}function p(e,t){return e instanceof o.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),o=a(t);if(0===i.length&&0===o.length)return;if(!i.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let n=o.filter(e=>!i.includes(e)),y=i.filter(e=>!o.includes(e)),c=i.filter(r=>o.includes(r)&&p(e,r)!==p(t,r)).concat(n,y).sort(),g=u(e);if(g&&l.has(g)&&c.length)return{type:"complete",oldValue:e,newValue:t};let f,h=s(e)&&s(t);for(let i of c){let o,n=p(e,i),l=p(t,i);if((h||"function"!=typeof n&&"function"!=typeof l)&&n!==l&&(null!=n||null!=l)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(n,l);else if(n instanceof Date&&l instanceof Date){if(n.getTime()===l.getTime())continue;o={type:"complete",oldValue:n,newValue:l}}else o="object"==typeof n&&"object"==typeof l&&u(n)===u(l)?d(n,l):{type:"complete",oldValue:n,newValue:l};null!=o&&(null==f?f={type:"partial",diff:{[i]:o}}:f.diff[i]=o)}}return f}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},13069(e,t,r){r.d(t,{AG:()=>s,lk:()=>o,vD:()=>l,yS:()=>n});const i="randomUUID"in crypto;function o(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${o().toUpperCase()}}`}function l(){return`{${o()}}`}function s(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},16852(e,t,r){r.r(t),r.d(t,{default:()=>j});var i=r(32198),o=r(49186),n=r(93637),l=r(91429),s=r(16930),a=r(41910),p=r(55156),u=r(60950),d=r(89808),y=r(99959);const c=Symbol("isOrientedImageryGraphicOrigin");var g;class f extends y.A{get[(g=c,u.ym)](){return this.layer}get[p.e](){return this.layer}get[d.Q](){return this.layer}get[a.e7](){return this.layer}constructor(e){super(),this[g]=!0,this.type="oriented-imagery",this.layer=e}get id(){return this.layer.id}}var h=r(18589),m=r(23281),v=r(20437),b=r(43440),w=r(79677);const C=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","referenceIDField","sequenceOrderField","sequenceOrderFields","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),M=new Set(["elevationSource"]),x=(e,t)=>!C.has(t)&&e;function S(e,t,r,i){let{name:o,write:n,read:l}=((e,t,r)=>{let i=`orientedImageryProperties.${e}`,o={allowNull:M.has(e),ignoreOrigin:!0};return{name:i,write:t?{...o,target:i,writer:t}:o,read:r?{ignoreOrigin:!0,source:i,reader:r}:{ignoreOrigin:!0}}})(e,t,r),s={name:o,write:n,read:l,origins:{service:{name:`orientedImageryInfo.${o}`,write:t,read:r},"web-scene":{name:o,write:x(n,e),read:x(l,e)},"web-map":{name:o,write:n,read:l}}};return!i||!s.origins||(s.type=i,s.origins["web-map"].type=i,s.origins["web-scene"].type=i),s}let Z=class extends h.default{constructor(e){super(e),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.graphicOrigin=new f(this),this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.referenceIDField="OBJECTID",this.sequenceOrderField="SequenceOrder",this.sequenceOrderFields=[],this.subtypeField=null,this.subtypes=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.verticalSearchRange=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.virtualCacheDirectory=null,this.dataStoreID=null,this.imageAccessPaths=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){let{elevationSource:e,demPathPrefix:t,demPathSuffix:r}=this;return(0,m.eR)(e,t,r)}get effectiveSequenceOrderField(){let{sequenceOrderField:e,fields:t,sequenceOrderFields:r}=this;return(0,m.o)(e,t,r)}get fieldConfigurations(){return super.fieldConfigurations}set fieldConfigurations(e){super.fieldConfigurations=e}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}findFirstValidLayerId(e){return e.layers?.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new o.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,i.Cg)([(0,l.MZ)({type:b.A,json:{write:!1,read:!1}})],Z.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("cameraHeading")})],Z.prototype,"cameraHeading",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("cameraHeight")})],Z.prototype,"cameraHeight",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("cameraPitch")})],Z.prototype,"cameraPitch",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("cameraRoll")})],Z.prototype,"cameraRoll",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("coveragePercent")})],Z.prototype,"coveragePercent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("demPathPrefix")})],Z.prototype,"demPathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("demPathSuffix")})],Z.prototype,"demPathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("depthImagePathPrefix")})],Z.prototype,"depthImagePathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("depthImagePathSuffix")})],Z.prototype,"depthImagePathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:Object,json:S("elevationSource")})],Z.prototype,"elevationSource",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],Z.prototype,"effectiveElevationSource",null),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],Z.prototype,"effectiveSequenceOrderField",null),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("farDistance")})],Z.prototype,"farDistance",void 0),(0,i.Cg)([(0,l.MZ)({type:[v.A]})],Z.prototype,"fields",void 0),(0,i.Cg)([(0,l.MZ)()],Z.prototype,"geometryType",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],Z.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("horizontalFieldOfView")})],Z.prototype,"horizontalFieldOfView",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("horizontalMeasurementUnit")})],Z.prototype,"horizontalMeasurementUnit",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...S("imageGeometryField"),default:"ImageGeometry"}})],Z.prototype,"imageGeometryField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("imagePathPrefix")})],Z.prototype,"imagePathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("imagePathSuffix")})],Z.prototype,"imagePathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...S("imageReferenceField"),default:"OIObjectID"}})],Z.prototype,"imageReferenceField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("imageRotation")})],Z.prototype,"imageRotation",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("maximumDistance")})],Z.prototype,"maximumDistance",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("nearDistance")})],Z.prototype,"nearDistance",void 0),(0,i.Cg)([(0,l.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],Z.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,l.MZ)({json:{...S("orientationAccuracy",(e,t,r)=>{(0,n.sM)(r,e.join(";"),t)},e=>{let t=e?.split(";")?.map(Number);return(0,m.Qv)(t)?(0,m.Yp)(t):[0,0,0,0,0,0,0,0]},String)}})],Z.prototype,"orientationAccuracy",void 0),(0,i.Cg)([(0,l.MZ)({json:{...S("orientedImageryType",m.fs.write,m.fs.read,m.fs.jsonValues.slice(1))}})],Z.prototype,"orientedImageryType",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...S("referenceIDField"),default:"OBJECTID"}})],Z.prototype,"referenceIDField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{...S("sequenceOrderField"),default:"SequenceOrder"}})],Z.prototype,"sequenceOrderField",void 0),(0,i.Cg)([(0,l.MZ)({json:{...S("sequenceOrderFields",function(e,t,r){e?.length&&(0,n.sM)(r,e,t)}),default:[]}})],Z.prototype,"sequenceOrderFields",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A})],Z.prototype,"spatialReference",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],Z.prototype,"subtypeField",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],Z.prototype,"subtypes",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],Z.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:m.RR.apiValues,json:{...S("timeIntervalUnit",m.RR.write,m.RR.read,m.RR.jsonValues)}})],Z.prototype,"timeIntervalUnit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("verticalFieldOfView")})],Z.prototype,"verticalFieldOfView",void 0),(0,i.Cg)([(0,l.MZ)({type:m.l6.apiValues,json:{...S("verticalMeasurementUnit",m.l6.write,m.l6.read,m.l6.jsonValues)}})],Z.prototype,"verticalMeasurementUnit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:S("verticalSearchRange")})],Z.prototype,"verticalSearchRange",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("videoPathPrefix")})],Z.prototype,"videoPathPrefix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:S("videoPathSuffix")})],Z.prototype,"videoPathSuffix",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.orientedImageryProperties.virtualCacheDirectory",read:!0}}}})],Z.prototype,"virtualCacheDirectory",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.dsid",read:!0}}}})],Z.prototype,"dataStoreID",void 0),(0,i.Cg)([(0,l.MZ)({type:Object,readOnly:!0,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.imageAccessPaths",read:!0}}}})],Z.prototype,"imageAccessPaths",void 0),(0,i.Cg)([(0,l.MZ)({type:w.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],Z.prototype,"visibilityTimeExtent",void 0),Z=(0,i.Cg)([(0,l.$K)("esri.layers.OrientedImageryLayer")],Z);const j=Z},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>o})},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),o=r(93637),n=r(91429),l=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new l.A;return o.read(i,r),[o]}const a={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},63490(e,t,r){r.d(t,{Mr:()=>a,TH:()=>s});var i=r(32198),o=r(69540),n=r(25482),l=r(91429);let s=class extends((0,o.OU)(n.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],s.prototype,"lod",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],s.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],s.prototype,"url",void 0),s=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],s);let a=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],a.prototype,"constantElevation",void 0),a=(0,i.Cg)([(0,l.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],a),r.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,r){r.d(t,{eR:()=>M,Qv:()=>A,fs:()=>Z,Yp:()=>O,o:()=>T,RR:()=>x,l6:()=>S});var i=r(66552),o=(r(86211),r(28735),r(32198)),n=r(69540),l=r(25482),s=r(91429),a=r(69622),p=r(21325);let u=class extends a.A{set horizontalWKID(e){e?(0,p.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,p.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&o?.length>1}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const d=u;let y=class extends((0,n.OU)((0,l.T)(d))){constructor(){super(...arguments),this.type=1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:l,pitch:s,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:y,tangentialDistortionCoefficients:c}=this,g=[e,t,r,i,o,n,l,s,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],y.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],y.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"focalLength",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],y.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],y.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],y.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"heading",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"pitch",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"roll",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"x",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"y",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],y.prototype,"z",void 0),y=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],y);const c=y;let g=class extends((0,n.OU)((0,l.T)(d))){constructor(){super(...arguments),this.type=4}toString(){let{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:n}=this,l=`${n}`.split("|");return l.splice(1,1),`${e}|${t}|${r}|${i}|${o}|${l.join("|")}`}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],g.prototype,"latitude",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],g.prototype,"longitude",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],g.prototype,"ellipsoidRadius",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0},type:Number})],g.prototype,"squaredEccentricity",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],g.prototype,"properties",void 0),g=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],g);const f=g;let h=class extends((0,n.OU)((0,l.T)(d))){constructor(){super(...arguments),this.type=2}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:l,phi:s,kappa:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:y,tangentialDistortionCoefficients:c}=this,g=[e,t,r,i,o,n,l,s,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e))),g.map(e=>isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],h.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],h.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"focalLength",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],h.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],h.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],h.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"omega",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"phi",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"kappa",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"x",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"y",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],h.prototype,"z",void 0),h=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],h);const m=h;let v=class extends((0,n.OU)((0,l.T)(d))){constructor(){super(...arguments),this.type=3}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||o?.length>1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:l,pitch:s,roll:a,affineTransformations:p,focalLength:u,principalOffsetPoint:d,radialDistortionCoefficients:y,tangentialDistortionCoefficients:c}=this,g=[e,t,r,i,o,n,l,s,a];return this.isAdvanced&&(p?.forEach(e=>g.push(e)),g.push(u),d?.forEach(e=>g.push(e)),d?.forEach(e=>g.push(e)),y?.forEach(e=>g.push(e)),c?.forEach(e=>g.push(e))),g.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const b=v,w=new Map;w.set("2",{desc:"Using Omega Phi Kappa",constructor:m}),w.set("1",{desc:"Using Heading, Pitch and Roll",constructor:c}),w.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:b}),w.set("4",{desc:"Using Local Tangent Plane",constructor:f});var C=r(63490);function M(e,t,r){return e&&((0,C.E1)(e)?new C.Mr(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new C.TH({...e,url:i})):null}(e,t,r))}const x=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),S=new i.J({Feet:"feet",Meter:"meter"}),Z=new i.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),j=new Map;j.set("1",function(e){let[t,r,i,o,n,l,s,a,p,u,d,y,c,g,f,h,m,v,b,w,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:l,pitch:s,roll:a,...I([p,u,d,y,c,g],[h,m],[v,b,w],[C,M],f)}}),j.set("3",function(e){let[t,r,i,o,n,l,s,a,p,u,d,y,c,g,f,h,m,v,b,w,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:l,pitch:s,roll:a,...I([p,u,d,y,c,g],[h,m],[v,b,w],[C,M],f)}}),j.set("2",function(e){let[t,r,i,o,n,l,s,a,p,u,d,y,c,g,f,h,m,v,b,w,C,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:l,phi:s,kappa:a,...I([p,u,d,y,c,g],[h,m],[v,b,w],[C,M],f)}}),j.set("4",function(e){let[t,r,i,o,n,...l]=e.slice(1),s=j.get(n),a=w.get(n)?.constructor;return s&&a?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:new a(s([n,"",...l]))}:null});const P=e=>{let t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function I(e,t,r,i,o){let n=P(e),l=P(t),s=P(r),a=P(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(o):void 0,principalOffsetPoint:2===l?.length?l:[0,0],radialDistortionCoefficients:3===s?.length?s:[0,0,0],tangentialDistortionCoefficients:2===a?.length?a:[0,0]}}function A(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function O(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function T(e,t,r){let i=function(e,t){return e?.length?e.map(({field:e,order:r})=>{let i=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return i?{fieldName:i.name,sortOrder:"desc"===r?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(r,t);if(i?.length)return i;if(!e){let e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}let o=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return o?[{fieldName:o.name,sortOrder:"asc"}]:null}},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(69540),n=r(25482),l=r(91429),s=r(56400);let a=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,l.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(69540),n=r(66552),l=r(25482),s=r(91429);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),o=r(69540),n=r(25482),l=r(91429),s=r(8631),a=r(29005),p=r(36005),u=r(43937);let d=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,l.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],d)},46499(e,t,r){r.d(t,{A:()=>S});var i,o,n=r(32198),l=(r(44208),r(66552)),s=r(25482),a=r(4718),p=r(90629),u=r(91429),d=r(90360),y=r(73913),c=r(32730),g=r(77548),f=r(59868),h=r(73838),m=r(33910),v=r(36005),b=r(43937);const w=new l.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function C(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let S=class extends s.o{static{i=c.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],n=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&n;case"OR":return e||n}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=f.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,c.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,c.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,c.XJ)(this)}getLabelExpressionArcade(){return(0,c.BI)(this)}getLabelExpressionSingleField(){return(0,c.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"name",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],S.prototype,"allowOverrun",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],S.prototype,"deconflictionStrategy",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],S.prototype,"labelExpression",void 0),(0,n.Cg)([(0,v.w)("labelExpression")],S.prototype,"readLabelExpression",null),(0,n.Cg)([(0,b.K)("labelExpression")],S.prototype,"writeLabelExpression",null),(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],S.prototype,"labelExpressionInfo",void 0),(0,n.Cg)([(0,b.K)("labelExpressionInfo")],S.prototype,"writeLabelExpressionInfo",null),(0,n.Cg)([(0,u.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],S.prototype,"labelPlacement",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],S.prototype,"offsetDistance",void 0),(0,n.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],S.prototype,"labelPosition",void 0),(0,n.Cg)([(0,u.MZ)({type:Number})],S.prototype,"maxScale",void 0),(0,n.Cg)([(0,b.K)("maxScale")],S.prototype,"writeMaxScale",null),(0,n.Cg)([(0,u.MZ)({type:Number})],S.prototype,"minScale",void 0),(0,n.Cg)([(0,b.K)("minScale")],S.prototype,"writeMinScale",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],S.prototype,"repeatLabel",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],S.prototype,"repeatLabelDistance",null),(0,n.Cg)([(0,u.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,d.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,d.C)({types:m.Rv})},write:h.oO,default:null}},write:h.oO,default:null}})],S.prototype,"symbol",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"useCodedValues",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=o=(0,n.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],S)},73913(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),n=r(25482),l=r(91429),s=r(32730),a=r(36005),p=r(43937);let u=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],u)},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),n=r(7762),l=r(25482),s=r(91429);let a=i=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),n=r(66552),l=r(25482),s=r(91429);const a=new n.J({asc:"ascending",desc:"descending"});let p=class extends l.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(69540),n=r(66552),l=r(25482),s=r(91429);const a=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.Relationship")],u)},41560(e,t,r){r.d(t,{Ch:()=>l,mW:()=>n});var i=r(34727),o=r(39516);function n(e,t){return{...t,filterMode:e.mode}}function l(e,t,r){let n=function(e){if("manual"===p(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(n&&((0,i.gg)(t,n[0])||(0,i.ZH)(r,n[1])))return"";let l=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=u(e.at(0)?.minScale),n=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(n,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),d(r.maxScale)))return!0}return!1}(l,t,r)?"1=1":l.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===p(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||1/0}function d(e){return e||0}},32730(e,t,r){r.d(t,{BI:()=>d,D3:()=>p,XJ:()=>u,lc:()=>a,mX:()=>c,rU:()=>y,tH:()=>v,zA:()=>w});var i=r(799);const o=RegExp("__begin__","ig"),n=RegExp("__end__","ig"),l=RegExp("^__begin__","i"),s=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function p(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function u(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function d(e){let t=u(e);if(!t)return null;switch(t.type){case"conventional":return c(t.expression);case"arcade":return t.expression}return null}function y(e){let t=u(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(g))?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function c(e){let t;return e?(t=(0,i.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=l.test(t)?t.replace(l,""):'"'+t,t=s.test(t)?t.replace(s,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(n,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,f=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,h=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,m=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=f.exec(e)||h.exec(e);return t?t[1]||t[3]:(t=m.exec(e),t?t[2]:null)}const b=Symbol("LabelClassInstance");function w(e){return"object"==typeof e&&!!e&&b in e}r.d(t,["vK",0,b])},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),o=r(53966),n=r(46499);const l=()=>o.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new n.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let o of e){let e=o.labelPlacement,n=u[t];if(!o.symbol)return l().warn("No ILabelClass symbol specified."),[];if(!n)return l().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(n.includes(e))r.push(o);else{let i=n[0];e&&l().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=o.clone();s.labelPlacement=i,r.push(s)}}return r}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),n=r(52106),l=r(66552),s=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(60408),y=r(65864),c=r(50498),g=r(20437),f=r(36005),h=r(43937);const m=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,n=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)l?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[n,l]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*l,s,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let n=e[t],l=r.fromJSON(n),s=n.geometry?.spatialReference;null!=l.geometry&&!s&&(l.geometry.spatialReference=i);let a=n.aggregateGeometries,p=l.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(l)}return o}_quantizePoints(e,t,r){let i,o,n=[];for(let l=0,s=e.length;l<s;l++){let s=e[l];if(l>0){let e=t(s[0]),l=r(s[1]);(e!==i||l!==o)&&(n.push([e-i,l-o]),i=e,o=l)}else i=t(s[0]),o=r(s[1]),n.push([i,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){let n=i[e],l=this._quantizePoints(n,t,r);l&&o.push(l)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,l,s=(0,d.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(n+=o[0],l+=o[1]):(n=o[0],l=o[1]),o[0]=t(n),o[1]=r(l)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let n,l,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,f.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,h.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,f.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,h.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),o=r(66552),n=r(53966),l=r(91429),s=r(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&p||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===u||e===p)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,n])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5752],{69052(e,t,i){i.d(t,{hr:()=>a});var r=i(34727);class a{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return n(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+s(this.range,e-t,i)}minimalMonotonic(e,t,i){return n(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e,t,i,r,a=0,n=!1){return(r-=a)<t?r+=s(e,t-r):r>i&&(r-=s(e,r-i)),n&&r===i&&(r=t),r+a}function s(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const l=new a(0,2*Math.PI),o=(new a(-Math.PI,Math.PI),new a(0,360));i.d(t,["ie",0,o,"uC",0,l])},18370(e,t,i){i.d(t,{z:()=>a});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function a(e){return new r(e)}},44123(e,t,i){i.d(t,{WhereClauseCache:()=>n});var r=i(66344),a=i(89696);class n{constructor(e,t){this._cache=new r.q(e),this._invalidCache=new r.q(t)}get(e,t){let i=`${t?.uid}:${e}`,r=this._cache.get(i);if(r)return r;if(null!=this._invalidCache.get(i))return null;try{let r=a.A.create(e,{fieldsIndex:t});return this._cache.put(i,r),r}catch(e){return this._invalidCache.put(i,e),null}}getError(e,t){let i=`${t?.uid}:${e}`;return this._invalidCache.get(i)??null}}},46329(e,t,i){i.d(t,{y:()=>c});var r=i(49186),a=i(4305),n=i(513),s=i(50954),l=i(52006),o=i(49663),u=i(46068),d=i(59803);function c(e,t,i){if((0,l.Xq)(t))return(0,d.T)(e,t,i);if((0,l.n1)(t)){let n=(0,a.m_)(e,t,i)[0];if(null==n)throw new r.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return n}if((0,l.aO)(t)){let r=(0,s.pM)(e,t);return(0,n.fM)(r,i)}if((0,l.DA)(t)){let r=(0,o.io)(e,t);return(0,n.fM)(r,i)}let c=(0,u.SW)(e,t);return(0,u.pb)(c,i)}},52039(e,t,i){i.d(t,{O7:()=>p,el:()=>u});var r=i(69052),a=(i(49186),i(18370)),n=i(17676),s=(i(5443),i(39829)),l=(i(82799),i(16930)),o=(i(80754),i(21325));async function u(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let a=(0,o.Vp)(r);if(!a)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(a);return["xmin"in t?t:new s.A(t)]}let[l,u]=a.valid,p=!1;for(let t of e){if(!t)continue;if("point"===t.type){p||=t.x>=u,p||=t.x<=l;continue}let{extent:e}=t;if(null==e){p=!0;break}p||=e.xmin>=u,p||=e.xmin<=l,p||=e.xmax>=u,p||=e.xmax<=l}if(!p)return e;let[{foldInto360Range:f},h]=await(0,n.qr)(Promise.all([d.getImportPromise(),c.getImportPromise()]),i),m=h.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=h.fromGeometry(e),i=h.toGeometry(f(t,m),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const d=(0,a.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),c=(0,a.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function p(e,t,i){let r=(0,o.Vp)(i);if(null==r)return e;let[a,n]=r.valid,s=2*n,l=0,u=0;t>n?l=Math.ceil(Math.abs(t-n)/s):t<a&&(l=-Math.ceil(Math.abs(t-a)/s)),e>n?u=Math.ceil(Math.abs(e-n)/s):e<a&&(u=-Math.ceil(Math.abs(e-a)/s));let d=e+(l-u)*s,c=d-t;return c>n?d-=s:c<a&&(d+=s),d}function f(e){let t=(0,o.Vp)(e);if(null==t)return null;let[i,a]=t.valid;return new r.hr(i,a)}const h=f(l.A.WGS84);f(l.A.WebMercator),i.d(t,["Y_",0,h])},80754(e,t,i){i.d(t,{kS:()=>u,kd:()=>o});var r=i(82799),a=i(16930),n=i(60408),s=i(52006);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:a.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:a.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,s.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i)if((0,s.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t}else if((0,s.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t}else if((0,s.n1)(e)){let[i,r,a]=e.b;i[0]+=t,r[0]+=t,a[0]+=t}else e[0]+=t;for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,l])},62577(e,t,i){function r(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null==e.extent?[0,0,0,0]:[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]}:null}function a(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;let{originPosition:t,scale:i,translate:r}=e,a=i[0]??1,n=i[1]??1;return{originPosition:"lowerLeft",scale:[a,"lowerLeft"===t?n:-n,i[2]??1,i[3]??1],translate:[r[0]??0,r[1]??0,r[2]??0,r[3]??0]}}function n({scale:e,translate:t},i){return Math.round((i-t[0])/e[0])}function s({scale:e,translate:t},i){return Math.round((i-t[1])/e[1])}function l({scale:e,translate:t},i){return i*e[0]+t[0]}function o({scale:e,translate:t},i){return i*e[1]+t[1]}function u({scale:e,translate:t},i){return(i??0)*e[2]+t[2]}function d({scale:e,translate:t},i){return i?i*e[3]+t[3]:0}function c(e,t){return e&&t?m:e&&!t?f:!e&&t?h:p}i.d(t,{$X:()=>v,B2:()=>s,Gy:()=>g,IE:()=>n,P5:()=>T,Q1:()=>a,SW:()=>x,Tr:()=>_,VV:()=>r});const p=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],a=l(e,r[0]),n=o(e,r[1]);i[0]=[a,n];let{scale:s,originPosition:u}=e,d=s[0],c="lowerLeft"===u?s[1]:-s[1];for(let e=1;e<t.length;e++){let[r,s]=t[e];a+=d*r,n+=c*s,i[e]=[a,n]}return i},f=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],a=l(e,r[0]),n=o(e,r[1]);i[0]=[a,n,u(e,r[2])];let{scale:s,originPosition:d}=e,c=s[0],p="lowerLeft"===d?s[1]:-s[1];for(let r=1;r<t.length;r++){let[s,l,o]=t[r];a+=c*s,n+=p*l,i[r]=[a,n,u(e,o)]}return i},h=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],a=l(e,r[0]),n=o(e,r[1]);i[0]=[a,n,d(e,r[2])];let{scale:s,originPosition:u}=e,c=s[0],p="lowerLeft"===u?s[1]:-s[1];for(let r=1;r<t.length;r++){let[s,l,o]=t[r];a+=c*s,n+=p*l,i[r]=[a,n,d(e,o)]}return i},m=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],a=l(e,r[0]),n=o(e,r[1]);i[0]=[a,n,u(e,r[2]),d(e,r[3])];let{scale:s,originPosition:c}=e,p=s[0],f="lowerLeft"===c?s[1]:-s[1];for(let r=1;r<t.length;r++){let[s,l,o,c]=t[r];a+=p*s,n+=f*l,i[r]=[a,n,u(e,o),d(e,c)]}return i};function y(e,t,i){let r=Array(i.length);for(let a=0;a<i.length;a++)r[a]=t(e,i[a]);return r}function g(e,t,i){let r=a(e);return t.x=n(r,i.x),t.y=s(r,i.y),null!=i.z&&(t.z=function({scale:e,translate:t},i){return Math.round(((i??0)-t[2])/e[2])}(r,i.z)),null!=i.m&&(t.m=function({scale:e,translate:t},i){return i?Math.round((i-t[3])/e[3]):0}(r,i.m)),t}function x(e,t,i,r=i?.hasZ??!1,n=i?.hasM??!1){if(null!=i){let s=a(e);t.points=c(r,n)(s,i.points),t.hasZ=r,t.hasM=n}return t}function _(e,t,i,r=null!=i?.z,n=null!=i?.m){if(null==i)return t;let s=a(e);return t.x=l(s,i.x),t.y=o(s,i.y),r&&(t.z=u(s,i.z)),n&&(t.m=d(s,i.m)),t}function v(e,t,i,r=i?.hasZ??!1,n=i?.hasM??!1){return null!=i&&(t.rings=y(a(e),c(r,n),i.rings),t.hasZ=r,t.hasM=n),t}function T(e,t,i,r=i?.hasZ??!1,n=i?.hasM??!1){return null!=i&&(t.paths=y(a(e),c(r,n),i.paths),t.hasZ=r,t.hasM=n),t}},75752(e,t,i){i.d(t,{do:()=>P,qo:()=>L,Wc:()=>q});var r=i(4576),a=i(21818),n=i(49186),s=(i(44208),i(4718)),l=i(97768),o=i(17676),u=i(86211),d=i(12195),c=i(99917),p=i(70328),f=i(19419),h=i(537),m=i(60408),y=i(65864),g=i(52039),x=i(21325),_=i(90708),v=i(29441),T=i(51441),S=i(31464);class F{constructor(){this._storage=new Map,this._purgeInterval=5,this._sweep=()=>{if(this._timer=void 0,!this._storage)return;let e=1e3*this._purgeInterval,t=performance.now()-e;for(let[i,r]of this._storage){if(!(r.time<t))return void(this._storage.size>0&&(this._timer=setTimeout(this._sweep,e)));this._storage.delete(i)}}}destroy(){this._storage?.clear(),this._storage=null,clearTimeout(this._timer)}put(e,t){this._storage?.set(e,new R(t)),this._scheduleSweep()}get(e){let t=this._storage?.get(e);if(t)return this._storage?.delete(e),t.time=performance.now(),this._storage?.set(e,t),t.items}clear(){this._storage?.clear()}_scheduleSweep(){this._storage&&(this._timer??=setTimeout(this._sweep,1e3*this._purgeInterval))}get test(){}}let E=0;class R{constructor(e){this.items=e,this.time=performance.now(),this.id=E++}}var I=i(99352),w=i(8384),A=i(58727),M=i(62660),b=i(43668);const C="unsupported-query";async function O(e,{fieldsIndex:t,geometryType:i,spatialReference:r,availableFields:a}){if(null!=e.geometryPrecision||e.multipatchOption&&"xyFootprint"!==e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new n.A(C,"Unsupported query options",{query:e});return V(t,a,e),function(e,t,i){let{outStatistics:r,groupByFieldsForStatistics:a,having:s}=i,l=a?.length,o=r?.length;if(s){if(!l||!o)throw new n.A(C,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:i});(0,v.eD)(e,t,s,r,i)}if(o){if(!(0,v._d)(r))return;let s=(0,v.g9)(e,r,a);(0,v.MG)(e,t,s,{expressionName:"statistics",query:i});for(let a of r){let{onStatisticField:r,statisticType:s}=a;if("percentile_disc"!==s&&"percentile_cont"!==s||!("statisticParameters"in a))e.get(r)&&"count"!==s&&"min"!==s&&"max"!==s&&(0,v.MG)(e,t,[r],{expressionName:`outStatistics with '${s}' statistic type`,allowedFieldTypes:N,query:i});else{let{statisticParameters:e}=a;if(!e)throw new n.A(C,"statisticParameters should be set for percentile type",{definition:a,query:i})}}}}(t,a,e),Promise.all([(0,M.c0)(e,i,r),(0,S.Nk)(r,e.outSR)]).then(()=>e)}function V(e,t,i){let{returnDistinctValues:r,outStatistics:a}=i,s=a?a.map(e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase()).filter(Boolean):[];if("orderByFields"in i&&i.orderByFields&&i.orderByFields.length>0){let r=" asc",a=" desc",n=i.orderByFields.map(e=>{let t=e.toLowerCase();return t.includes(r)?t.split(r)[0]:t.includes(a)?t.split(a)[0]:e}).filter(e=>!s.includes(e));(0,v.MG)(e,t,n,{expressionName:"orderByFields",query:i})}if("outFields"in i)if(i.outFields?.length)(0,v.MG)(e,t,i.outFields,{expressionName:"outFields",query:i,allowedFieldTypes:"all"});else if(r)throw new n.A(C,"outFields should be specified for returnDistinctValues",{query:i});(0,v.SN)(e,t,i.where,i)}const N=new Set([...v.vl,...v.VW]);async function z(e,t,i,r){let a=[];if(i.valueExpression){let{arcadeUtils:e}=await(0,b.l)();a=e.extractFieldNames(i.valueExpression)}if(i.field&&a.push(i.field),i.field2&&a.push(i.field2),i.field3&&a.push(i.field3),i.normalizationField&&a.push(i.normalizationField),!a.length&&!i.valueExpression)throw new n.A(C,"field or valueExpression is required",{params:i});(0,v.MG)(e,t,a,{expressionName:"statistics",query:r})}var D=i(86420),B=i(95466),G=i(92359);class P{constructor(e){this._changeHandle=null,this.capabilities={query:I.F},this.geometryType=e.geometryType,this.hasM=!!e.hasM,this.hasZ=!!e.hasZ,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._cache=e.cache??new F,this.timeInfo=e.timeInfo,this.featureIdInfo=e.featureIdInfo,this._changeHandle=this.featureStore.events.on("changed",()=>this._clearCache()),this.fieldsIndex=(0,d.W)(e.fieldsIndex)?e.fieldsIndex:B.A.fromJSON(e.fieldsIndex),this.availableFields=!e.availableFields||1===e.availableFields.length&&"*"===e.availableFields[0]?new Set(this.fieldsIndex.fields.map(e=>e.name)):new Set(e.availableFields.map(e=>this.fieldsIndex.get(e)?.name).filter(e=>null!=e)),this._frameTask=e.scheduler&&e.priority?e.scheduler.registerTask(e.priority):G.nu}destroy(){this._changeHandle=(0,l.xt)(this._changeHandle),this._frameTask=(0,l.xt)(this._frameTask),this._clearCache(),(0,l.pR)(this._cache)}get featureAdapter(){return this.featureStore.featureAdapter}async executeQuery(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryFeatureSet(e),i)}async executeQueryForCount(e={},t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForCount(e),i)}async executeQueryForExtent(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForExtent(e),i)}async executeQueryForIds(e,t){return Array.from(await this.executeQueryForIdSet(e,t))}async executeQueryForIdSet(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForIdSet(e),i)}async executeQueryForLatestObservations(e,t){let i=(0,o.Mq)(t);if(!this.timeInfo?.trackIdField)throw new n.A("unsupported-query","Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});return await this._frameTask.scheduleGenerator(()=>this._executeQueryForLatestObservations(e),i)}async executeQueryForOpaqueFeatures(e,t){let i=(0,o.Mq)(t);return(await this._frameTask.scheduleGenerator(()=>this._executeQuery(e,{}),i)).items}async executeAttributeBinsQuery(e,t){let i=(0,o.Mq)(t);return e=(0,s.o8)(e),await this._frameTask.scheduleGenerator(()=>this._executeAttributeBinsQuery(e),i)}async executeQueryForSummaryStatistics(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSummaryStatistics(e,t),r)}async executeQueryForUniqueValues(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForUniqueValues(e,t),r)}async executeQueryForClassBreaks(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForClassBreaks(e,t),r)}async executeQueryForHistogram(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForHistogram(e,t),r)}async executeQueryForSnapping(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSnapping(e,i),i)}async fetchRecomputedExtents(e){let t=(0,o.Mq)(e);this._timeExtentPromise||=(0,D.W)(this.timeInfo,this.featureStore);let[i,r]=await Promise.all([this._getFullExtent(),this._timeExtentPromise]);return(0,o.Te)(t),{fullExtent:i,timeExtent:r}}_clearCache(){this._cache.clear(),this._allFeaturesPromise=null,this._timeExtentPromise=null,this._fullExtentPromise=null}async*_executeQueryFeatureSet(e){try{let t=yield*this._executeQuery(e,{});return yield,await t.createQueryResponse()}catch(t){if(t!==A.v8)throw t;return await new w.G([],e,this).createQueryResponse()}}async*_executeQueryForCount(e){try{let t=yield*this._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null});return yield,t.createQueryResponseForCount()}catch(e){if(e!==A.v8)throw e;return 0}}async*_executeQueryForExtent(e){let t=e.outSR;try{let i=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;let r=i.size;if(!r)return{count:0,extent:null};let a=await this._getBounds(i.items,i.spatialReference,t??this.spatialReference);return yield,{count:r,extent:a}}catch(e){if(e===A.v8)return{count:0,extent:null};throw e}}async*_executeQueryForIdSet(e){try{let t=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;let i=t.items,r=new Set;for(let e of i)r.add(t.featureAdapter.getObjectId(e));return r}catch(e){if(e===A.v8)return new Set;throw e}}async*_executeQueryForLatestObservations(e){try{let t=yield*this._executeQuery(e,{});return yield,this._filterLatest(t),yield,await t.createQueryResponse()}catch(t){if(t!==A.v8)throw t;return await new w.G([],e,this).createQueryResponse()}}async*_executeAttributeBinsQuery(e){let t;try{e=await(0,A.iJ)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t){let i=e.bin;if(!i.onField&&!i.onExpression?.value||"autoIntervalBin"===i.type&&null==i.parameters.numberOfBins||"dateBin"===i.type&&(null==i.parameters.number||null==i.parameters.unit)||"fixedBoundariesBin"===i.type&&null==i.parameters.boundaries||"fixedIntervalBin"===i.type&&null==i.parameters.interval)throw new n.A(C,"Unsupported query options",{query:e});return O(e,t)}(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;let i=yield*this._executeSceneFilterQuery(e);yield,t=yield*this._executeGeometryQuery(e,i),yield,this._executeAggregateIdsQuery(t),yield,this._executeObjectIdsQuery(t),yield,this._executeTimeQuery(t),yield,this._executeAttributesQuery(t),yield}catch(i){if(i!==A.v8)throw i;t=new w.G([],e,this)}return await t.createQueryBinsResponse(e)}async*_executeQueryForSummaryStatistics(e={},t){let{field:i,normalizationField:r,valueExpression:a}=t,n=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:r,valueExpression:a});return yield,await n.createSummaryStatisticsResponse(t)}async*_executeQueryForUniqueValues(e={},t){let{field:i,field2:r,field3:a,valueExpression:n}=t,s=yield*this._executeQueryForStatistics(e,{field:i,field2:r,field3:a,valueExpression:n});return yield,await s.createUniqueValuesResponse(t)}async*_executeQueryForClassBreaks(e,t){let{field:i,normalizationField:r,valueExpression:a}=t,n=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:r,valueExpression:a});return yield,await n.createClassBreaksResponse(t)}async*_executeQueryForHistogram(e,t){let{field:i,normalizationField:r,valueExpression:a}=t,n=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:r,valueExpression:a});return yield,await n.createHistogramResponse(t)}async*_executeQueryForSnapping(e,t){let{point:i,distance:r,returnEdge:a,vertexMode:n}=e;if(!a&&"none"===n)return{candidates:[]};let l=(0,s.o8)(e.query);l=await(0,A.T2)(l,this.definitionExpression,this.spatialReference),yield,l=await O(l,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;let o=!(0,x.aI)(i.spatialReference,this.spatialReference);o&&(await(0,S.Nk)(i.spatialReference,this.spatialReference),yield);let u="number"==typeof r?r:r.x,d="number"==typeof r?r:r.y,c={xmin:i.x-u,xmax:i.x+u,ymin:i.y-d,ymax:i.y+d,spatialReference:i.spatialReference},p=o?(0,S.Cv)(c,this.spatialReference):c;if(!p)return{candidates:[]};let[f]=await(0,g.el)((0,y.rS)(i),{signal:t});yield;let[h]=await(0,g.el)((0,y.rS)(p),{signal:t});if(yield,null==f||null==h)return{candidates:[]};let m=await this._searchFeatures(L(h.toJSON()));yield;let _=new w.G(m,l,this);this._executeObjectIdsQuery(_),yield,this._executeTimeQuery(_),yield,this._executeAttributesQuery(_),yield,yield*this._executeGeometryQueryForSnapping(_),yield;let v=f.toJSON(),T=o?(0,S.Cv)(v,this.spatialReference):v,F=o?Math.max(p.xmax-p.xmin,p.ymax-p.ymin)/2:r;return _.createSnappingResponse({...e,point:T,distance:F},l.returnZ,i.spatialReference)}async _getBounds(e,t,i){let r=(0,p.hZ)((0,p.vt)(),p.qv);return await this.featureStore.forEachBounds(e,e=>(0,p.RF)(r,e)),q(r,t,i,this.spatialReference,this.hasZ)}_getFullExtent(){return this._fullExtentPromise||="getFullExtent"in this.featureStore&&this.featureStore.getFullExtent?Promise.resolve(this.featureStore.getFullExtent(this.spatialReference)):this._getAllFeatures().then(e=>this._getBounds(e,this.spatialReference,this.spatialReference)),this._fullExtentPromise}async _getAllFeaturesQueryEngineResult(e){return new w.G(await this._getAllFeatures(),e,this)}async _getAllFeatures(){if(null==this._allFeaturesPromise){let e=[];this._allFeaturesPromise=(async()=>await this.featureStore.forEach(t=>e.push(t)))().then(()=>(0,a.z)(e))}let e=this._allFeaturesPromise,t=await e;return e===this._allFeaturesPromise?t.slice():this._getAllFeatures()}async*_executeQuery(e,t){e=(0,s.o8)(e),e=await(0,A.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await O(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield,e={...e,...t};let i=yield*this._executeSceneFilterQuery(e);yield;let r=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(r),yield,this._executeObjectIdsQuery(r),yield,this._executeTimeQuery(r),yield,this._executeAttributesQuery(r),r}async*_executeSceneFilterQuery(e){if(null==e.sceneFilter)return null;let{outSR:t,returnGeometry:i,returnCentroid:r}=e,a=this.featureStore.featureSpatialReference,n=e.sceneFilter.geometry,s=null==a||(0,x.aI)(a,n.spatialReference)?n:(0,S.Cv)(n,a);if(!s)return null;let l=i||r,o=(0,x.fn)(t)&&!(0,x.aI)(this.spatialReference,t)&&l?async e=>this._project(e,t):e=>e;yield;let u=this.featureAdapter,d=await this._searchFeatures(L(s));if(yield,"disjoint"===e.sceneFilter.spatialRelationship){if(!d.length)return null;let t=new Set;for(let e of d)t.add(u.getObjectId(e));let i=await this._getAllFeatures();yield;let r=await(0,M.xt)("esriSpatialRelDisjoint",s,this.geometryType);yield;let a=yield*this._runSpatialFilter(i,e=>!t.has(u.getObjectId(e))||r(u.getGeometry(e)));return yield,await o(new w.G(a,e,this))}if(!d.length)return new w.G([],e,this);if(this._canExecuteSinglePass(s,e))return await o(new w.G(d,e,this));let c=await(0,M.xt)("esriSpatialRelContains",s,this.geometryType);yield;let p=yield*this._runSpatialFilter(d,e=>c(u.getGeometry(e)));return yield,await o(new w.G(p,e,this))}async*_executeGeometryQuery(e,t){if(null!=t&&0===t.items.length)return t;let{geometry:i,outSR:a,returnGeometry:n,returnCentroid:s}=e,l=t?null:this._getCacheKey(e),o=l?this._cache.get(l):null;if(o)return new w.G(o,e,this);let u=(0,x.fn)(a)&&!(0,x.aI)(this.spatialReference,a),d=n||s,c=async e=>(u&&d&&await this._project(e,a),l&&this._cache.put(l,e.items),e),p=this.featureStore.featureSpatialReference,f=!i||null==p||(0,x.aI)(p,i.spatialReference)?i:(0,S.Cv)(i,p);if(!f)return await c(t??await this._getAllFeaturesQueryEngineResult(e));yield;let h=this.featureAdapter,m=await this._searchFeatures(L(i));yield;let y=e.spatialRel??"esriSpatialRelIntersects";if("esriSpatialRelDisjoint"===y){if(!m.length)return await c(t??await this._getAllFeaturesQueryEngineResult(e));let i,r=new Set;for(let e of m)r.add(h.getObjectId(e));null==t?(yield,i=await this._getAllFeatures(),yield):i=t.items;let a=await(0,M.xt)(y,f,this.geometryType);yield;let n=yield*this._runSpatialFilter(i,e=>!r.has(h.getObjectId(e))||a(h.getGeometry(e)));return yield,await c(new w.G(n,e,this))}if(null!=t){let e=new r.vW;m=m.filter(i=>(0,r.qh)(t.items,i,t.items.length,e)>=0)}if(!m.length){let t=new w.G([],e,this);return l&&this._cache.put(l,t.items),t}if(this._canExecuteSinglePass(f,e))return await c(new w.G(m,e,this));let g=await(0,M.xt)(y,f,this.geometryType);yield;let _=yield*this._runSpatialFilter(m,e=>g(h.getGeometry(e)));return yield,await c(new w.G(_,e,this))}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds?.length||null==this.aggregateAdapter)return;let t=new Set;for(let i of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(i).forEach(e=>t.add(e));let i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds?.length)return;let t=new Set(e.query.objectIds),i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeTimeQuery(e){if(0===e.items.length)return;let t=(0,D.I)(this.timeInfo,e.query.timeExtent,this.featureAdapter);null!=t&&(e.items=e.items.filter(t))}_executeAttributesQuery(e){if(0===e.items.length)return;let t=(0,v.j4)(e.query.where,this.fieldsIndex);if(t){if(!t.isStandardized)throw TypeError("Where clause is not standardized");e.items=e.items.filter(e=>t.testFeature(e,this.featureAdapter))}}async*_executeGeometryQueryForSnapping(e){let{query:t}=e,{spatialRel:i}=t;if(!e?.items?.length||!t.geometry||!i)return;let r=await(0,M.xt)(i,t.geometry,this.geometryType);yield;let a=this.featureAdapter;e.items=yield*this._runSpatialFilter(e.items,e=>r(a.getGeometry(e)))}*_runSpatialFilter(e,t){if(!t)return e;if(null==this._frameTask)return e.filter(e=>t(e));let i=yield,r=[];for(let a of e)t(a)&&r.push(a),i.madeProgress(),i.done&&(i=yield);return r}_filterLatest(e){let{trackIdField:t,startTimeField:i,endTimeField:r}=this.timeInfo,a=r||i,n=new Map,s=this.featureAdapter.getAttribute;for(let i of e.items){let e=s(i,t),r=s(i,a),l=n.get(e);(!l||r>s(l,a))&&n.set(e,i)}e.items=Array.from(n.values())}_getCacheKey(e){let{geometry:t,spatialRel:i,returnGeometry:r,returnCentroid:a,outSR:n,resultType:s,cacheHint:l}=e;if("tile"!==s&&!l)return null;let o=r||a,u=(0,x.fn)(n)&&!(0,x.aI)(this.spatialReference,n);return JSON.stringify(u&&o?[t,i,n]:[t,i])}_canExecuteSinglePass(e,t){let{spatialRel:i}=t;return(0,M.tC)(e)&&("esriSpatialRelEnvelopeIntersects"===i||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===i||"esriSpatialRelContains"===i))}async _project(e,t){if(!t||(0,x.aI)(this.spatialReference,t))return e;let i=this.featureAdapter,r=(0,c.isLoaded)()?await this._getFullExtent():void 0,n=await(0,S.lK)(e.items.map(e=>(0,T.pL)(this.geometryType,i.getGeometry(e))),this.spatialReference,t,{areaOfInterestExtent:r});return e.items=(0,a.z)(n.map((t,r)=>i.cloneWithGeometry(e.items[r],(0,_.Ux)(t,this.hasZ,this.hasM),this.geometryType))),e}async _searchFeatures(e){let t=new Set;await Promise.all(e.map(e=>this.featureStore.forEachInBounds(e,e=>t.add(e))));let i=Array.from(t.values());return t.clear(),i}async*_executeQueryForStatistics(e,t){e=(0,s.o8)(e);try{e=await(0,A.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t,{fieldsIndex:i,geometryType:r,spatialReference:a,availableFields:s}){if(null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new n.A(C,"Unsupported query options",{query:e});return V(i,s,e),Promise.all([z(i,s,t,e),(0,M.c0)(e,r,a),(0,S.Nk)(a,e.outSR)]).then(()=>e)}(e,t,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;let i=yield*this._executeSceneFilterQuery(e);yield;let r=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(r),yield,this._executeObjectIdsQuery(r),yield,this._executeTimeQuery(r),yield,this._executeAttributesQuery(r),yield,r}catch(t){if(t!==A.v8)throw t;return new w.G([],e,this)}}get test(){}}function L(e){if((0,M.tC)(e)){if((0,m.ZC)(e))return[(0,f.fA)(Math.min(e.xmin,e.xmax),Math.min(e.ymin,e.ymax),Math.max(e.xmin,e.xmax),Math.max(e.ymin,e.ymax))];if((0,m.Bi)(e))return e.rings.map(e=>(0,f.fA)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1])))}return[(0,h.Rg)((0,f.vt)(),e)]}function q(e,t,i,r,a){let n={xmin:e[0],ymin:e[1],xmax:e[3],ymax:e[4],spatialReference:r};a&&isFinite(e[2])&&isFinite(e[5])&&(n.zmin=e[2],n.zmax=e[5],n.hasZ=!0);let s=(0,S.Cv)(n,t,i);if(s.spatialReference=i,s.xmax-s.xmin===0){let e=(0,u.GA)(s.spatialReference);s.xmin-=e,s.xmax+=e}if(s.ymax-s.ymin===0){let e=(0,u.GA)(s.spatialReference);s.ymin-=e,s.ymax+=e}if(a&&null!=s.zmin&&null!=s.zmax&&s.zmax-s.zmin===0){let e=(0,u.GA)(s.spatialReference);s.zmin-=e,s.zmax+=e}return s}},99352(e,t,i){i.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},8384(e,t,i){i.d(t,{G:()=>O});var r=i(4576),a=i(18370),n=i(4718),s=i(16930),l=i(12359),o=i(90634),u=i(62577),d=i(21325),c=i(46329),p=i(52006),f=i(88930),h=i(29441),m=i(51441),y=i(30524),g=i(1873),x=i(43668);class _{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=i,this.featureAdapter=t;let r=e.outFields;if(r&&!r.includes("*")){this.outFields=r;let e=0;for(let t of r){let r=(0,h.Wq)(t),a=this.fieldsIndex.get(r),n=a?null:(0,h.j4)(r,i),s=a?a.name:(0,h.SY)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:s,clause:n})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach(e=>this.getAttributes(e)),this._returnDistinctMap.size):e.length}getAttributes(e){let t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){if(i)return this.featureAdapter.getAttribute(e,i.name);let r=t,a=null;return this._fieldDataCache.has(r)?a=this._fieldDataCache.get(r)?.clause:i||(a=(0,h.j4)(t,this.fieldsIndex),this._fieldDataCache.set(r,{alias:r,clause:a})),a?.calculateValue(e,this.featureAdapter)}getDataValues(e,t,i=!0){let r=t.normalizationType,a=t.normalizationTotal,n=this.fieldsIndex.get(t.field),s=(0,y.zD)(n)||(0,y.Ah)(n),l=(0,y.OH)(n);return e.map(e=>{let n=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2?(n=`${(0,g.gJ)(n)}${t.fieldDelimiter}${(0,g.gJ)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(n=`${n}${t.fieldDelimiter}${(0,g.gJ)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)):"string"==typeof n&&i&&(s?n=n?new Date(n).getTime():null:l&&(n=n?(0,f.rb)(n):null)),r&&Number.isFinite(n)){let i="field"===r&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;n=(0,g.zS)(n,r,i,a)}return n})}async getExpressionValues(e,t,i,r,a){let{arcadeUtils:n}=await(0,x.l)(),s=n.hasGeometryOperations(t);s&&await n.enableGeometryOperations();let l=n.createFunction(t),o=n.getViewInfo(i),u={fields:this.fieldsIndex.fields};return e.map(e=>{let t={attributes:this.featureAdapter.getAttributes(e),layer:u,geometry:s?{...(0,m.pL)(r.geometryType,this.featureAdapter.getGeometry(e)),spatialReference:i.spatialReference}:null},d=n.createExecContext(t,o,a);return n.executeFunction(l,d)})}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,h.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,h.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){let t=this.outFields;if(!t?.length)return this.featureAdapter.getAttributes(e);let i={};for(let r of t){let{alias:t,clause:a}=this._fieldDataCache.get(r);i[t]=a?a.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return i}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;let t=this.outFields,i=[];if(t)for(let r of t){let{alias:t}=this._fieldDataCache.get(r);i.push(e[t])}else for(let t in e)i.push(e[t]);let r=`${(t||["*"]).join(",")}=${i.join(",")}`,a=this._returnDistinctMap.get(r)||0;return this._returnDistinctMap.set(r,++a),a>1?null:e}}var v=i(31464),T=i(58727);class S{constructor(e,t,i){this.objectId=e,this.target=t,this.distance=i}}class F extends S{constructor(e,t,i){super(e,t,i),this.type="vertex"}}class E extends S{constructor(e,t,i,r,a,n=!1,s=null){super(e,t,i),this.start=r,this.end=a,this.draped=n,this.curve=s,this.type="edge"}}var R=i(5834),I=i(59977),w=i(57231),A=i(11440),M=i(60909),b=(i(98623),i(34747));const C=(0,a.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6491)]).then(()=>i(55666)));class O{constructor(e,t,i){this.items=e,this.query=t,this.geometryType=i.geometryType,this.hasZ=!!t.returnZ&&i.hasZ,this.hasM=!!t.returnM&&i.hasM,this.fieldsIndex=i.fieldsIndex,this.spatialReference=i.spatialReference,this.featureAdapter=i.featureAdapter,this.featureIdInfo=i.featureIdInfo}get size(){return this.items.length}createQueryResponseForCount(){let e=new _(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);let{groupByFieldsForStatistics:t,having:i,outStatistics:r}=this.query;if(!t?.length)return 1;let a=new Map,n=new Map,s=new Set;for(let l of r){let{statisticType:r}=l,o="exceedslimit"===r?void 0:l.onStatisticField;if(!n.has(o)){let i=[];for(let r of t){let t=this._getAttributeValues(e,r,this.items,a);i.push(t)}n.set(o,this._calculateUniqueValues(i,this.items,e.returnDistinctValues))}let u=n.get(o);for(let t in u){let{data:r,items:a}=u[t],n=r.join(",");(!i||e.validateItems(a,i))&&s.add(n)}}return s.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some(e=>"exceedslimit"===e.statisticType)?this._createExceedsLimitQueryResponse():await this._createStatisticsQueryResponse(this.query,this.items):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){let t=this.query.geometry;(0,d.fn)(this.query.outSR)&&!(0,d.aI)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,m.ag)({spatialReference:this.query.outSR,...(0,v.Cv)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,m.ag)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t,i){let r=this.featureAdapter,{point:a}=e,n="number"==typeof e.distance?e.distance:e.distance.x,s="number"==typeof e.distance?e.distance:e.distance.y;function l(e,t){let i=(e-a.x)/n,r=(t-a.y)/s;return i*i+r*r}let o={candidates:[]},u="esriGeometryPolygon"===this.geometryType,d="esriGeometryPolyline"===this.geometryType||"esriGeometryPoint"===this.geometryType,f=this._getPointCreator(t,this.spatialReference,i),h=new z(null,0),m=new z(null,0),y={x:0,y:0,z:0};for(let e of this.items){let t=r.getObjectId(e),i=r.getGeometryWithCurves?.(e);if(null!=i){x(i,t);continue}let a=r.getGeometry(e);null!=a&&g(a,t)}return o.candidates.sort((e,t)=>e.distance-t.distance),o;function g(t,i){let{coords:r,stride:n}=t,s=t.isPoint?D:t.lengths;if(h.coords=r,m.coords=r,e.returnEdge){let e=0;for(let t=0;t<s.length;t++){let r=s[t],d=e;for(let t=0;t<r;t++,e+=n){if(!u&&t===r-1||(h.coordsIndex=e,m.coordsIndex=t===r-1?d:e+n,!N(y,a,h,m)))continue;let s=l(y.x,y.y);s<=1&&o.candidates.push(new E(i,f(y),Math.sqrt(s),f(h),f(m)))}}}if("all"===e.vertexMode){let e=0;for(let t=0;t<s.length;t++){let r=s[t],a=e,d=m;d.coordsIndex=a;for(let t=0;t<r;t++,e+=n){if(h.coordsIndex=e,u&&t===r-1&&h.x===d.x&&h.y===d.y)continue;let a=l(h.x,h.y);a<=1&&o.candidates.push(new F(i,f(h),Math.sqrt(a)))}}}else if(d&&"ends"===e.vertexMode){let e=0,t=[];for(let i=0;i<s.length;i++){t.push(e);let r=s[i];e+=r*n,r>1&&t.push(e-n)}for(let e of t){h.coordsIndex=e;let t=l(h.x,h.y);t<=1&&o.candidates.push(new F(i,f(h),Math.sqrt(t)))}}}function x(t,i){let{candidates:r}=o,n={x:0,y:0,z:0};if(e.returnEdge){let e=[a.x,a.y],s=new z(e,0),o=new z(e,0);for(let{segments:a}of t.parts)for(let{start:t,curve:u}of a){let{curvePoint:a}=(0,c.y)(t,u,e),d=l(...a);if(d>1)continue;[n.x,n.y]=a,s.coords=t,o.coords=(0,p.yP)(u);let h=(0,p.Xq)(u)?null:(0,p.tk)(u);r.push(new E(i,f(n),Math.sqrt(d),f(s),f(o),!1,h))}}function s(e){n.x=t.vertexXY[2*e],n.y=t.vertexXY[2*e+1];let a=l(n.x,n.y);a>1||(n.z=t.vertexZ?.[e]??0,r.push(new F(i,f(n),Math.sqrt(a))))}if("all"===e.vertexMode){let{vertexCount:e}=t;for(let t=0;t<e;++t)s(t)}else if("ends"===e.vertexMode)switch(t.type){case"point":s(0);break;case"polyline":for(let e=0;e<t.partCount;++e){let i=t.partOffsets[e],r=t.partOffsets[e+1]-1;s(i),r!==i&&s(r)}}}}_getPointCreator(e,t,i){let r=null==i||(0,d.aI)(t,i)?e=>e:e=>(0,v.Cv)(e,t,i),{hasZ:a}=this;return a&&e?({x:e,y:t,z:i})=>r({x:e,y:t,z:i}):({x:e,y:t})=>r({x:e,y:t,z:0})}async createSummaryStatisticsResponse(e){let{field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,minValue:s,maxValue:l,scale:o,timeZone:u,outStatisticTypes:d}=e,c=this.fieldsIndex.get(t),p=(0,y.vE)(c)||(0,y.zD)(c)||(0,y.Ah)(c),f=await this._getDataValues({field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,scale:o,timeZone:u},this.items),h=(0,g.Vb)({normalizationType:a,normalizationField:r,minValue:s,maxValue:l}),m={value:.5,fieldType:c?.type},x=(0,y.yM)(c)?(0,g.z9)({values:f,supportsNullCount:h,percentileParams:m,outStatisticTypes:d}):(0,g.G_)({values:f,minValue:s,maxValue:l,useSampleStdDev:!a,supportsNullCount:h,percentileParams:m,outStatisticTypes:d});return(0,g.oZ)(x,d,p)}async createUniqueValuesResponse(e){let{field:t,valueExpression:i,domains:r,returnAllCodedValues:a,scale:n,timeZone:s}=e,l=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:i,scale:n,timeZone:s},this.items,!1),o=(0,g.b3)(l);return(0,g.lv)(o,r,a,e.fieldDelimiter)}async createClassBreaksResponse(e){let{field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,classificationMethod:s,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:d,scale:c,timeZone:p}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,scale:c,timeZone:p},this.items),h=(0,g.Rw)(f,{field:t,normalizationField:r,normalizationType:a,normalizationTotal:n,classificationMethod:s,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:d});return(0,g.jM)(h,s)}async createHistogramResponse(e){let{field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,classificationMethod:s,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:d,scale:c,timeZone:p}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,scale:c,timeZone:p},this.items);return(0,g.$y)(f,{field:t,normalizationField:r,normalizationType:a,normalizationTotal:n,classificationMethod:s,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:d})}_sortFeatures(e,t,i){if(e.length>1&&t?.length)for(let r of t.slice().reverse()){let{compare:t,fieldOrExpression:a,fieldInfo:n}=B(r,this.fieldsIndex);e.sort((e,r)=>t(i(e,a,n),i(r,a,n)))}}_topNFeatures(e,t,i,a){if(e.length>1&&t?.length){let n=t.map(e=>{let{compare:t,fieldOrExpression:i,fieldInfo:r}=B(e,this.fieldsIndex);return(e,n)=>t(a(e,i,r),a(n,i,r))}).reduceRight((e,t)=>(i,r)=>{let a=t(i,r);return 0===a||Number.isNaN(a)?e(i,r):a}),s=[];for(let t of e)(0,r.HX)(s,t,i,n);return s}return e.slice(0,i)}_createFeatureQueryResponse(e){let{items:t,geometryType:i,hasM:r,hasZ:a,featureIdInfo:n,spatialReference:s}=this,{outFields:l,outSR:o,quantizationParameters:d,resultRecordCount:c,resultOffset:p,returnZ:f,returnM:h}=e,y=null!=c&&t.length>(p||0)+c,g=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map(e=>this.fieldsIndex.get(e)));return{exceededTransferLimit:y,features:this._createFeatures(e,t),fields:g,geometryType:i,hasM:r&&h,hasZ:a&&f,objectIdFieldName:"object-id"===n.type?n.fieldName:null,spatialReference:(0,m.ag)(o||s),transform:d&&(0,u.VV)(d)||null}}_createFeatures(e,t){let i,r=new _(e,this.featureAdapter,this.fieldsIndex),{hasM:a,hasZ:n}=this,{orderByFields:s,quantizationParameters:l,returnGeometry:o,returnCentroid:d,maxAllowableOffset:c,resultOffset:p,resultRecordCount:f,returnZ:h=!1,returnM:y=!1}=e,g=n&&h,x=a&&y,v=p||0,T=null==f?null:v+f;null!=T&&T<=5e3&&T<t.length?i=this._topNFeatures(t,s,T,(e,t,i)=>r.getFieldValue(e,t,i)):(i=[...t],this._sortFeatures(i,s,(e,t,i)=>r.getFieldValue(e,t,i))),(v>0||null!=T)&&(i=i.slice(v,T??void 0));let S=[],F=0;if(this.geometryType&&(o||d)){let e=(0,u.VV)(l)??void 0,t="esriGeometryPolygon"===this.geometryType||"esriGeometryPolyline"===this.geometryType;if(o&&!d)for(let a of i){let i=this.featureAdapter.getGeometry(a),n=this._addFeatureJSONMetadata(a,{attributes:r.getAttributes(a),geometry:(0,m.pL)(this.geometryType,i,c,e,g,x)});t&&i&&!n.geometry&&(n.centroid=(0,m.LQ)(this,this.featureAdapter.getCentroid(a,this),e)),S[F++]=n}else if(!o&&d)for(let t of i)S[F++]=this._addFeatureJSONMetadata(t,{attributes:r.getAttributes(t),centroid:(0,m.LQ)(this,this.featureAdapter.getCentroid(t,this),e)});else for(let t of i)S[F++]=this._addFeatureJSONMetadata(t,{attributes:r.getAttributes(t),centroid:(0,m.LQ)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,m.pL)(this.geometryType,this.featureAdapter.getGeometry(t),c,e,g,x)})}else for(let e of i){let t=r.getAttributes(e);t&&(S[F++]=this._addFeatureJSONMetadata(e,{attributes:t}))}return S}_addFeatureJSONMetadata(e,t){let i=this.featureAdapter.getMetadata?.(e);return void 0!==i&&(t.metadata=i),t}_createExceedsLimitQueryResponse(){let e=!1,t=1/0,i=1/0,r=1/0;for(let e of this.query.outStatistics??[])if("exceedslimit"===e.statisticType){t=null==e.maxPointCount?1/0:e.maxPointCount,i=null==e.maxRecordCount?1/0:e.maxRecordCount,r=null==e.maxVertexCount?1/0:e.maxVertexCount;break}return e="esriGeometryPoint"===this.geometryType?this.items.length>t:this.items.length>i||this.items.reduce((e,t)=>e+(this.featureAdapter.getGeometry(t)?.size??0),0)>r,{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(e)}}]}}async _createStatisticsQueryResponse(e,t,i={attributes:{}}){let r=[],a=new Map,n=new Map,s=new Map,l=new Map,o=new _(e,this.featureAdapter,this.fieldsIndex),u=e.outStatistics,{groupByFieldsForStatistics:d,having:c,orderByFields:p,resultRecordCount:f}=e,h=d?.length,m=!!h,g=m?d[0]:null,x=m&&!this.fieldsIndex.get(g);for(let p of u??[]){let{outStatisticFieldName:u,statisticType:f}=p,_=p,v="exceedslimit"===f?void 0:p.onStatisticField,T="percentile_disc"===f||"percentile_cont"===f,S="EnvelopeAggregate"===f||"CentroidAggregate"===f||"ConvexHullAggregate"===f,F=m&&1===h&&(v===g||x)&&"count"===f;if(m){if(!s.has(v)){let e=[];for(let i of d){let r=this._getAttributeValues(o,i,t,a);e.push(r)}s.set(v,this._calculateUniqueValues(e,t,!S&&o.returnDistinctValues))}let i=s.get(v);if(!i)continue;let r=Object.keys(i);for(let n of r){let{count:r,data:s,items:p,itemPositions:f}=i[n],h=s.join(",");if(!c||o.validateItems(p,c)){let i=l.get(h)||{attributes:{}};if(e.returnAggIds&&(i.aggregateIds=p.map(e=>this.featureAdapter.getObjectId(e)).filter(e=>null!=e)),S){i.aggregateGeometries||={};let{aggregateGeometries:e,outStatisticFieldName:t}=await this._getAggregateGeometry(_,p);i.aggregateGeometries[t]=e}else{let e=null;if(F)e=r;else{let i=this._getAttributeValues(o,v,t,a),r=f.map(e=>i[e]);e=T&&"statisticParameters"in _?this._getPercentileValue(_,r):this._getStatisticValue(_,r,null,o.returnDistinctValues)}i.attributes[u]=e}let n=0;d.forEach((e,t)=>i.attributes[this.fieldsIndex.get(e)?e:"EXPR_"+ ++n]=s[t]),l.set(h,i)}}}else if(S){i.aggregateGeometries||={};let{aggregateGeometries:e,outStatisticFieldName:r}=await this._getAggregateGeometry(_,t);i.aggregateGeometries[r]=e}else{let e=this._getAttributeValues(o,v,t,a);i.attributes[u]=T&&"statisticParameters"in _?this._getPercentileValue(_,e):this._getStatisticValue(_,e,n,o.returnDistinctValues)}let E="min"!==f&&"max"!==f||!(0,y.yM)(this.fieldsIndex.get(v))&&!this._isAnyDateField(v)?null:this.fieldsIndex.get(v)?.type;r.push({name:u,alias:u,type:E||"esriFieldTypeDouble"})}let v=m?Array.from(l.values()):[i];return this._sortFeatures(v,p,(e,t)=>e.attributes[t]),f&&(v.length=Math.min(f,v.length)),{fields:r,features:v}}_isAnyDateField(e){let t=this.fieldsIndex.get(e);return(0,y.vE)(t)||(0,y.zD)(t)||(0,y.Ah)(t)||(0,y.OH)(t)}async _getAggregateGeometry(e,t){let{statisticType:i,outStatisticFieldName:r}=e,{featureAdapter:a,spatialReference:n,geometryType:s}=this,u=t.map(e=>(0,m.pL)(s,a.getGeometry(e))),d={aggregateGeometries:null,outStatisticFieldName:null},{convexHullExecuteMany:c}=await C.getImportPromise(),[p]=c(u,{merge:!0});if(p&&p.rings[0].length<=3&&(p=null),"EnvelopeAggregate"===i)d.aggregateGeometries={...p?(0,o.v)(p):V(u),spatialReference:n},d.outStatisticFieldName=r||"extent";else if("CentroidAggregate"===i){let[e,t]=p?(0,l.l8)(p):(0,l.Z4)(V(u));d.aggregateGeometries={x:e,y:t,spatialReference:n},d.outStatisticFieldName=r||"centroid"}else"ConvexHullAggregate"===i&&(d.aggregateGeometries=p&&{...p,spatialReference:n},d.outStatisticFieldName=r||"convexHull");return d}_getStatisticValue(e,t,i,r){let{onStatisticField:a,statisticType:n}=e,s=null;return s=i?.has(a)?i.get(a):(0,y.yM)(this.fieldsIndex.get(a))||this._isAnyDateField(a)?(0,g.z9)({values:t,returnDistinct:r}):(0,g.G_)({values:r?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(a,s),s["var"===n?"variance":n]}_getPercentileValue(e,t){let{onStatisticField:i,statisticParameters:r,statisticType:a}=e,{value:n,orderBy:s}=r,l={value:n,orderBy:s,fieldType:this.fieldsIndex.get(i)?.type,isDiscrete:"percentile_disc"===a};return(0,g.qg)(t,l)}_getAttributeValues(e,t,i,r){if(r.has(t))return r.get(t);let a=this.fieldsIndex.get(t),n=i.map(i=>e.getFieldValue(i,t,a));return r.set(t,n),n}_calculateUniqueValues(e,t,i){let r={},a=t.length;for(let n=0;n<a;n++){let a=t[n],s=[];for(let t of e)s.push(t[n]);let l=s.join(",");null==r[l]?r[l]={count:1,data:s,items:[a],itemPositions:[n]}:(i||r[l].count++,r[l].items.push(a),r[l].itemPositions.push(n))}return r}async _getDataValues(e,t,i=!0){let r=new _(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:a,scale:l,timeZone:o}=e,u=s.A.fromJSON(this.query.outSR||this.spatialReference);return a?r.getExpressionValues(t,a,{viewingMode:"map",scale:l,spatialReference:u},{geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM},o):r.getDataValues(t,(0,n.o8)(e),i)}_calculateHistogramBins(e,t,i){if(null==t.min&&null==t.max)return[];let r=t.intervals,a=t.min??0,n=t.max??0,s=r.map(([e,t])=>({minValue:e,maxValue:t,count:0,items:[]}));for(let t=0;t<e.length;t++){let l=e[t],o=i[t];if(null!=l&&l>=a&&l<=n){let e=(0,g.Ak)(r,l);e>-1&&(s[e].count++,s[e].items.push(o))}}return s}async createQueryBinsResponse(e){let t=e.bin?.splitBy;if(!t)return this._createBinsResponse(e);let{value:i,outAlias:r,valueType:a}=t,n=[],s=[{name:r??i,alias:r??i,type:a??"esriFieldTypeString"},{name:"bin",alias:"bin",type:"esriFieldTypeInteger"}],l=new _(e,this.featureAdapter,this.fieldsIndex),o=new Map,u=[...this.items];this._sortFeatures(u,[i],(e,t,i)=>l.getFieldValue(e,t,i));let d=this._getAttributeValues(l,i,u,o),c=this._calculateUniqueValues([d],u,l.returnDistinctValues);for(let t in c){let{items:a}=c[t],l=await this._createBinsResponse(e,a);if(n.push(...l.features.map(e=>({...e,attributes:{...e.attributes,[r??i]:t}}))),l.fields)for(let e of l.fields)s.some(t=>t.name===e.name)||s.push(e)}return{fields:s,features:n}}async _createBinsResponse(e,t){let i=e.bin;switch(t??=this.items,i.type){case"autoIntervalBin":return this._createAutoIntervalBinsResponse(R.A.fromJSON(i),e,t);case"dateBin":return this._createDateBinsResponse(I.A.fromJSON(i),e,t);case"fixedBoundariesBin":return this._createFixedBoundariesBinsResponse(A.A.fromJSON(i),e,t);case"fixedIntervalBin":return this._createFixedIntervalBinsResponse(M.A.fromJSON(i),e,t)}}async _createAutoIntervalBinsResponse(e,t,i){let{field:r,normalizationField:a,numBins:n,normalizationType:s,normalizationTotal:l,start:o,end:u}=e,d=await this._getDataValues({field:e.field||e.expression,normalizationField:e.normalizationField,normalizationType:e.normalizationType,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),c=(0,g.sU)(d,{field:r,normalizationField:a,normalizationType:s,normalizationTotal:l,numBins:n,minValue:(0,T.dO)(s?e.normalizationMinValue:o,!1),maxValue:(0,T.dO)(s?e.normalizationMaxValue:u,!1)}),p=this._calculateHistogramBins(d,c,i);return this._createFeaturesFromHistogramBins(p,t)}async _createDateBinsResponse(e,t,i){let{field:r,interval:a,start:n,end:s,snapToData:l,returnFullIntervalBin:o,offset:u,firstDayOfWeek:d}=e,c=a.unit,p=await this._getDataValues({field:r||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},i),f=(0,y.OH)(this.fieldsIndex.get(r)),h=w.g.toJSON(c),m=p.filter(Boolean).sort((e,t)=>e-t),g=null==n?m[0]:(0,T.dO)(n,f),x=null==s?m[m.length-1]:(0,T.dO)(s,f),_=[];if(null!=g&&null!=x){let e={zone:t.outTimeReference?.ianaTimeZone??"UTC"},i={[u?.unit?w.g.toJSON(u.unit):"milliseconds"]:u?.value||0},r=b.c9.fromMillis(g,e).minus(i),n=b.c9.fromMillis(x,e).minus(i),s="number"==typeof d&&d>=1&&d<=7?d:7,c=(e,t)=>{let i=(e.weekday-t+7)%7;return e.minus({days:i}).startOf("day")},p=(e,t)=>c(e,t).plus({days:7});if("last"===l){let e="week"===h?p(n,s):n;for(;e>r;){let t=e.minus({[h]:a.value});if(t<r){_.unshift([o?t.plus(i).toMillis():r.plus(i).toMillis(),e.plus(i).toMillis()]);break}_.unshift([t.plus(i).toMillis(),e.plus(i).toMillis()]),e=t}}else{let e="first"===l?r:"week"===h?c(r,s):r.startOf(h);for(;e<=n;){let t=e.plus({[h]:a.value});if(t>n){_.push([e.plus(i).toMillis(),o?t.plus(i).toMillis():n.plus(i).toMillis()]);break}_.push([e.plus(i).toMillis(),t.plus(i).toMillis()]),e=t}}}let v=this._calculateHistogramBins(p,{intervals:_,min:g,max:x},i);return this._createFeaturesFromHistogramBins(v,t)}async _createFixedBoundariesBinsResponse(e,t,i){let{field:r}=e,a=await this._getDataValues({field:r||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},i),n=(0,y.OH)(this.fieldsIndex.get(r)),s=e.boundaries.map(e=>(0,T.dO)(e,n)).sort((e,t)=>e-t),l=[];for(let e=0;e<s.length-1;e++)l.push([s[e],s[e+1]]);let o={intervals:l,min:s.at(0),max:s.at(-1)},u=this._calculateHistogramBins(a,o,i);return this._createFeaturesFromHistogramBins(u,t)}async _createFixedIntervalBinsResponse(e,t,i){let{field:r,interval:a,normalizationType:n,start:s,end:l}=e,o=await this._getDataValues({field:r||e.expression,normalizationField:e.normalizationField,normalizationType:n,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),u=(0,y.OH)(this.fieldsIndex.get(r)),d=(0,g.sU)(o,{field:r,classificationMethod:"defined-interval",definedInterval:a,minValue:(0,T.dO)(n?e.normalizationMinValue:s,u),maxValue:(0,T.dO)(n?e.normalizationMaxValue:l,u)},!0),c=this._calculateHistogramBins(o,d,i);return this._createFeaturesFromHistogramBins(c,t)}async _createFeaturesFromHistogramBins(e,t){let{upperBoundaryAlias:i,lowerBoundaryAlias:r}=t,a=r||"lowerBoundary",n=i||"upperBoundary",s=[],l=[{name:a,alias:a,type:"esriFieldTypeDouble"},{name:n,alias:n,type:"esriFieldTypeDouble"}],o=t.bin?.stackBy?.value,u=t.bin?.stackBy?.outAlias;o&&l.push({name:"bin",alias:"bin",type:"esriFieldTypeInteger"},{name:u??o,alias:u??o,type:"esriFieldTypeString"});let d=0,c="dateBin"===t.bin.type,p=t.outTimeReference?.ianaTimeZone;for(let i of e){let e,{minValue:r,maxValue:f,items:h}=i,m={attributes:{}};if(m.attributes[a]=c&&p&&null!=r?b.c9.fromMillis(r,{zone:p}).toISO():r,t.bin.hideUpperBound||(m.attributes[n]=c&&p&&null!=f?b.c9.fromMillis(f,{zone:p}).toISO():f),t.returnAggIds&&(m.aggregateIds=h.map(e=>this.featureAdapter.getObjectId(e)).filter(e=>null!=e)),o?(e=await this._createStatisticsQueryResponse({...t,groupByFieldsForStatistics:[o],orderByFields:[o]},h),m.attributes.bin=++d,"flat"===t.bin.jsonStyle?s.push(...e.features.map(({attributes:{EXPR_1:e,...t},...i})=>({...i,attributes:u??e?{...t,[u??e]:e,...m.attributes}:{...t,...m.attributes}}))):(m.stackedAttributes=e.features.map(({attributes:{EXPR_1:e,...t}})=>u??e?{...t,[u??e]:e}:t),s.push(m))):(t.bin?.splitBy&&(m.attributes.bin=++d),e=await this._createStatisticsQueryResponse(t,h,m),s.push(m)),e.fields)for(let t of e.fields)l.some(e=>e.name===t.name)||l.push(t)}return"desc"===t.binOrder&&s.reverse(),{fields:l,features:s}}}function V(e){let t=(0,o.HA)(e[0]);for(let i of e.slice(1))(0,o.JM)(t,(0,o.HA)(i));return t}function N(e,t,i,r){let a=r.x-i.x,n=r.y-i.y,s=t.x-i.x,l=t.y-i.y,o=a*a+n*n;if(0===o)return!1;let u=s*a+l*n,d=Math.min(1,Math.max(0,u/o));return e.x=i.x+a*d,e.y=i.y+n*d,!0}class z{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}const D=[1];function B(e,t){let i=e.split(" "),r=i[0],a=t.get(r),n=!!i[1]&&"desc"===i[1].toLowerCase();return{compare:(0,g.FM)(a?.type,n,"case-insensitive"),fieldOrExpression:r,fieldInfo:a}}},29441(e,t,i){i.d(t,{MG:()=>_,SN:()=>f,SY:()=>g,Wq:()=>y,_d:()=>S,eD:()=>h,g9:()=>x,j4:()=>m});var r=i(49186),a=i(44123),n=i(98453);const s=new a.WhereClauseCache(50,500),l="unsupported-query",o=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]),d=new Set(["esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]),c=new Set(["esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...u,...d]);function p(e,t,i={}){let a=m(t,e);if(!a){let i=s.getError(t,e);throw new r.A(l,"invalid SQL expression",{expression:t,error:i})}let n=i.expressionName||"expression";if(i.validateStandardized&&!a.isStandardized)throw new r.A(l,`${n} is not standard`,{expression:t});if(i.validateAggregate&&!a.isAggregate)throw new r.A(l,`${n} does not contain a valid aggregate function`,{expression:t});return a.fieldNames}function f(e,t,i,r){if(!i)return!0;let a="where clause";return _(e,t,p(e,i,{validateStandardized:!0,expressionName:a}),{expressionName:a,query:r}),!0}function h(e,t,i,a,n){if(!i)return!0;let s="having clause";if(_(e,t,p(e,i,{validateAggregate:!0,expressionName:s}),{expressionName:s,query:n}),!m(i,e)?.getExpressions().every(t=>{let{aggregateType:i,field:r}=t,n=e.get(r)?.name;return a.some(t=>{let{onStatisticField:r,statisticType:a}=t;return e.get(r)?.name===n&&a.toLowerCase().trim()===i})}))throw new r.A(l,"expressions in having clause should also exist in outStatistics",{having:i});return!0}function m(e,t){return e?s.get(e,t):null}function y(e){return/\((.*?)\)/.test(e)?e:e.split(o)[0]}function g(e){return e.split(o)[1]}function x(e,t,i){if(!S(t))return[];let r=new Set,a=t=>{if(t&&"*"!==t)for(let i of v(e,t))r.add(i)};for(let e of t)a(e.onStatisticField);for(let e of i??[])a(e);return Array.from(r)}function _(e,t,i,a={}){let n=new Map;if(function(e,t,i,r,a){let n=a.includes("*")?[...i,...a.filter(e=>"*"!==e)]:a;for(let a of n)if(t.get(a))T(e,t,i,r,a);else try{for(let n of v(t,a))T(e,t,i,r,n)}catch(t){e.set(a,{type:"expression-error",expression:a,error:t})}}(n,e,t,a.allowedFieldTypes??c,i),n.size){let e=`${a.expressionName??"expression"} contains invalid or missing fields`;throw new r.A(l,e,{errors:Array.from(n.values()),query:a.query})}}function v(e,t){let i=e.get(t);return i?[i.name]:p(e,y(t),{validateStandardized:!0})}function T(e,t,i,r,a){let s=t.get(a);s?i.has(s.name)?"all"!==r&&!1===r?.has(s.type)&&e.set(a,{type:"invalid-type",fieldName:s.name,fieldType:n.m.fromJSON(s.type),allowedFieldTypes:Array.from(r,e=>n.m.fromJSON(e))}):e.set(a,{type:"missing-field",fieldName:s.name}):e.set(a,{type:"invalid-field",fieldName:a})}function S(e){return null!=e&&e.every(e=>"exceedslimit"!==e.statisticType)}i.d(t,["VW",0,d,"vl",0,u])},58727(e,t,i){i.d(t,{GC:()=>g,T2:()=>x,dO:()=>v,iJ:()=>y});var r=i(49186),a=i(66552),n=i(86211),s=i(39829),l=i(99917),o=i(90634),u=i(60408),d=i(65864),c=i(52039),p=i(21325),f=i(31464);const h=new a.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({});async function y(e,t,i){let r=e.bin;return r.onField&&=r.onField.trim(),r.onExpression?.value&&(r.onExpression.value=r.onExpression.value.trim()),r.splitBy&&(r.splitBy.value&&(r.splitBy.value=r.splitBy.value.trim()),r.splitBy.outAlias&&(r.splitBy.outAlias=r.splitBy.outAlias.trim())),r.stackBy&&(r.stackBy.value&&(r.stackBy.value=r.stackBy.value.trim()),r.stackBy.outAlias&&(r.stackBy.outAlias=r.stackBy.outAlias.trim())),"normalizationField"in r.parameters&&r.parameters.normalizationField&&(r.parameters.normalizationField=r.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),g(e,t,i)}async function g(e,t,i){let{outFields:r,orderByFields:a,groupByFieldsForStatistics:n,outStatistics:s}=e;if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e]=a[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e].onStatisticField&&(s[e].onStatisticField=s[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),x(e,t,i)}async function x(e,t,i){if(!e)return null;let{where:r}=e;if(e.where=r=r?.trim(),(!r||/^1 *= *1$/.test(r)||t&&t===r)&&(e.where=null),!e.geometry)return e;let a=await _(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){let{spatialReference:t}=e.geometry;a=(0,o.HA)(a),a.spatialReference=t}if(!a)return e;await(0,f.Nk)(a.spatialReference,i);let[n]=await(0,c.el)((0,d.rS)(a));if(null==n)throw m;let h=!1;((0,u.ZC)(n)||(0,u.Bi)(n)||(0,u.Rg)(n))&&(h=!(0,p.aI)(n.spatialReference,i)&&!(0,l.canProjectWithoutEngine)(n.spatialReference,i)),h&&(0,u.ZC)(n)&&(n=s.A.fromExtent(n));let y="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,g=h&&y?{extendedParams:{densificationStep:8*y}}:void 0,x=n.toJSON(),v=(0,f.Cv)(x,x.spatialReference,i,g);if(!v)throw m;return v.spatialReference=i,e.geometry=v,e}async function _(e){let{distance:t,units:a}=e,s=e.geometry;if(!t||"vertexAttributes"in s)return s;let l=s.spatialReference,o=a?h.fromJSON(a):(0,n.Ij)(l),d=l&&((0,p.EA)(l)||(0,p.K8)(l))?s:await(0,f.Nk)(l,p.KK).then(()=>(0,f.Cv)(s,p.KK)),{geodesicBufferExecute:c,geodesicBufferLoad:m}=await i.e(9159).then(()=>i(49159));await m();let y=c(d,t||1,{unit:o})??void 0;if(!y||!(0,u.Bi)(y)||0===y.rings.length)throw new r.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return y}function v(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}i.d(t,["VY",0,h,"v8",0,m])},62660(e,t,i){i.d(t,{tC:()=>v,c0:()=>_,xt:()=>x});var r=i(49186),a=i(94078),n=i(12176),s=i(60408),l=i(21325);function o(e,t,i){if(!e)return!1;let{coords:r,lengths:a,stride:n}=e,s=!1,l=0;for(let e of a)s=u(s,r,n,l,e,t,i),l+=e*n;return s}function u(e,t,i,r,a,n,s){let l=e,o=r;for(let e=r,u=r+a*i;e<u;e+=i){o=e+i,o===u&&(o=r);let a=t[e],d=t[e+1],c=t[o],p=t[o+1];(d<s&&p>=s||p<s&&d>=s)&&a+(s-d)/(p-d)*(c-a)<n&&(l=!l)}return l}var d=i(90708),c=i(51441),p=i(31464);const f="unsupported-query",h={esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},m={esriGeometryPoint:!0,esriGeometryMultiPatch:!1,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},y={esriGeometryPoint:!0,esriGeometryMultiPatch:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1},g={esriSpatialRelIntersects:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6033)]).then(()=>i(55284)).then(e=>e.intersectsExecute),esriSpatialRelContains:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(2990)]).then(()=>i(51508)).then(e=>e.containsExecute),esriSpatialRelCrosses:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(919)]).then(()=>i(87778)).then(e=>e.crossesExecute),esriSpatialRelDisjoint:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(9722)]).then(()=>i(3157)).then(e=>e.disjointExecute),esriSpatialRelEnvelopeIntersects:null,esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8740)]).then(()=>i(83371)).then(e=>e.overlapsExecute),esriSpatialRelTouches:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8307)]).then(()=>i(67658)).then(e=>e.touchesExecute),esriSpatialRelWithin:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(100)]).then(()=>i(65487)).then(e=>e.withinExecute),esriSpatialRelRelation:null};async function x(e,t,i){if((0,s.Bi)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e)){let e=(0,d.Ye)(t,!1,!1);return t=>function(e,t){return o(e,t.coords[0],t.coords[1])}(e,t)}if("esriGeometryMultipoint"===i){let i=(0,d.Ye)(t,!1,!1);if("esriSpatialRelContains"===e)return e=>function(e,t){let{coords:i,lengths:r,stride:a}=t;if(!r)return!1;for(let t=0,n=0;t<r.length;t++,n+=a)if(!o(e,i[n],i[n+1]))return!1;return!0}(i,e)}}if((0,s.ZC)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return e=>(0,a.qz)(t,(0,c.pL)(i,e));if("esriGeometryMultipoint"===i&&"esriSpatialRelContains"===e)return e=>(0,a.rL)(t,(0,c.pL)(i,e));if("esriSpatialRelIntersects"===e){let e="mesh"===(r=i)?n.xB:(0,n.xK)(r);return r=>e(t,(0,c.pL)(i,r))}}var r;"esriSpatialRelEnvelopeIntersects"===e&&(e="esriSpatialRelIntersects");let l=await function(e){let t=g[e];if(null==t)throw Error(`Cannot load unsupported spatial operator: ${e}`);return t()}(e);return e=>l(t,(0,c.pL)(i,e))}async function _(e,t,i){let{spatialRel:a,geometry:n}=e;if(n){if(null==(o=a)||!0!==h[o])throw new r.A(f,"Unsupported query spatial relationship",{query:e});if((0,l.fn)(n.spatialReference)&&(0,l.fn)(i)){if(!function(e){return null!=e&&!0===m[(0,s.$B)(e)]}(n))throw new r.A(f,"Unsupported query geometry type",{query:e});if(!function(e){return null!=e&&!0===y[e]}(t))throw new r.A(f,"Unsupported layer geometry type",{query:e});if(e.outSR)return(0,p.Nk)(e.geometry?.spatialReference,e.outSR)}}var o}function v(e){if((0,s.ZC)(e))return!0;if((0,s.Bi)(e)){for(let t of e.rings)if(5!==t.length||t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1;return!0}return!1}},86420(e,t,i){i.d(t,{I:()=>n,W:()=>a});var r=i(21818);async function a(e,t){if(!e)return null;let i=t.featureAdapter,{startTimeField:a,endTimeField:n}=e,s=1/0,l=-1/0;if(a&&n)await t.forEach(e=>{let t=i.getAttribute((0,r.z)(e),a),o=i.getAttribute((0,r.z)(e),n);null!=t&&!isNaN(t)&&(s=Math.min(s,t)),null!=o&&!isNaN(o)&&(l=Math.max(l,o))});else{let e=a||n;await t.forEach(t=>{let a=i.getAttribute((0,r.z)(t),e);null!=a&&!isNaN(a)&&(s=Math.min(s,a),l=Math.max(l,a))})}return{start:s,end:l}}function n(e,t,i){if(!t||!e)return null;let{startTimeField:r,endTimeField:a}=e;if(!r&&!a)return null;let{start:n,end:s}=t;if(null===n&&null===s)return null;if(void 0===n&&void 0===s)return()=>!1;let l=i.getAttributeAsTimestamp?.bind(i)??i.getAttribute.bind(i);return r&&a?function(e,t,i,r,a){return null!=r&&null!=a?n=>{let s=e(n,t),l=e(n,i);return(null==s||s<=a)&&(null==l||l>=r)}:null!=r?t=>{let a=e(t,i);return null==a||a>=r}:null!=a?i=>{let r=e(i,t);return null==r||r<=a}:void 0}(l,r,a,n,s):function(e,t,i,r){return null!=i&&null!=r&&i===r?r=>e(r,t)===i:null!=i&&null!=r?a=>{let n=e(a,t);return null!=n&&n>=i&&n<=r}:null!=i?r=>{let a=e(r,t);return null!=a&&a>=i}:null!=r?i=>{let a=e(i,t);return null!=a&&a<=r}:void 0}(l,r||a,n,s)}},5834(e,t,i){i.d(t,{A:()=>c});var r=i(32198),a=i(93637),n=i(91429),s=i(78888),l=i(41266),o=i(41366),u=i(93223);function d(e,t,i){(0,a.sM)(i,e instanceof Date?e.getTime():e,t)}let c=class extends((0,o.K)(l.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],c.prototype,"numBins",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.end",write:{writer:d}}})],c.prototype,"end",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.start",write:{writer:d}}})],c.prototype,"start",void 0),(0,r.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,r.Cg)([(0,n.$K)("esri.rest.support.AutoIntervalBinParameters")],c),c.from=(0,s.dp)(c)},41266(e,t,i){i.d(t,{A:()=>m});var r=i(32198),a=i(69540),n=i(66552),s=i(25482),l=i(91429),o=i(78888),u=i(93223);const d=new n.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let c=class extends((0,a.OU)(s.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"outAlias",write:!0}})],c.prototype,"alias",void 0),(0,r.Cg)([(0,l.MZ)({type:String})],c.prototype,"responseType",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"value",void 0),(0,r.Cg)([(0,u.e)(d)],c.prototype,"valueType",void 0),c=(0,r.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsGrouping")],c);const p=c;c.from=(0,o.dp)(c);const f=new n.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),h=new n.J({naturalLog:"natural-log",squareRoot:"square-root"});let m=class extends((0,a.OU)(s.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],m.prototype,"expression",void 0),(0,r.Cg)([(0,u.e)(f,{name:"onExpression.valueType"})],m.prototype,"expressionValueType",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"onField",write:!0}})],m.prototype,"field",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"firstDayOfWeek",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hideUpperBound",void 0),(0,r.Cg)([(0,l.MZ)({type:p,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],m.prototype,"splitBy",void 0),(0,r.Cg)([(0,l.MZ)({type:p,json:{write:{target:{stackBy:{type:p},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>p.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],m.prototype,"stackBy",void 0),(0,r.Cg)([(0,u.e)(h)],m.prototype,"transformation",void 0),m=(0,r.Cg)([(0,l.$K)("esri.rest.support.BinParametersBase")],m)},9760(e,t,i){i.d(t,{A:()=>d});var r=i(32198),a=i(66552),n=i(25482),s=i(91429),l=i(93223);const o=new a.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new a.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends n.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,r.Cg)([(0,l.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{read:o.read,write:o.write}})],d.prototype,"classificationMethod",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,r.Cg)([(0,s.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,r.Cg)([(0,s.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,r.Cg)([(0,s.$K)("esri.rest.support.ClassBreaksDefinition")],d)},59977(e,t,i){i.d(t,{A:()=>y});var r=i(32198),a=i(93637),n=i(91429),s=i(78888),l=i(41266),o=i(69540),u=i(25482),d=i(57231),c=i(93223);let p=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"number",write:!0}})],p.prototype,"value",void 0),(0,r.Cg)([(0,c.e)(d.g)],p.prototype,"unit",void 0),p=(0,r.Cg)([(0,n.$K)("esri.rest.support.DateBinTimeInterval")],p);const f=p;function h(e,t,i){(0,a.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function m(e,t){let i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}p.from=(0,s.dp)(p);let y=class extends l.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,r.Cg)([(0,n.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.end",read:{reader:(e,t)=>m(t,"end")},write:{writer:h}}})],y.prototype,"end",void 0),(0,r.Cg)([(0,n.MZ)({type:f,json:{name:"parameters",write:!0}})],y.prototype,"interval",void 0),(0,r.Cg)([(0,n.MZ)({type:f,json:{name:"parameters.offset",write:!0}})],y.prototype,"offset",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],y.prototype,"returnFullIntervalBin",void 0),(0,r.Cg)([(0,n.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.start",read:{reader:(e,t)=>m(t,"start")},write:{writer:h}}})],y.prototype,"start",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],y.prototype,"snapToData",void 0),(0,r.Cg)([(0,c.e)({dateBin:"date"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,r.Cg)([(0,n.$K)("esri.rest.support.DateBinParameters")],y),y.from=(0,s.dp)(y)},57231(e,t,i){const r=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});i.d(t,["g",0,r])},11440(e,t,i){i.d(t,{A:()=>u});var r=i(32198),a=i(93637),n=i(91429),s=i(78888),l=i(41266),o=i(93223);let u=class extends l.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,a.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,r.Cg)([(0,o.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,n.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,s.dp)(u)},60909(e,t,i){i.d(t,{A:()=>c});var r=i(32198),a=i(93637),n=i(91429),s=i(78888),l=i(41266),o=i(41366),u=i(93223);function d(e,t,i){(0,a.sM)(i,e instanceof Date?e.getTime():e,t)}let c=class extends((0,o.K)(l.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.end",write:{writer:d}}})],c.prototype,"end",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],c.prototype,"interval",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.start",write:{writer:d}}})],c.prototype,"start",void 0),(0,r.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,r.Cg)([(0,n.$K)("esri.rest.support.FixedIntervalBinParameters")],c),c.from=(0,s.dp)(c)},41366(e,t,i){var r=i(32198),a=i(66552),n=i(53966),s=i(91429),l=i(93223);const o=(0,a.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",d="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&d||i&&u||null,t&&i&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===d||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,l.e)(o,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,o])},84892(e,t,i){i.d(t,{t:()=>n});var r=i(53966);function a(e,t){return Number(e.toFixed(t))}function n(e,t){let{normalizationTotal:i}=e;return{classBreaks:s(e,t),normalizationTotal:i}}function s(e,t){let i=e.definition,{classificationMethod:r,normalizationType:n,definedInterval:s}=i,u=i.breakCount??1,d=[],c=e.values;if(0===c.length)return[];c=c.sort((e,t)=>e-t);let[p,f]=t??[c.at(0),c.at(-1)];if("equal-interval"===r)if(c.length>=u){let e=(f-p)/u,t=p;for(let i=1;i<u;i++){let r=a(p+i*e,6);d.push({minValue:t,maxValue:r,label:l(t,r,n)}),t=r}d.push({minValue:t,maxValue:f,label:l(t,f,n)})}else c.forEach(e=>{d.push({minValue:e,maxValue:e,label:l(e,e,n)})});else if("natural-breaks"===r){let t=function(e){let t=[],i=[],r=Number.MIN_VALUE,a=1,n=-1;for(let s=0;s<e.length;s++){let l=e[s];l===r?(a++,i[n]=a):null!==l&&(t.push(l),r=l,a=1,i.push(a),n++)}return{uniqueValues:t,valueFrequency:i}}(c),i=e.valueFrequency||t.valueFrequency,r=o(t.uniqueValues,i,u),s=p;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let i=a(t.uniqueValues[r[e]],6);d.push({minValue:s,maxValue:i,label:l(s,i,n)}),s=i}d.push({minValue:s,maxValue:f,label:l(s,f,n)})}else if("quantile"===r)if(c.length>=u&&p!==f){let e=p,t=Math.ceil(c.length/u),i=0;for(let r=1;r<u;r++){let a=t+i-1;a>c.length&&(a=c.length-1),a<0&&(a=0),d.push({minValue:e,maxValue:c[a],label:l(e,c[a],n)}),e=c[a],i+=t,t=Math.ceil((c.length-i)/(u-r))}d.push({minValue:e,maxValue:f,label:l(e,f,n)})}else{let e=-1;for(let t=0;t<c.length;t++){let i=c[t];i!==e&&(e=i,d.push({minValue:e,maxValue:i,label:l(e,i,n)}),e=i)}}else if("standard-deviation"===r){let e=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i];return t/=e.length,t}(c),t=function(e,t){let i=0;for(let r=0;r<e.length;r++){let a=e[r];i+=(a-t)*(a-t)}return i/=e.length,Math.sqrt(i)}(c,e);if(0===t)d.push({minValue:c[0],maxValue:c[0],label:l(c[0],c[0],n)});else{let i=function(e,t,i,r,a){let n=Math.max(r-e,t-r)/a/i;return n=n>=1?1:n>=.5?.5:.25,n}(p,f,u,e,t)*t,r=0,s=p;for(let t=u;t>=1;t--){let o=a(e-(t-.5)*i,6);d.push({minValue:s,maxValue:o,label:l(s,o,n)}),s=o,r++}let o=a(e+.5*i,6);d.push({minValue:s,maxValue:o,label:l(s,o,n)}),s=o,r++;for(let t=1;t<=u;t++)o=r===2*u?f:a(e+(t+.5)*i,6),d.push({minValue:s,maxValue:o,label:l(s,o,n)}),s=o,r++}}else if("defined-interval"===r){if(!s)return d;let[e,i]=t??[c.at(0),c.at(-1)],r=Math.ceil((i-e)/s),o=e;for(let t=1;t<r;t++){let i=a(e+t*s,6);d.push({minValue:o,maxValue:i,label:l(o,i,n)}),o=i}d.push({minValue:o,maxValue:i,label:l(o,i,n)})}return d}function l(e,t,i){let r=null;return r=e===t?i&&"percent-of-total"===i?e+"%":e.toString():i&&"percent-of-total"===i?e+"% - "+t+"%":e+" - "+t,r}function o(e,t,i){let r=e.length,a=[];i>r&&(i=r);for(let e=0;e<i;e++)a.push(Math.round(e*r/i-1));a.push(r-1);let n=u(a,e,t,i);return function(e,t,i,r,a,n){let s=0,l=0,o=0,u=0,c=!0;for(let p=0;p<2&&c;p++){0===p&&(c=!1);for(let p=0;p<n-1;p++)for(;i[p+1]+1!==i[p+2];){i[p+1]=i[p+1]+1;let n=d(p,i,r,a);o=n.sbMean,s=n.sbSdcm;let f=d(p+1,i,r,a);if(u=f.sbMean,l=f.sbSdcm,!(s+l<t[p]+t[p+1])){i[p+1]=i[p+1]-1;break}t[p]=s,t[p+1]=l,e[p]=o,e[p+1]=u,c=!0}for(let p=n-1;p>0;p--)for(;i[p]!==i[p-1]+1;){i[p]=i[p]-1;let n=d(p-1,i,r,a);o=n.sbMean,s=n.sbSdcm;let f=d(p,i,r,a);if(u=f.sbMean,l=f.sbSdcm,!(s+l<t[p-1]+t[p])){i[p]=i[p]+1;break}t[p-1]=s,t[p]=l,e[p-1]=o,e[p]=u,c=!0}}return c}(n.mean,n.sdcm,a,e,t,i)&&(n=u(a,e,t,i)),a}function u(e,t,i,r){let a=[],n=[],s=[],l=0,o=[],u=[];for(let a=0;a<r;a++){let r=d(a,e,t,i);o.push(r.sbMean),u.push(r.sbSdcm),l+=u[a]}let c,p=l,f=!0;for(;f||l<p;){f=!1,a=[];for(let t=0;t<r;t++)a.push(e[t]);for(let i=0;i<r;i++)for(let a=e[i]+1;a<=e[i+1];a++)if(c=t[a],i>0&&a!==e[i+1]&&Math.abs(c-o[i])>Math.abs(c-o[i-1]))e[i]=a;else if(i<r-1&&e[i]!==a-1&&Math.abs(c-o[i])>Math.abs(c-o[i+1])){e[i+1]=a-1;break}p=l,l=0,n=[],s=[];for(let a=0;a<r;a++){n.push(o[a]),s.push(u[a]);let r=d(a,e,t,i);o[a]=r.sbMean,u[a]=r.sbSdcm,l+=u[a]}}if(l>p){for(let t=0;t<r;t++)e[t]=a[t],o[t]=n[t],u[t]=s[t];l=p}return{mean:o,sdcm:u}}function d(e,t,i,a){let n=0,s=0;for(let r=t[e]+1;r<=t[e+1];r++){let e=a[r];n+=i[r]*e,s+=e}s<=0&&r.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let l=n/s,o=0;for(let r=t[e]+1;r<=t[e+1];r++)o+=a[r]*(i[r]-l)**2;return{sbMean:l,sbSdcm:o}}},1873(e,t,i){i.d(t,{$y:()=>N,Ak:()=>D,FM:()=>h,G_:()=>p,Rw:()=>O,Vb:()=>d,b3:()=>A,gJ:()=>u,jM:()=>V,lv:()=>b,oZ:()=>w,qg:()=>f,sU:()=>z,z9:()=>c,zS:()=>C});var r=i(9760),a=i(84892);const n=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,s=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),l=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),o=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function d(e){let t=null!=e.normalizationField||null!=e.normalizationType,i=null!=e.minValue||null!=e.maxValue,r=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!i&&!r}function c(e){let{outStatisticTypes:t}=e,i=e.returnDistinct?[...new Set(e.values)]:e.values,r=i.filter(e=>null!=e).sort(),a=r.length,n={count:a,min:r[0],max:r[a-1]};return e.supportsNullCount&&(n.nullcount=i.length-a),e.percentileParams&&(!t?.include?.length||t.include.includes("median"))&&(!t?.exclude?.length||!t.exclude.includes("median"))&&(n.median=f(i,e.percentileParams)),n}function p(e){let{values:t,useSampleStdDev:i,supportsNullCount:r,outStatisticTypes:a}=e,n=1/0,s=-1/0,l=null,o=null,u=null,d=null,c=0,p=null==e.minValue?-1/0:e.minValue,h=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=p&&e<=h&&(l=null===l?e:l+e,n=Math.min(n,e),s=Math.max(s,e),c++):"string"==typeof e&&c++;if(c&&null!=l){o=l/c;let e=0;for(let i of t)Number.isFinite(i)&&i>=p&&i<=h&&(e+=(i-o)**2);d=i?c>1?e/(c-1):0:c>0?e/c:0,u=Math.sqrt(d)}else n=null,s=null;let m={avg:o,count:c,max:s,min:n,stddev:u,sum:l,variance:d};return r&&(m.nullcount=t.length-c),e.percentileParams&&(!a?.include?.length||a.include.includes("median"))&&(!a?.exclude?.length||!a.exclude.includes("median"))&&(m.median=f(t,e.percentileParams)),m}function f(e,t){let{fieldType:i,value:r,orderBy:a,isDiscrete:n}=t,s=h(i,"desc"===a,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>s(e,t)),0===e.length)return null;if(r<=0)return e[0];if(r>=1)return e[e.length-1];let l=(e.length-1)*r,o=Math.floor(l),u=o+1,d=l%1,c=e[o],p=e[u];return u>=e.length||n||"string"==typeof c||"string"==typeof p?c:c*(1-d)+p*d}function h(e,t,i="case-sensitive"){if(e){if(s.has(e))return R(t);if(l.has(e))return S(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?_:x}(t);let r=S(t,"case-sensitive"===i);if("esriFieldTypeString"===e)return r;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>r(I(e),I(t))}let r=t?1:-1,a=R(t),n=S(t,"case-sensitive"===i),o=g(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?a(e,t):"string"==typeof e&&"string"==typeof t?n(e,t):o(e,t)??r}const m=(e,t)=>null==e?null==t?0:1:null==t?-1:null,y=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function g(e){return e?m:y}const x=(e,t)=>y(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),_=(e,t)=>m(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),v=(e,t)=>y(e,t)??(e===t?0:e<t?-1:1),T=(e,t)=>m(e,t)??(e===t?0:e<t?1:-1);function S(e,t){if(t)return e?T:v;let i=g(e);return e?(e,t)=>i(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>i(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const F=(e,t)=>m(e,t)??t-e,E=(e,t)=>y(e,t)??e-t;function R(e){return e?F:E}function I(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function w(e,t,i){let r;for(r in e)t?.include?.length&&!t.include.includes(r)||t?.exclude?.length&&t.exclude.includes(r)?delete e[r]:o.includes(r)&&(Number.isFinite(e[r])||(e[r]=null));return i&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function A(e){let t={};for(let i of e)(null==i||"string"==typeof i&&""===i.trim())&&(i=null),null==t[i]?t[i]={count:1,data:i}:t[i].count++;return{count:t}}function M(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function b(e,t,i,r){let a=e.count,n=[];if(i&&t){let e=[],i=M(t[0]);for(let a of i)if(t[1]){let i=M(t[1]);for(let n of i)if(t[2]){let i=M(t[2]);for(let t of i)e.push(`${u(a)}${r}${u(n)}${r}${u(t)}`)}else e.push(`${u(a)}${r}${u(n)}`)}else e.push(a);for(let t of e)a.hasOwnProperty(t)||(a[t]={data:t,count:0})}for(let e in a){let t=a[e];n.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:n}}function C(e,t,i,r){let a=null;switch(t){case"log":0!==e&&(a=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(r)&&0!==r&&(a=e/r*100);break;case"field":Number.isFinite(i)&&0!==i&&(a=e/i);break;case"natural-log":e>0&&(a=Math.log(e));break;case"square-root":e>0&&(a=e**.5)}return a}function O(e,t,i){let n=function(e){let{breakCount:t,field:i,normalizationField:a,normalizationType:n}=e,s=e.classificationMethod||"equal-interval",l="standard-deviation"===s?e.standardDeviationInterval||1:void 0,o="defined-interval"===s?e.definedInterval:void 0;return new r.A({breakCount:t,classificationField:i,classificationMethod:s,normalizationField:"field"===n?a:void 0,normalizationType:n,standardDeviationInterval:l,definedInterval:o})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,i){let r=t??-1/0,a=i??1/0;return e.filter(e=>Number.isFinite(e)&&e>=r&&e<=a)}(e,t.minValue,t.maxValue),(0,a.t)({definition:n,values:e,normalizationTotal:t.normalizationTotal},i)}function V(e,t){let i=e.classBreaks,r=i.length,a=i[0]?.minValue,s=i[r-1]?.maxValue,l="standard-deviation"===t,o=n;return i=i.map(e=>{let t=e.label,i={minValue:e.minValue,maxValue:e.maxValue,label:t};if(l&&t){let e=t.match(o)?.map(e=>+e.trim())??[];2===e.length?(i.minStdDev=e[0],i.maxStdDev=e[1],e[0]<0&&e[1]>0&&(i.hasAvg=!0)):1===e.length&&(t.includes("<")?(i.minStdDev=null,i.maxStdDev=e[0]):t.includes(">")&&(i.minStdDev=e[0],i.maxStdDev=null))}return i}),{minValue:a,maxValue:s,classBreakInfos:i,normalizationTotal:e.normalizationTotal}}function N(e,t){let i=z(e,t);if(null==i.min&&null==i.max)return{bins:[],minValue:i.min,maxValue:i.max,normalizationTotal:t.normalizationTotal};let r=i.intervals,a=i.min??0,n=i.max??0,s=r.map((e,t)=>({minValue:r[t][0],maxValue:r[t][1],count:0}));for(let t of e)if(null!=t&&t>=a&&t<=n){let e=D(r,t);e>-1&&s[e].count++}return{bins:s,minValue:a,maxValue:n,normalizationTotal:t.normalizationTotal}}function z(e,t,i=!1){let{field:r,classificationMethod:a,standardDeviationInterval:n,definedInterval:s,normalizationType:l,normalizationField:o,normalizationTotal:u,minValue:c,maxValue:f}=t,h=t.numBins||10,m=null,y=null,g=null;if(a&&"equal-interval"!==a||l){let{classBreaks:t}=O(e,{field:r,normalizationType:l,normalizationField:o,normalizationTotal:u,classificationMethod:a,standardDeviationInterval:n,definedInterval:s,minValue:c,maxValue:f,numClasses:h},null!=c&&null!=f?[c,f]:void 0);m=t[0]?.minValue,y=t[t.length-1]?.maxValue,g=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=c&&null!=f)m=c,y=f;else{let t=p({values:e,minValue:c,maxValue:f,useSampleStdDev:!l,supportsNullCount:d({normalizationType:l,normalizationField:o,minValue:c,maxValue:f})});m=t.min??null,y=t.max??null}g=function(e,t,i){let r,a=(t-e)/i,n=[],s=e;for(let e=1;e<=i;e++)r=s+a,r=Number(r.toFixed(16)),n.push([s,e===i?t:r]),s=r;return n}(m??0,y??0,h)}if(i&&g.length){let e=g.at(-1)[1];g.push([e,e])}return{min:m,max:y,intervals:g}}function D(e,t){let i=-1;for(let r=e.length-1;r>=0;r--)if(t>=e[r][0]){i=r;break}return i}},92359(e,t,i){i.d(t,{nu:()=>p,W6:()=>u}),i(4576),i(71511),i(44208),i(53966);var r=i(17676),a=(i(36708),i(44794),i(78659)),n=i(32198),s=i(69622),l=i(91429);let o=class extends s.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,n.Cg)([(0,l.MZ)()],o.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,n.Cg)([(0,l.MZ)()],o.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),o=(0,n.Cg)([(0,l.$K)("esri.views.support.debugFlags")],o),new o,i(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,a.l5)(6.5),(0,a.l5)(1),(0,a.l5)(30),(0,a.l5)(1e3/30),(0,a.l5)(100),Symbol.dispose;const d=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};d.enabled=!1;class c{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,i){try{if((0,r.G4)(t)){let e=(0,r.NK)();return i?Promise.resolve(i(e)):Promise.reject(e)}return(0,r.z7)(e(d))}catch(e){return Promise.reject(e)}}reschedule(e,t,i){return this.schedule(e,t,i)}async scheduleGenerator(e,t,i){if((0,r.G4)(t)){let e=(0,r.NK)();if(i)return i(e);throw e}let a=e(d);for(;;){let e=a.next(d),n=(0,r.$X)(e)?await e:e;if((0,r.G4)(t)){let e=(0,r.NK)();if(i){let t=i(e),n=a.return(null);return(0,r.$X)(n)&&await(0,r.QZ)(n),t}let t=a.throw(e);throw(0,r.$X)(t)&&await(0,r.QZ)(t),e}if(n.done)return n.value}}}const p=new c}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9789],{78247(e,t,i){i.d(t,{A:()=>pe});var o,n=i(32198),s=i(69540),r=i(25482),p=i(3483),l=i(91429),a=i(36005);let u=o=class extends r.o{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"expression",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({type:["boolean","date","dictionary","number","string"],json:{write:!0}})],u.prototype,"returnType",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"title",void 0),u=o=(0,n.Cg)([(0,l.$K)("esri.form.ExpressionInfo")],u);const y=u;var m=i(4718),d=i(79901),c=i(43937),h=i(28787),g=i(78888);let w=class extends((0,s.OU)(r.o)){constructor(){super(...arguments),this.type=null}};(0,n.Cg)([(0,l.MZ)()],w.prototype,"type",void 0),w=(0,n.Cg)([(0,l.$K)("esri.form.elements.inputs.attachments.Input")],w);const C=w,x=["any","capture","upload"];let M=class extends C{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,n.Cg)([(0,l.MZ)({type:["audio"],readOnly:!0,json:{write:!0}})],M.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:x,json:{write:!0}})],M.prototype,"inputMethod",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxDuration",void 0),M=(0,n.Cg)([(0,l.$K)("esri.form.elements.inputs.attachments.AudioInput")],M);const v=M;let f=class extends C{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,n.Cg)([(0,l.MZ)({type:["document"],readOnly:!0,json:{write:!0}})],f.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],f.prototype,"maxFileSize",void 0),f=(0,n.Cg)([(0,l.$K)("esri.form.elements.inputs.attachments.DocumentInput")],f);const b=f;let Z=class extends C{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,n.Cg)([(0,l.MZ)({type:["image"],readOnly:!0,json:{write:!0}})],Z.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:x,json:{write:!0}})],Z.prototype,"inputMethod",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],Z.prototype,"maxImageSize",void 0),Z=(0,n.Cg)([(0,l.$K)("esri.form.elements.inputs.attachments.ImageInput")],Z);const j=Z;let S=class extends C{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,n.Cg)([(0,l.MZ)({type:["video"],readOnly:!0,json:{write:!0}})],S.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:x,json:{write:!0}})],S.prototype,"inputMethod",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxDuration",void 0),S=(0,n.Cg)([(0,l.$K)("esri.form.elements.inputs.attachments.VideoInput")],S);const E=S;let T=class extends C{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,n.Cg)([(0,l.MZ)({type:["signature"],readOnly:!0,json:{write:!0}})],T.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:x,json:{write:!0}})],T.prototype,"inputMethod",void 0),T=(0,n.Cg)([(0,l.$K)("esri.form.elements.inputs.attachments.SignatureInput")],T);const K=T;function N(e){return{nestableTypes:{base:C,key:"type",typeMap:{audio:v,document:b,image:j,signature:K,video:E}},allTypes:{base:C,key:"type",typeMap:{attachment:e,audio:v,document:b,image:j,signature:K,video:E}}}}let A=class extends C{constructor(e){super(e),this.type="attachment",this.attachmentAssociationType="exact"}get inputTypes(){return this._get("inputTypes")??null}set inputTypes(e){this._set("inputTypes",e)}castInputs(e){return i=I,(t=e)?t.map(e=>(0,g.aq)(i.nestableTypes,e)):null;var t,i}readInputs(e,t){let i=function(e,t){if(!e)return null;let i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>i[e.type].fromJSON(e))}(t.inputTypes,I);return null==i||Array.isArray(i)&&i.length<1?[new j,new b,new E,new v]:i}writeInputs(e,t){(null==e||Array.isArray(e)&&e.length<1)&&(e=[new j,new b,new E,new v]),t.inputTypes=function(e,t){if(!e)return null;let i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>e.toJSON())}(e,I)}};(0,n.Cg)([(0,l.MZ)({type:["attachment"],readOnly:!0,json:{write:!0}})],A.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:["any","exact","exactOrNone"],json:{write:!0}})],A.prototype,"attachmentAssociationType",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:{isRequired:!0,writerEnsuresNonNull:!0}}})],A.prototype,"inputTypes",null),(0,n.Cg)([(0,l.wg)("inputTypes")],A.prototype,"castInputs",null),(0,n.Cg)([(0,a.w)("inputTypes")],A.prototype,"readInputs",null),(0,n.Cg)([(0,c.K)("inputTypes")],A.prototype,"writeInputs",null),A=(0,n.Cg)([(0,l.$K)("esri.form.elements.inputs.attachments.AttachmentInput")],A);const I=N(A);var O;const F=N(A);let $=O=class extends h.A{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression='StandardizeFilename(`${$formElement.attachmentKeyword}_${Text(Now(), "YMMDDHHmmss")}`)',this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new O({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"allowUserRename",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],$.prototype,"attachmentKeyword",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"displayFilename",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],$.prototype,"editableExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],$.prototype,"filenameExpression",void 0),(0,n.Cg)([(0,l.MZ)({types:F.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],$.prototype,"input",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],$.prototype,"maxAttachmentCount",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],$.prototype,"minAttachmentCount",void 0),(0,n.Cg)([(0,l.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],$.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"useOriginalFilename",void 0),$=O=(0,n.Cg)([(0,l.$K)("esri.form.elements.AttachmentElement")],$);const k=$;var R,V=i(89909),D=i(49852);let L=R=class extends h.A{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new R({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,m.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],L.prototype,"displayCount",void 0),(0,n.Cg)([(0,l.MZ)({type:["list"],json:{write:!0}})],L.prototype,"displayType",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],L.prototype,"editableExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:[D.A],json:{write:!0}})],L.prototype,"orderByFields",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],L.prototype,"relationshipId",void 0),(0,n.Cg)([(0,l.MZ)({type:["relationship"],json:{read:!1,write:!0}})],L.prototype,"type",void 0),L=R=(0,n.Cg)([(0,l.$K)("esri.form.elements.RelationshipElement")],L);const B=L;var q;let W=q=class extends h.A{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new q({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],W.prototype,"text",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],W.prototype,"textFormat",void 0),(0,n.Cg)([(0,l.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],W.prototype,"type",void 0),W=q=(0,n.Cg)([(0,l.$K)("esri.form.elements.TextElement")],W);const U=W;var G=i(83342);let _=class extends((0,s.OU)(h.A)){constructor(e){super(e),this.associationTypes=null,this.editableExpression=null,this.type="utilityNetworkAssociations"}};(0,n.Cg)([(0,l.MZ)({type:[G.A],json:{write:{isRequired:!0}}})],_.prototype,"associationTypes",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],_.prototype,"editableExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:["utilityNetworkAssociations"],json:{read:!1,write:!0}})],_.prototype,"type",void 0),_=(0,n.Cg)([(0,l.$K)("esri.form.elements.UtilityNetworkAssociationsElement")],_);const P=_,z=e=>"field"===e.type,J=e=>"group"===e.type,H=e=>"text"===e.type;function Y(e){return{typesWithGroup:{base:h.A,key:"type",typeMap:{attachment:k,field:V.A,group:e,relationship:B,text:U,utilityNetworkAssociations:P}},typesWithoutGroup:{base:h.A,key:"type",typeMap:{attachment:k,field:V.A,relationship:B,text:U,utilityNetworkAssociations:P}}}}function Q(e,t,i=!0){if(!e)return null;let o=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>o[e.type]).map(e=>o[e.type].fromJSON(e))}function X(e,t,i=!0){if(!e)return null;let o=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>o[e.type]).map(e=>e.toJSON())}function ee(e,t,i=!0){return e?e.map(e=>(0,g.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e)):null}var te;let ie=te=class extends h.A{constructor(e){super(e),this.initialState="expanded",this.type="group"}get elements(){return this._get("elements")??null}set elements(e){this._set("elements",e)}castElements(e){return ee(e,oe,!1)}readElements(e,t){return Q(t.formElements,oe,!1)}writeElements(e,t){t.formElements=X(e,oe,!1)}clone(){return new te({description:this.description,elements:(0,m.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],ie.prototype,"elements",null),(0,n.Cg)([(0,d.w)("elements")],ie.prototype,"castElements",null),(0,n.Cg)([(0,a.w)("elements",["formElements"])],ie.prototype,"readElements",null),(0,n.Cg)([(0,c.K)("elements")],ie.prototype,"writeElements",null),(0,n.Cg)([(0,l.MZ)({type:["collapsed","expanded"],json:{write:!0}})],ie.prototype,"initialState",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:!1,write:!0}})],ie.prototype,"type",void 0),ie=te=(0,n.Cg)([(0,l.$K)("esri.form.elements.GroupElement")],ie);const oe=Y(ie),ne=ie;var se=i(30524);const re=Y(ne);let pe=class extends((0,s.OU)(r.o)){constructor(e){super(e),this.description=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.supportsAttachmentElements=!1,this.title=null}get elements(){return this._get("elements")??null}set elements(e){this._set("elements",e)}castElements(e){return ee(e,re)}readElements(e,t){return Q(t.formElements,re)}writeElements(e,t){t.formElements=X(e,re)}async getFieldsUsed(e,t){let i=new Set,{description:o,elements:n,expressionInfos:s,title:r}=this;if(ue(i,e,o),ue(i,e,r),!n)return[];let p=function(e,t){if(!t||0===t.length)return[];let i=ae(e),o=[];for(let e of t)i.has(e.name)&&o.push(e.expression);return o}(n,s).map(t=>(0,se.Dx)(i,e,null,t));await Promise.all(p);for(let o of n)le(i,{fieldsIndex:e,relationships:t},o);return Array.from(i).sort()}};function le(e,t,i){let{fieldsIndex:o}=t;if(o?.fields.length!==e.size)switch(ue(e,o,i.label),ue(e,o,i.description),i.type){case"field":(0,se.rq)(e,o,i.fieldName);break;case"group":i.elements.forEach(i=>le(e,t,i));break;case"relationship":if(t.relationships){let n=t.relationships.find(e=>e.id===i.relationshipId);n&&(0,se.rq)(e,o,n.keyField)}(0,se._w)(e,o,i.orderByFields?.map(e=>e.field));break;case"text":ue(e,o,i.text)}}function ae(e){let t=new Set;for(let i of e)if((0,p.kb)(t,i.visibilityExpression),!H(i))if(J(i))(0,p.FB)(t,ae(i.elements));else if((0,p.kb)(t,i.editableExpression),z(i)){let{requiredExpression:e,valueExpression:o}=i;(0,p.FB)(t,[e,o])}return t}function ue(e,t,i){(0,se._w)(e,t,(0,se.nw)(i))}(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],pe.prototype,"description",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],pe.prototype,"elements",null),(0,n.Cg)([(0,l.wg)("elements")],pe.prototype,"castElements",null),(0,n.Cg)([(0,a.w)("elements",["formElements"])],pe.prototype,"readElements",null),(0,n.Cg)([(0,c.K)("elements")],pe.prototype,"writeElements",null),(0,n.Cg)([(0,l.MZ)({type:[y],json:{write:!0}})],pe.prototype,"expressionInfos",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{default:!1,write:!0}})],pe.prototype,"preserveFieldValuesWhenHidden",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{default:!1,write:!0}})],pe.prototype,"supportsAttachmentElements",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],pe.prototype,"title",void 0),pe=(0,n.Cg)([(0,l.$K)("esri.form.FormTemplate")],pe)},28787(e,t,i){i.d(t,{A:()=>p});var o=i(32198),n=i(25482),s=i(10107),r=i(64108);let p=class extends n.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,o.Cg)([(0,s.MZ)()],p.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"visibilityExpression",void 0),p=(0,o.Cg)([(0,r.$)("esri.form.elements.Element")],p)},89909(e,t,i){i.d(t,{A:()=>de});var o=i(32198),n=i(91429),s=i(28787),r=i(25482);let p=class extends r.o{constructor(e){super(e),this.type=null}};(0,o.Cg)([(0,n.MZ)()],p.prototype,"type",void 0),p=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.Input")],p);const l=p;let a=class extends l{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,o.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],a.prototype,"maxLength",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],a.prototype,"minLength",void 0),a=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.TextInput")],a);const u=a;var y;let m=y=class extends u{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new y({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,n.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],m.prototype,"type",void 0),m=y=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.BarcodeScannerInput")],m);const d=m;let c=class extends l{constructor(){super(...arguments),this.noValueOptionLabel=null,this.showNoValueOption=!0}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"noValueOptionLabel",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"showNoValueOption",void 0),c=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.SingleChoiceInput")],c);const h=c;var g;let w=g=class extends h{constructor(e){super(e),this.type="combo-box"}clone(){return new g({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o.Cg)([(0,n.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],w.prototype,"type",void 0),w=g=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.ComboBoxInput")],w);const C=w;var x,M=i(36005),v=i(43937);function f(e){return e??null}function b(e){return e??null}let Z=x=class extends l{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return f(t.max)}writeMax(e,t){t.max=b(e)}readMin(e,t){return f(t.min)}writeMin(e,t){t.min=b(e)}clone(){return new x({max:this.max,min:this.min})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{type:String,write:!0}})],Z.prototype,"max",void 0),(0,o.Cg)([(0,M.w)("max")],Z.prototype,"readMax",null),(0,o.Cg)([(0,v.K)("max")],Z.prototype,"writeMax",null),(0,o.Cg)([(0,n.MZ)({type:String,json:{type:String,write:!0}})],Z.prototype,"min",void 0),(0,o.Cg)([(0,M.w)("min")],Z.prototype,"readMin",null),(0,o.Cg)([(0,v.K)("min")],Z.prototype,"writeMin",null),(0,o.Cg)([(0,n.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],Z.prototype,"type",void 0),Z=x=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.DatePickerInput")],Z);const j=Z;var S;function E(e){return e??null}function T(e){return e??null}let K=S=class extends l{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="timestampoffset-picker"}readMax(e,t){return E(t.max)}writeMax(e,t){t.max=T(e)}readMin(e,t){return E(t.min)}writeMin(e,t){t.min=T(e)}readTimeResolution(e,t){return E(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=T(e)}clone(){return new S({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],K.prototype,"includeTimeOffset",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{type:String,write:!0}})],K.prototype,"max",void 0),(0,o.Cg)([(0,M.w)("max")],K.prototype,"readMax",null),(0,o.Cg)([(0,v.K)("max")],K.prototype,"writeMax",null),(0,o.Cg)([(0,n.MZ)({type:String,json:{type:String,write:!0}})],K.prototype,"min",void 0),(0,o.Cg)([(0,M.w)("min")],K.prototype,"readMin",null),(0,o.Cg)([(0,v.K)("min")],K.prototype,"writeMin",null),(0,o.Cg)([(0,n.MZ)({type:String,json:{type:String,write:!0}})],K.prototype,"timeResolution",void 0),(0,o.Cg)([(0,M.w)("timeResolution")],K.prototype,"readTimeResolution",null),(0,o.Cg)([(0,v.K)("timeResolution")],K.prototype,"writeTimeResolution",null),(0,o.Cg)([(0,n.MZ)({type:["timestampoffset-picker"],json:{read:!1,write:!0}})],K.prototype,"type",void 0),K=S=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],K);const N=K;var A;function I(e){return null==e?null:new Date(e)}function O(e){return e?e.getTime():null}let F=A=class extends l{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return I(t.max)}writeMax(e,t){t.max=O(e)}readMin(e,t){return I(t.min)}writeMin(e,t){t.min=O(e)}clone(){return new A({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"includeTime",void 0),(0,o.Cg)([(0,n.MZ)({type:Date,json:{type:Number,write:!0}})],F.prototype,"max",void 0),(0,o.Cg)([(0,M.w)("max")],F.prototype,"readMax",null),(0,o.Cg)([(0,v.K)("max")],F.prototype,"writeMax",null),(0,o.Cg)([(0,n.MZ)({type:Date,json:{type:Number,write:!0}})],F.prototype,"min",void 0),(0,o.Cg)([(0,M.w)("min")],F.prototype,"readMin",null),(0,o.Cg)([(0,v.K)("min")],F.prototype,"writeMin",null),(0,o.Cg)([(0,n.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],F.prototype,"type",void 0),F=A=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.DateTimePickerInput")],F);const $=F;var k;let R=k=class extends h{constructor(e){super(e),this.choiceExpression=null,this.type="dynamic-choice"}clone(){return new k({choiceExpression:this.choiceExpression,showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],R.prototype,"choiceExpression",void 0),(0,o.Cg)([(0,n.MZ)({type:["dynamic-choice"],json:{read:!1,write:!0}})],R.prototype,"type",void 0),R=k=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.DynamicChoiceInput")],R);const V=R;var D;let L=D=class extends r.o{constructor(e){super(e),this.label="",this.value=""}clone(){return new D({label:this.label,value:this.value})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],L.prototype,"label",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],L.prototype,"value",void 0),L=D=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.multipleChoice.Choice")],L);const B=L;var q;let W=q=class extends r.o{constructor(e){super(e),this.fieldName="",this.hint=null,this.label=null}clone(){return new q({fieldName:this.fieldName,hint:this.hint,label:this.label})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],W.prototype,"fieldName",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],W.prototype,"hint",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],W.prototype,"label",void 0),W=q=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.multipleChoice.OtherChoice")],W);const U=W;var G;let _=G=class extends l{constructor(e){super(e),this.choiceDelimiter=",",this.choices=[],this.includeSelectAllChoices=null,this.maximumChoices=null,this.minimumChoices=null,this.otherChoice=null,this.type="multiple-choice"}clone(){return new G({choiceDelimiter:this.choiceDelimiter,choices:this.choices.map(e=>e.clone()),includeSelectAllChoices:this.includeSelectAllChoices,maximumChoices:this.maximumChoices,minimumChoices:this.minimumChoices,otherChoice:this.otherChoice?.clone()??null})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],_.prototype,"choiceDelimiter",void 0),(0,o.Cg)([(0,n.MZ)({type:[B],json:{write:!0}})],_.prototype,"choices",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],_.prototype,"includeSelectAllChoices",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],_.prototype,"maximumChoices",void 0),(0,o.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],_.prototype,"minimumChoices",void 0),(0,o.Cg)([(0,n.MZ)({type:U,json:{write:!0}})],_.prototype,"otherChoice",void 0),(0,o.Cg)([(0,n.MZ)({type:["multiple-choice"],json:{read:!1,write:!0}})],_.prototype,"type",void 0),_=G=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.MultipleChoiceInput")],_);const P=_;var z;let J=z=class extends h{constructor(e){super(e),this.type="radio-buttons"}clone(){return new z({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,o.Cg)([(0,n.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],J.prototype,"type",void 0),J=z=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.RadioButtonsInput")],J);const H=J;var Y;let Q=Y=class extends l{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new Y({offValue:this.offValue,onValue:this.onValue})}};(0,o.Cg)([(0,n.MZ)({type:[String,Number],json:{write:!0}})],Q.prototype,"offValue",void 0),(0,o.Cg)([(0,n.MZ)({type:[String,Number],json:{write:!0}})],Q.prototype,"onValue",void 0),(0,o.Cg)([(0,n.MZ)({type:["switch"],json:{read:!1,write:!0}})],Q.prototype,"type",void 0),Q=Y=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.SwitchInput")],Q);const X=Q;var ee;let te=ee=class extends u{constructor(e){super(e),this.type="text-area"}clone(){return new ee({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,n.MZ)({type:["text-area"],json:{read:!1,write:!0}})],te.prototype,"type",void 0),te=ee=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.TextAreaInput")],te);const ie=te;var oe;let ne=oe=class extends u{constructor(e){super(e),this.type="text-box"}clone(){return new oe({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,n.MZ)({type:["text-box"],json:{read:!1,write:!0}})],ne.prototype,"type",void 0),ne=oe=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.TextBoxInput")],ne);const se=ne;var re;function pe(e){return e??null}function le(e){return e??null}let ae=re=class extends l{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return pe(t.max)}writeMax(e,t){t.max=le(e)}readMin(e,t){return pe(t.min)}writeMin(e,t){t.min=le(e)}readTimeResolution(e,t){return pe(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=le(e)}clone(){return new re({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{type:String,write:!0}})],ae.prototype,"max",void 0),(0,o.Cg)([(0,M.w)("max")],ae.prototype,"readMax",null),(0,o.Cg)([(0,v.K)("max")],ae.prototype,"writeMax",null),(0,o.Cg)([(0,n.MZ)({type:String,json:{type:String,write:!0}})],ae.prototype,"min",void 0),(0,o.Cg)([(0,M.w)("min")],ae.prototype,"readMin",null),(0,o.Cg)([(0,v.K)("min")],ae.prototype,"writeMin",null),(0,o.Cg)([(0,n.MZ)({type:String,json:{type:String,write:!0}})],ae.prototype,"timeResolution",void 0),(0,o.Cg)([(0,M.w)("timeResolution")],ae.prototype,"readTimeResolution",null),(0,o.Cg)([(0,v.K)("timeResolution")],ae.prototype,"writeTimeResolution",null),(0,o.Cg)([(0,n.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],ae.prototype,"type",void 0),ae=re=(0,o.Cg)([(0,n.$K)("esri.form.elements.inputs.TimePickerInput")],ae);const ue={base:l,key:"type",typeMap:{"barcode-scanner":d,"combo-box":C,"date-picker":j,"datetime-picker":$,"dynamic-choice":V,"multiple-choice":P,"timestampoffset-picker":N,"datetimeoffset-picker":N,"radio-buttons":H,switch:X,"text-area":ie,"text-box":se,"time-picker":ae}};var ye,me=i(8631);let de=ye=class extends s.A{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new ye({description:this.description,domain:this.domain?.clone()??null,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input?.clone(),label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,n.MZ)({types:me.g,json:{read:{reader:me.r},write:!0}})],de.prototype,"domain",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],de.prototype,"editable",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],de.prototype,"editableExpression",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],de.prototype,"fieldName",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],de.prototype,"hint",void 0),(0,o.Cg)([(0,n.MZ)({types:ue,json:{read:{source:"inputType"},write:{target:"inputType"}}})],de.prototype,"input",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],de.prototype,"requiredExpression",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{read:!1,write:!0}})],de.prototype,"type",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],de.prototype,"valueExpression",void 0),de=ye=(0,o.Cg)([(0,n.$K)("esri.form.elements.FieldElement")],de)},6455(e,t,i){i.d(t,{FJ:()=>w,Dp:()=>C,KV:()=>x});var o=i(32198),n=i(93637),s=i(91429),r=i(89317),p=i(69540),l=i(7762),a=i(25482),u=i(83960),y=i(13069);const m={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let d=class extends((0,p.OU)(a.o)){constructor(e){super(e),this.id=(0,y.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"id",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:m})],d.prototype,"maxScale",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:m})],d.prototype,"minScale",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"where",void 0),d=(0,o.Cg)([(0,s.$K)("esri.layers.support.DisplayFilter")],d);var c=i(41560),h=i(43937);let g=class extends((0,p.OU)(a.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(l.A.ofType(d)),this.mode="manual"}writeFilters(e,t,i,o){let n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{let i=(0,u.oW)(t.minScale,e.minScale),o=e.maxScale-t.maxScale;return 0===i?o:i}),t[i]=n.map(e=>e.toJSON(o))}write(e,t){return super.write(e,(0,c.mW)(this,t))}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,o.Cg)([(0,s.MZ)({type:l.A.ofType(d),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,o.Cg)([(0,h.K)("filters")],g.prototype,"writeFilters",null),(0,o.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,o.Cg)([(0,s.$K)("esri.layers.support.DisplayFilterInfo")],g);const w=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,o.Cg)([(0,s.MZ)(C)],i.prototype,"displayFilterEnabled",void 0),(0,o.Cg)([(0,s.MZ)(x)],i.prototype,"displayFilterInfo",void 0),i=(0,o.Cg)([(0,s.$K)("esri.layers.mixins.DisplayFilteredLayer")],i),i},C={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:r.K,writer(e,t,i){(0,n.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},x={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:r.K},origins:{"web-scene":{write:!1,read:!1}}}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,5362],{6797(e,t,r){r.d(t,{Ui:()=>d});var n=r(69622),i=r(7762),o=r(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof n.A}function a(e){return e instanceof i.A?Object.keys(e.items):s(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let n=a(e),i=a(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=i.filter(e=>!n.includes(e)),d=n.filter(e=>!i.includes(e)),y=n.filter(r=>i.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),f=p(e);if(f&&l.has(f)&&y.length)return{type:"complete",oldValue:e,newValue:t};let m,g=s(e)&&s(t);for(let n of y){let i,o=u(e,n),l=u(t,n);if((g||"function"!=typeof o&&"function"!=typeof l)&&o!==l&&(null!=o||null!=l)){if(r&&r[n]&&"function"==typeof r[n])i=r[n]?.(o,l);else if(o instanceof Date&&l instanceof Date){if(o.getTime()===l.getTime())continue;i={type:"complete",oldValue:o,newValue:l}}else i="object"==typeof o&&"object"==typeof l&&p(o)===p(l)?c(o,l):{type:"complete",oldValue:o,newValue:l};null!=i&&(null==m?m={type:"partial",diff:{[n]:i}}:m.diff[n]=i)}}return m}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},88930(e,t,r){r.d(t,{S1:()=>s,VW:()=>a,lL:()=>u,rb:()=>p,t:()=>c});var n=r(97770),i=(r(98623),r(34747));const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,l={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function s(e,t,r,o="system"){if("unknown"===r)return e;let l=new i.oh((0,n.wj)(o)),s=i.c9.fromJSDate(e,{zone:l}),a="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),s.plus({[a]:t}).toJSDate()}function a(e,t,r="milliseconds"){let n=e.getTime(),i=c(t,r,"milliseconds");return new Date(n+i)}function u(e,t,r="system"){let{unit:o}=t,l=Math.max(1,Math.trunc(t.value)),s=new i.oh((0,n.wj)(r)),a=i.c9.fromJSDate(e,{zone:s}),u=e=>e-e%l;switch(o){case"milliseconds":return a.startOf("second").plus({millisecond:u(a.millisecond)}).toJSDate();case"seconds":return a.startOf("minute").plus({second:u(a.second)}).toJSDate();case"minutes":return a.startOf("hour").plus({minute:u(a.minute)}).toJSDate();case"hours":return a.startOf("day").plus({hour:u(a.hour)}).toJSDate();case"days":return a.startOf("month").plus({day:u(a.day-1)}).toJSDate();case"weeks":{let e=a.startOf("year").startOf("week"),t=Math.floor(a.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return a.startOf("year").plus({month:u(a.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=a.startOf("year"),t=("decades"===o?10:"centuries"===o?100:1)*l,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function p(e){let t=o.exec(e);if(!t)return null;let{hh:r,mm:n,ss:i,ms:s}=t.groups;return Number(r)*l.hours+Number(n)*l.minutes+Number(i||0)*l.seconds+Number(s||0)}function c(e,t,r){return 0===e?0:e*l[t]/l[r]}},4146(e,t,r){r.d(t,{A:()=>w});var n=r(32198),i=r(56507),o=r(49186),l=r(65529),s=r(4902),a=r(92474),u=r(53966),p=r(17676),c=r(84952),d=r(91429),y=r(5443),f=r(16930),m=r(92602),g=r(79677);let h=0,w=class extends((0,l.Zt)((0,s.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,f.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+h++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await n(t)}catch(e){let r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,d.MZ)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],w.prototype,"effectiveVisible",null),(0,n.Cg)([(0,d.MZ)({type:y.A})],w.prototype,"fullExtent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,n.Cg)([(0,d.MZ)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,n.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],w.prototype,"parent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,d.MZ)({type:f.A})],w.prototype,"spatialReference",void 0),(0,n.Cg)([(0,d.MZ)({type:String})],w.prototype,"title",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)()],w.prototype,"url",void 0),(0,n.Cg)([(0,d.MZ)({type:g.A})],w.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,n.Cg)([(0,d.$K)("esri.layers.Layer")],w)},52136(e,t,r){var n=r(32198),i=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var n=r(32198),i=r(93637),o=r(91429),l=r(91880);function s(e,t,r){if(!e)return null;let n=e.find(e=>!!e.field);if(!n)return null;let i=new l.A;return i.read(n,r),[i]}const a={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,n){let o=e.find(e=>!!e.field);o&&(0,i.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,n.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var n=r(32198),i=r(69540),o=r(25482),l=r(91429),s=r(56400);let a=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,n.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,n.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,n.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,n.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,n.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,n.Cg)([(0,l.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,n.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(69540),o=r(66552),l=r(25482),s=r(91429);const a=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,i.OU)(l.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>c});var n=r(32198),i=r(69540),o=r(25482),l=r(91429),s=r(8631),a=r(29005),u=r(36005),p=r(43937);let c=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,n.Cg)([(0,u.w)("domains")],c.prototype,"readDomains",null),(0,n.Cg)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,n.Cg)([(0,l.MZ)({type:[a.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],c)},46499(e,t,r){r.d(t,{A:()=>x});var n,i,o=r(32198),l=(r(44208),r(66552)),s=r(25482),a=r(4718),u=r(90629),p=r(91429),c=r(90360),d=r(73913),y=r(32730),f=r(77548),m=r(59868),g=r(73838),h=r(33910),w=r(36005),b=r(43937);const v=new l.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,f.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function M(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let x=class extends s.o{static{n=y.vK}static{i=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let n=e.split(" ");if(3===n.length)return r(t[n[0]],n[1],n[2]);if(7===n.length){let e=r(t[n[0]],n[1],n[2]),i=n[3],o=r(t[n[4]],n[5],n[6]);switch(i){case"AND":return e&&o;case"OR":return e||o}}return!1}catch{}}constructor(e){super(e),this[n]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=m.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,n){if(null==e&&null!=this.labelExpression&&C(n))e=new d.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let i=e.toJSON(n);i.expression&&(t[r]=i)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new i({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],x.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],x.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&M(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],x.prototype,"labelExpression",void 0),(0,o.Cg)([(0,w.w)("labelExpression")],x.prototype,"readLabelExpression",null),(0,o.Cg)([(0,b.K)("labelExpression")],x.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,p.MZ)({type:d.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||M(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],x.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,b.K)("labelExpressionInfo")],x.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,p.MZ)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],x.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],x.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,p.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],x.prototype,"labelPosition",void 0),(0,o.Cg)([(0,p.MZ)({type:Number})],x.prototype,"maxScale",void 0),(0,o.Cg)([(0,b.K)("maxScale")],x.prototype,"writeMaxScale",null),(0,o.Cg)([(0,p.MZ)({type:Number})],x.prototype,"minScale",void 0),(0,o.Cg)([(0,b.K)("minScale")],x.prototype,"writeMinScale",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],x.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],x.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,p.MZ)({types:h.em,json:{types:h.em,origins:{"portal-item":{types:h.em,read:{reader:(0,c.C)({types:h.em})},default:null},"web-scene":{types:h.Rv,read:{reader:(0,c.C)({types:h.Rv})},write:g.oO,default:null}},write:g.oO,default:null}})],x.prototype,"symbol",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"where",void 0),x=i=(0,o.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],x)},73913(e,t,r){r.d(t,{A:()=>p});var n,i=r(32198),o=r(25482),l=r(91429),s=r(32730),a=r(36005),u=r(43937);let p=class extends o.o{static{n=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new n({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,i.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,i.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=n=(0,i.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],p)},37352(e,t,r){r.d(t,{A:()=>a});var n,i=r(32198),o=r(7762),l=r(25482),s=r(91429);let a=n=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(66552),l=r(25482),s=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let u=class extends l.o{static{n=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,i.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var n=r(32198),i=r(69540),o=r(66552),l=r(25482),s=r(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,i.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,n.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,n.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,n.Cg)([(0,s.$K)("esri.layers.support.Relationship")],p)},41560(e,t,r){r.d(t,{Ch:()=>l,mW:()=>o});var n=r(34727),i=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function l(e,t,r){let o=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:n}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],c(n));return t}(e);if(o&&((0,n.gg)(t,o[0])||(0,n.ZH)(r,o[1])))return"";let l=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let i=p(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,n.ZH)(i,t)||(0,n.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],i=e[t+1];if((0,n.ZH)(p(i.minScale),c(r.maxScale)))return!0}return!1}(l,t,r)?"1=1":l.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let n of e.filters)a(n.minScale,n.maxScale,t,r)&&(yield n)}}function a(e,t,r,i){return e=p(e),r=p(r),t=c(t),!(!(0,n.Sp)(r,e)&&(i??r)>e||(0,n.Hx)(t,r)||void 0!==i&&(0,n.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function c(e){return e||0}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var n=r(49186),i=r(53966),o=r(46499);const l=()=>i.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let n=new o.A;if(n.read(e,r),n.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;n.labelExpression=n.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let n=t[e].name;if(n.toLowerCase()===r)return n}return e}(r,e)}]`)}return n}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function c(e,t){let r=[];for(let i of e){let e=i.labelPlacement,o=p[t];if(!i.symbol)return l().warn("No ILabelClass symbol specified."),[];if(!o)return l().error(new n.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(i);else{let n=o[0];e&&l().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${n}`);let s=i.clone();s.labelPlacement=n,r.push(s)}}return r}},77548(e,t,r){r.d(t,{Gh:()=>P,tk:()=>E,BR:()=>A,p2:()=>M,qd:()=>L,wI:()=>x,G$:()=>T,$x:()=>Z,Ov:()=>b,cM:()=>d,UC:()=>y,Qz:()=>f,OP:()=>j,TU:()=>w,F2:()=>m,XX:()=>h,Qi:()=>v,jy:()=>S});var n=r(70333),i=r(56507),o=r(7762),l=(r(84952),r(36563)),s=r(36708),a=r(4146);const u=new WeakMap;function p(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,s.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||p(t))},t=>u.set(e,t),s.pc),(0,l.hA)(()=>u.delete(e))]),u.get(e))}function c(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function d(e){return c(e,"knowledge-graph")&&"layers"in e}function y(e){return c(e,"knowledge-graph-sublayer")}function f(e){return c(e,"link-chart")&&"layers"in e}function m(e){return c(e,"subtype-group")&&"sublayers"in e}function g(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const h={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function w(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function b(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function v(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function S(e){return function(e){return c(e,"catalog-footprint")}(e)||function(e){return c(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return c(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){let t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!S(e))return;let r=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){let e=r.origin;return e&&"featureReductionProvider"in e&&n?C(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?C(n)?n:null:e}async function x(e,t){let r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;let o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;let l=`${e.slice(0,o)}/rest/info`,s=null==t?null:t.signal,{data:a}=await(0,i.A)(l,{query:{f:"json"},responseType:"json",signal:s});return a?.owningSystemUrl||null}function A(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function E(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function L(e){let t=new o.A;for(let r of e.allLayers.concat(e.allTables))p(r)||g(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function T(e){return null}function j(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function P(e,t){if(!t||!j(e))return;let r=(e.url,null);r&&(e.url=r)}},41366(e,t,r){var n=r(32198),i=r(66552),o=r(53966),l=r(91429),s=r(93223);const a=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,n.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},16215(e,t,r){r.d(t,{S:()=>i});const n=Symbol("BasemapInstance");function i(e){return"object"==typeof e&&!!e&&n in e}r.d(t,["Y",0,n])},93470(e,t,r){const n=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};r.d(t,["Cb",0,i,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])},79677(e,t,r){r.d(t,{A:()=>c});var n,i=r(32198),o=r(25482),l=r(88930),s=r(91429),a=(r(98623),r(10184)),u=r(36005),p=r(43937);let c=class extends o.o{static{n=this}static get allTime(){return d}static get empty(){return y}static fromArray(e){return new n({start:null==e[0]?e[0]:new Date(e[0]),end:null==e[1]?e[1]:new Date(e[1])})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null==t.end?null:new Date(t.end)}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&=(0,l.lL)(r,new a.A({value:1,unit:e}),t);let i=this.end;if(i){let r=(0,l.lL)(i,new a.A({value:1,unit:e}),t);i=i.getTime()===r.getTime()?r:(0,l.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,r,i=this.start?.getTime()??-1/0,o=this.end?.getTime()??1/0,l=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;return l>=i&&l<=o?t=l:i>=l&&i<=s&&(t=i),o>=l&&o<=s?r=o:s>=i&&s<=o&&(r=s),null==t||null==r||isNaN(t)||isNaN(r)?n.empty:new n({start:t===-1/0?null:new Date(t),end:r===1/0?null:new Date(r)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let i=new n,{start:o,end:s}=this;return null!=o&&(i.start=(0,l.S1)(o,e,t,r)),null!=s&&(i.end=(0,l.S1)(s,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i.Cg)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,i.Cg)([(0,u.w)("end")],c.prototype,"readEnd",null),(0,i.Cg)([(0,p.K)("end")],c.prototype,"writeEnd",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,i.Cg)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,u.w)("start")],c.prototype,"readStart",null),(0,i.Cg)([(0,p.K)("start")],c.prototype,"writeStart",null),c=n=(0,i.Cg)([(0,s.$K)("esri.time.TimeExtent")],c);const d=new c,y=new c({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>p});var n=r(32198),i=r(69540),o=r(25482),l=r(88930),s=r(91429),a=r(73133),u=r(93223);let p=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,l.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(a.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,n.Cg)([(0,s.$K)("esri.time.TimeInterval")],p)}}]);