@arcgis/core 4.24.0-next.20220427 → 4.24.0-next.20220430

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 (276) hide show
  1. package/WebMap.js +1 -1
  2. package/analysis/LineOfSightAnalysis.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/{3a43a2918b44781aaf85.js → 055a0ebf22a82f859474.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{3273b6be43eeb49ee842.js → 0b12ff7b2ed2838afbb8.js} +1 -1
  6. package/assets/esri/core/workers/chunks/0e25548573baf855e394.js +1 -0
  7. package/assets/esri/core/workers/chunks/0edd4c3ca6e7d749d0e5.js +1 -0
  8. package/assets/esri/core/workers/chunks/133f971e72a1a6277ac4.js +1 -0
  9. package/assets/esri/core/workers/chunks/{c388ac33496f004d56f3.js → 135a90ae61f3b3cae91b.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{54f9b1ab9d472bf4baca.js → 1facbda248863cf72cbd.js} +1 -1
  11. package/assets/esri/core/workers/chunks/1fb2d7abe6c8efa84695.js +1 -0
  12. package/assets/esri/core/workers/chunks/2133499e642193f6738f.js +1 -0
  13. package/assets/esri/core/workers/chunks/{dee63bfc108b4e5893a3.js → 2cf3934b3ecabdf207c8.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{3c572629f46e5093223c.js → 30333a95dc0a44e23fb5.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{7afe89eafab00afb31f2.js → 30837d93116f0337972f.js} +1 -1
  16. package/assets/esri/core/workers/chunks/31df729c17470245288c.js +2 -0
  17. package/assets/esri/core/workers/chunks/{c0bf663240df7be68131.js.LICENSE.txt → 31df729c17470245288c.js.LICENSE.txt} +1 -1
  18. package/assets/esri/core/workers/chunks/4130ea1f5a9f197168d7.js +1 -0
  19. package/assets/esri/core/workers/chunks/{417ee7a88575cb8f9aaf.js → 492b65fe99641f5740f0.js} +1 -1
  20. package/assets/esri/core/workers/chunks/4cdd29e1f3a1c7a39af7.js +1 -0
  21. package/assets/esri/core/workers/chunks/{9a0073d43b7dbaeba736.js → 541e644fc77dbe527124.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{5a61a12b2492c6eae592.js → 59e341b2db44351bf557.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{73630d52768e3d932f30.js → 5a10b58533b4116115ac.js} +1 -1
  24. package/assets/esri/core/workers/chunks/5fd787f63362defc984f.js +1 -0
  25. package/assets/esri/core/workers/chunks/682a8f15f352de76df69.js +1 -0
  26. package/assets/esri/core/workers/chunks/6a06635089761ee3e6d4.js +972 -0
  27. package/assets/esri/core/workers/chunks/{ab0c0c29d54f2ed954d6.js → 86b31ae136f931d7884a.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{dc193247a1980360ec4f.js → 8e98ff9404a802352037.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{863cfe35ee640bac103f.js → 94e51fe1c539df6257c2.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{cbe7e6283a427a618d4b.js → 9519a02b9b8db88a3150.js} +1 -1
  31. package/assets/esri/core/workers/chunks/9f3a094aa4b47e4eb046.js +1 -0
  32. package/assets/esri/core/workers/chunks/{50d256bc3b213c8a1b09.js → a0ebf25c9c9a7f839b93.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{d8a992dee594a6a64fde.js → a25f0a195f9217665530.js} +1 -1
  34. package/assets/esri/core/workers/chunks/a59ee7d2b98c85f27dd2.js +1 -0
  35. package/assets/esri/core/workers/chunks/{92ef9b0c61640e0ecbb4.js → a5dbab94697757c87c49.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{147d3ee9aa81d7b2b7fa.js → a6406a248b7b2ed65f35.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{ebdf61eb364ac0856f40.js → acbd0f4d72d1f5d8e4e8.js} +1 -1
  38. package/assets/esri/core/workers/chunks/acc97a210f36bff2d1b0.js +1 -0
  39. package/assets/esri/core/workers/chunks/ad68fe924456d6d7d4f0.js +1 -0
  40. package/assets/esri/core/workers/chunks/b06c949fc7d08e376a5f.js +1 -0
  41. package/assets/esri/core/workers/chunks/b4405e9fe6c0cf7250d3.js +1 -0
  42. package/assets/esri/core/workers/chunks/b97a34d2e7cceef1ac41.js +1 -0
  43. package/assets/esri/core/workers/chunks/bc08fe3b03767bd694c5.js +1 -0
  44. package/assets/esri/core/workers/chunks/c9b09099488d0e719dfb.js +1 -0
  45. package/assets/esri/core/workers/chunks/{4a05d0dfa73ff570e1fa.js → d15e6662d90718411d62.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{b74b9dceabbf7b1aec39.js → d16aac3461af9cee0c29.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{bb678bc2e2fc48112e07.js → d60dd3e1028f714f2258.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{31c1ae0532dd991da63d.js → d6c150c243ca1f6108f9.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{cab6decfcb3f596a3837.js → d8c59b1d73650c060dfb.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{d24339b37cc9316e6d99.js → dcb6e1b33402d7fa455b.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{a8da24116180d708cf81.js → df653bca2b14dffc82d1.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{a3db91d04fe1fca0fe4f.js → e06461703e6f1acfcfdc.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{423e199c2f695e913c0e.js → e3e1d87b8532bf84a18d.js} +1 -1
  54. package/assets/esri/core/workers/chunks/e7744b7e0c16bba93151.js +1 -0
  55. package/assets/esri/core/workers/chunks/ea50effc5c39870dc871.js +1 -0
  56. package/assets/esri/core/workers/chunks/fc4fd9db056579e09bfe.js +1 -0
  57. package/assets/esri/core/workers/chunks/fc9b5f40c5179a8c90de.js +1 -0
  58. package/assets/esri/core/workers/chunks/fd35b69872ac9393924f.js +1 -0
  59. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ar.json +1 -1
  60. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bg.json +1 -1
  61. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bs.json +1 -1
  62. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ca.json +1 -1
  63. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_cs.json +1 -1
  64. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_da.json +1 -1
  65. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_de.json +1 -1
  66. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_el.json +1 -1
  67. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_es.json +1 -1
  68. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_et.json +1 -1
  69. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fi.json +1 -1
  70. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fr.json +1 -1
  71. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_he.json +1 -1
  72. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hr.json +1 -1
  73. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hu.json +1 -1
  74. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_id.json +1 -1
  75. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_it.json +1 -1
  76. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ja.json +1 -1
  77. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ko.json +1 -1
  78. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lt.json +1 -1
  79. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lv.json +1 -1
  80. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nb.json +1 -1
  81. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nl.json +1 -1
  82. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pl.json +1 -1
  83. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-BR.json +1 -1
  84. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-PT.json +1 -1
  85. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ro.json +1 -1
  86. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ru.json +1 -1
  87. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sk.json +1 -1
  88. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sl.json +1 -1
  89. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sr.json +1 -1
  90. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sv.json +1 -1
  91. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_th.json +1 -1
  92. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_tr.json +1 -1
  93. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_uk.json +1 -1
  94. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_vi.json +1 -1
  95. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-CN.json +1 -1
  96. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-HK.json +1 -1
  97. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-TW.json +1 -1
  98. package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
  99. package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
  100. package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
  101. package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
  102. package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
  103. package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
  104. package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
  105. package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
  106. package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
  107. package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
  108. package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
  109. package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
  110. package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
  111. package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
  112. package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
  113. package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
  114. package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
  115. package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
  116. package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
  117. package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
  118. package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
  119. package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
  120. package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
  121. package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
  122. package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
  123. package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
  124. package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
  125. package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
  126. package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
  127. package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
  128. package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
  129. package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
  130. package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
  131. package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
  132. package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
  133. package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
  134. package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
  135. package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
  136. package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
  137. package/chunks/ColorMaterial.glsl.js +4 -4
  138. package/chunks/LineMarker.glsl.js +12 -12
  139. package/chunks/Pattern.glsl.js +17 -17
  140. package/chunks/RibbonLine.glsl.js +34 -34
  141. package/chunks/ShadedColorMaterial.glsl.js +11 -11
  142. package/chunks/index.js +1 -1
  143. package/chunks/sphere.js +1 -1
  144. package/config.js +1 -1
  145. package/core/workers/RemoteClient.js +1 -1
  146. package/core/workers/WorkerHandle.js +1 -1
  147. package/geometry/support/sphere.js +1 -1
  148. package/interfaces.d.ts +74 -20
  149. package/layers/mixins/PortalLayer.js +1 -1
  150. package/layers/support/LercDecoder.js +1 -1
  151. package/package.json +2 -2
  152. package/request.js +1 -1
  153. package/support/elevationInfoUtils.js +1 -1
  154. package/support/revision.js +1 -1
  155. package/symbols/support/previewSymbol2D.js +1 -1
  156. package/views/2d/engine/brushes.js +1 -1
  157. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  158. package/views/2d/engine/webgl/GraphicDisplayList.js +1 -1
  159. package/views/2d/engine/webgl/Painter.js +1 -1
  160. package/views/2d/engine/webgl/WGLRendererInfo.js +1 -1
  161. package/views/2d/engine/webgl/brushes/WGLBrushDotDensity.js +5 -0
  162. package/views/2d/engine/webgl/brushes/WGLBrushHeatmap.js +5 -0
  163. package/views/2d/engine/webgl/brushes/WGLGeometryBrush.js +1 -1
  164. package/views/2d/engine/webgl/brushes/WGLGeometryBrushFill.js +1 -1
  165. package/views/2d/engine/webgl/brushes/WGLGeometryBrushLabel.js +1 -1
  166. package/views/2d/engine/webgl/brushes/WGLGeometryBrushLine.js +1 -1
  167. package/views/2d/engine/webgl/brushes/WGLGeometryBrushMarker.js +1 -1
  168. package/views/2d/engine/webgl/brushes/WGLGeometryBrushText.js +1 -1
  169. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  170. package/views/2d/engine/webgl/techniques/Technique.js +5 -0
  171. package/views/2d/engine/webgl/techniques/dotDensity/TechniqueDotDensity.js +5 -0
  172. package/views/2d/engine/webgl/techniques/heatmap/TechniqueHeatmap.js +5 -0
  173. package/views/2d/engine/webgl/techniques/utils.js +5 -0
  174. package/views/2d/layers/features/schemaUtils.js +1 -1
  175. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  176. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  177. package/views/2d/layers/features/tileRenderers/support/WGLFeatureView.js +1 -1
  178. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  179. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  180. package/views/3d/camera/constraintUtils/distance.js +1 -1
  181. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  182. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  183. package/views/3d/interactive/analysisTools/lineOfSight/LineOfSightTool.js +1 -1
  184. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  185. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  186. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  187. package/views/3d/layers/I3SMeshView3D.js +1 -1
  188. package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
  189. package/views/3d/layers/I3SPointsWorkerHandle.js +1 -1
  190. package/views/3d/layers/PointCloudWorkerHandle.js +1 -1
  191. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  192. package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
  193. package/views/3d/layers/i3s/I3SNode.js +1 -1
  194. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  195. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  196. package/views/3d/state/utils/navigationUtils.js +1 -1
  197. package/views/3d/support/PBFDecoder.js +1 -1
  198. package/views/3d/support/geometryUtils/sphere.js +1 -1
  199. package/views/3d/terrain/OverlayManager.js +1 -1
  200. package/views/3d/terrain/OverlayRenderer.js +1 -1
  201. package/views/3d/terrain/PatchRenderData.js +1 -1
  202. package/views/3d/terrain/TerrainSurface.js +1 -1
  203. package/views/3d/terrain/Tile.js +1 -1
  204. package/views/3d/terrain/tileUtils.js +1 -1
  205. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  206. package/views/3d/webgl-engine/collections/Component/IndexRange/ComponentRangeRunLengthEncoded.js +1 -1
  207. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  208. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  209. package/views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker.js +1 -1
  210. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  211. package/views/3d/webgl-engine/lib/edgeRendering/EdgeWorkerHandle.js +1 -1
  212. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  213. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  214. package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +1 -1
  215. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  216. package/views/interactive/snapping/LineSnapper.js +1 -1
  217. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  218. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  219. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  220. package/views/interactive/snapping/SnappingManager.js +1 -1
  221. package/views/interactive/snapping/candidates/EdgeSnappingCandidate.js +1 -1
  222. package/views/interactive/snapping/candidates/FeatureSnappingCandidate.js +1 -1
  223. package/views/interactive/snapping/candidates/IntersectionSnappingCandidate.js +1 -1
  224. package/views/interactive/snapping/candidates/LineSnappingCandidate.js +1 -1
  225. package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
  226. package/views/interactive/snapping/candidates/RightAngleSnappingCandidate.js +1 -1
  227. package/views/interactive/snapping/candidates/RightAngleTriangleSnappingCandidate.js +1 -1
  228. package/views/interactive/snapping/candidates/SnappingCandidate.js +1 -1
  229. package/views/interactive/snapping/candidates/VertexSnappingCandidate.js +1 -1
  230. package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
  231. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  232. package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
  233. package/views/interactive/snapping/featureSources/SceneLayerSnappingSource.js +5 -0
  234. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  235. package/views/interactive/snapping/featureSources/queryEngineUtils.js +1 -1
  236. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +5 -0
  237. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorkerHandle.js +5 -0
  238. package/views/interactive/snapping/hints/IntersectionSnappingHint.js +1 -1
  239. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  240. package/views/interactive/snapping/hints/ParallelSnappingHint.js +1 -1
  241. package/views/interactive/snapping/hints/PointSnappingHint.js +1 -1
  242. package/views/interactive/snapping/hints/RightAngleSnappingHint.js +1 -1
  243. package/views/interactive/snapping/hints/SnappingHint.js +1 -1
  244. package/views/interactive/snapping/snappingUtils.js +1 -1
  245. package/views/support/colorUtils.js +1 -1
  246. package/webmap/Bookmark.js +1 -1
  247. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  248. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  249. package/widgets/FeatureTable/Grid/Grid.js +2 -2
  250. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  251. package/widgets/Sketch/SketchViewModel.js +1 -1
  252. package/widgets/Slice/SliceViewModel.js +1 -1
  253. package/widgets/support/AnalysisViewModel.js +1 -1
  254. package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
  255. package/assets/esri/core/workers/chunks/2266d6388444ac5d50b3.js +0 -1
  256. package/assets/esri/core/workers/chunks/3f6b17c9d2629ed396da.js +0 -1
  257. package/assets/esri/core/workers/chunks/404f1d7bce014c7e6965.js +0 -1
  258. package/assets/esri/core/workers/chunks/4e4994665549435f51ee.js +0 -1
  259. package/assets/esri/core/workers/chunks/503226c5c612feab4115.js +0 -1
  260. package/assets/esri/core/workers/chunks/528033aa0d663b4d41bf.js +0 -1
  261. package/assets/esri/core/workers/chunks/54af957c5330933805a3.js +0 -1
  262. package/assets/esri/core/workers/chunks/6ef8de3aa9a8d9c22161.js +0 -1
  263. package/assets/esri/core/workers/chunks/72d8b2ad36f0d0a40a0d.js +0 -1
  264. package/assets/esri/core/workers/chunks/756befc4aa3354e1db1d.js +0 -972
  265. package/assets/esri/core/workers/chunks/8a4e2831e8fdde530b21.js +0 -1
  266. package/assets/esri/core/workers/chunks/9b9821772b6cbe189fe0.js +0 -1
  267. package/assets/esri/core/workers/chunks/9c4d41f20c1a94147344.js +0 -1
  268. package/assets/esri/core/workers/chunks/9cfd66ee9e6328b3693a.js +0 -1
  269. package/assets/esri/core/workers/chunks/b548bf032c8af34fe155.js +0 -1
  270. package/assets/esri/core/workers/chunks/bbcae04235830debd814.js +0 -1
  271. package/assets/esri/core/workers/chunks/bc6f5927f07c5993b998.js +0 -1
  272. package/assets/esri/core/workers/chunks/c0bf663240df7be68131.js +0 -2
  273. package/assets/esri/core/workers/chunks/cd9668acbe3babd2b188.js +0 -1
  274. package/assets/esri/core/workers/chunks/d53c7a9ede56be749f2b.js +0 -1
  275. package/assets/esri/core/workers/chunks/e07930ab66f89d215666.js +0 -1
  276. package/assets/esri/core/workers/chunks/f72de828ede4d0c5e9d7.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4166],{10699:(t,e,r)=>{r.d(e,{I:()=>n});var i=r(43697),s=r(52011);let o=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,i._)([(0,s.j)("esri.core.Identifiable")],e),e};let a=class extends(n(class{})){};a=(0,i._)([(0,s.j)("esri.core.Identifiable")],a)},16453:(t,e,r)=>{r.d(e,{R:()=>b,w:()=>_});var i=r(43697),s=r(15923),o=r(70586),n=r(41103),a=r(22974),l=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new u,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,a.d9)(t),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{t&&t.has(s)||e.set(s,(0,a.d9)(i),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||(0,o.j0)(this._propertyOriginMap.get(t))<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=l.s3.USER){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r&&r.get(t),s=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),s!==i}originOf(t){return this._propertyOriginMap.get(t)||l.s3.DEFAULTS}forEach(t){this._values.forEach(t)}}var p=r(50549),d=r(1153),h=r(52011);const c=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,o.j0)((0,d.vw)(this)),r=e.store,i=new u;e.store=i,(0,n.M)(e,r,i)}read(t,e){(0,p.i)(this,t,e)}getAtOrigin(t,e){const r=y(this),i=(0,l.M9)(e);if("string"==typeof t)return r.get(t,i);const s={};return t.forEach((t=>{s[t]=r.get(t,i)})),s}originOf(t){return(0,l.x3)(this.originIdOf(t))}originIdOf(t){return y(this).originOf(t)}revert(t,e){const r=y(this),i=(0,l.M9)(e),s=(0,d.vw)(this);let o;o="string"==typeof t?"*"===t?r.keys(i):[t]:t,o.forEach((t=>{s.invalidate(t),r.revert(t,i),s.commit(t)}))}};return e=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function y(t){return(0,d.vw)(t).store}let g=class extends(c(s.Z)){};g=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],g);var f=r(76169);const v=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return m(this).delete(t,(0,l.M9)(e))}write(t={},e){return(0,f.c)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,d.vw)(this).setAtOrigin(t,e,(0,l.M9)(r))}removeOrigin(t){const e=m(this),r=(0,l.M9)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),l.s3.USER)}updateOrigin(t,e){const r=m(this),i=(0,l.M9)(e),s=this.get(t);for(let e=i+1;e<l.kk;++e)r.delete(t,e);r.set(t,s,i)}toJSON(t){return this.write({},t)}};return e=(0,i._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function m(t){return(0,d.vw)(t).store}const b=t=>{let e=class extends(v(c(t))){constructor(...t){super(...t)}};return e=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],e),e};let _=class extends(b(s.Z)){};_=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],_)},29600:(t,e,r)=>{r.d(e,{Z:()=>_});var i=r(43697),s=r(68773),o=(r(66577),r(3172)),n=r(20102),a=r(32448),l=r(10699),u=r(83379),p=r(92604),d=r(95330),h=r(17452),c=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),g=r(6570),f=r(82971);let v=0;const m=p.Z.getLogger("esri.layers.Layer");let b=class extends(a.Z.EventedMixin((0,l.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t,i=await r.e(3529).then(r.bind(r,63529));try{return await i.fromUrl(e)}catch(t){throw m.error("#fromArcGISServerUrl({ url: '"+e.url+"'})","Failed to create layer from arcgis server url",t),t}}static async fromPortalItem(t){const e="portalItem"in t?t:{portalItem:t},i=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await i.fromItem(e)}catch(t){const r=e&&e.portalItem,i=r&&r.id||"unset",o=r&&r.portal&&r.portal.url||s.Z.portalUrl;throw m.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",t),t}}initialize(){this.when().catch((t=>{var e,r;(0,d.D_)(t)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(e=this.title)?e:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:t})}))}destroy(){if(this.parent){const t=this,e=this.parent;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"baseLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const t=this.url;return t?(0,h.mN)(t):null}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.default)(t,{query:{f:"json"},responseType:"json"})).data;throw new n.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.Cb)({type:g.Z})],b.prototype,"fullExtent",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i._)([(0,c.Cb)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i._)([(0,c.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i._)([(0,c.Cb)({clonable:!1})],b.prototype,"parent",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i._)([(0,c.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i._)([(0,c.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i._)([(0,c.Cb)({type:f.Z})],b.prototype,"spatialReference",void 0),(0,i._)([(0,c.Cb)({type:String})],b.prototype,"title",void 0),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i._)([(0,c.Cb)()],b.prototype,"url",void 0),(0,i._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i._)([(0,y.j)("esri.layers.Layer")],b);const _=b},44166:(t,e,r)=>{r.r(e),r.d(e,{default:()=>h});var i=r(43697),s=r(20102),o=r(16453),n=r(1654),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),u=r(29600),p=r(16859);let d=class extends((0,p.I)((0,o.R)(u.Z))){constructor(t){super(t),this.resourceInfo=null,this.type="unknown"}initialize(){this.addResolvingPromise(new Promise(((t,e)=>{(0,n.Os)((()=>{const t=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unknown layer type";t&&(r+=" "+t),e(new s.Z("layer:unknown-layer-type",r,{layerType:t}))}))})))}read(t,e){super.read({resourceInfo:t},e)}write(){return null}};(0,i._)([(0,a.Cb)({readOnly:!0})],d.prototype,"resourceInfo",void 0),(0,i._)([(0,a.Cb)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,i._)([(0,a.Cb)({json:{read:!1},readOnly:!0,value:"unknown"})],d.prototype,"type",void 0),d=(0,i._)([(0,l.j)("esri.layers.UnknownLayer")],d);const h=d},16859:(t,e,r)=>{r.d(e,{I:()=>_});var i=r(43697),s=r(40330),o=r(3172),n=r(66643),a=r(20102),l=r(92604),u=r(70586),p=r(95330),d=r(17452),h=r(5600),c=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),g=r(30556),f=r(65587),v=r(15235),m=r(86082);const b=l.Z.getLogger("esri.layers.mixins.PortalLayer"),_=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var t;null==(t=this.portalItem)||t.destroy(),this.portalItem=null}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new v.default({id:e.itemId,portal:r&&r.portal})}writePortalItem(t,e){t&&t.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,p.k_)(e),await i.load({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData},e)}catch(t){throw(0,p.D_)(t)||b.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch((t=>((0,p.r9)(t),!0))))}async _fetchUserHasEditingPrivileges(t){const e=this.url?null==s.id?void 0:s.id.findCredential(this.url):null;if(!e)return!0;const r=w.credential===e?w.user:await this._fetchEditingUser(t);return w.credential=e,w.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){var e,r;const i=null==(e=this.portalItem)||null==(r=e.portal)?void 0:r.user;if(i)return i;const a=s.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,p=f.Z.getDefault();if(p&&p.loaded&&(0,d.Fv)(p.restUrl)===(0,d.Fv)(l))return p.user;const h=`${l}/community/self`,c=(0,u.pC)(t)?t.signal:null,y=await(0,n.q6)((0,o.default)(h,{authMode:"no-prompt",query:{f:"json"},signal:c}));return y.ok?m.default.fromJSON(y.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e&&e.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||f.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,i._)([(0,h.Cb)({type:v.default})],e.prototype,"portalItem",null),(0,i._)([(0,c.r)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,i._)([(0,g.c)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,i._)([(0,h.Cb)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),e=(0,i._)([(0,y.j)("esri.layers.mixins.PortalLayer")],e),e},w={credential:null,user:null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4166],{10699:(t,e,r)=>{r.d(e,{I:()=>n});var i=r(43697),s=r(52011);let o=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,i._)([(0,s.j)("esri.core.Identifiable")],e),e};let a=class extends(n(class{})){};a=(0,i._)([(0,s.j)("esri.core.Identifiable")],a)},16453:(t,e,r)=>{r.d(e,{R:()=>b,w:()=>_});var i=r(43697),s=r(15923),o=r(70586),n=r(41103),a=r(22974),l=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new u,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,a.d9)(t),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{t&&t.has(s)||e.set(s,(0,a.d9)(i),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||(0,o.j0)(this._propertyOriginMap.get(t))<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=l.s3.USER){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r&&r.get(t),s=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),s!==i}originOf(t){return this._propertyOriginMap.get(t)||l.s3.DEFAULTS}forEach(t){this._values.forEach(t)}}var p=r(50549),d=r(1153),h=r(52011);const c=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,o.j0)((0,d.vw)(this)),r=e.store,i=new u;e.store=i,(0,n.M)(e,r,i)}read(t,e){(0,p.i)(this,t,e)}getAtOrigin(t,e){const r=y(this),i=(0,l.M9)(e);if("string"==typeof t)return r.get(t,i);const s={};return t.forEach((t=>{s[t]=r.get(t,i)})),s}originOf(t){return(0,l.x3)(this.originIdOf(t))}originIdOf(t){return y(this).originOf(t)}revert(t,e){const r=y(this),i=(0,l.M9)(e),s=(0,d.vw)(this);let o;o="string"==typeof t?"*"===t?r.keys(i):[t]:t,o.forEach((t=>{s.invalidate(t),r.revert(t,i),s.commit(t)}))}};return e=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function y(t){return(0,d.vw)(t).store}let g=class extends(c(s.Z)){};g=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],g);var f=r(76169);const v=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return m(this).delete(t,(0,l.M9)(e))}write(t={},e){return(0,f.c)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,d.vw)(this).setAtOrigin(t,e,(0,l.M9)(r))}removeOrigin(t){const e=m(this),r=(0,l.M9)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),l.s3.USER)}updateOrigin(t,e){const r=m(this),i=(0,l.M9)(e),s=this.get(t);for(let e=i+1;e<l.kk;++e)r.delete(t,e);r.set(t,s,i)}toJSON(t){return this.write({},t)}};return e=(0,i._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function m(t){return(0,d.vw)(t).store}const b=t=>{let e=class extends(v(c(t))){constructor(...t){super(...t)}};return e=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],e),e};let _=class extends(b(s.Z)){};_=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],_)},29600:(t,e,r)=>{r.d(e,{Z:()=>_});var i=r(43697),s=r(68773),o=(r(66577),r(3172)),n=r(20102),a=r(32448),l=r(10699),u=r(83379),p=r(92604),d=r(95330),h=r(17452),c=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),g=r(6570),f=r(82971);let v=0;const m=p.Z.getLogger("esri.layers.Layer");let b=class extends(a.Z.EventedMixin((0,l.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t,i=await r.e(3529).then(r.bind(r,63529));try{return await i.fromUrl(e)}catch(t){throw m.error("#fromArcGISServerUrl({ url: '"+e.url+"'})","Failed to create layer from arcgis server url",t),t}}static async fromPortalItem(t){const e="portalItem"in t?t:{portalItem:t},i=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await i.fromItem(e)}catch(t){const r=e&&e.portalItem,i=r&&r.id||"unset",o=r&&r.portal&&r.portal.url||s.Z.portalUrl;throw m.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",t),t}}initialize(){this.when().catch((t=>{var e,r;(0,d.D_)(t)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(e=this.title)?e:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:t})}))}destroy(){if(this.parent){const t=this,e=this.parent;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"baseLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const t=this.url;return t?(0,h.mN)(t):null}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.default)(t,{query:{f:"json"},responseType:"json"})).data;throw new n.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.Cb)({type:g.Z})],b.prototype,"fullExtent",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i._)([(0,c.Cb)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i._)([(0,c.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i._)([(0,c.Cb)({clonable:!1})],b.prototype,"parent",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i._)([(0,c.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i._)([(0,c.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i._)([(0,c.Cb)({type:f.Z})],b.prototype,"spatialReference",void 0),(0,i._)([(0,c.Cb)({type:String})],b.prototype,"title",void 0),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i._)([(0,c.Cb)()],b.prototype,"url",void 0),(0,i._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i._)([(0,y.j)("esri.layers.Layer")],b);const _=b},44166:(t,e,r)=>{r.r(e),r.d(e,{default:()=>h});var i=r(43697),s=r(20102),o=r(16453),n=r(1654),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),u=r(29600),p=r(16859);let d=class extends((0,p.I)((0,o.R)(u.Z))){constructor(t){super(t),this.resourceInfo=null,this.type="unknown"}initialize(){this.addResolvingPromise(new Promise(((t,e)=>{(0,n.Os)((()=>{const t=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unknown layer type";t&&(r+=" "+t),e(new s.Z("layer:unknown-layer-type",r,{layerType:t}))}))})))}read(t,e){super.read({resourceInfo:t},e)}write(){return null}};(0,i._)([(0,a.Cb)({readOnly:!0})],d.prototype,"resourceInfo",void 0),(0,i._)([(0,a.Cb)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,i._)([(0,a.Cb)({json:{read:!1},readOnly:!0,value:"unknown"})],d.prototype,"type",void 0),d=(0,i._)([(0,l.j)("esri.layers.UnknownLayer")],d);const h=d},16859:(t,e,r)=>{r.d(e,{I:()=>_});var i=r(43697),s=r(40330),o=r(3172),n=r(66643),a=r(20102),l=r(92604),u=r(70586),p=r(95330),d=r(17452),h=r(5600),c=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),g=r(30556),f=r(65587),v=r(15235),m=r(86082);const b=l.Z.getLogger("esri.layers.mixins.PortalLayer"),_=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var t;null==(t=this.portalItem)||t.destroy(),this.portalItem=null}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new v.default({id:e.itemId,portal:r&&r.portal})}writePortalItem(t,e){t&&t.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,p.k_)(e),await i.load({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData},e)}catch(t){throw(0,p.D_)(t)||b.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch((t=>((0,p.r9)(t),!0))))}async _fetchUserHasEditingPrivileges(t){const e=this.url?null==s.id?void 0:s.id.findCredential(this.url):null;if(!e)return!0;const r=w.credential===e?w.user:await this._fetchEditingUser(t);return w.credential=e,w.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){var e,r;const i=null==(e=this.portalItem)||null==(r=e.portal)?void 0:r.user;if(i)return i;const a=s.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,p=f.Z.getDefault();if(p&&p.loaded&&(0,d.Fv)(p.restUrl)===(0,d.Fv)(l))return p.user;const h=`${l}/community/self`,c=(0,u.pC)(t)?t.signal:null,y=await(0,n.q6)((0,o.default)(h,{authMode:"no-prompt",query:{f:"json"},signal:c}));return y.ok?m.default.fromJSON(y.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e&&e.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||f.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,i._)([(0,h.Cb)({type:v.default})],e.prototype,"portalItem",null),(0,i._)([(0,c.r)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,i._)([(0,g.c)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,i._)([(0,h.Cb)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),e=(0,i._)([(0,y.j)("esri.layers.mixins.PortalLayer")],e),e},w={credential:null,user:null}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2855,4889],{88068:(e,t,r)=>{r.r(t),r.d(t,{default:()=>L});var n=r(43697),i=(r(66577),r(51773)),o=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382),r(30687),r(91423),r(32400)),s=r(16453),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),p=r(86973),u=r(29600),d=r(20102),c=r(83379),y=r(70586),f=r(16467),m=r(74889),h=r(82971);let g=class extends c.Z{constructor(){super(...arguments),this.featureDefinition=null,this.type="ogc-feature"}load(e){return this.addResolvingPromise(this._loadOGCServices(this.layer,e)),this.when()}getFeatureDefinition(){const{featureDefinition:{collection:e,layerDefinition:t,spatialReference:r,supportedCrs:n},layer:{apiKey:i,capabilities:o,customParameters:s}}=this;return{capabilities:o,collection:e,layerDefinition:t,queryParameters:{apiKey:i,customParameters:s},spatialReference:r,supportedCrs:n}}queryExtent(e,t={}){return null}queryFeatureCount(e,t={}){return null}queryFeatures(e,t={}){return this.queryFeaturesJSON(e,t).then((e=>m.default.fromJSON(e)))}queryFeaturesJSON(e,t={}){const r=this.getFeatureDefinition();return this.load(t).then((()=>(0,f.yN)(r,e,t)))}queryObjectIds(e,t={}){return null}serviceSupportsSpatialReference(e){return!(!e.isWGS84&&!e.isWebMercator&&!this.featureDefinition.supportedCrs[e.wkid])}_conformsToType(e,t){var r;const n=new RegExp(`^${t}$`,"i");return null!=(r=e.conformsTo.some((e=>n.test(e))))&&r}_getCapabilities(e,t){var r,n,i,o,s,a,l;const p=(0,y.pC)(t)?null==(r=t.components)?void 0:r.parameters:null;return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},query:{maxRecordCount:null!=(n=null!=(i=null==p||null==(o=p.limit)||null==(s=o.schema)?void 0:s.maximum)?i:null==p||null==(a=p.limitFeatures)||null==(l=a.schema)?void 0:l.maximum)?n:5e3,maxRecordCountFactor:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,tileMaxRecordCount:void 0},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1}}}_getExtent(e){var t;const r=null==(t=e.extent)?void 0:t.spatial;if(!r)return null;const n=r.bbox[0],i=4===n.length,o=n[0],s=n[1],a=i?void 0:n[2];return{xmin:o,ymin:s,xmax:i?n[2]:n[3],ymax:i?n[3]:n[4],zmin:a,zmax:i?void 0:n[5],spatialReference:h.Z.WGS84.toJSON()}}_getStorageSpatialReference(e){var t;const r=null!=(t=e.storageCrs)?t:f.$9,n=(0,f.d)(r);return(0,y.Wi)(n)?h.Z.WGS84:new h.Z({wkid:n})}_getSupportedSpatialReferences(e,t){var r;const n="#/crs",i=null!=(r=e.crs)?r:[f.$9],o=i.includes(n)?i.filter((e=>e!==n)).concat(t.crs):i,s=/^http:\/\/www\.opengis.net\/def\/crs\/epsg\/.*\/3785$/i;return o.filter((e=>!s.test(e)))}async _loadOGCServices(e,t){const r=(0,y.pC)(t)?t.signal:null,{apiKey:n,collectionId:i,customParameters:o,fields:s,geometryType:a,hasZ:l,objectIdField:u,timeInfo:c,url:m}=e,h={fields:null==s?void 0:s.map((e=>e.toJSON())),geometryType:p.P$.toJSON(a),hasZ:l,objectIdField:u,timeInfo:null==c?void 0:c.toJSON()},g={apiKey:n,customParameters:o,signal:r},v=await(0,f.gp)(m,g),[w,b]=await Promise.all([(0,f.G4)(v,g),(0,f.j)(v,g)]);if(!this._conformsToType(w,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson"))throw new d.Z("ogc-feature-layer:no-geojson-support","Server does not support geojson");const S=b.collections.find((e=>e.id===i));if(!S)throw new d.Z("ogc-feature-layer:collection-not-found","Server does not contain the named collection");const C=this._conformsToType(w,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30")?await(0,f.eS)(v,g):null,I=await(0,f.w9)(S,h,g),F=this._getCapabilities(I.hasZ,C),_=this._getExtent(S),x=this._getStorageSpatialReference(S).toJSON(),j=this._getSupportedSpatialReferences(S,b),P=new RegExp(`^${f.Lu}`,"i"),T={};for(const e of j){const t=(0,f.d)(e);(0,y.pC)(t)&&(T[t]||(T[t]=e.replace(P,"")))}I.extent=_,this.featureDefinition={capabilities:F,collection:S,layerDefinition:I,queryParameters:{},spatialReference:x,supportedCrs:T}}};(0,n._)([(0,a.Cb)()],g.prototype,"featureDefinition",void 0),(0,n._)([(0,a.Cb)({constructOnly:!0})],g.prototype,"layer",void 0),(0,n._)([(0,a.Cb)()],g.prototype,"type",void 0),g=(0,n._)([(0,l.j)("esri.layers.graphics.sources.OGCFeatureSource")],g);var v=r(54295),w=r(71612),b=r(17017),S=r(69637),C=r(38009),I=r(68825),F=r(16859),_=r(34760),x=r(72965),j=r(28294),P=r(21506),T=r(55785),R=r(16451),O=r(1231),Z=r(53518),G=r(35671),D=r(2319),k=r(30707),M=r(57444),q=r(32163),N=r(6570);const E=(0,Z.v)();let $=class extends((0,v.V)((0,b.N)((0,S.b)((0,w.h)((0,I.c)((0,j.n)((0,x.M)((0,C.q)((0,F.I)((0,_.Q)((0,s.R)(u.Z)))))))))))){constructor(e){super(e),this.collectionId=null,this.copyright=null,this.definitionExpression=null,this.description=null,this.displayField=null,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="OGCFeatureLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new g({layer:this}),this.spatialReference=null,this.title=null,this.type="ogc-feature",this.typeIdField=null,this.types=null,this.url=null}destroy(){var e;null==(e=this.source)||e.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["OGCFeatureServer"]},e).then((()=>this._fetchService(e)))),this.when()}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}set renderer(e){(0,G.YN)(e,this.fieldsIndex),this._set("renderer",e)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,q.eZ)(this,e)}createQuery(){return new M.Z}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){var r;let n,i=!1;const o=null==t||null==(r=t.feature)?void 0:r.attributes,s=this.typeIdField&&(null==o?void 0:o[this.typeIdField]);return null!=s&&this.types&&(i=this.types.some((t=>{var r,i;return t.id==s&&(n=null==(r=t.domains)?void 0:r[e],"inherited"===(null==(i=n)?void 0:i.type)&&(n=this._getLayerDomain(e)),!0)}))),i||n||(n=this._getLayerDomain(e)),n}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(M.Z.from(e)||this.createQuery(),t))).then((e=>{var t;return null==e||null==(t=e.features)||t.forEach((e=>{e.layer=e.sourceLayer=this})),e}))}serviceSupportsSpatialReference(e){var t,r;return null!=(t=null==(r=this.source)?void 0:r.serviceSupportsSpatialReference(e))&&t}async _fetchService(e){await this.source.load(e),this.read(this.source.featureDefinition,{origin:"service"}),(0,G.YN)(this.renderer,this.fieldsIndex),(0,G.UF)(this.timeInfo,this.fieldsIndex)}_getLayerDomain(e){if(!this.fields)return null;for(const t of this.fields)if(t.name===e&&t.domain)return t.domain;return null}};(0,n._)([(0,a.Cb)({readOnly:!0,json:{origins:{service:{read:!0}}}})],$.prototype,"capabilities",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],$.prototype,"collectionId",void 0),(0,n._)([(0,a.Cb)({type:String})],$.prototype,"copyright",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],$.prototype,"defaultPopupTemplate",null),(0,n._)([(0,a.Cb)({type:String})],$.prototype,"definitionExpression",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,type:String,json:{origins:{service:{name:"collection.description"}}}})],$.prototype,"description",void 0),(0,n._)([(0,a.Cb)({type:String})],$.prototype,"displayField",void 0),(0,n._)([(0,a.Cb)(P.PV)],$.prototype,"elevationInfo",void 0),(0,n._)([(0,a.Cb)(T.d)],$.prototype,"featureReduction",void 0),(0,n._)([(0,a.Cb)({type:[O.Z],json:{origins:{service:{name:"layerDefinition.fields"}}}})],$.prototype,"fields",void 0),(0,n._)([(0,a.Cb)(E.fieldsIndex)],$.prototype,"fieldsIndex",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,type:N.Z,json:{origins:{service:{name:"layerDefinition.extent"}}}})],$.prototype,"fullExtent",void 0),(0,n._)([(0,a.Cb)({type:p.Mk.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:p.Mk.read}}}}})],$.prototype,"geometryType",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{origins:{service:{name:"layerDefinition.hasZ"}}}})],$.prototype,"hasZ",void 0),(0,n._)([(0,a.Cb)({type:Boolean,readOnly:!0})],$.prototype,"isTable",null),(0,n._)([(0,a.Cb)({type:[D.Z],json:{origins:{"web-document":{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:k.r},write:!0}}}})],$.prototype,"labelingInfo",void 0),(0,n._)([(0,a.Cb)(P.iR)],$.prototype,"labelsVisible",void 0),(0,n._)([(0,a.Cb)(P.rn)],$.prototype,"legendEnabled",void 0),(0,n._)([(0,a.Cb)({type:String,json:{origins:{service:{name:"layerDefinition.objectIdField"}}}})],$.prototype,"objectIdField",void 0),(0,n._)([(0,a.Cb)({type:["OGCFeatureLayer"]})],$.prototype,"operationalLayerType",void 0),(0,n._)([(0,a.Cb)(P.C_)],$.prototype,"popupEnabled",void 0),(0,n._)([(0,a.Cb)({type:i.Z,json:{name:"popupInfo",write:!0}})],$.prototype,"popupTemplate",void 0),(0,n._)([(0,a.Cb)({types:o.A,json:{origins:{service:{name:"layerDefinition.drawingInfo.renderer",write:!1},"web-scene":{types:o.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:!0}})],$.prototype,"renderer",null),(0,n._)([(0,a.Cb)(P.YI)],$.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],$.prototype,"source",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,type:h.Z,json:{origins:{service:{read:!0}}}})],$.prototype,"spatialReference",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"collection.title"}}}})],$.prototype,"title",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],$.prototype,"type",void 0),(0,n._)([(0,a.Cb)({type:String,readOnly:!0})],$.prototype,"typeIdField",void 0),(0,n._)([(0,a.Cb)({type:[R.Z]})],$.prototype,"types",void 0),(0,n._)([(0,a.Cb)(P.HQ)],$.prototype,"url",void 0),$=(0,n._)([(0,l.j)("esri.layers.OGCFeatureLayer")],$);const L=$},61159:(e,t,r)=>{r.d(t,{g:()=>n});const n={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},92722:(e,t,r)=>{r.d(t,{O3:()=>S,lG:()=>I,my:()=>C,q9:()=>l});var n=r(20102),i=r(70272),o=r(5428),s=r(35671);const a={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function l(e){return a[e]}function*p(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*u(e){if(!e)return null;switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function d(e){for(const t of e)if(t.length>2)return!0;return!1}function c(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r],i=e[(r+1)%e.length];t+=n[0]*i[1]-i[0]*n[1]}return t<=0}function y(e){const t=e[0],r=e[e.length-1];return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t),e}function f(e,t,r){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,r){return g(e,t.coordinates,r),e}(e,t,r);case"MultiLineString":return function(e,t,r){for(const n of t.coordinates)g(e,n,r);return e}(e,t,r);case"MultiPolygon":return function(e,t,r){for(const n of t.coordinates){m(e,n[0],r);for(let t=1;t<n.length;t++)h(e,n[t],r)}return e}(e,t,r);case"Point":return function(e,t,r){return w(e,t.coordinates,r),e}(e,t,r);case"Polygon":return function(e,t,r){const n=t.coordinates;m(e,n[0],r);for(let t=1;t<n.length;t++)h(e,n[t],r);return e}(e,t,r)}}function m(e,t,r){const n=y(t);!function(e){return!c(e)}(n)?g(e,n,r):v(e,n,r)}function h(e,t,r){const n=y(t);!function(e){return c(e)}(n)?g(e,n,r):v(e,n,r)}function g(e,t,r){for(const n of t)w(e,n,r);e.lengths.push(t.length)}function v(e,t,r){for(let n=t.length-1;n>=0;n--)w(e,t[n],r);e.lengths.push(t.length)}function w(e,t,r){const[n,i,o]=t;e.coords.push(n,i),r.hasZ&&e.coords.push(o||0)}function b(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function S(e){if(!e)throw new n.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new n.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const r="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,i=new RegExp(".*(CRS84H?|4326)$","i");if(!r||!i.test(r))throw new n.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function C(e,t={}){const r=[],n=new Set,i=new Set;let o,a=!1,c=null,y=!1,{geometryType:f=null}=t,m=!1;for(const t of p(e)){const{geometry:e,properties:s,id:p}=t;if((!e||(f||(f=l(e.type)),l(e.type)===f))&&(a||(a=d(u(e))),y||(y=null!=p,y&&(o=typeof p,c=Object.keys(s).filter((e=>s[e]===p)))),y&&null!=p&&(c.length>1?c=c.filter((e=>s[e]===p)):1===c.length&&(c=s[c[0]]===p?c:[])),!m&&s)){let e=!0;for(const t in s){if(n.has(t))continue;const o=s[t];if(null==o){e=!1,i.add(t);continue}const a=b(o);"unknown"!==a?(i.delete(t),n.add(t),r.push({name:t,alias:t,type:a})):i.add(t)}m=e}}const h=c&&1===c.length&&c[0]||null;if(h)for(const e of r)if(e.name===h&&(0,s.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:f,hasZ:a,objectIdFieldName:h,objectIdFieldType:o,unknownFields:Array.from(i)}}function I(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:n}=t;for(const a of e){var s;const{geometry:e,properties:p,id:u}=a;if(e&&l(e.type)!==r)continue;const d=p||{};let c=null!=(s=d[n])?s:null;n&&null!=u&&!d[n]&&(d[n]=c=u);const y=new i.u_(e?f(new o.Z,e,t):null,d,null,c);yield y}}(p(e),t))}},25278:(e,t,r)=>{r.d(t,{Dm:()=>u,Hq:()=>d,MS:()=>c,bU:()=>a});var n=r(80442),i=r(22974),o=r(61159),s=r(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.I4:"esriGeometryPolyline"===e?s.ET:s.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function u(e,t){if((0,n.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new n}catch(r){return()=>({[t]:null,...e})}}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},54295:(e,t,r)=>{r.d(t,{V:()=>s});var n=r(43697),i=r(5600),o=(r(67676),r(80442),r(75215),r(52011));const s=e=>{let t=class extends e{get apiKey(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):function(e){return"portalItem"in e}(this)?null==(e=this.portalItem)?void 0:e.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n._)([(0,i.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,n._)([(0,o.j)("esri.layers.mixins.APIKeyMixin")],t),t}},68825:(e,t,r)=>{r.d(t,{c:()=>m});var n,i=r(43697),o=r(78286),s=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(35454),p=r(96674);const u=new l.X({asc:"ascending",desc:"descending"});let d=n=class extends p.wq{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._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,i._)([(0,s.Cb)({type:u.apiValues,json:{read:u.read,write:u.write}})],d.prototype,"order",void 0),d=n=(0,i._)([(0,a.j)("esri.layers.support.OrderByInfo")],d);const c=d;function y(e,t,r){if(!e)return null;const n=e.find((e=>!!e.field));if(!n)return null;const i=new c;return i.read(n,r),[i]}function f(e,t,r,n){const i=e.find((e=>!!e.field));i&&(0,o.RB)(r,[i.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,s.Cb)({type:[c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:f}}})],t.prototype,"orderBy",void 0),t=(0,i._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>b});var n=r(43697),i=r(40330),o=r(3172),s=r(66643),a=r(20102),l=r(92604),p=r(70586),u=r(95330),d=r(17452),c=r(5600),y=(r(67676),r(80442),r(75215),r(71715)),f=r(52011),m=r(30556),h=r(65587),g=r(15235),v=r(86082);const w=l.Z.getLogger("esri.layers.mixins.PortalLayer"),b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const n=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(t),await n.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,u.D_)(e)||w.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,u.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==i.id?void 0:i.id.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const n=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(n)return n;const a=i.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,u=h.Z.getDefault();if(u&&u.loaded&&(0,d.Fv)(u.restUrl)===(0,d.Fv)(l))return u.user;const c=`${l}/community/self`,y=(0,p.pC)(e)?e.signal:null,f=await(0,s.q6)((0,o.default)(c,{authMode:"no-prompt",query:{f:"json"},signal:y}));return f.ok?v.default.fromJSON(f.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,n=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||h.Z.getDefault());return r&&n&&!(0,d.tm)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n._)([(0,c.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,n._)([(0,y.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,c.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,n._)([(0,f.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},16467:(e,t,r)=>{r.d(t,{$9:()=>v,G4:()=>S,Lu:()=>g,WW:()=>x,d:()=>F,eS:()=>I,gp:()=>C,j:()=>b,w9:()=>w,yN:()=>_}),r(66577);var n=r(3172),i=r(20102),o=r(92604),s=r(70586),a=r(8744),l=r(40488),p=r(98732),u=r(44876),d=r(92722),c=r(25278),y=r(99514),f=r(86719),m=r(82971);const h=o.Z.getLogger("esri.layers.graphics.sources.ogcfeature"),g="http://www.opengis.net/def/crs/",v=`${g}OGC/1.3/CRS84`;async function w(e,t,r={},o=5){const{links:a}=e,l=R(a,"items","application/geo+json")||R(a,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(l))throw new i.Z("ogc-feature-layer:missing-items-page","Missing items url");const{data:p}=await(0,n.default)(l.href,{signal:r.signal,query:{limit:o,...r.customParameters,token:r.apiKey},headers:{accept:"application/geo+json"}});await(0,d.O3)(p);const u=(0,d.my)(p,{geometryType:t.geometryType}),m=t.fields||u.fields||[],g=null!=t.hasZ?t.hasZ:u.hasZ,v=u.geometryType,w=t.objectIdField||u.objectIdFieldName||"OBJECTID";let b=t.timeInfo;const S=m.find((e=>e.name===w));if(S)S.type="esriFieldTypeOID",S.editable=!1,S.nullable=!1;else{if(!u.objectIdFieldType)throw new i.Z("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");m.unshift({name:w,alias:w,type:"esriFieldTypeOID",editable:!1,nullable:!1})}if(w!==u.objectIdFieldName){const e=m.find((e=>e.name===u.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}m===u.fields&&u.unknownFields.length>0&&h.warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:u.unknownFields}});for(const e of m){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new i.Z("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!f.v.jsonValues.includes(e.type))throw new i.Z("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(b){const e=new y.Z(m);if(b.startTimeField){const t=e.get(b.startTimeField);t?(b.startTimeField=t.name,t.type="esriFieldTypeDate"):b.startTimeField=null}if(b.endTimeField){const t=e.get(b.endTimeField);t?(b.endTimeField=t.name,t.type="esriFieldTypeDate"):b.endTimeField=null}if(b.trackIdField){const t=e.get(b.trackIdField);t?b.trackIdField=t.name:(b.trackIdField=null,h.warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:b}}))}b.startTimeField||b.endTimeField||(h.warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:b}}),b=null)}return{drawingInfo:v?(0,c.bU)(v):null,geometryType:v,fields:m,hasZ:!!g,objectIdField:w,timeInfo:b}}async function b(e,t={}){const{links:r}=e,o=R(r,"data","application/json")||R(r,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");if((0,s.Wi)(o))throw new i.Z("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:a,customParameters:l,signal:p}=t,{data:u}=await(0,n.default)(o.href,{signal:p,headers:{accept:"application/json"},query:{...l,token:a}});return u}async function S(e,t={}){const{links:r}=e,o=R(r,"conformance","application/json")||R(r,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");if((0,s.Wi)(o))throw new i.Z("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:a,customParameters:l,signal:p}=t,{data:u}=await(0,n.default)(o.href,{signal:p,headers:{accept:"application/json"},query:{...l,token:a}});return u}async function C(e,t={}){const{apiKey:r,customParameters:i,signal:o}=t,{data:s}=await(0,n.default)(e,{signal:o,headers:{accept:"application/json"},query:{...i,token:r}});return s}async function I(e,t={}){const r="application/vnd.oai.openapi+json;version=3.0",i=R(e.links,"service-desc",r);if((0,s.Wi)(i))return h.warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:o,customParameters:a,signal:l}=t,{data:p}=await(0,n.default)(i.href,{signal:l,headers:{accept:r},query:{...a,token:o}});return p}function F(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),r=null==t?void 0:t.groups;if(!r)return null;const{authority:n,code:i}=r;switch(n.toLowerCase()){case"ogc":switch(i.toLowerCase()){case"crs27":return m.Z.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return m.Z.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(i,10);return Number.isNaN(e)?null:e}default:return null}}async function _(e,t,r){const n=await x(e,t,r);return(0,p.cn)(n)}async function x(e,t,r){const{capabilities:{query:{maxRecordCount:o}},collection:c,layerDefinition:y,queryParameters:{apiKey:f,customParameters:h},spatialReference:g,supportedCrs:v}=e,{links:w}=c,b=R(w,"items","application/geo+json")||R(w,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(b))throw new i.Z("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:S,num:C,start:I,timeExtent:F,where:_}=t;if(t.objectIds)throw new i.Z("ogc-feature-layer:query-by-objectids-not-supported","Queries with objectids are not supported");const x=m.Z.fromJSON(g),P=(0,s.Pt)(t.outSpatialReference,x),O=P.isWGS84?null:j(P,v),Z=T(S,v),G=function(e){if((0,s.Wi)(e))return null;const{start:t,end:r}=e;return`${(0,s.pC)(t)?t.toISOString():".."}/${(0,s.pC)(r)?r.toISOString():".."}`}(F),D=(q=_,(0,s.Wi)(q)||!q||"1=1"===q?null:q),k=null!=C?C:null!=I&&void 0!==I?10:o,{data:M}=await(0,n.default)(b.href,{...r,query:{...h,...Z,crs:O,datetime:G,query:D,limit:k,startindex:I,token:f},headers:{accept:"application/geo+json"}});var q;let N=!1;M.links&&(N=!!M.links.find((e=>"next"===e.rel))),!N&&Number.isInteger(M.numberMatched)&&Number.isInteger(M.numberReturned)&&(N=M.numberReturned<M.numberMatched);const{fields:E,globalIdField:$,hasM:L,hasZ:W,objectIdField:A}=y,U=y.geometryType,z=(0,d.lG)(M,{geometryType:U,hasZ:W,objectIdField:A});if(!O&&P.isWebMercator)for(const e of z)if((0,s.pC)(e.geometry)){const t=(0,p.di)(e.geometry,U,W,!1);t.spatialReference=m.Z.WGS84,e.geometry=(0,p.GH)((0,l.iV)(t,P))}for(const e of z)e.objectId=e.attributes[A];const B=O||!O&&P.isWebMercator?P.toJSON():a.Zn,J=new u.Z;return J.exceededTransferLimit=N,J.features=z,J.fields=E,J.geometryType=U,J.globalIdFieldName=$,J.hasM=L,J.hasZ=W,J.objectIdFieldName=A,J.spatialReference=B,J}function j(e,t){var r,n,i;const{isWebMercator:o,wkid:s}=e;if(!s)return null;const a=o?null!=(r=null!=(n=null!=(i=t[3857])?i:t[102100])?n:t[102113])?r:t[900913]:t[e.wkid];return a?`${g}${a}`:null}function P(e){if((0,s.Wi)(e))return"";const{xmin:t,ymin:r,xmax:n,ymax:i}=e;return`${t},${r},${n},${i}`}function T(e,t){if(!function(e){return(0,s.pC)(e)&&"extent"===e.type}(e))return null;const{spatialReference:r}=e;if(!r||r.isWGS84)return{bbox:P(e)};const n=j(r,t);return(0,s.pC)(n)?{bbox:P(e),"bbox-crs":n}:r.isWebMercator?{bbox:P((0,l.iV)(e,m.Z.WGS84))}:null}function R(e,t,r){return e.find((e=>e.rel===t&&e.type===r))||e.find((e=>e.rel===t&&!e.type))}},51706:(e,t,r)=>{var n,i;function o(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?n.Expression:e.field&&"string"==typeof e.field?n.Field:n.Unknown}function l(e,t){const r=t||a(e),o=e.valueUnit||"unknown";return r===n.Unknown?i.Constant:e.stops?i.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?i.ClampedLinear:"unknown"===o?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?i.Proportional:i.Additive:i.Identity:i.RealWorldSize}r.d(t,{PS:()=>a,QW:()=>l,RY:()=>n,hL:()=>i,iY:()=>o,qh:()=>s}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(n||(n={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(i||(i={}))},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n,i=r(43697),o=r(66577),s=r(38171),a=r(35454),l=r(96674),p=r(22974),u=r(70586),d=r(5600),c=(r(75215),r(71715)),y=r(52011),f=r(30556),m=r(82971),h=r(33955),g=r(1231);const v=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=m.Z.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const i=e[t],o=s.Z.fromJSON(i),a=i.geometry&&i.geometry.spatialReference;(0,u.pC)(o.geometry)&&!a&&(o.geometry.spatialReference=r);const l=i.aggregateGeometries,p=o.aggregateGeometries;if(l&&(0,u.pC)(p))for(const e in p){const t=p[e],n=l[e],i=null==n?void 0:n.spatialReference;(0,u.pC)(t)&&!i&&(t.spatialReference=r)}n.push(o)}return n}writeGeometryType(e,t,r,n){if(e)return void v.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(e&&(0,u.pC)(e.geometry))return void v.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,h.im)(e);return!r&&t.spatialReference&&(n.spatialReference=m.Z.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,u.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,p.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e&&e[r];n.geometry=t&&t.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=o.length;e<t;e++)s((0,u.Wg)(o[e].geometry))||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[o,s]}=r,a=this._getHydrationFunction(e,(e=>e*o+n),(e=>i-e*s));for(const{geometry:e}of t)(0,u.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,i;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===n&&s===i||(o.push([e-n,s-i]),n=e,i=s)}else n=t(a[0]),i=r(a[1]),o.push([n,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,h.oU)(e)?e.rings:e.paths,i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,r);s&&i.push(s)}return i.length>0?((0,h.oU)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const n=(0,h.oU)(e)?e.rings:e.paths;let i,o;for(let e=0,s=n.length;e<s;e++){const s=n[e];for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(i+=n[0],o+=n[1]):(i=n[0],o=n[1]),n[0]=t(i),n[1]=r(o)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const n=e.points;let i,o;for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(i+=s[0],o+=s[1]):(i=s[0],o=s[1]),s[0]=t(i),s[1]=r(o)}}:void 0}};(0,i._)([(0,d.Cb)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,d.Cb)({type:[s.Z],json:{write:!0}})],w.prototype,"features",void 0),(0,i._)([(0,c.r)("features")],w.prototype,"readFeatures",null),(0,i._)([(0,d.Cb)({type:[g.Z],json:{write:!0}})],w.prototype,"fields",void 0),(0,i._)([(0,d.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:v.read}}})],w.prototype,"geometryType",void 0),(0,i._)([(0,f.c)("geometryType")],w.prototype,"writeGeometryType",null),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i._)([(0,d.Cb)({types:o.qM,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i._)([(0,c.r)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i._)([(0,d.Cb)({type:m.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i._)([(0,f.c)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i._)([(0,d.Cb)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i._)([(0,y.j)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const b=w}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2855,4889],{88068:(e,t,r)=>{r.r(t),r.d(t,{default:()=>L});var n=r(43697),i=(r(66577),r(51773)),o=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382),r(30687),r(91423),r(32400)),s=r(16453),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),p=r(86973),u=r(29600),d=r(20102),c=r(83379),y=r(70586),f=r(16467),m=r(74889),h=r(82971);let g=class extends c.Z{constructor(){super(...arguments),this.featureDefinition=null,this.type="ogc-feature"}load(e){return this.addResolvingPromise(this._loadOGCServices(this.layer,e)),this.when()}getFeatureDefinition(){const{featureDefinition:{collection:e,layerDefinition:t,spatialReference:r,supportedCrs:n},layer:{apiKey:i,capabilities:o,customParameters:s}}=this;return{capabilities:o,collection:e,layerDefinition:t,queryParameters:{apiKey:i,customParameters:s},spatialReference:r,supportedCrs:n}}queryExtent(e,t={}){return null}queryFeatureCount(e,t={}){return null}queryFeatures(e,t={}){return this.queryFeaturesJSON(e,t).then((e=>m.default.fromJSON(e)))}queryFeaturesJSON(e,t={}){const r=this.getFeatureDefinition();return this.load(t).then((()=>(0,f.yN)(r,e,t)))}queryObjectIds(e,t={}){return null}serviceSupportsSpatialReference(e){return!(!e.isWGS84&&!e.isWebMercator&&!this.featureDefinition.supportedCrs[e.wkid])}_conformsToType(e,t){var r;const n=new RegExp(`^${t}$`,"i");return null!=(r=e.conformsTo.some((e=>n.test(e))))&&r}_getCapabilities(e,t){var r,n,i,o,s,a,l;const p=(0,y.pC)(t)?null==(r=t.components)?void 0:r.parameters:null;return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},query:{maxRecordCount:null!=(n=null!=(i=null==p||null==(o=p.limit)||null==(s=o.schema)?void 0:s.maximum)?i:null==p||null==(a=p.limitFeatures)||null==(l=a.schema)?void 0:l.maximum)?n:5e3,maxRecordCountFactor:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,tileMaxRecordCount:void 0},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1}}}_getExtent(e){var t;const r=null==(t=e.extent)?void 0:t.spatial;if(!r)return null;const n=r.bbox[0],i=4===n.length,o=n[0],s=n[1],a=i?void 0:n[2];return{xmin:o,ymin:s,xmax:i?n[2]:n[3],ymax:i?n[3]:n[4],zmin:a,zmax:i?void 0:n[5],spatialReference:h.Z.WGS84.toJSON()}}_getStorageSpatialReference(e){var t;const r=null!=(t=e.storageCrs)?t:f.$9,n=(0,f.d)(r);return(0,y.Wi)(n)?h.Z.WGS84:new h.Z({wkid:n})}_getSupportedSpatialReferences(e,t){var r;const n="#/crs",i=null!=(r=e.crs)?r:[f.$9],o=i.includes(n)?i.filter((e=>e!==n)).concat(t.crs):i,s=/^http:\/\/www\.opengis.net\/def\/crs\/epsg\/.*\/3785$/i;return o.filter((e=>!s.test(e)))}async _loadOGCServices(e,t){const r=(0,y.pC)(t)?t.signal:null,{apiKey:n,collectionId:i,customParameters:o,fields:s,geometryType:a,hasZ:l,objectIdField:u,timeInfo:c,url:m}=e,h={fields:null==s?void 0:s.map((e=>e.toJSON())),geometryType:p.P$.toJSON(a),hasZ:l,objectIdField:u,timeInfo:null==c?void 0:c.toJSON()},g={apiKey:n,customParameters:o,signal:r},v=await(0,f.gp)(m,g),[w,b]=await Promise.all([(0,f.G4)(v,g),(0,f.j)(v,g)]);if(!this._conformsToType(w,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson"))throw new d.Z("ogc-feature-layer:no-geojson-support","Server does not support geojson");const S=b.collections.find((e=>e.id===i));if(!S)throw new d.Z("ogc-feature-layer:collection-not-found","Server does not contain the named collection");const C=this._conformsToType(w,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30")?await(0,f.eS)(v,g):null,I=await(0,f.w9)(S,h,g),F=this._getCapabilities(I.hasZ,C),_=this._getExtent(S),x=this._getStorageSpatialReference(S).toJSON(),j=this._getSupportedSpatialReferences(S,b),P=new RegExp(`^${f.Lu}`,"i"),T={};for(const e of j){const t=(0,f.d)(e);(0,y.pC)(t)&&(T[t]||(T[t]=e.replace(P,"")))}I.extent=_,this.featureDefinition={capabilities:F,collection:S,layerDefinition:I,queryParameters:{},spatialReference:x,supportedCrs:T}}};(0,n._)([(0,a.Cb)()],g.prototype,"featureDefinition",void 0),(0,n._)([(0,a.Cb)({constructOnly:!0})],g.prototype,"layer",void 0),(0,n._)([(0,a.Cb)()],g.prototype,"type",void 0),g=(0,n._)([(0,l.j)("esri.layers.graphics.sources.OGCFeatureSource")],g);var v=r(54295),w=r(71612),b=r(17017),S=r(69637),C=r(38009),I=r(68825),F=r(16859),_=r(34760),x=r(72965),j=r(28294),P=r(21506),T=r(55785),R=r(16451),O=r(1231),Z=r(53518),G=r(35671),D=r(2319),k=r(30707),M=r(57444),q=r(32163),N=r(6570);const E=(0,Z.v)();let $=class extends((0,v.V)((0,b.N)((0,S.b)((0,w.h)((0,I.c)((0,j.n)((0,x.M)((0,C.q)((0,F.I)((0,_.Q)((0,s.R)(u.Z)))))))))))){constructor(e){super(e),this.collectionId=null,this.copyright=null,this.definitionExpression=null,this.description=null,this.displayField=null,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="OGCFeatureLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new g({layer:this}),this.spatialReference=null,this.title=null,this.type="ogc-feature",this.typeIdField=null,this.types=null,this.url=null}destroy(){var e;null==(e=this.source)||e.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["OGCFeatureServer"]},e).then((()=>this._fetchService(e)))),this.when()}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}set renderer(e){(0,G.YN)(e,this.fieldsIndex),this._set("renderer",e)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,q.eZ)(this,e)}createQuery(){return new M.Z}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){var r;let n,i=!1;const o=null==t||null==(r=t.feature)?void 0:r.attributes,s=this.typeIdField&&(null==o?void 0:o[this.typeIdField]);return null!=s&&this.types&&(i=this.types.some((t=>{var r,i;return t.id==s&&(n=null==(r=t.domains)?void 0:r[e],"inherited"===(null==(i=n)?void 0:i.type)&&(n=this._getLayerDomain(e)),!0)}))),i||n||(n=this._getLayerDomain(e)),n}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(M.Z.from(e)||this.createQuery(),t))).then((e=>{var t;return null==e||null==(t=e.features)||t.forEach((e=>{e.layer=e.sourceLayer=this})),e}))}serviceSupportsSpatialReference(e){var t,r;return null!=(t=null==(r=this.source)?void 0:r.serviceSupportsSpatialReference(e))&&t}async _fetchService(e){await this.source.load(e),this.read(this.source.featureDefinition,{origin:"service"}),(0,G.YN)(this.renderer,this.fieldsIndex),(0,G.UF)(this.timeInfo,this.fieldsIndex)}_getLayerDomain(e){if(!this.fields)return null;for(const t of this.fields)if(t.name===e&&t.domain)return t.domain;return null}};(0,n._)([(0,a.Cb)({readOnly:!0,json:{origins:{service:{read:!0}}}})],$.prototype,"capabilities",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],$.prototype,"collectionId",void 0),(0,n._)([(0,a.Cb)({type:String})],$.prototype,"copyright",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],$.prototype,"defaultPopupTemplate",null),(0,n._)([(0,a.Cb)({type:String})],$.prototype,"definitionExpression",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,type:String,json:{origins:{service:{name:"collection.description"}}}})],$.prototype,"description",void 0),(0,n._)([(0,a.Cb)({type:String})],$.prototype,"displayField",void 0),(0,n._)([(0,a.Cb)(P.PV)],$.prototype,"elevationInfo",void 0),(0,n._)([(0,a.Cb)(T.d)],$.prototype,"featureReduction",void 0),(0,n._)([(0,a.Cb)({type:[O.Z],json:{origins:{service:{name:"layerDefinition.fields"}}}})],$.prototype,"fields",void 0),(0,n._)([(0,a.Cb)(E.fieldsIndex)],$.prototype,"fieldsIndex",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,type:N.Z,json:{origins:{service:{name:"layerDefinition.extent"}}}})],$.prototype,"fullExtent",void 0),(0,n._)([(0,a.Cb)({type:p.Mk.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:p.Mk.read}}}}})],$.prototype,"geometryType",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{origins:{service:{name:"layerDefinition.hasZ"}}}})],$.prototype,"hasZ",void 0),(0,n._)([(0,a.Cb)({type:Boolean,readOnly:!0})],$.prototype,"isTable",null),(0,n._)([(0,a.Cb)({type:[D.Z],json:{origins:{"web-document":{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:k.r},write:!0}}}})],$.prototype,"labelingInfo",void 0),(0,n._)([(0,a.Cb)(P.iR)],$.prototype,"labelsVisible",void 0),(0,n._)([(0,a.Cb)(P.rn)],$.prototype,"legendEnabled",void 0),(0,n._)([(0,a.Cb)({type:String,json:{origins:{service:{name:"layerDefinition.objectIdField"}}}})],$.prototype,"objectIdField",void 0),(0,n._)([(0,a.Cb)({type:["OGCFeatureLayer"]})],$.prototype,"operationalLayerType",void 0),(0,n._)([(0,a.Cb)(P.C_)],$.prototype,"popupEnabled",void 0),(0,n._)([(0,a.Cb)({type:i.Z,json:{name:"popupInfo",write:!0}})],$.prototype,"popupTemplate",void 0),(0,n._)([(0,a.Cb)({types:o.A,json:{origins:{service:{name:"layerDefinition.drawingInfo.renderer",write:!1},"web-scene":{types:o.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:!0}})],$.prototype,"renderer",null),(0,n._)([(0,a.Cb)(P.YI)],$.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],$.prototype,"source",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,type:h.Z,json:{origins:{service:{read:!0}}}})],$.prototype,"spatialReference",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"collection.title"}}}})],$.prototype,"title",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],$.prototype,"type",void 0),(0,n._)([(0,a.Cb)({type:String,readOnly:!0})],$.prototype,"typeIdField",void 0),(0,n._)([(0,a.Cb)({type:[R.Z]})],$.prototype,"types",void 0),(0,n._)([(0,a.Cb)(P.HQ)],$.prototype,"url",void 0),$=(0,n._)([(0,l.j)("esri.layers.OGCFeatureLayer")],$);const L=$},61159:(e,t,r)=>{r.d(t,{g:()=>n});const n={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},92722:(e,t,r)=>{r.d(t,{O3:()=>S,lG:()=>I,my:()=>C,q9:()=>l});var n=r(20102),i=r(70272),o=r(5428),s=r(35671);const a={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function l(e){return a[e]}function*p(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*u(e){if(!e)return null;switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function d(e){for(const t of e)if(t.length>2)return!0;return!1}function c(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r],i=e[(r+1)%e.length];t+=n[0]*i[1]-i[0]*n[1]}return t<=0}function y(e){const t=e[0],r=e[e.length-1];return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t),e}function f(e,t,r){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,r){return g(e,t.coordinates,r),e}(e,t,r);case"MultiLineString":return function(e,t,r){for(const n of t.coordinates)g(e,n,r);return e}(e,t,r);case"MultiPolygon":return function(e,t,r){for(const n of t.coordinates){m(e,n[0],r);for(let t=1;t<n.length;t++)h(e,n[t],r)}return e}(e,t,r);case"Point":return function(e,t,r){return w(e,t.coordinates,r),e}(e,t,r);case"Polygon":return function(e,t,r){const n=t.coordinates;m(e,n[0],r);for(let t=1;t<n.length;t++)h(e,n[t],r);return e}(e,t,r)}}function m(e,t,r){const n=y(t);!function(e){return!c(e)}(n)?g(e,n,r):v(e,n,r)}function h(e,t,r){const n=y(t);!function(e){return c(e)}(n)?g(e,n,r):v(e,n,r)}function g(e,t,r){for(const n of t)w(e,n,r);e.lengths.push(t.length)}function v(e,t,r){for(let n=t.length-1;n>=0;n--)w(e,t[n],r);e.lengths.push(t.length)}function w(e,t,r){const[n,i,o]=t;e.coords.push(n,i),r.hasZ&&e.coords.push(o||0)}function b(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function S(e){if(!e)throw new n.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new n.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const r="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,i=new RegExp(".*(CRS84H?|4326)$","i");if(!r||!i.test(r))throw new n.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function C(e,t={}){const r=[],n=new Set,i=new Set;let o,a=!1,c=null,y=!1,{geometryType:f=null}=t,m=!1;for(const t of p(e)){const{geometry:e,properties:s,id:p}=t;if((!e||(f||(f=l(e.type)),l(e.type)===f))&&(a||(a=d(u(e))),y||(y=null!=p,y&&(o=typeof p,c=Object.keys(s).filter((e=>s[e]===p)))),y&&null!=p&&(c.length>1?c=c.filter((e=>s[e]===p)):1===c.length&&(c=s[c[0]]===p?c:[])),!m&&s)){let e=!0;for(const t in s){if(n.has(t))continue;const o=s[t];if(null==o){e=!1,i.add(t);continue}const a=b(o);"unknown"!==a?(i.delete(t),n.add(t),r.push({name:t,alias:t,type:a})):i.add(t)}m=e}}const h=c&&1===c.length&&c[0]||null;if(h)for(const e of r)if(e.name===h&&(0,s.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:f,hasZ:a,objectIdFieldName:h,objectIdFieldType:o,unknownFields:Array.from(i)}}function I(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:n}=t;for(const a of e){var s;const{geometry:e,properties:p,id:u}=a;if(e&&l(e.type)!==r)continue;const d=p||{};let c=null!=(s=d[n])?s:null;n&&null!=u&&!d[n]&&(d[n]=c=u);const y=new i.u_(e?f(new o.Z,e,t):null,d,null,c);yield y}}(p(e),t))}},25278:(e,t,r)=>{r.d(t,{Dm:()=>u,Hq:()=>d,MS:()=>c,bU:()=>a});var n=r(80442),i=r(22974),o=r(61159),s=r(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.I4:"esriGeometryPolyline"===e?s.ET:s.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function u(e,t){if((0,n.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new n}catch(r){return()=>({[t]:null,...e})}}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},54295:(e,t,r)=>{r.d(t,{V:()=>s});var n=r(43697),i=r(5600),o=(r(67676),r(80442),r(75215),r(52011));const s=e=>{let t=class extends e{get apiKey(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):function(e){return"portalItem"in e}(this)?null==(e=this.portalItem)?void 0:e.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n._)([(0,i.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,n._)([(0,o.j)("esri.layers.mixins.APIKeyMixin")],t),t}},68825:(e,t,r)=>{r.d(t,{c:()=>m});var n,i=r(43697),o=r(78286),s=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(35454),p=r(96674);const u=new l.X({asc:"ascending",desc:"descending"});let d=n=class extends p.wq{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._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,i._)([(0,s.Cb)({type:u.apiValues,json:{read:u.read,write:u.write}})],d.prototype,"order",void 0),d=n=(0,i._)([(0,a.j)("esri.layers.support.OrderByInfo")],d);const c=d;function y(e,t,r){if(!e)return null;const n=e.find((e=>!!e.field));if(!n)return null;const i=new c;return i.read(n,r),[i]}function f(e,t,r,n){const i=e.find((e=>!!e.field));i&&(0,o.RB)(r,[i.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,s.Cb)({type:[c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:f}}})],t.prototype,"orderBy",void 0),t=(0,i._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>b});var n=r(43697),i=r(40330),o=r(3172),s=r(66643),a=r(20102),l=r(92604),p=r(70586),u=r(95330),d=r(17452),c=r(5600),y=(r(67676),r(80442),r(75215),r(71715)),f=r(52011),m=r(30556),h=r(65587),g=r(15235),v=r(86082);const w=l.Z.getLogger("esri.layers.mixins.PortalLayer"),b=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const n=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(t),await n.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,u.D_)(e)||w.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,u.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==i.id?void 0:i.id.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const n=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(n)return n;const a=i.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,u=h.Z.getDefault();if(u&&u.loaded&&(0,d.Fv)(u.restUrl)===(0,d.Fv)(l))return u.user;const c=`${l}/community/self`,y=(0,p.pC)(e)?e.signal:null,f=await(0,s.q6)((0,o.default)(c,{authMode:"no-prompt",query:{f:"json"},signal:y}));return f.ok?v.default.fromJSON(f.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,n=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||h.Z.getDefault());return r&&n&&!(0,d.tm)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n._)([(0,c.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,n._)([(0,y.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,c.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,n._)([(0,f.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},16467:(e,t,r)=>{r.d(t,{$9:()=>v,G4:()=>S,Lu:()=>g,WW:()=>x,d:()=>F,eS:()=>I,gp:()=>C,j:()=>b,w9:()=>w,yN:()=>_}),r(66577);var n=r(3172),i=r(20102),o=r(92604),s=r(70586),a=r(8744),l=r(40488),p=r(98732),u=r(44876),d=r(92722),c=r(25278),y=r(99514),f=r(86719),m=r(82971);const h=o.Z.getLogger("esri.layers.graphics.sources.ogcfeature"),g="http://www.opengis.net/def/crs/",v=`${g}OGC/1.3/CRS84`;async function w(e,t,r={},o=5){const{links:a}=e,l=R(a,"items","application/geo+json")||R(a,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(l))throw new i.Z("ogc-feature-layer:missing-items-page","Missing items url");const{data:p}=await(0,n.default)(l.href,{signal:r.signal,query:{limit:o,...r.customParameters,token:r.apiKey},headers:{accept:"application/geo+json"}});await(0,d.O3)(p);const u=(0,d.my)(p,{geometryType:t.geometryType}),m=t.fields||u.fields||[],g=null!=t.hasZ?t.hasZ:u.hasZ,v=u.geometryType,w=t.objectIdField||u.objectIdFieldName||"OBJECTID";let b=t.timeInfo;const S=m.find((e=>e.name===w));if(S)S.type="esriFieldTypeOID",S.editable=!1,S.nullable=!1;else{if(!u.objectIdFieldType)throw new i.Z("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");m.unshift({name:w,alias:w,type:"esriFieldTypeOID",editable:!1,nullable:!1})}if(w!==u.objectIdFieldName){const e=m.find((e=>e.name===u.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}m===u.fields&&u.unknownFields.length>0&&h.warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:u.unknownFields}});for(const e of m){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new i.Z("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!f.v.jsonValues.includes(e.type))throw new i.Z("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(b){const e=new y.Z(m);if(b.startTimeField){const t=e.get(b.startTimeField);t?(b.startTimeField=t.name,t.type="esriFieldTypeDate"):b.startTimeField=null}if(b.endTimeField){const t=e.get(b.endTimeField);t?(b.endTimeField=t.name,t.type="esriFieldTypeDate"):b.endTimeField=null}if(b.trackIdField){const t=e.get(b.trackIdField);t?b.trackIdField=t.name:(b.trackIdField=null,h.warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:b}}))}b.startTimeField||b.endTimeField||(h.warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:b}}),b=null)}return{drawingInfo:v?(0,c.bU)(v):null,geometryType:v,fields:m,hasZ:!!g,objectIdField:w,timeInfo:b}}async function b(e,t={}){const{links:r}=e,o=R(r,"data","application/json")||R(r,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");if((0,s.Wi)(o))throw new i.Z("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:a,customParameters:l,signal:p}=t,{data:u}=await(0,n.default)(o.href,{signal:p,headers:{accept:"application/json"},query:{...l,token:a}});return u}async function S(e,t={}){const{links:r}=e,o=R(r,"conformance","application/json")||R(r,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");if((0,s.Wi)(o))throw new i.Z("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:a,customParameters:l,signal:p}=t,{data:u}=await(0,n.default)(o.href,{signal:p,headers:{accept:"application/json"},query:{...l,token:a}});return u}async function C(e,t={}){const{apiKey:r,customParameters:i,signal:o}=t,{data:s}=await(0,n.default)(e,{signal:o,headers:{accept:"application/json"},query:{...i,token:r}});return s}async function I(e,t={}){const r="application/vnd.oai.openapi+json;version=3.0",i=R(e.links,"service-desc",r);if((0,s.Wi)(i))return h.warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:o,customParameters:a,signal:l}=t,{data:p}=await(0,n.default)(i.href,{signal:l,headers:{accept:r},query:{...a,token:o}});return p}function F(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),r=null==t?void 0:t.groups;if(!r)return null;const{authority:n,code:i}=r;switch(n.toLowerCase()){case"ogc":switch(i.toLowerCase()){case"crs27":return m.Z.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return m.Z.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(i,10);return Number.isNaN(e)?null:e}default:return null}}async function _(e,t,r){const n=await x(e,t,r);return(0,p.cn)(n)}async function x(e,t,r){const{capabilities:{query:{maxRecordCount:o}},collection:c,layerDefinition:y,queryParameters:{apiKey:f,customParameters:h},spatialReference:g,supportedCrs:v}=e,{links:w}=c,b=R(w,"items","application/geo+json")||R(w,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(b))throw new i.Z("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:S,num:C,start:I,timeExtent:F,where:_}=t;if(t.objectIds)throw new i.Z("ogc-feature-layer:query-by-objectids-not-supported","Queries with objectids are not supported");const x=m.Z.fromJSON(g),P=(0,s.Pt)(t.outSpatialReference,x),O=P.isWGS84?null:j(P,v),Z=T(S,v),G=function(e){if((0,s.Wi)(e))return null;const{start:t,end:r}=e;return`${(0,s.pC)(t)?t.toISOString():".."}/${(0,s.pC)(r)?r.toISOString():".."}`}(F),D=(q=_,(0,s.Wi)(q)||!q||"1=1"===q?null:q),k=null!=C?C:null!=I&&void 0!==I?10:o,{data:M}=await(0,n.default)(b.href,{...r,query:{...h,...Z,crs:O,datetime:G,query:D,limit:k,startindex:I,token:f},headers:{accept:"application/geo+json"}});var q;let N=!1;M.links&&(N=!!M.links.find((e=>"next"===e.rel))),!N&&Number.isInteger(M.numberMatched)&&Number.isInteger(M.numberReturned)&&(N=M.numberReturned<M.numberMatched);const{fields:E,globalIdField:$,hasM:L,hasZ:W,objectIdField:A}=y,U=y.geometryType,z=(0,d.lG)(M,{geometryType:U,hasZ:W,objectIdField:A});if(!O&&P.isWebMercator)for(const e of z)if((0,s.pC)(e.geometry)){const t=(0,p.di)(e.geometry,U,W,!1);t.spatialReference=m.Z.WGS84,e.geometry=(0,p.GH)((0,l.iV)(t,P))}for(const e of z)e.objectId=e.attributes[A];const B=O||!O&&P.isWebMercator?P.toJSON():a.Zn,J=new u.Z;return J.exceededTransferLimit=N,J.features=z,J.fields=E,J.geometryType=U,J.globalIdFieldName=$,J.hasM=L,J.hasZ=W,J.objectIdFieldName=A,J.spatialReference=B,J}function j(e,t){var r,n,i;const{isWebMercator:o,wkid:s}=e;if(!s)return null;const a=o?null!=(r=null!=(n=null!=(i=t[3857])?i:t[102100])?n:t[102113])?r:t[900913]:t[e.wkid];return a?`${g}${a}`:null}function P(e){if((0,s.Wi)(e))return"";const{xmin:t,ymin:r,xmax:n,ymax:i}=e;return`${t},${r},${n},${i}`}function T(e,t){if(!function(e){return(0,s.pC)(e)&&"extent"===e.type}(e))return null;const{spatialReference:r}=e;if(!r||r.isWGS84)return{bbox:P(e)};const n=j(r,t);return(0,s.pC)(n)?{bbox:P(e),"bbox-crs":n}:r.isWebMercator?{bbox:P((0,l.iV)(e,m.Z.WGS84))}:null}function R(e,t,r){return e.find((e=>e.rel===t&&e.type===r))||e.find((e=>e.rel===t&&!e.type))}},51706:(e,t,r)=>{var n,i;function o(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?n.Expression:e.field&&"string"==typeof e.field?n.Field:n.Unknown}function l(e,t){const r=t||a(e),o=e.valueUnit||"unknown";return r===n.Unknown?i.Constant:e.stops?i.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?i.ClampedLinear:"unknown"===o?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?i.Proportional:i.Additive:i.Identity:i.RealWorldSize}r.d(t,{PS:()=>a,QW:()=>l,RY:()=>n,hL:()=>i,iY:()=>o,qh:()=>s}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(n||(n={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(i||(i={}))},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n,i=r(43697),o=r(66577),s=r(38171),a=r(35454),l=r(96674),p=r(22974),u=r(70586),d=r(5600),c=(r(75215),r(71715)),y=r(52011),f=r(30556),m=r(82971),h=r(33955),g=r(1231);const v=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=m.Z.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const i=e[t],o=s.Z.fromJSON(i),a=i.geometry&&i.geometry.spatialReference;(0,u.pC)(o.geometry)&&!a&&(o.geometry.spatialReference=r);const l=i.aggregateGeometries,p=o.aggregateGeometries;if(l&&(0,u.pC)(p))for(const e in p){const t=p[e],n=l[e],i=null==n?void 0:n.spatialReference;(0,u.pC)(t)&&!i&&(t.spatialReference=r)}n.push(o)}return n}writeGeometryType(e,t,r,n){if(e)return void v.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(e&&(0,u.pC)(e.geometry))return void v.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,h.im)(e);return!r&&t.spatialReference&&(n.spatialReference=m.Z.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,u.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,p.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e&&e[r];n.geometry=t&&t.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=o.length;e<t;e++)s((0,u.Wg)(o[e].geometry))||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[o,s]}=r,a=this._getHydrationFunction(e,(e=>e*o+n),(e=>i-e*s));for(const{geometry:e}of t)(0,u.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,i;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===n&&s===i||(o.push([e-n,s-i]),n=e,i=s)}else n=t(a[0]),i=r(a[1]),o.push([n,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,h.oU)(e)?e.rings:e.paths,i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,r);s&&i.push(s)}return i.length>0?((0,h.oU)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const n=(0,h.oU)(e)?e.rings:e.paths;let i,o;for(let e=0,s=n.length;e<s;e++){const s=n[e];for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(i+=n[0],o+=n[1]):(i=n[0],o=n[1]),n[0]=t(i),n[1]=r(o)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const n=e.points;let i,o;for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(i+=s[0],o+=s[1]):(i=s[0],o=s[1]),s[0]=t(i),s[1]=r(o)}}:void 0}};(0,i._)([(0,d.Cb)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,d.Cb)({type:[s.Z],json:{write:!0}})],w.prototype,"features",void 0),(0,i._)([(0,c.r)("features")],w.prototype,"readFeatures",null),(0,i._)([(0,d.Cb)({type:[g.Z],json:{write:!0}})],w.prototype,"fields",void 0),(0,i._)([(0,d.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:v.read}}})],w.prototype,"geometryType",void 0),(0,i._)([(0,f.c)("geometryType")],w.prototype,"writeGeometryType",null),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i._)([(0,d.Cb)({types:o.qM,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i._)([(0,c.r)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i._)([(0,d.Cb)({type:m.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i._)([(0,f.c)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i._)([(0,d.Cb)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i._)([(0,y.j)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const b=w}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8936],{47545:(e,t,n)=>{n.d(t,{d:()=>i});var r=n(22021);function i(e,t,n){var i;const l=e.byteLength/(4*t),u=new Uint32Array(e,0,l*t);let f=new Uint32Array(l);const d=null!=(i=null==n?void 0:n.minReduction)?i:0,h=(null==n?void 0:n.originalIndices)||null,p=h?h.length:0,g=(null==n?void 0:n.componentOffsets)||null;let T=0;if(g)for(let e=0;e<g.length-1;e++){const t=g[e+1]-g[e];t>T&&(T=t)}else T=l;const A=Math.floor(1.1*T)+1;(null==c||c.length<2*A)&&(c=new Uint32Array((0,r.Sf)(2*A)));for(let e=0;e<2*A;e++)c[e]=0;let N=0;const E=!!g&&!!h,I=E?p:l,O=E?new Uint32Array(p):null,m=1.96;let S=0!==d?Math.ceil(4*m*m/(d*d)*d*(1-d)):I,w=1,L=g?g[1]:I;for(let e=0;e<I;e++){if(e===S){const t=1-N/e;if(t+m*Math.sqrt(t*(1-t)/e)<d)return null;S*=2}if(e===L){for(let e=0;e<2*A;e++)c[e]=0;if(h)for(let e=g[w-1];e<g[w];e++)O[e]=f[h[e]];L=g[++w]}const n=E?h[e]:e,r=n*t,i=a(u,r,t);let o=i%A,l=N;for(;0!==c[2*o+1];){if(c[2*o]===i){const e=c[2*o+1]-1;if(s(u,r,e*t,t)){l=f[e];break}}o++,o>=A&&(o-=A)}l===N&&(c[2*o]=i,c[2*o+1]=n+1,N++),f[n]=l}if(0!==d&&1-N/l<d)return null;if(E){for(let e=g[w-1];e<O.length;e++)O[e]=f[h[e]];f=O}const R=new Uint32Array(t*N);N=0;for(let e=0;e<I;e++)f[e]===N&&(o(u,(E?h[e]:e)*t,R,N*t,t),N++);if(h&&!E){const e=new Uint32Array(p);for(let t=0;t<e.length;t++)e[t]=f[h[t]];f=e}return{buffer:R.buffer,indices:f,uniqueCount:N}}function s(e,t,n,r){for(let i=0;i<r;i++)if(e[t+i]!==e[n+i])return!1;return!0}function o(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}function a(e,t,n){let r=0;for(let i=0;i<n;i++)r=e[t+i]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let c=null},65576:(e,t,n)=>{n.d(t,{U$:()=>a});var r=n(56481),i=n(79583);class s{constructor(e,t){this.layout=e,this.buffer="number"==typeof t?new ArrayBuffer(t*e.stride):t;for(const t of e.fieldNames){const n=e.fields.get(t);this[t]=new n.constructor(this.buffer,n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(e,t){const n=this[e];return n&&n.elementCount===t.ElementCount&&n.elementType===t.ElementType?n:null}slice(e,t){return new s(this.layout,this.buffer.slice(e*this.stride,t*this.stride))}copyFrom(e,t,n,r){const i=this.stride;if(i%4==0){const s=new Uint32Array(e.buffer,t*i,r*i/4);new Uint32Array(this.buffer,n*i,r*i/4).set(s)}else{const s=new Uint8Array(e.buffer,t*i,r*i);new Uint8Array(this.buffer,n*i,r*i).set(s)}}}class o{constructor(){this.stride=0,this.fields=new Map,this.fieldNames=[]}vec2f(e,t){return this._appendField(e,r.Eu,t),this}vec2f64(e,t){return this._appendField(e,r.q6,t),this}vec3f(e,t){return this._appendField(e,r.ct,t),this}vec3f64(e,t){return this._appendField(e,r.fP,t),this}vec4f(e,t){return this._appendField(e,r.ek,t),this}vec4f64(e,t){return this._appendField(e,r.Cd,t),this}mat3f(e,t){return this._appendField(e,r.gK,t),this}mat3f64(e,t){return this._appendField(e,r.ey,t),this}mat4f(e,t){return this._appendField(e,r.bj,t),this}mat4f64(e,t){return this._appendField(e,r.O1,t),this}vec4u8(e,t){return this._appendField(e,r.mc,t),this}f32(e,t){return this._appendField(e,r.ly,t),this}f64(e,t){return this._appendField(e,r.oS,t),this}u8(e,t){return this._appendField(e,r.D_,t),this}u16(e,t){return this._appendField(e,r.av,t),this}i8(e,t){return this._appendField(e,r.Hz,t),this}vec2i8(e,t){return this._appendField(e,r.Vs,t),this}vec2i16(e,t){return this._appendField(e,r.or,t),this}vec2u8(e,t){return this._appendField(e,r.xA,t),this}vec4u16(e,t){return this._appendField(e,r.v6,t),this}u32(e,t){return this._appendField(e,r.Nu,t),this}_appendField(e,t,n){const r=t.ElementCount*(0,i.n1)(t.ElementType),s=this.stride;this.fields.set(e,{size:r,constructor:t,offset:s,optional:n}),this.stride+=r,this.fieldNames.push(e)}alignTo(e){return this.stride=Math.floor((this.stride+e-1)/e)*e,this}hasField(e){return this.fieldNames.includes(e)}createBuffer(e){return new s(this,e)}createView(e){return new s(this,e)}clone(){const e=new o;return e.stride=this.stride,e.fields=new Map,this.fields.forEach(((t,n)=>e.fields.set(n,t))),e.fieldNames=this.fieldNames.slice(),e.BufferType=this.BufferType,e}}function a(){return new o}},35065:(e,t,n)=>{var r;n.d(t,{T:()=>r}),function(e){e.POSITION="position",e.NORMAL="normal",e.UV0="uv0",e.AUXPOS1="auxpos1",e.AUXPOS2="auxpos2",e.MAPPOS="mapPos",e.COLOR="color",e.SYMBOLCOLOR="symbolColor",e.SIZE="size",e.TANGENT="tangent",e.OFFSET="offset",e.SUBDIVISIONFACTOR="subdivisionFactor",e.COLORFEATUREATTRIBUTE="colorFeatureAttribute",e.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",e.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",e.DISTANCETOSTART="distanceToStart",e.UVMAPSPACE="uvMapSpace",e.BOUNDINGRECT="boundingRect",e.UVREGION="uvRegion",e.NORMALCOMPRESSED="normalCompressed",e.PROFILERIGHT="profileRight",e.PROFILEUP="profileUp",e.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",e.FEATUREVALUE="featureValue",e.MODELORIGINHI="modelOriginHi",e.MODELORIGINLO="modelOriginLo",e.MODEL="model",e.MODELNORMAL="modelNormal",e.INSTANCECOLOR="instanceColor",e.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",e.LOCALTRANSFORM="localTransform",e.GLOBALTRANSFORM="globalTransform",e.BOUNDINGSPHERE="boundingSphere",e.MODELORIGIN="modelOrigin",e.MODELSCALEFACTORS="modelScaleFactors",e.FEATUREATTRIBUTE="featureAttribute",e.STATE="state",e.LODLEVEL="lodLevel",e.POSITION0="position0",e.POSITION1="position1",e.NORMALA="normalA",e.NORMALB="normalB",e.COMPONENTINDEX="componentIndex",e.VARIANTOFFSET="variantOffset",e.VARIANTSTROKE="variantStroke",e.VARIANTEXTENSION="variantExtension",e.U8PADDING="u8padding",e.U16PADDING="u16padding",e.SIDENESS="sideness",e.START="start",e.END="end",e.UP="up",e.EXTRUDE="extrude"}(r||(r={}))},18936:(e,t,n)=>{n.r(t),n.d(t,{EdgeProcessingWorker:()=>Z,default:()=>ce,extract:()=>j,extractComponentsEdgeLocationsLayout:()=>ae,extractEdgeLocationsLayout:()=>oe});var r=n(47545);function i(e,t,n){const r=t/3,i=new Uint32Array(n+1),s=new Uint32Array(n+1),o=(e,t)=>{e<t?i[e+1]++:s[t+1]++};for(let t=0;t<r;t++){const n=e[3*t],r=e[3*t+1],i=e[3*t+2];o(n,r),o(r,i),o(i,n)}let a=0,c=0;for(let e=0;e<n;e++){const t=i[e+1],n=s[e+1];i[e+1]=a,s[e+1]=c,a+=t,c+=n}const l=new Uint32Array(6*r),u=i[n],f=(e,t,n)=>{if(e<t){const r=i[e+1]++;l[2*r]=t,l[2*r+1]=n}else{const r=s[t+1]++;l[2*u+2*r]=e,l[2*u+2*r+1]=n}};for(let t=0;t<r;t++){const n=e[3*t],r=e[3*t+1],i=e[3*t+2];f(n,r,t),f(r,i,t),f(i,n,t)}const d=(e,t)=>{const n=2*e,r=t-e;for(let e=1;e<r;e++){const t=l[n+2*e],r=l[n+2*e+1];let i=e-1;for(;i>=0&&l[n+2*i]>t;i--)l[n+2*i+2]=l[n+2*i],l[n+2*i+3]=l[n+2*i+1];l[n+2*i+2]=t,l[n+2*i+3]=r}};for(let e=0;e<n;e++)d(i[e],i[e+1]),d(u+s[e],u+s[e+1]);const h=new Int32Array(3*r),p=(t,n)=>t===e[3*n]?0:t===e[3*n+1]?1:t===e[3*n+2]?2:-1,g=(e,t)=>{const n=p(e,t);h[3*t+n]=-1},T=(e,t,n,r)=>{const i=p(e,t);h[3*t+i]=r;const s=p(n,r);h[3*r+s]=t};for(let e=0;e<n;e++){let t=i[e];const n=i[e+1];let r=s[e];const o=s[e+1];for(;t<n&&r<o;){const n=l[2*t],i=l[2*u+2*r];n===i?(T(e,l[2*t+1],i,l[2*u+2*r+1]),t++,r++):n<i?(g(e,l[2*t+1]),t++):(g(i,l[2*u+2*r+1]),r++)}for(;t<n;)g(e,l[2*t+1]),t++;for(;r<o;)g(l[2*u+2*r],l[2*u+2*r+1]),r++}return h}var s=n(65576),o=n(56481);function a(e,t){return t.push(e.buffer),{buffer:e.buffer,layout:c(e.layout)}}function c(e){const t=new Array;return e.fields.forEach(((e,n)=>{const r={...e,constructor:u(e.constructor)};t.push([n,r])})),{stride:e.stride,fields:t,fieldNames:e.fieldNames}}const l=[o.ly,o.Eu,o.ct,o.ek,o.gK,o.bj,o.oS,o.q6,o.fP,o.Cd,o.ey,o.O1,o.D_,o.xA,o.ne,o.mc,o.av,o.TS,o.mw,o.v6,o.Nu,o.qt,o.G5,o.hu,o.Hz,o.Vs,o.P_,o.ir,o.o7,o.or,o.n1,o.zO,o.Jj,o.wA,o.PP,o.TN];function u(e){return`${e.ElementType}_${e.ElementCount}`}const f=new Map;l.forEach((e=>f.set(u(e),e)));var d=n(35065),h=n(35371),p=n(21968);function g(e,t=0){const n=e.stride;return e.fieldNames.filter((t=>{const n=e.fields.get(t).optional;return!(n&&n.glPadding)})).map((r=>{const i=e.fields.get(r),s=i.constructor.ElementCount,o=T(i.constructor.ElementType),a=i.offset,c=!(!i.optional||!i.optional.glNormalized);return new p.G(r,s,o,a,n,c,t)}))}function T(e){const t=A[e];if(t)return t;throw new Error("BufferType not supported in WebGL")}const A={u8:h.g.UNSIGNED_BYTE,u16:h.g.UNSIGNED_SHORT,u32:h.g.UNSIGNED_INT,i8:h.g.BYTE,i16:h.g.SHORT,i32:h.g.INT,f32:h.g.FLOAT},N=(0,s.U$)().vec3f(d.T.POSITION).u16(d.T.COMPONENTINDEX).u16(d.T.U16PADDING),E=(g((0,s.U$)().vec2u8(d.T.SIDENESS)),(0,s.U$)().vec3f(d.T.POSITION0).vec3f(d.T.POSITION1).u16(d.T.COMPONENTINDEX).u8(d.T.VARIANTOFFSET,{glNormalized:!0}).u8(d.T.VARIANTSTROKE).u8(d.T.VARIANTEXTENSION,{glNormalized:!0}).u8(d.T.U8PADDING,{glPadding:!0}).u16(d.T.U16PADDING,{glPadding:!0})),I=E.clone().vec3f(d.T.NORMAL),O=E.clone().vec3f(d.T.NORMALA).vec3f(d.T.NORMALB);new Map([[d.T.POSITION0,0],[d.T.POSITION1,1],[d.T.COMPONENTINDEX,2],[d.T.VARIANTOFFSET,3],[d.T.VARIANTSTROKE,4],[d.T.VARIANTEXTENSION,5],[d.T.NORMAL,6],[d.T.NORMALA,6],[d.T.NORMALB,7],[d.T.SIDENESS,8]]);var m=n(77734),S=n(17896),w=n(65617);class L{updateSettings(e){this.settings=e,this.edgeHashFunction=e.reducedPrecision?U:F}write(e,t,n){const r=this.edgeHashFunction(n);V.seed=r;const i=V.getIntRange(0,255),s=V.getIntRange(0,this.settings.variants-1),o=V.getFloat(),a=255*(.5*function(e,t){const n=e<0?-1:1;return Math.abs(e)**1.2*n}(-(1-Math.min(o/.7,1))+Math.max(0,o-.7)/(1-.7))+.5);e.position0.setVec(t,n.position0),e.position1.setVec(t,n.position1),e.componentIndex.set(t,n.componentIndex),e.variantOffset.set(t,i),e.variantStroke.set(t,s),e.variantExtension.set(t,a)}trim(e,t){return e.slice(0,t)}}const R=new Float32Array(6),v=new Uint32Array(R.buffer),y=new Uint32Array(1);function F(e){const t=R;t[0]=e.position0[0],t[1]=e.position0[1],t[2]=e.position0[2],t[3]=e.position1[0],t[4]=e.position1[1],t[5]=e.position1[2],y[0]=5381;for(let e=0;e<v.length;e++)y[0]=31*y[0]+v[e];return y[0]}function U(e){const t=R;t[0]=D(e.position0[0]),t[1]=D(e.position0[1]),t[2]=D(e.position0[2]),t[3]=D(e.position1[0]),t[4]=D(e.position1[1]),t[5]=D(e.position1[2]),y[0]=5381;for(let e=0;e<v.length;e++)y[0]=31*y[0]+v[e];return y[0]}function D(e){return Math.round(1e4*e)/1e4}class P{constructor(){this.commonWriter=new L}updateSettings(e){this.commonWriter.updateSettings(e)}allocate(e){return I.createBuffer(e)}write(e,t,n){this.commonWriter.write(e,t,n),(0,S.a)(M,n.faceNormal0,n.faceNormal1),(0,S.n)(M,M),e.normal.setVec(t,M)}trim(e,t){return this.commonWriter.trim(e,t)}}P.Layout=I,P.glLayout=g(I,1);class b{constructor(){this.commonWriter=new L}updateSettings(e){this.commonWriter.updateSettings(e)}allocate(e){return O.createBuffer(e)}write(e,t,n){this.commonWriter.write(e,t,n),e.normalA.setVec(t,n.faceNormal0),e.normalB.setVec(t,n.faceNormal1)}trim(e,t){return this.commonWriter.trim(e,t)}}b.Layout=O,b.glLayout=g(O,1);const M=(0,w.c)(),V=new m.Z;var C=n(67676),B=n(22021),_=n(1533);const x=-1;var G,k;function H(e,t,n,r=Y){const i=e.vertices.position,s=e.vertices.componentIndex,o=(0,B.Vl)(r.anglePlanar),a=(0,B.Vl)(r.angleSignificantEdge),c=Math.cos(a),l=Math.cos(o),u=K.edge,f=u.position0,d=u.position1,h=u.faceNormal0,p=u.faceNormal1,g=$(e),T=function(e){const t=e.faces.length/3,n=e.faces,r=e.neighbors;let i=0;for(let e=0;e<t;e++){const t=r[3*e+0],s=r[3*e+1],o=r[3*e+2],a=n[3*e+0],c=n[3*e+1],l=n[3*e+2];i+=t===x||a<c?1:0,i+=s===x||c<l?1:0,i+=o===x||l<a?1:0}const s=new Int32Array(4*i);let o=0;for(let e=0;e<t;e++){const t=r[3*e+0],i=r[3*e+1],a=r[3*e+2],c=n[3*e+0],l=n[3*e+1],u=n[3*e+2];(t===x||c<l)&&(s[o++]=c,s[o++]=l,s[o++]=e,s[o++]=t),(i===x||l<u)&&(s[o++]=l,s[o++]=u,s[o++]=e,s[o++]=i),(a===x||u<c)&&(s[o++]=u,s[o++]=c,s[o++]=e,s[o++]=a)}return s}(e),A=T.length/4,N=t.allocate(A);let E=0;const I=A,O=n.allocate(I);let m=0,w=0,L=0;const R=(0,C.w6)(0,A),v=new Float32Array(A);(0,_.Ed)(v,((e,t,n)=>{i.getVec(T[4*t+0],f),i.getVec(T[4*t+1],d),n[t]=(0,S.i)(f,d)})),R.sort(((e,t)=>v[t]-v[e]));const y=new Array,F=new Array;for(let e=0;e<A;e++){const r=R[e],a=v[r],A=T[4*r+0],I=T[4*r+1],U=T[4*r+2],D=T[4*r+3],P=D===x;if(i.getVec(A,f),i.getVec(I,d),P)(0,S.s)(h,g[3*U+0],g[3*U+1],g[3*U+2]),(0,S.c)(p,h),u.componentIndex=s.get(A),u.cosAngle=(0,S.e)(h,p);else{if((0,S.s)(h,g[3*U+0],g[3*U+1],g[3*U+2]),(0,S.s)(p,g[3*D+0],g[3*D+1],g[3*D+2]),u.componentIndex=s.get(A),u.cosAngle=(0,S.e)(h,p),z(u,l))continue;u.cosAngle<-.9999&&(0,S.c)(p,h)}w+=a,L++,P||X(u,c)?(t.write(N,E++,u),y.push(a)):W(u,o)&&(n.write(O,m++,u),F.push(a))}const U=new Float32Array(y.reverse()),D=new Float32Array(F.reverse());return{regular:{instancesData:t.trim(N,E),lodInfo:{lengths:U}},silhouette:{instancesData:n.trim(O,m),lodInfo:{lengths:D}},averageEdgeLength:w/L}}function X(e,t){return e.cosAngle<t}function z(e,t){return e.cosAngle>t}function W(e,t){const n=(0,B.ZF)(e.cosAngle),r=K.fwd,i=K.ortho;return(0,S.r)(r,e.position1,e.position0),n*((0,S.e)((0,S.f)(i,e.faceNormal0,e.faceNormal1),r)>0?-1:1)>t}function $(e){const t=e.faces.length/3,n=e.vertices.position,r=e.faces,i=q.v0,s=q.v1,o=q.v2,a=new Float32Array(3*t);for(let e=0;e<t;e++){const t=r[3*e+0],c=r[3*e+1],l=r[3*e+2];n.getVec(t,i),n.getVec(c,s),n.getVec(l,o),(0,S.b)(s,s,i),(0,S.b)(o,o,i),(0,S.f)(i,s,o),(0,S.n)(i,i),a[3*e+0]=i[0],a[3*e+1]=i[1],a[3*e+2]=i[2]}return a}(k=G||(G={}))[k.SOLID=0]="SOLID",k[k.SKETCH=1]="SKETCH";const K={edge:{position0:(0,w.c)(),position1:(0,w.c)(),faceNormal0:(0,w.c)(),faceNormal1:(0,w.c)(),componentIndex:0,cosAngle:0},ortho:(0,w.c)(),fwd:(0,w.c)()},q={v0:(0,w.c)(),v1:(0,w.c)(),v2:(0,w.c)()},Y={anglePlanar:4,angleSignificantEdge:35};class Z{async extract(e){const t=J(e),n=j(t),r=[t.data.buffer];return{result:Q(n,r),transferList:r}}async extractComponentsEdgeLocations(e){const t=J(e),n=[];return{result:a(H(ee(t.data,t.skipDeduplicate,t.indices,t.indicesLength),ie,se).regular.instancesData,n),transferList:n}}async extractEdgeLocations(e){const t=J(e),n=[];return{result:a(H(ee(t.data,t.skipDeduplicate,t.indices,t.indicesLength),re,se).regular.instancesData,n),transferList:n}}}function j(e){const t=ee(e.data,e.skipDeduplicate,e.indices,e.indicesLength);return te.updateSettings(e.writerSettings),ne.updateSettings(e.writerSettings),H(t,te,ne)}function J(e){return{data:N.createView(e.dataBuffer),indices:"Uint32Array"===e.indicesType?new Uint32Array(e.indicesBuffer):"Uint16Array"===e.indicesType?new Uint16Array(e.indicesBuffer):void 0,indicesLength:e.indicesLength,writerSettings:e.writerSettings,skipDeduplicate:e.skipDeduplicate}}function Q(e,t){return t.push(e.regular.lodInfo.lengths.buffer),t.push(e.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:a(e.regular.instancesData,t),lodInfo:{lengths:e.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:a(e.silhouette.instancesData,t),lodInfo:{lengths:e.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:e.averageEdgeLength}}function ee(e,t,n,s){if(t)return{faces:n,facesLength:s,neighbors:i(n,s,e.count),vertices:e};const o=(0,r.d)(e.buffer,e.stride/4,{originalIndices:n,originalIndicesLength:s}),a=i(o.indices,s,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:a,vertices:N.createView(o.buffer)}}const te=new P,ne=new b,re=new class{allocate(e){return oe.createBuffer(e)}trim(e,t){return e.slice(0,t)}write(e,t,n){e.position0.setVec(t,n.position0),e.position1.setVec(t,n.position1)}},ie=new class{allocate(e){return ae.createBuffer(e)}trim(e,t){return e.slice(0,t)}write(e,t,n){e.position0.setVec(t,n.position0),e.position1.setVec(t,n.position1),e.componentIndex.set(t,n.componentIndex)}},se={allocate:()=>null,write:()=>{},trim:()=>null},oe=(0,s.U$)().vec3f(d.T.POSITION0).vec3f(d.T.POSITION1),ae=(0,s.U$)().vec3f(d.T.POSITION0).vec3f(d.T.POSITION1).u16(d.T.COMPONENTINDEX).u16(d.T.U16PADDING,{glPadding:!0});function ce(){return new Z}},21968:(e,t,n)=>{n.d(t,{G:()=>r});class r{constructor(e,t,n,r,i,s=!1,o=0){this.name=e,this.count=t,this.type=n,this.offset=r,this.stride=i,this.normalized=s,this.divisor=o}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7282],{22303:(e,t,r)=>{r.d(t,{Z:()=>h});var n,i,s=r(35270),a=r(22021),o=r(70586),l=r(75215);function u(e){return(0,a.uZ)((0,l.vU)(e),0,255)}function c(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class m{constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}static blendColors(e,t,r,n=new m){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),m.fromArray(r,t)}return m.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return m.fromArray((0,s.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new m){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,n=(1<<r)-1;let i=Number("0x"+e.substr(1));return isNaN(i)?null:(["b","g","r"].forEach((e=>{const s=i&n;i>>=r,t[e]=4===r?17*s:s})),t.a=1,t)}static fromArray(e,t=new m){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.St)(e)?(0,s.h$)(e):null;return r&&m.fromArray(r,t)||m.fromRgb(e,t)||m.fromHex(e,t)}static fromJSON(e){return e&&new m([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return(0,o.pC)(e)?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return(0,o.pC)(e)?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)m.fromString(e,this);else if(Array.isArray(e))m.fromArray(e,this);else{var t,r,n,i;this._set(null!=(t=e.r)?t:0,null!=(r=e.g)?r:0,null!=(n=e.b)?n:0,null!=(i=e.a)?i:1),e instanceof m||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=m.AlphaMode.ALWAYS){const t=u(this.r),r=u(this.g),n=u(this.b);return e===m.AlphaMode.ALWAYS||1!==this.a?[t,r,n,u(255*this.a)]:[t,r,n]}clone(){return new m(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return(0,o.pC)(e)&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(c(this.r,0,255)),this.g=Math.round(c(this.g,0,255)),this.b=Math.round(c(this.b,0,255)),this.a=c(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}m.prototype.declaredClass="esri.Color",n=m||(m={}),(i=n.AlphaMode||(n.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const h=m},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>i,VL:()=>a,h$:()=>s,rW:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return n[e]||n[e.toLowerCase()]}function s(e){var t;return null!=(t=n[e])?t:n[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const i=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,a=2*r-s;return[Math.round(255*o(a,s,i+1/3)),Math.round(255*o(a,s,i)),Math.round(255*o(a,s,i-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,s=t?9===e.length:5===e.length;let a=Number("0x"+e.substr(1));if(isNaN(a))return null;const o=[0,0,0,1];let l;return s&&(l=a&n,a>>=r,o[3]=i*l/255),l=a&n,a>>=r,o[2]=i*l,l=a&n,a>>=r,o[1]=i*l,l=a&n,a>>=r,o[0]=i*l,o}},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){var r;const s=e instanceof n.X?e:new n.X(e,t),a={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?s.apiValues:String,json:{type:s.jsonValues,read:(null==t||!t.readOnly)&&{reader:s.read},write:{writer:s.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(a.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(a.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(a.json.name=t.name),(0,i.Cb)(a)}},67900:(e,t,r)=>{r.d(t,{$C:()=>N,En:()=>U,Jo:()=>T,Z7:()=>P,_R:()=>O,c9:()=>A,cM:()=>G,gV:()=>J,hd:()=>c,qE:()=>Z,ty:()=>B}),r(80442);var n=r(35454),i=r(70586),s=r(24678),a=r(82971),o=r(68441),l=r(8744),u=r(58116);const c=39.37,m=o.sv.radius*Math.PI/200,h=/UNIT\[([^\]]+)\]\]$/i,d=u.Z,f=/UNIT\[([^\]]+)\]/i,g=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,n.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),p=e=>e*e,b=e=>e*e*e,S={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:p(.001)},"square-centimeters":{inBaseUnits:p(.01)},"square-decimeters":{inBaseUnits:p(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:p(1e3)},"square-inches":{inBaseUnits:p(.0254)},"square-feet":{inBaseUnits:p(.3048)},"square-yards":{inBaseUnits:p(.9144)},"square-miles":{inBaseUnits:p(1609.344)},"square-us-feet":{inBaseUnits:p(1200/3937)},acres:{inBaseUnits:.0015625*p(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},k=(()=>{const e={};for(const t in S)for(const r in S[t].units)e[r]=t;return e})();function w(e){const t=k[e];if(!t)throw new Error("unknown type");return t}function v(e,t=null){return t=t||w(e),S[t].baseUnit===e}function U(e,t,r){if(t===r)return e;const n=w(t);if(n!==w(r))throw new Error("incompatible units");const i=v(t,n)?e:function(e,t,r){return e*S[r].units[t].inBaseUnits}(e,t,n);return v(r,n)?i:function(e,t,r){return e/S[r].units[t].inBaseUnits}(i,r,n)}function B(e,t,r){return U(e,t,"meters")/(r*Math.PI/180)}function N(e){return y.fromJSON(e.toLowerCase())||null}function O(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=A(e);return t>1e5?1:t}function G(e){return A(e)>=(e instanceof a.Z?(0,s.Iu)(e).metersPerDegree:1e5)?"meters":Z(e)}function A(e,t=o.sv.metersPerDegree){return P(e,!0)||t}function P(e,t=!1){let r,n,i=null;if(null!=e&&("object"==typeof e?(r=e.wkid,n=e.wkt):"number"==typeof e?r=e:"string"==typeof e&&(n=e)),r){if((0,l.o$)(r))return o.yr.metersPerDegree;if((0,l.ME)(r))return o.Z1.metersPerDegree;i=d.values[d[r]],!i&&t&&g.has(r)&&(i=m)}else n&&(E(n)?i=q(h.exec(n),i):x(n)&&(i=q(f.exec(n),i)));return i}function q(e,t){return e&&e[1]?M(e[1]):t}function M(e){return parseFloat(e.split(",")[1])}function Z(e){let t,r,n=null;if(null!=e&&("object"==typeof e?(t=e.wkid,r=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(r=e)),t)n=d.units[d[t]];else if(r){const e=E(r)?h:x(r)?f:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||!d.units.includes(r)){const t=M(e);r=null;const n=d.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=d.units[e];break}}return r}(t[1]))}}return(0,i.pC)(n)?N(n):null}function x(e){return/^GEOCCS/i.test(e)}function E(e){return/^PROJCS/i.test(e)}const C={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},_={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},J=(0,n.w)()(C),T=(0,n.w)()(_);(0,n.w)()({...C,..._})},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),i=r(6570),s=r(9361),a=r(65091),o=r(13473),l=r(38913),u=r(58901);r(82971),r(86973),r(33955);const c={base:s.Z,key:"type",typeMap:{extent:i.Z,multipoint:a.Z,point:o.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>o,HQ:()=>l,Iu:()=>h,VY:()=>u,e8:()=>d,rS:()=>m,wY:()=>c});var n=r(82971),i=r(68441),s=r(8744);function a(e){return new n.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const o=a(i.sv),l=a(i.yr),u=a(i.Z1),c=new n.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${i.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function m(e){return e&&((0,s.BZ)(e)||e===l)?l:e&&((0,s.V2)(e)||e===u)?u:o}function h(e){return e&&((0,s.BZ)(e)||e===l)?i.yr:e&&((0,s.V2)(e)||e===u)?i.Z1:i.sv}function d(e){return(0,s.o$)(e)?i.yr:(0,s.ME)(e)?i.Z1:i.sv}},33955:(e,t,r)=>{r.d(t,{Ji:()=>y,YX:()=>c,aW:()=>m,im:()=>g,l9:()=>d,oU:()=>f,q9:()=>b,wp:()=>h});var n=r(70586),i=r(6570),s=r(9361),a=r(65091),o=r(13473),l=r(38913),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function m(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function g(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:h(e)?o.Z.fromJSON(e):d(e)?u.Z.fromJSON(e):f(e)?l.Z.fromJSON(e):m(e)?a.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function y(e){return e?h(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":m(e)?"esriGeometryMultipoint":null:null}const p={esriGeometryPoint:o.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:a.Z};function b(e){return e&&p[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>s});var n=r(35454);const i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},61576:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g}),r(66577);var n=r(70586),i=r(18571),s=r(54163),a=r(75993),o=r(55914),l=r(73506),u=r(15612),c=r(80676),m=r(87521),h=r(91219),d=r(23808),f=r(6570);class g{convertVectorFieldData(e){const t=s.Z.fromJSON(e.pixelBlock),r=(0,c.KC)(t,e.type);return Promise.resolve((0,n.pC)(r)&&r.toJSON())}async decode(e){const t=await(0,a.J)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=s.Z.fromJSON(e.pixelBlock),e.extent=e.extent?f.Z.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}async updateSymbolizer(e){var t;this.symbolizer=h.Z.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===(null==(t=this.symbolizer)?void 0:t.rendererJSON.type)&&(this.symbolizer.rendererJSON.histograms=e.histograms)}stretch(e){const t=this.symbolizer.simpleStretch(s.Z.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}estimateStatisticsHistograms(e){const t=(0,u.Hv)(s.Z.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,o.Vl)(s.Z.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel);return t&&t.forEach(((e,r)=>{t.set(r,null==e?void 0:e.toJSON())})),Promise.resolve(t)}async mosaicAndTransform(e){var t;const r=e.srcPixelBlocks.map((e=>e?new s.Z(e):null)),i=(0,o.us)(r,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let a,l=i;return e.coefs&&(l=(0,o.Uk)(i,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(a=(0,o.Qh)(e.destDimension,e.gcsGrid),l=(0,n.Wg)((0,c.xQ)(l,e.isUV?"vector-uv":"vector-magdir",a))),{pixelBlock:null==(t=l)?void 0:t.toJSON(),localNorthDirections:a}}async createStreamlinesMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),width:e.flowData.width,height:e.flowData.height},{vertexData:n,indexData:i}=await(0,d.z_)(e.rendererSettings,r,t.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:i.buffer},transferList:[n.buffer,i.buffer]}}async getProjectionOffsetGrid(e){const t=f.Z.fromJSON(e.projectedExtent),r=f.Z.fromJSON(e.srcBufferExtent);let n=null;e.datumTransformationSteps&&(n=new i.Z({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,l.Mk)(t.spatialReference,r.spatialReference,n))&&await(0,l.zD)();const s=e.rasterTransform?(0,m.c)(e.rasterTransform):null;return(0,l.Qp)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:n,rasterTransform:s})}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3716],{22303:(e,t,r)=>{r.d(t,{Z:()=>f});var n,i,s=r(35270),o=r(22021),a=r(70586),l=r(75215);function u(e){return(0,o.uZ)((0,l.vU)(e),0,255)}function c(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class m{constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}static blendColors(e,t,r,n=new m){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),m.fromArray(r,t)}return m.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return m.fromArray((0,s.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new m){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,n=(1<<r)-1;let i=Number("0x"+e.substr(1));return isNaN(i)?null:(["b","g","r"].forEach((e=>{const s=i&n;i>>=r,t[e]=4===r?17*s:s})),t.a=1,t)}static fromArray(e,t=new m){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.St)(e)?(0,s.h$)(e):null;return r&&m.fromArray(r,t)||m.fromRgb(e,t)||m.fromHex(e,t)}static fromJSON(e){return e&&new m([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return(0,a.pC)(e)?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return(0,a.pC)(e)?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)m.fromString(e,this);else if(Array.isArray(e))m.fromArray(e,this);else{var t,r,n,i;this._set(null!=(t=e.r)?t:0,null!=(r=e.g)?r:0,null!=(n=e.b)?n:0,null!=(i=e.a)?i:1),e instanceof m||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=m.AlphaMode.ALWAYS){const t=u(this.r),r=u(this.g),n=u(this.b);return e===m.AlphaMode.ALWAYS||1!==this.a?[t,r,n,u(255*this.a)]:[t,r,n]}clone(){return new m(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return(0,a.pC)(e)&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(c(this.r,0,255)),this.g=Math.round(c(this.g,0,255)),this.b=Math.round(c(this.b,0,255)),this.a=c(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}m.prototype.declaredClass="esri.Color",n=m||(m={}),(i=n.AlphaMode||(n.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const f=m},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>i,VL:()=>o,h$:()=>s,rW:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return n[e]||n[e.toLowerCase()]}function s(e){var t;return null!=(t=n[e])?t:n[e.toLowerCase()]}function o(e){return[...s(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const i=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,o=2*r-s;return[Math.round(255*a(o,s,i+1/3)),Math.round(255*a(o,s,i)),Math.round(255*a(o,s,i-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.substr(1));if(isNaN(o))return null;const a=[0,0,0,1];let l;return s&&(l=o&n,o>>=r,a[3]=i*l/255),l=o&n,o>>=r,a[2]=i*l,l=o&n,o>>=r,a[1]=i*l,l=o&n,o>>=r,a[0]=i*l,a}},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){var r;const s=e instanceof n.X?e:new n.X(e,t),o={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?s.apiValues:String,json:{type:s.jsonValues,read:(null==t||!t.readOnly)&&{reader:s.read},write:{writer:s.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(o.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(o.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(o.json.name=t.name),(0,i.Cb)(o)}},67900:(e,t,r)=>{r.d(t,{$C:()=>G,En:()=>U,Jo:()=>R,Z7:()=>M,_R:()=>N,c9:()=>x,cM:()=>O,gV:()=>J,hd:()=>c,qE:()=>q,ty:()=>B}),r(80442);var n=r(35454),i=r(70586),s=r(24678),o=r(82971),a=r(68441),l=r(8744),u=r(58116);const c=39.37,m=a.sv.radius*Math.PI/200,f=/UNIT\[([^\]]+)\]\]$/i,h=u.Z,d=/UNIT\[([^\]]+)\]/i,g=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,n.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),p=e=>e*e,b=e=>e*e*e,S={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:p(.001)},"square-centimeters":{inBaseUnits:p(.01)},"square-decimeters":{inBaseUnits:p(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:p(1e3)},"square-inches":{inBaseUnits:p(.0254)},"square-feet":{inBaseUnits:p(.3048)},"square-yards":{inBaseUnits:p(.9144)},"square-miles":{inBaseUnits:p(1609.344)},"square-us-feet":{inBaseUnits:p(1200/3937)},acres:{inBaseUnits:.0015625*p(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},k=(()=>{const e={};for(const t in S)for(const r in S[t].units)e[r]=t;return e})();function v(e){const t=k[e];if(!t)throw new Error("unknown type");return t}function w(e,t=null){return t=t||v(e),S[t].baseUnit===e}function U(e,t,r){if(t===r)return e;const n=v(t);if(n!==v(r))throw new Error("incompatible units");const i=w(t,n)?e:function(e,t,r){return e*S[r].units[t].inBaseUnits}(e,t,n);return w(r,n)?i:function(e,t,r){return e/S[r].units[t].inBaseUnits}(i,r,n)}function B(e,t,r){return U(e,t,"meters")/(r*Math.PI/180)}function G(e){return y.fromJSON(e.toLowerCase())||null}function N(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=x(e);return t>1e5?1:t}function O(e){return x(e)>=(e instanceof o.Z?(0,s.Iu)(e).metersPerDegree:1e5)?"meters":q(e)}function x(e,t=a.sv.metersPerDegree){return M(e,!0)||t}function M(e,t=!1){let r,n,i=null;if(null!=e&&("object"==typeof e?(r=e.wkid,n=e.wkt):"number"==typeof e?r=e:"string"==typeof e&&(n=e)),r){if((0,l.o$)(r))return a.yr.metersPerDegree;if((0,l.ME)(r))return a.Z1.metersPerDegree;i=h.values[h[r]],!i&&t&&g.has(r)&&(i=m)}else n&&(E(n)?i=P(f.exec(n),i):Z(n)&&(i=P(d.exec(n),i)));return i}function P(e,t){return e&&e[1]?A(e[1]):t}function A(e){return parseFloat(e.split(",")[1])}function q(e){let t,r,n=null;if(null!=e&&("object"==typeof e?(t=e.wkid,r=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(r=e)),t)n=h.units[h[t]];else if(r){const e=E(r)?f:Z(r)?d:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||!h.units.includes(r)){const t=A(e);r=null;const n=h.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=h.units[e];break}}return r}(t[1]))}}return(0,i.pC)(n)?G(n):null}function Z(e){return/^GEOCCS/i.test(e)}function E(e){return/^PROJCS/i.test(e)}const C={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},_={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},J=(0,n.w)()(C),R=(0,n.w)()(_);(0,n.w)()({...C,..._})},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),i=r(6570),s=r(9361),o=r(65091),a=r(13473),l=r(38913),u=r(58901);r(82971),r(86973),r(33955);const c={base:s.Z,key:"type",typeMap:{extent:i.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>a,HQ:()=>l,Iu:()=>f,VY:()=>u,e8:()=>h,rS:()=>m,wY:()=>c});var n=r(82971),i=r(68441),s=r(8744);function o(e){return new n.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const a=o(i.sv),l=o(i.yr),u=o(i.Z1),c=new n.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${i.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function m(e){return e&&((0,s.BZ)(e)||e===l)?l:e&&((0,s.V2)(e)||e===u)?u:a}function f(e){return e&&((0,s.BZ)(e)||e===l)?i.yr:e&&((0,s.V2)(e)||e===u)?i.Z1:i.sv}function h(e){return(0,s.o$)(e)?i.yr:(0,s.ME)(e)?i.Z1:i.sv}},24470:(e,t,r)=>{r.d(t,{Gv:()=>h,HH:()=>l,SO:()=>u,Ue:()=>s,al:()=>o,jE:()=>c,kK:()=>m,oJ:()=>a,r3:()=>f}),r(80442),r(22021);var n=r(70586),i=r(6570);function s(e=d){return[e[0],e[1],e[2],e[3]]}function o(e,t,r,n,i=s()){return i[0]=e,i[1]=t,i[2]=r,i[3]=n,i}function a(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function l(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function u(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function c(e,t,r){return t>=e[0]&&r>=e[1]&&t<=e[2]&&r<=e[3]}function m(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function f(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const h=[1/0,1/0,-1/0,-1/0],d=[0,0,0,0]},33955:(e,t,r)=>{r.d(t,{Ji:()=>y,YX:()=>c,aW:()=>m,im:()=>g,l9:()=>h,oU:()=>d,q9:()=>b,wp:()=>f});var n=r(70586),i=r(6570),s=r(9361),o=r(65091),a=r(13473),l=r(38913),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function m(e){return void 0!==e.points}function f(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function d(e){return void 0!==e.rings}function g(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:f(e)?a.Z.fromJSON(e):h(e)?u.Z.fromJSON(e):d(e)?l.Z.fromJSON(e):m(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function y(e){return e?f(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":d(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":m(e)?"esriGeometryMultipoint":null:null}const p={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function b(e){return e&&p[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>s});var n=r(35454);const i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(70586),i=r(67900),s=r(8744);function o(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const o=(0,i._R)(t)/(0,i._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},61576:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g}),r(66577);var n=r(70586),i=r(18571),s=r(54163),o=r(75993),a=r(55914),l=r(73506),u=r(15612),c=r(80676),m=r(87521),f=r(91219),h=r(23808),d=r(6570);class g{convertVectorFieldData(e){const t=s.Z.fromJSON(e.pixelBlock),r=(0,c.KC)(t,e.type);return Promise.resolve((0,n.pC)(r)&&r.toJSON())}async decode(e){const t=await(0,o.J)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=s.Z.fromJSON(e.pixelBlock),e.extent=e.extent?d.Z.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}async updateSymbolizer(e){var t;this.symbolizer=f.Z.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===(null==(t=this.symbolizer)?void 0:t.rendererJSON.type)&&(this.symbolizer.rendererJSON.histograms=e.histograms)}stretch(e){const t=this.symbolizer.simpleStretch(s.Z.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}estimateStatisticsHistograms(e){const t=(0,u.Hv)(s.Z.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,a.Vl)(s.Z.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel);return t&&t.forEach(((e,r)=>{t.set(r,null==e?void 0:e.toJSON())})),Promise.resolve(t)}async mosaicAndTransform(e){var t;const r=e.srcPixelBlocks.map((e=>e?new s.Z(e):null)),i=(0,a.us)(r,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let o,l=i;return e.coefs&&(l=(0,a.Uk)(i,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(o=(0,a.Qh)(e.destDimension,e.gcsGrid),l=(0,n.Wg)((0,c.xQ)(l,e.isUV?"vector-uv":"vector-magdir",o))),{pixelBlock:null==(t=l)?void 0:t.toJSON(),localNorthDirections:o}}async createStreamlinesMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),width:e.flowData.width,height:e.flowData.height},{vertexData:n,indexData:i}=await(0,h.z_)(e.rendererSettings,r,t.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:i.buffer},transferList:[n.buffer,i.buffer]}}async getProjectionOffsetGrid(e){const t=d.Z.fromJSON(e.projectedExtent),r=d.Z.fromJSON(e.srcBufferExtent);let n=null;e.datumTransformationSteps&&(n=new i.Z({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,l.Mk)(t.spatialReference,r.spatialReference,n))&&await(0,l.zD)();const s=e.rasterTransform?(0,m.c)(e.rasterTransform):null;return(0,l.Qp)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:n,rasterTransform:s})}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7996],{88764:(e,t,n)=>{n.d(t,{q:()=>o});var i,s,r,a={exports:{}};i=a,s=function(){function e(n,i,s,r,a){for(;r>s;){if(r-s>600){var o=r-s+1,c=i-s+1,l=Math.log(o),h=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*h*(o-h)/o)*(c-o/2<0?-1:1);e(n,i,Math.max(s,Math.floor(i-c*h/o+u)),Math.min(r,Math.floor(i+(o-c)*h/o+u)),a)}var m=n[i],f=s,d=r;for(t(n,s,i),a(n[r],m)>0&&t(n,s,r);f<d;){for(t(n,f,d),f++,d--;a(n[f],m)<0;)f++;for(;a(n[d],m)>0;)d--}0===a(n[s],m)?t(n,s,d):t(n,++d,r),d<=i&&(s=d+1),i<=d&&(r=d-1)}}function t(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function n(e,t){return e<t?-1:e>t?1:0}return function(t,i,s,r,a){e(t,i,s||0,r||t.length-1,a||n)}},void 0!==(r=s())&&(i.exports=r);const o=a.exports},24133:(e,t,n)=>{n.d(t,{Q:()=>o});var i=n(67676),s=n(70586),r=n(44553),a=n(88764);class o{constructor(e=9,t){this.compareMinX=u,this.compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),g.prune(),U.prune(),Y.prune(),X.prune()}all(e){this._all(this.data,e)}search(e,t){let n=this.data;const i=this._toBBox;if(B(e,n))for(g.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],a=n.leaf?i(r):r;B(e,a)&&(n.leaf?t(r):_(e,a)?this._all(r,t):g.push(r))}n=g.pop()}}collides(e){let t=this.data;const n=this._toBBox;if(!B(e,t))return!1;for(g.clear();t;){for(let i=0,s=t.children.length;i<s;i++){const s=t.children[i],r=t.leaf?n(s):s;if(B(e,r)){if(t.leaf||_(e,r))return!0;g.push(s)}}t=g.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){const e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=new w([]),this}remove(e){if(!e)return this;let t,n=this.data,r=null,a=0,o=!1;const c=this._toBBox(e);for(Y.clear(),X.clear();n||Y.length>0;){var l;if(n||(n=(0,s.j0)(Y.pop()),r=Y.data[Y.length-1],a=null!=(l=X.pop())?l:0,o=!0),n.leaf&&(t=(0,i.cq)(n.children,e,n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),Y.push(n),this._condense(Y),this;o||n.leaf||!_(n,c)?r?(a++,n=r.children[a],o=!1):n=null:(Y.push(n),X.push(a),a=0,r=n,n=n.children[0])}return this}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){let n=e;for(U.clear();n;){var i;if(!0===n.leaf)for(const e of n.children)t(e);else U.pushArray(n.children);n=null!=(i=U.pop())?i:null}}_build(e,t,n,i){const s=n-t+1;let r=this._maxEntries;if(s<=r){const i=new w(e.slice(t,n+1));return c(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const a=new b([]);a.height=i;const o=Math.ceil(s/r),l=o*Math.ceil(Math.sqrt(r));M(e,t,n,l,this.compareMinX);for(let s=t;s<=n;s+=l){const t=Math.min(s+l-1,n);M(e,s,t,o,this.compareMinY);for(let n=s;n<=t;n+=o){const s=Math.min(n+o-1,t);a.children.push(this._build(e,n,s,i-1))}}return c(a,this._toBBox),a}_chooseSubtree(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,a=t.children.length;r<a;r++){const a=t.children[r],o=f(a),c=x(e,a)-o;c<s?(s=c,i=o<i?o:i,n=a):c===s&&o<i&&(i=o,n=a)}t=n||t.children[0]}return t}_insert(e,t,n){const i=this._toBBox,s=n?e:i(e);Y.clear();const r=this._chooseSubtree(s,this.data,t,Y);for(r.children.push(e),h(r,s);t>=0&&Y.data[t].children.length>this._maxEntries;)this._split(Y,t),t--;this._adjustParentBBoxes(s,Y,t)}_split(e,t){const n=e.data[t],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const a=n.children.splice(r,n.children.length-r),o=n.leaf?new w(a):new b(a);o.height=n.height,c(n,this._toBBox),c(o,this._toBBox),t?e.data[t-1].children.push(o):this._splitRoot(n,o)}_splitRoot(e,t){this.data=new b([e,t]),this.data.height=e.height+1,c(this.data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,s,r;i=s=1/0;for(let a=t;a<=n-t;a++){const t=l(e,0,a,this._toBBox),o=l(e,a,n,this._toBBox),c=p(t,o),h=f(t)+f(o);c<i?(i=c,r=a,s=h<s?h:s):c===i&&h<s&&(s=h,r=a)}return r}_chooseSplitAxis(e,t,n){const i=e.leaf?this.compareMinX:u,s=e.leaf?this.compareMinY:m;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,s)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const s=this._toBBox,r=l(e,0,t,s),a=l(e,n-t,n,s);let o=d(r)+d(a);for(let i=t;i<n-t;i++){const t=e.children[i];h(r,e.leaf?s(t):t),o+=d(r)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(a,e.leaf?s(t):t),o+=d(a)}return o}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const s=e.data[t-1],r=s.children;r.splice((0,i.cq)(r,n,r.length,s.indexHint),1)}else this.clear();else c(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function c(e,t){l(e,0,e.children.length,t,e)}function l(e,t,n,i,s){s||(s=new w([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,a=t;a<n;a++)r=e.children[a],h(s,e.leaf?i(r):r);return s}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function u(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function x(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function p(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function B(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function M(e,t,n,i,r){const o=[t,n];for(;o.length;){const t=(0,s.j0)(o.pop()),n=(0,s.j0)(o.pop());if(t-n<=i)continue;const c=n+Math.ceil((t-n)/i/2)*i;(0,a.q)(e,c,n,t,r),o.push(n,c,c,t)}}const g=new r.Z,U=new r.Z,Y=new r.Z,X=new r.Z({deallocator:void 0});class S extends class{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class w extends S{constructor(e){super(),this.children=e,this.leaf=!0}}class b extends S{constructor(e){super(),this.children=e,this.leaf=!1}}},67900:(e,t,n)=>{n.d(t,{$C:()=>w,En:()=>X,Jo:()=>G,Z7:()=>y,_R:()=>b,c9:()=>I,cM:()=>q,gV:()=>P,hd:()=>h,qE:()=>T,ty:()=>S}),n(80442);var i=n(35454),s=n(70586),r=n(24678),a=n(82971),o=n(68441),c=n(8744),l=n(58116);const h=39.37,u=o.sv.radius*Math.PI/200,m=/UNIT\[([^\]]+)\]\]$/i,f=l.Z,d=/UNIT\[([^\]]+)\]/i,x=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,i.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),_=e=>e*e,B=e=>e*e*e,M={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:_(.001)},"square-centimeters":{inBaseUnits:_(.01)},"square-decimeters":{inBaseUnits:_(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:_(1e3)},"square-inches":{inBaseUnits:_(.0254)},"square-feet":{inBaseUnits:_(.3048)},"square-yards":{inBaseUnits:_(.9144)},"square-miles":{inBaseUnits:_(1609.344)},"square-us-feet":{inBaseUnits:_(1200/3937)},acres:{inBaseUnits:.0015625*_(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*B(.001)},"cubic-centimeters":{inBaseUnits:1e3*B(.01)},"cubic-decimeters":{inBaseUnits:1e3*B(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*B(1e3)},"cubic-inches":{inBaseUnits:1e3*B(.0254)},"cubic-feet":{inBaseUnits:1e3*B(.3048)},"cubic-yards":{inBaseUnits:1e3*B(.9144)},"cubic-miles":{inBaseUnits:1e3*B(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const t in M)for(const n in M[t].units)e[n]=t;return e})();function U(e){const t=g[e];if(!t)throw new Error("unknown type");return t}function Y(e,t=null){return t=t||U(e),M[t].baseUnit===e}function X(e,t,n){if(t===n)return e;const i=U(t);if(i!==U(n))throw new Error("incompatible units");const s=Y(t,i)?e:function(e,t,n){return e*M[n].units[t].inBaseUnits}(e,t,i);return Y(n,i)?s:function(e,t,n){return e/M[n].units[t].inBaseUnits}(s,n,i)}function S(e,t,n){return X(e,t,"meters")/(n*Math.PI/180)}function w(e){return p.fromJSON(e.toLowerCase())||null}function b(e){if(e&&"object"==typeof e&&!(0,c.N$)(e))return 1;const t=I(e);return t>1e5?1:t}function q(e){return I(e)>=(e instanceof a.Z?(0,r.Iu)(e).metersPerDegree:1e5)?"meters":T(e)}function I(e,t=o.sv.metersPerDegree){return y(e,!0)||t}function y(e,t=!1){let n,i,s=null;if(null!=e&&("object"==typeof e?(n=e.wkid,i=e.wkt):"number"==typeof e?n=e:"string"==typeof e&&(i=e)),n){if((0,c.o$)(n))return o.yr.metersPerDegree;if((0,c.ME)(n))return o.Z1.metersPerDegree;s=f.values[f[n]],!s&&t&&x.has(n)&&(s=u)}else i&&(v(i)?s=A(m.exec(i),s):k(i)&&(s=A(d.exec(i),s)));return s}function A(e,t){return e&&e[1]?E(e[1]):t}function E(e){return parseFloat(e.split(",")[1])}function T(e){let t,n,i=null;if(null!=e&&("object"==typeof e?(t=e.wkid,n=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(n=e)),t)i=f.units[f[t]];else if(n){const e=v(n)?m:k(n)?d:null;if(e){const t=e.exec(n);t&&t[1]&&(i=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let n=t&&t[1];if(!n||!f.units.includes(n)){const t=E(e);n=null;const i=f.values;for(let e=0;e<i.length;++e)if(Math.abs(t-i[e])<1e-7){n=f.units[e];break}}return n}(t[1]))}}return(0,s.pC)(i)?w(i):null}function k(e){return/^GEOCCS/i.test(e)}function v(e){return/^PROJCS/i.test(e)}const R={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},O={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},P=(0,i.w)()(R),G=(0,i.w)()(O);(0,i.w)()({...R,...O})},24678:(e,t,n)=>{n.d(t,{GG:()=>o,HQ:()=>c,Iu:()=>m,VY:()=>l,e8:()=>f,rS:()=>u,wY:()=>h});var i=n(82971),s=n(68441),r=n(8744);function a(e){return new i.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const o=a(s.sv),c=a(s.yr),l=a(s.Z1),h=new i.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${s.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function u(e){return e&&((0,r.BZ)(e)||e===c)?c:e&&((0,r.V2)(e)||e===l)?l:o}function m(e){return e&&((0,r.BZ)(e)||e===c)?s.yr:e&&((0,r.V2)(e)||e===l)?s.Z1:s.sv}function f(e){return(0,r.o$)(e)?s.yr:(0,r.ME)(e)?s.Z1:s.sv}},61787:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var i=n(80442),s=n(70586),r=n(24133),a=n(66459);class o{async createIndex(e,t){const n=new Array;if(!e.vertexAttributes||!e.vertexAttributes.position)return new r.Q;const i=this._createMeshData(e),a=(0,s.pC)(t)?await t.invoke("createIndexThread",i,{transferList:n}):this.createIndexThread(i).result;return this._createPooledRBush().fromJSON(a)}createIndexThread(e){const t=new Float64Array(e.position),n=this._createPooledRBush();return e.components?this._createIndexComponentsThread(n,t,e.components.map((e=>new Uint32Array(e)))):this._createIndexAllThread(n,t)}_createIndexAllThread(e,t){const n=new Array(t.length/9);let i=0;for(let e=0;e<t.length;e+=9)n[i++]=c(t,e+0,e+3,e+6);return e.load(n),{result:e.toJSON()}}_createIndexComponentsThread(e,t,n){let i=0;for(const e of n)i+=e.length/3;const s=new Array(i);let r=0;for(const e of n)for(let n=0;n<e.length;n+=3)s[r++]=c(t,3*e[n+0],3*e[n+1],3*e[n+2]);return e.load(s),{result:e.toJSON()}}_createMeshData(e){const t=(e.transform?(0,a.I5)({position:e.vertexAttributes.position,normal:null,tangent:null},e.transform,e.spatialReference).position:e.vertexAttributes.position).buffer;return!e.components||e.components.some((e=>!e.faces))?{position:t}:{position:t,components:e.components.map((e=>e.faces))}}_createPooledRBush(){return new r.Q(9,(0,i.Z)("esri-csp-restrictions")?e=>e:[".minX",".minY",".maxX",".maxY"])}}function c(e,t,n,i){return{minX:Math.min(e[t+0],e[n+0],e[i+0]),maxX:Math.max(e[t+0],e[n+0],e[i+0]),minY:Math.min(e[t+1],e[n+1],e[i+1]),maxY:Math.max(e[t+1],e[n+1],e[i+1]),p0:[e[t+0],e[t+1],e[t+2]],p1:[e[n+0],e[n+1],e[n+2]],p2:[e[i+0],e[i+1],e[i+2]]}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3356],{88764:(e,t,n)=>{n.d(t,{q:()=>o});var i,s,r,a={exports:{}};i=a,s=function(){function e(n,i,s,r,a){for(;r>s;){if(r-s>600){var o=r-s+1,c=i-s+1,l=Math.log(o),h=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*h*(o-h)/o)*(c-o/2<0?-1:1);e(n,i,Math.max(s,Math.floor(i-c*h/o+u)),Math.min(r,Math.floor(i+(o-c)*h/o+u)),a)}var m=n[i],f=s,d=r;for(t(n,s,i),a(n[r],m)>0&&t(n,s,r);f<d;){for(t(n,f,d),f++,d--;a(n[f],m)<0;)f++;for(;a(n[d],m)>0;)d--}0===a(n[s],m)?t(n,s,d):t(n,++d,r),d<=i&&(s=d+1),i<=d&&(r=d-1)}}function t(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function n(e,t){return e<t?-1:e>t?1:0}return function(t,i,s,r,a){e(t,i,s||0,r||t.length-1,a||n)}},void 0!==(r=s())&&(i.exports=r);const o=a.exports},24133:(e,t,n)=>{n.d(t,{Q:()=>o});var i=n(67676),s=n(70586),r=n(44553),a=n(88764);class o{constructor(e=9,t){this.compareMinX=u,this.compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),g.prune(),U.prune(),Y.prune(),S.prune()}all(e){this._all(this.data,e)}search(e,t){let n=this.data;const i=this._toBBox;if(B(e,n))for(g.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],a=n.leaf?i(r):r;B(e,a)&&(n.leaf?t(r):_(e,a)?this._all(r,t):g.push(r))}n=g.pop()}}collides(e){let t=this.data;const n=this._toBBox;if(!B(e,t))return!1;for(g.clear();t;){for(let i=0,s=t.children.length;i<s;i++){const s=t.children[i],r=t.leaf?n(s):s;if(B(e,r)){if(t.leaf||_(e,r))return!0;g.push(s)}}t=g.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){const e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=new w([]),this}remove(e){if(!e)return this;let t,n=this.data,r=null,a=0,o=!1;const c=this._toBBox(e);for(Y.clear(),S.clear();n||Y.length>0;){var l;if(n||(n=(0,s.j0)(Y.pop()),r=Y.data[Y.length-1],a=null!=(l=S.pop())?l:0,o=!0),n.leaf&&(t=(0,i.cq)(n.children,e,n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),Y.push(n),this._condense(Y),this;o||n.leaf||!_(n,c)?r?(a++,n=r.children[a],o=!1):n=null:(Y.push(n),S.push(a),a=0,r=n,n=n.children[0])}return this}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){let n=e;for(U.clear();n;){var i;if(!0===n.leaf)for(const e of n.children)t(e);else U.pushArray(n.children);n=null!=(i=U.pop())?i:null}}_build(e,t,n,i){const s=n-t+1;let r=this._maxEntries;if(s<=r){const i=new w(e.slice(t,n+1));return c(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const a=new y([]);a.height=i;const o=Math.ceil(s/r),l=o*Math.ceil(Math.sqrt(r));M(e,t,n,l,this.compareMinX);for(let s=t;s<=n;s+=l){const t=Math.min(s+l-1,n);M(e,s,t,o,this.compareMinY);for(let n=s;n<=t;n+=o){const s=Math.min(n+o-1,t);a.children.push(this._build(e,n,s,i-1))}}return c(a,this._toBBox),a}_chooseSubtree(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,a=t.children.length;r<a;r++){const a=t.children[r],o=f(a),c=x(e,a)-o;c<s?(s=c,i=o<i?o:i,n=a):c===s&&o<i&&(i=o,n=a)}t=n||t.children[0]}return t}_insert(e,t,n){const i=this._toBBox,s=n?e:i(e);Y.clear();const r=this._chooseSubtree(s,this.data,t,Y);for(r.children.push(e),h(r,s);t>=0&&Y.data[t].children.length>this._maxEntries;)this._split(Y,t),t--;this._adjustParentBBoxes(s,Y,t)}_split(e,t){const n=e.data[t],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const a=n.children.splice(r,n.children.length-r),o=n.leaf?new w(a):new y(a);o.height=n.height,c(n,this._toBBox),c(o,this._toBBox),t?e.data[t-1].children.push(o):this._splitRoot(n,o)}_splitRoot(e,t){this.data=new y([e,t]),this.data.height=e.height+1,c(this.data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,s,r;i=s=1/0;for(let a=t;a<=n-t;a++){const t=l(e,0,a,this._toBBox),o=l(e,a,n,this._toBBox),c=p(t,o),h=f(t)+f(o);c<i?(i=c,r=a,s=h<s?h:s):c===i&&h<s&&(s=h,r=a)}return r}_chooseSplitAxis(e,t,n){const i=e.leaf?this.compareMinX:u,s=e.leaf?this.compareMinY:m;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,s)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const s=this._toBBox,r=l(e,0,t,s),a=l(e,n-t,n,s);let o=d(r)+d(a);for(let i=t;i<n-t;i++){const t=e.children[i];h(r,e.leaf?s(t):t),o+=d(r)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(a,e.leaf?s(t):t),o+=d(a)}return o}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const s=e.data[t-1],r=s.children;r.splice((0,i.cq)(r,n,r.length,s.indexHint),1)}else this.clear();else c(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function c(e,t){l(e,0,e.children.length,t,e)}function l(e,t,n,i,s){s||(s=new w([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,a=t;a<n;a++)r=e.children[a],h(s,e.leaf?i(r):r);return s}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function u(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function x(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function p(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function B(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function M(e,t,n,i,r){const o=[t,n];for(;o.length;){const t=(0,s.j0)(o.pop()),n=(0,s.j0)(o.pop());if(t-n<=i)continue;const c=n+Math.ceil((t-n)/i/2)*i;(0,a.q)(e,c,n,t,r),o.push(n,c,c,t)}}const g=new r.Z,U=new r.Z,Y=new r.Z,S=new r.Z({deallocator:void 0});class X extends class{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class w extends X{constructor(e){super(),this.children=e,this.leaf=!0}}class y extends X{constructor(e){super(),this.children=e,this.leaf=!1}}},67900:(e,t,n)=>{n.d(t,{$C:()=>w,En:()=>S,Jo:()=>O,Z7:()=>I,_R:()=>y,c9:()=>q,cM:()=>b,gV:()=>P,hd:()=>h,qE:()=>E,ty:()=>X}),n(80442);var i=n(35454),s=n(70586),r=n(24678),a=n(82971),o=n(68441),c=n(8744),l=n(58116);const h=39.37,u=o.sv.radius*Math.PI/200,m=/UNIT\[([^\]]+)\]\]$/i,f=l.Z,d=/UNIT\[([^\]]+)\]/i,x=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,i.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),_=e=>e*e,B=e=>e*e*e,M={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:_(.001)},"square-centimeters":{inBaseUnits:_(.01)},"square-decimeters":{inBaseUnits:_(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:_(1e3)},"square-inches":{inBaseUnits:_(.0254)},"square-feet":{inBaseUnits:_(.3048)},"square-yards":{inBaseUnits:_(.9144)},"square-miles":{inBaseUnits:_(1609.344)},"square-us-feet":{inBaseUnits:_(1200/3937)},acres:{inBaseUnits:.0015625*_(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*B(.001)},"cubic-centimeters":{inBaseUnits:1e3*B(.01)},"cubic-decimeters":{inBaseUnits:1e3*B(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*B(1e3)},"cubic-inches":{inBaseUnits:1e3*B(.0254)},"cubic-feet":{inBaseUnits:1e3*B(.3048)},"cubic-yards":{inBaseUnits:1e3*B(.9144)},"cubic-miles":{inBaseUnits:1e3*B(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const t in M)for(const n in M[t].units)e[n]=t;return e})();function U(e){const t=g[e];if(!t)throw new Error("unknown type");return t}function Y(e,t=null){return t=t||U(e),M[t].baseUnit===e}function S(e,t,n){if(t===n)return e;const i=U(t);if(i!==U(n))throw new Error("incompatible units");const s=Y(t,i)?e:function(e,t,n){return e*M[n].units[t].inBaseUnits}(e,t,i);return Y(n,i)?s:function(e,t,n){return e/M[n].units[t].inBaseUnits}(s,n,i)}function X(e,t,n){return S(e,t,"meters")/(n*Math.PI/180)}function w(e){return p.fromJSON(e.toLowerCase())||null}function y(e){if(e&&"object"==typeof e&&!(0,c.N$)(e))return 1;const t=q(e);return t>1e5?1:t}function b(e){return q(e)>=(e instanceof a.Z?(0,r.Iu)(e).metersPerDegree:1e5)?"meters":E(e)}function q(e,t=o.sv.metersPerDegree){return I(e,!0)||t}function I(e,t=!1){let n,i,s=null;if(null!=e&&("object"==typeof e?(n=e.wkid,i=e.wkt):"number"==typeof e?n=e:"string"==typeof e&&(i=e)),n){if((0,c.o$)(n))return o.yr.metersPerDegree;if((0,c.ME)(n))return o.Z1.metersPerDegree;s=f.values[f[n]],!s&&t&&x.has(n)&&(s=u)}else i&&(T(i)?s=k(m.exec(i),s):A(i)&&(s=k(d.exec(i),s)));return s}function k(e,t){return e&&e[1]?v(e[1]):t}function v(e){return parseFloat(e.split(",")[1])}function E(e){let t,n,i=null;if(null!=e&&("object"==typeof e?(t=e.wkid,n=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(n=e)),t)i=f.units[f[t]];else if(n){const e=T(n)?m:A(n)?d:null;if(e){const t=e.exec(n);t&&t[1]&&(i=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let n=t&&t[1];if(!n||!f.units.includes(n)){const t=v(e);n=null;const i=f.values;for(let e=0;e<i.length;++e)if(Math.abs(t-i[e])<1e-7){n=f.units[e];break}}return n}(t[1]))}}return(0,s.pC)(i)?w(i):null}function A(e){return/^GEOCCS/i.test(e)}function T(e){return/^PROJCS/i.test(e)}const R={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},G={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},P=(0,i.w)()(R),O=(0,i.w)()(G);(0,i.w)()({...R,...G})},24678:(e,t,n)=>{n.d(t,{GG:()=>o,HQ:()=>c,Iu:()=>m,VY:()=>l,e8:()=>f,rS:()=>u,wY:()=>h});var i=n(82971),s=n(68441),r=n(8744);function a(e){return new i.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const o=a(s.sv),c=a(s.yr),l=a(s.Z1),h=new i.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${s.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function u(e){return e&&((0,r.BZ)(e)||e===c)?c:e&&((0,r.V2)(e)||e===l)?l:o}function m(e){return e&&((0,r.BZ)(e)||e===c)?s.yr:e&&((0,r.V2)(e)||e===l)?s.Z1:s.sv}function f(e){return(0,r.o$)(e)?s.yr:(0,r.ME)(e)?s.Z1:s.sv}},24470:(e,t,n)=>{n.d(t,{Gv:()=>f,HH:()=>c,SO:()=>l,Ue:()=>r,al:()=>a,jE:()=>h,kK:()=>u,oJ:()=>o,r3:()=>m}),n(80442),n(22021);var i=n(70586),s=n(6570);function r(e=d){return[e[0],e[1],e[2],e[3]]}function a(e,t,n,i,s=r()){return s[0]=e,s[1]=t,s[2]=n,s[3]=i,s}function o(e,t=r()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function c(e,t){return new s.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function l(e){return function(e){return(0,i.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function h(e,t,n){return t>=e[0]&&n>=e[1]&&t<=e[2]&&n<=e[3]}function u(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function m(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const f=[1/0,1/0,-1/0,-1/0],d=[0,0,0,0]},61787:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var i=n(80442),s=n(70586),r=n(24133),a=n(66459);class o{async createIndex(e,t){const n=new Array;if(!e.vertexAttributes||!e.vertexAttributes.position)return new r.Q;const i=this._createMeshData(e),a=(0,s.pC)(t)?await t.invoke("createIndexThread",i,{transferList:n}):this.createIndexThread(i).result;return this._createPooledRBush().fromJSON(a)}createIndexThread(e){const t=new Float64Array(e.position),n=this._createPooledRBush();return e.components?this._createIndexComponentsThread(n,t,e.components.map((e=>new Uint32Array(e)))):this._createIndexAllThread(n,t)}_createIndexAllThread(e,t){const n=new Array(t.length/9);let i=0;for(let e=0;e<t.length;e+=9)n[i++]=c(t,e+0,e+3,e+6);return e.load(n),{result:e.toJSON()}}_createIndexComponentsThread(e,t,n){let i=0;for(const e of n)i+=e.length/3;const s=new Array(i);let r=0;for(const e of n)for(let n=0;n<e.length;n+=3)s[r++]=c(t,3*e[n+0],3*e[n+1],3*e[n+2]);return e.load(s),{result:e.toJSON()}}_createMeshData(e){const t=(e.transform?(0,a.I5)({position:e.vertexAttributes.position,normal:null,tangent:null},e.transform,e.spatialReference).position:e.vertexAttributes.position).buffer;return!e.components||e.components.some((e=>!e.faces))?{position:t}:{position:t,components:e.components.map((e=>e.faces))}}_createPooledRBush(){return new r.Q(9,(0,i.Z)("esri-csp-restrictions")?e=>e:[".minX",".minY",".maxX",".maxY"])}}function c(e,t,n,i){return{minX:Math.min(e[t+0],e[n+0],e[i+0]),maxX:Math.max(e[t+0],e[n+0],e[i+0]),minY:Math.min(e[t+1],e[n+1],e[i+1]),maxY:Math.max(e[t+1],e[n+1],e[i+1]),p0:[e[t+0],e[t+1],e[t+2]],p1:[e[n+0],e[n+1],e[n+2]],p2:[e[i+0],e[i+1],e[i+2]]}}},69285:(e,t,n)=>{n.d(t,{k:()=>a});var i=n(70586),s=n(67900),r=n(8744);function a(e,t,n){if((0,i.Wi)(t)||(0,i.Wi)(n)||n.vcsWkid||(0,r.fS)(t,n))return null;const a=(0,s._R)(t)/(0,s._R)(n);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}}}]);