@arcgis/core 4.28.0-next.20230621 → 4.28.0-next.20230623

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 (249) hide show
  1. package/Basemap.js +1 -1
  2. package/arcade/ArcadeModuleResolver.js +1 -1
  3. package/arcade/Feature.js +1 -1
  4. package/arcade/arcadeCompiler.js +1 -1
  5. package/arcade/arcadeTimeUtils.js +1 -1
  6. package/arcade/featureset/actions/GroupBy.js +1 -1
  7. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  8. package/arcade/featureset/support/sqlUtils.js +1 -1
  9. package/arcade/functions/date.js +1 -1
  10. package/arcade/functions/geomasync.js +1 -1
  11. package/arcade/functions/geometry.js +1 -1
  12. package/arcade/functions/geomsync.js +1 -1
  13. package/arcade/functions/string.js +1 -1
  14. package/arcade/languageUtils.js +1 -1
  15. package/assets/esri/core/workers/RemoteClient.js +1 -1
  16. package/assets/esri/core/workers/chunks/0380e9f61b6f3ca85139.js +1 -0
  17. package/assets/esri/core/workers/chunks/0bd95f46a0a9005a19f9.js +1 -0
  18. package/assets/esri/core/workers/chunks/0c621046b7211cdde980.js +1 -0
  19. package/assets/esri/core/workers/chunks/0e0267739728e5413f1d.js +1 -0
  20. package/assets/esri/core/workers/chunks/{39079bcfd35ed73c4e34.js → 156e801a3262f0ac79c0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/19b4f02fb2392d964582.js +1 -0
  22. package/assets/esri/core/workers/chunks/1ae75f5282e983f6d768.js +1 -0
  23. package/assets/esri/core/workers/chunks/2179b3e9e532ca8ef982.js +1 -0
  24. package/assets/esri/core/workers/chunks/21aaa7fa0e5482670010.js +1 -0
  25. package/assets/esri/core/workers/chunks/26212a08ea383547335b.js +1 -0
  26. package/assets/esri/core/workers/chunks/{2420ec029236ab31d908.js → 2882a55a971af1f7858b.js} +1 -1
  27. package/assets/esri/core/workers/chunks/294285f2822c101326ec.js +1 -0
  28. package/assets/esri/core/workers/chunks/29f9a380610e4fd98a7c.js +1 -0
  29. package/assets/esri/core/workers/chunks/303238fc2fcdbb277981.js +1 -0
  30. package/assets/esri/core/workers/chunks/{3db8ae98799c752afe60.js → 34958516e604d487c625.js} +1 -1
  31. package/assets/esri/core/workers/chunks/3bee743f4c9370045a5d.js +1 -0
  32. package/assets/esri/core/workers/chunks/{8e08968505483dc58e00.js → 40ee4e0a5000a08c3abd.js} +1 -1
  33. package/assets/esri/core/workers/chunks/4128e45e17c9e5280e11.js +1 -0
  34. package/assets/esri/core/workers/chunks/4f88c4d1d2103843aca8.js +1 -0
  35. package/assets/esri/core/workers/chunks/505792ce8cbbddd2e815.js +1 -0
  36. package/assets/esri/core/workers/chunks/{3d42fa4ab5f8632d690a.js → 5237b3938be0d4bc6045.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{57077e608f20d3a931e8.js → 570e94f4fbefc856d303.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{4b235d1b6a72773cd4f4.js → 57bb8516fa998a0fba78.js} +1 -1
  39. package/assets/esri/core/workers/chunks/57bf3ff01d738cedc292.js +1 -0
  40. package/assets/esri/core/workers/chunks/{1e9e68312cd865358260.js → 60486acc5dacf73f851a.js} +1 -1
  41. package/assets/esri/core/workers/chunks/6208f2dfa9dfd3bca000.js +1 -0
  42. package/assets/esri/core/workers/chunks/64008bde5d3ffd9f2499.js +1 -0
  43. package/assets/esri/core/workers/chunks/69f51a7768bf51c9e346.js +1 -0
  44. package/assets/esri/core/workers/chunks/719f741a0e45c3e694ba.js +1 -0
  45. package/assets/esri/core/workers/chunks/{cfe379a78a983373b3ac.js → 7304f45f5622a68253e4.js} +1 -1
  46. package/assets/esri/core/workers/chunks/733b70d6e5c466a67e9c.js +1 -0
  47. package/assets/esri/core/workers/chunks/7694521b44681d52b713.js +1 -0
  48. package/assets/esri/core/workers/chunks/840fd05ceaa038c476d6.js +1 -0
  49. package/assets/esri/core/workers/chunks/89f7fd2ab92aa14fe0c0.js +1 -0
  50. package/assets/esri/core/workers/chunks/8a6f29f2ebd59783bb1b.js +1 -0
  51. package/assets/esri/core/workers/chunks/9d487b7817ccf5bceff6.js +1 -0
  52. package/assets/esri/core/workers/chunks/{42b6315e21c4c1345ba5.js → 9f5337a80963e0b3c009.js} +1 -1
  53. package/assets/esri/core/workers/chunks/a0face18b3ea567999ef.js +1 -0
  54. package/assets/esri/core/workers/chunks/b773c8854e98384ac8ac.js +1 -0
  55. package/assets/esri/core/workers/chunks/{fb44d872b9dbadcf8ccf.js → b9ef05c22bc3e395bcb3.js} +1 -1
  56. package/assets/esri/core/workers/chunks/bc5e34200776cfc83d5b.js +1 -0
  57. package/assets/esri/core/workers/chunks/{cfc3dcca2b69d20d5375.js → c0b9cc091efd5db827de.js} +1 -1
  58. package/assets/esri/core/workers/chunks/c9f5e949830196ad9458.js +1 -0
  59. package/assets/esri/core/workers/chunks/{036301f545aba2b8e485.js → cc15e28a99694120556d.js} +1 -1
  60. package/assets/esri/core/workers/chunks/ce7f575a6c2053c7ca17.js +1 -0
  61. package/assets/esri/core/workers/chunks/ce9c99cee3d1a3963e7c.js +1 -0
  62. package/assets/esri/core/workers/chunks/cf9a87b53ea74bae6a37.js +1 -0
  63. package/assets/esri/core/workers/chunks/d16850b98a53ade0de10.js +1 -0
  64. package/assets/esri/core/workers/chunks/d24f7ef6eca8c91b90b4.js +1 -0
  65. package/assets/esri/core/workers/chunks/dbd86e4b7983873cbe7c.js +1 -0
  66. package/assets/esri/core/workers/chunks/{3c3f65913006b84b2289.js → de20572d334abd4a7d82.js} +1 -1
  67. package/assets/esri/core/workers/chunks/e009e7f074a572894f48.js +1 -0
  68. package/assets/esri/core/workers/chunks/{cb004c492e22c50f9bfa.js → f3eb89cff63e00f036c6.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{b2a423d9ce8bb784267c.js → f53f20c7100092823487.js} +1 -1
  70. package/assets/esri/core/workers/chunks/f6040205c50e2795a1a0.js +1 -0
  71. package/assets/esri/core/workers/chunks/{915734255a79bff3ef0f.js → fcd54e9e64c2864f183c.js} +1 -1
  72. package/assets/esri/t9n/common.json +1 -1
  73. package/assets/esri/t9n/common_en.json +1 -1
  74. package/assets/esri/themes/base/_core.scss +6 -2
  75. package/assets/esri/themes/base/_mixins.scss +0 -147
  76. package/assets/esri/themes/base/widgets/_AreaMeasurement2D.scss +0 -8
  77. package/assets/esri/themes/base/widgets/_AreaMeasurement3D.scss +0 -8
  78. package/assets/esri/themes/base/widgets/_DirectLineMeasurement3D.scss +0 -1
  79. package/assets/esri/themes/base/widgets/_DistanceMeasurement2D.scss +0 -1
  80. package/assets/esri/themes/base/widgets/_MeasurementWidgetContent.scss +67 -0
  81. package/assets/esri/themes/base/widgets/_Slice.scss +17 -54
  82. package/assets/esri/themes/base/widgets/_UnitSelect.scss +14 -0
  83. package/assets/esri/themes/dark/main.css +1 -1
  84. package/assets/esri/themes/light/main.css +1 -1
  85. package/assets/esri/themes/light/view.css +1 -1
  86. package/assets/esri/widgets/AreaMeasurement2D/t9n/AreaMeasurement2D.json +1 -1
  87. package/assets/esri/widgets/AreaMeasurement2D/t9n/AreaMeasurement2D_en.json +1 -1
  88. package/assets/esri/widgets/AreaMeasurement3D/t9n/AreaMeasurement3D.json +1 -1
  89. package/assets/esri/widgets/AreaMeasurement3D/t9n/AreaMeasurement3D_en.json +1 -1
  90. package/assets/esri/widgets/DirectLineMeasurement3D/t9n/DirectLineMeasurement3D.json +1 -1
  91. package/assets/esri/widgets/DirectLineMeasurement3D/t9n/DirectLineMeasurement3D_en.json +1 -1
  92. package/assets/esri/widgets/DistanceMeasurement2D/t9n/DistanceMeasurement2D.json +1 -1
  93. package/assets/esri/widgets/DistanceMeasurement2D/t9n/DistanceMeasurement2D_en.json +1 -1
  94. package/chunks/HUDMaterial.glsl.js +39 -39
  95. package/chunks/HighlightBlur.glsl.js +2 -2
  96. package/chunks/ShadowHighlight.glsl.js +1 -1
  97. package/chunks/arcade.js +1 -1
  98. package/chunks/languageUtils.js +1 -1
  99. package/core/HandleOwner.js +1 -1
  100. package/core/promiseUtils.js +1 -1
  101. package/core/support/{WatchUpdatingTracking.js → UpdatingHandles.js} +1 -1
  102. package/core/workers/workerFactory.js +1 -1
  103. package/geometry/projection.js +1 -1
  104. package/interfaces.d.ts +270 -5
  105. package/kernel.js +1 -1
  106. package/layers/Layer.js +1 -1
  107. package/layers/LinkChartLayer.d.ts +4 -0
  108. package/layers/LinkChartLayer.js +1 -1
  109. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  110. package/layers/mixins/PortalLayer.js +1 -1
  111. package/layers/support/TileInfoTilemapCache.js +1 -1
  112. package/package.json +1 -1
  113. package/support/revision.js +1 -1
  114. package/symbols/cim/cimAnalyzer.js +1 -1
  115. package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
  116. package/views/2d/layers/features/sources/DataTileSource.js +1 -1
  117. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  118. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  119. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  120. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  121. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  122. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  123. package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
  124. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  125. package/views/3d/environment/CloudsGenerator.js +1 -1
  126. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  127. package/views/3d/environment/Precipitation.js +1 -1
  128. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  129. package/views/3d/environment/Stars.js +1 -1
  130. package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
  131. package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
  132. package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
  133. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  134. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  135. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  136. package/views/3d/layers/I3SMeshView3D.js +1 -1
  137. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  138. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  139. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  140. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  141. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  142. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  143. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  144. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  145. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  146. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  147. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  148. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  149. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  150. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  151. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  152. package/views/3d/layers/graphics/Labeler.js +1 -1
  153. package/views/3d/layers/graphics/labelPlacement.js +1 -1
  154. package/views/3d/layers/support/FeatureTileTree3DDebugger.js +1 -1
  155. package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
  156. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  157. package/views/3d/state/ViewState.js +1 -1
  158. package/views/3d/state/ViewStateManager.js +1 -1
  159. package/views/3d/support/DisplayQualityProfile.js +1 -1
  160. package/views/3d/support/MemoryController.js +1 -1
  161. package/views/3d/support/SceneViewPerformanceInfo.js +1 -1
  162. package/views/3d/support/cameraUtils.js +1 -1
  163. package/views/3d/support/viewpointUtils.js +1 -1
  164. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  165. package/views/3d/terrain/OverlayManager.js +1 -1
  166. package/views/3d/terrain/OverlayRenderer.js +1 -1
  167. package/views/3d/terrain/TerrainSurface.js +1 -1
  168. package/views/3d/webgl-engine/Stage.js +1 -1
  169. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  170. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +6 -7
  171. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +1 -1
  172. package/views/3d/webgl-engine/lib/Highlight.js +1 -1
  173. package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
  174. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  175. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  176. package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
  177. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  178. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  179. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  180. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  181. package/views/LayerViewManager.js +1 -1
  182. package/views/ToolViewManager.js +1 -1
  183. package/views/draw/DrawOperation.js +1 -1
  184. package/views/draw/PointDrawAction.js +1 -1
  185. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  186. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  187. package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
  188. package/views/interactive/snapping/featureSources/I3SSnappingSource.js +1 -1
  189. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  190. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  191. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  192. package/views/layers/LayerView.js +1 -1
  193. package/views/overlay/ViewOverlay.js +1 -1
  194. package/views/webgl/Texture.js +1 -1
  195. package/widgets/AreaMeasurement2D.js +1 -1
  196. package/widgets/AreaMeasurement3D.js +1 -1
  197. package/widgets/DirectLineMeasurement3D.js +1 -1
  198. package/widgets/DistanceMeasurement2D.js +1 -1
  199. package/widgets/Editor/EditorViewModel.js +1 -1
  200. package/widgets/Editor/Workflow.js +1 -1
  201. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  202. package/widgets/FeatureForm/FieldInput.js +1 -1
  203. package/widgets/FeatureForm/FormExpressionArcadeExecutor.js +1 -1
  204. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  205. package/widgets/OrientedImageryViewer.js +1 -1
  206. package/widgets/Slice.js +1 -1
  207. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
  208. package/widgets/support/MeasurementWidgetContent.js +5 -0
  209. package/widgets/support/UnitSelect.js +5 -0
  210. package/assets/esri/core/workers/chunks/0254165377538522c830.js +0 -1
  211. package/assets/esri/core/workers/chunks/07f16ea775b39a1a4a7b.js +0 -1
  212. package/assets/esri/core/workers/chunks/170c72126d10b1fdb2b0.js +0 -1
  213. package/assets/esri/core/workers/chunks/1bbc868d2430103951eb.js +0 -1
  214. package/assets/esri/core/workers/chunks/1d2ef88a8d028adef102.js +0 -1
  215. package/assets/esri/core/workers/chunks/2ef70c9b2484a11b7435.js +0 -1
  216. package/assets/esri/core/workers/chunks/39ae4b9b766f674bc6f2.js +0 -1
  217. package/assets/esri/core/workers/chunks/3b3d676b609c47a77164.js +0 -1
  218. package/assets/esri/core/workers/chunks/3d9a8cb638cf9b8ca4b3.js +0 -1
  219. package/assets/esri/core/workers/chunks/42f3421740a5479559dc.js +0 -1
  220. package/assets/esri/core/workers/chunks/45629ff775e77234b227.js +0 -1
  221. package/assets/esri/core/workers/chunks/52315f93a6f0ad59bd90.js +0 -1
  222. package/assets/esri/core/workers/chunks/5bb96e602d7cecbecf54.js +0 -1
  223. package/assets/esri/core/workers/chunks/63322229183f1d4eaa70.js +0 -1
  224. package/assets/esri/core/workers/chunks/642510b0371311ff8e16.js +0 -1
  225. package/assets/esri/core/workers/chunks/6995ace1d25d67c98d0e.js +0 -1
  226. package/assets/esri/core/workers/chunks/7e4013f8c31c9a9438c6.js +0 -1
  227. package/assets/esri/core/workers/chunks/82939ead43848a13f765.js +0 -1
  228. package/assets/esri/core/workers/chunks/8b6b963230df56850580.js +0 -1
  229. package/assets/esri/core/workers/chunks/95ff92d7caa34664d58f.js +0 -1
  230. package/assets/esri/core/workers/chunks/9e570cd4a48c30c83ae6.js +0 -1
  231. package/assets/esri/core/workers/chunks/a9e9297267614c4c4f3b.js +0 -1
  232. package/assets/esri/core/workers/chunks/b052463ffb7cb32306dc.js +0 -1
  233. package/assets/esri/core/workers/chunks/b31974524932e638df8c.js +0 -1
  234. package/assets/esri/core/workers/chunks/b75b4b132dbd9cb9d372.js +0 -1
  235. package/assets/esri/core/workers/chunks/c1dfbda75abc748a6ca4.js +0 -1
  236. package/assets/esri/core/workers/chunks/c8702e53a8ad6cf6ab85.js +0 -1
  237. package/assets/esri/core/workers/chunks/c90416e7bf29eb1d4536.js +0 -1
  238. package/assets/esri/core/workers/chunks/cad7a2092ea7f51dbd8b.js +0 -1
  239. package/assets/esri/core/workers/chunks/d0e2b42dca51711f2c6f.js +0 -1
  240. package/assets/esri/core/workers/chunks/d2a127f7bb0e2ba14a13.js +0 -1
  241. package/assets/esri/core/workers/chunks/df96824a6f76bad1370c.js +0 -1
  242. package/assets/esri/core/workers/chunks/e097f41bbfac00250477.js +0 -1
  243. package/assets/esri/core/workers/chunks/e3243d120a23a9b48392.js +0 -1
  244. package/assets/esri/core/workers/chunks/e55f80b774e090a0aa04.js +0 -1
  245. package/assets/esri/core/workers/chunks/e668c7e2e61aae6ca6e0.js +0 -1
  246. package/assets/esri/core/workers/chunks/ef900614353505afb210.js +0 -1
  247. package/assets/esri/core/workers/chunks/f0299d93a95f40ea7cf7.js +0 -1
  248. package/assets/esri/core/workers/chunks/f23b95d7e51a144ad065.js +0 -1
  249. package/assets/esri/core/workers/chunks/f263e73a25fae4beffae.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7954,5732],{92835:(t,e,n)=>{n.d(e,{Z:()=>m});var i,s=n(43697),r=n(96674),o=n(35463),a=n(5600),l=(n(75215),n(67676),n(80442),n(71715)),h=n(52011),c=n(30556);let u=i=class extends r.wq{static get allTime(){return d}static get empty(){return f}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?t.getTime():null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?t.getTime():null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=null!=this.start?this.start.getTime():this.start,n=null!=this.end?this.end.getTime():this.end,i=null!=t.start?t.start.getTime():t.start,s=null!=t.end?t.end.getTime():t.end;return e===i&&n===s}expandTo(t){if(this.isEmpty||this.isAllTime)return this.clone();let e=this.start;e&&(e=(0,o.JE)(e,t));let n=this.end;if(n){const e=(0,o.JE)(n,t);n=n.getTime()===e.getTime()?e:(0,o.Nm)(e,1,t)}return new i({start:e,end:n})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,s=t.start?.getTime()??-1/0,r=t.end?.getTime()??1/0;let o,a;if(s>=e&&s<=n?o=s:e>=s&&e<=r&&(o=e),n>=s&&n<=r?a=n:r>=e&&r<=n&&(a=r),null!=o&&null!=a&&!isNaN(o)&&!isNaN(a)){const t=new i;return t.start=o===-1/0?null:new Date(o),t.end=a===1/0?null:new Date(a),t}return i.empty}offset(t,e){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:r}=this;return null!=s&&(n.start=(0,o.Nm)(s,t,e)),null!=r&&(n.end=(0,o.Nm)(r,t,e)),n}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:n})}};(0,s._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],u.prototype,"end",void 0),(0,s._)([(0,l.r)("end")],u.prototype,"readEnd",null),(0,s._)([(0,c.c)("end")],u.prototype,"writeEnd",null),(0,s._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],u.prototype,"isAllTime",null),(0,s._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],u.prototype,"isEmpty",null),(0,s._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],u.prototype,"start",void 0),(0,s._)([(0,l.r)("start")],u.prototype,"readStart",null),(0,s._)([(0,c.c)("start")],u.prototype,"writeStart",null),u=i=(0,s._)([(0,h.j)("esri.TimeExtent")],u);const d=new u,f=new u({start:void 0,end:void 0}),m=u},5732:(t,e,n)=>{n.d(e,{c:()=>i,g:()=>s});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},21787:(t,e,n)=>{n.d(e,{b:()=>l,c:()=>r,d:()=>c,e:()=>a,f:()=>s,i:()=>d,m:()=>h,t:()=>o});var i=n(46851);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function r(t,e,n,i,s,r,o,a,l,h){return t[0]=e,t[1]=n,t[2]=i,t[3]=s,t[4]=r,t[5]=o,t[6]=a,t[7]=l,t[8]=h,t}function o(t,e){if(t===e){const n=e[1],i=e[2],s=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=s}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8],u=c*o-a*h,d=-c*r+a*l,f=h*r-o*l;let m=n*u+i*d+s*f;return m?(m=1/m,t[0]=u*m,t[1]=(-c*i+s*h)*m,t[2]=(a*i-s*o)*m,t[3]=d*m,t[4]=(c*n-s*l)*m,t[5]=(-a*n+s*r)*m,t[6]=f*m,t[7]=(-h*n+i*l)*m,t[8]=(o*n-i*r)*m,t):null}function l(t,e){const n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8];return t[0]=o*c-a*h,t[1]=s*h-i*c,t[2]=i*a-s*o,t[3]=a*l-r*c,t[4]=n*c-s*l,t[5]=s*r-n*a,t[6]=r*h-o*l,t[7]=i*l-n*h,t[8]=n*o-i*r,t}function h(t,e,n){const i=e[0],s=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],f=n[1],m=n[2],p=n[3],_=n[4],g=n[5],y=n[6],x=n[7],v=n[8];return t[0]=d*i+f*o+m*h,t[1]=d*s+f*a+m*c,t[2]=d*r+f*l+m*u,t[3]=p*i+_*o+g*h,t[4]=p*s+_*a+g*c,t[5]=p*r+_*l+g*u,t[6]=y*i+x*o+v*h,t[7]=y*s+x*a+v*c,t[8]=y*r+x*l+v*u,t}function c(t,e){const n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8],u=e[9],d=e[10],f=e[11],m=e[12],p=e[13],_=e[14],g=e[15],y=n*a-i*o,x=n*l-s*o,v=n*h-r*o,b=i*l-s*a,M=i*h-r*a,w=s*h-r*l,P=c*p-u*m,C=c*_-d*m,R=c*g-f*m,E=u*_-d*p,I=u*g-f*p,O=d*g-f*_;let B=y*O-x*I+v*E+b*R-M*C+w*P;return B?(B=1/B,t[0]=(a*O-l*I+h*E)*B,t[1]=(l*R-o*O-h*C)*B,t[2]=(o*I-a*R+h*P)*B,t[3]=(s*I-i*O-r*E)*B,t[4]=(n*O-s*R+r*C)*B,t[5]=(i*R-n*I-r*P)*B,t[6]=(p*w-_*M+g*b)*B,t[7]=(_*v-m*w-g*x)*B,t[8]=(m*M-p*v+g*y)*B,t):null}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function d(t){const e=(0,i.g)(),n=t[0],s=t[1],r=t[2],o=t[3],a=t[4],l=t[5],h=t[6],c=t[7],u=t[8];return Math.abs(1-(n*n+o*o+h*h))<=e&&Math.abs(1-(s*s+a*a+c*c))<=e&&Math.abs(1-(r*r+l*l+u*u))<=e}const f=h,m=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],i=t[2],s=t[3],r=t[4],o=t[5],a=t[6],l=t[7],h=t[8];return e*(h*r-o*l)+n*(-h*s+o*a)+i*(l*s-r*a)},equals:function(t,e){const n=t[0],s=t[1],r=t[2],o=t[3],a=t[4],l=t[5],h=t[6],c=t[7],u=t[8],d=e[0],f=e[1],m=e[2],p=e[3],_=e[4],g=e[5],y=e[6],x=e[7],v=e[8],b=(0,i.g)();return Math.abs(n-d)<=b*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(s-f)<=b*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(r-m)<=b*Math.max(1,Math.abs(r),Math.abs(m))&&Math.abs(o-p)<=b*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-_)<=b*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(l-g)<=b*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(h-y)<=b*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(c-x)<=b*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(u-v)<=b*Math.max(1,Math.abs(u),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:s,fromQuat:function(t,e){const n=e[0],i=e[1],s=e[2],r=e[3],o=n+n,a=i+i,l=s+s,h=n*o,c=i*o,u=i*a,d=s*o,f=s*a,m=s*l,p=r*o,_=r*a,g=r*l;return t[0]=1-u-m,t[3]=c-g,t[6]=d+_,t[1]=c+g,t[4]=1-h-m,t[7]=f-p,t[2]=d-_,t[5]=f+p,t[8]=1-h-u,t},fromRotation:function(t,e){const n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:d,mul:f,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t},normalFromMat4:c,normalFromMat4Legacy:function(t,e){const n=e[0],i=e[1],s=e[2],r=e[4],o=e[5],a=e[6],l=e[8],h=e[9],c=e[10],u=c*o-a*h,d=-c*r+a*l,f=h*r-o*l,m=n*u+i*d+s*f;if(!m)return null;const p=1/m;return t[0]=u*p,t[1]=(-c*i+s*h)*p,t[2]=(a*i-s*o)*p,t[3]=d*p,t[4]=(c*n-s*l)*p,t[5]=(-a*n+s*r)*p,t[6]=f*p,t[7]=(-h*n+i*l)*p,t[8]=(o*n-i*r)*p,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const i=e[0],s=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=Math.sin(n),f=Math.cos(n);return t[0]=f*i+d*o,t[1]=f*s+d*a,t[2]=f*r+d*l,t[3]=f*o-d*i,t[4]=f*a-d*s,t[5]=f*l-d*r,t[6]=h,t[7]=c,t[8]=u,t},scale:function(t,e,n){const i=n[0],s=n[1],r=n[2];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t[6]=r*e[6],t[7]=r*e[7],t[8]=r*e[8],t},scaleByVec2:function(t,e,n){const i=n[0],s=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t},set:r,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:u,translate:function(t,e,n){const i=e[0],s=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],f=n[1];return t[0]=i,t[1]=s,t[2]=r,t[3]=o,t[4]=a,t[5]=l,t[6]=d*i+f*o+h,t[7]=d*s+f*a+c,t[8]=d*r+f*l+u,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,n,i,s,r,o,a,l){return[t,e,n,i,s,r,o,a,l]}function r(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>i,f:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:i,createView:r,fromValues:s},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>l});var i,s,r,o=n(5732),a={exports:{}};i=a,s=function(){function t(n,i,s,r,o){for(;r>s;){if(r-s>600){var a=r-s+1,l=i-s+1,h=Math.log(a),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(a-c)/a)*(l-a/2<0?-1:1);t(n,i,Math.max(s,Math.floor(i-l*c/a+u)),Math.min(r,Math.floor(i+(a-l)*c/a+u)),o)}var d=n[i],f=s,m=r;for(e(n,s,i),o(n[r],d)>0&&e(n,s,r);f<m;){for(e(n,f,m),f++,m--;o(n[f],d)<0;)f++;for(;o(n[m],d)>0;)m--}0===o(n[s],d)?e(n,s,m):e(n,++m,r),m<=i&&(s=m+1),i<=m&&(r=m-1)}}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return t<e?-1:t>e?1:0}return function(e,i,s,r,o){t(e,i,s||0,r||e.length-1,o||n)}},void 0!==(r=s())&&(i.exports=r);const l=(0,o.g)(a.exports)},4307:(t,e,n)=>{n.d(e,{d:()=>l,l:()=>d,r:()=>m,s:()=>s,t:()=>f});var i=n(46851);function s(t,e,n){return t[0]=e,t[1]=n,t}function r(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function o(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)}function h(t,e){const n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function c(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function u(t){const e=t[0],n=t[1];return e*e+n*n}function d(t,e,n,i){const s=e[0],r=e[1];return t[0]=s+i*(n[0]-s),t[1]=r+i*(n[1]-r),t}function f(t,e,n){const i=e[0],s=e[1];return t[0]=n[0]*i+n[2]*s+n[4],t[1]=n[1]*i+n[3]*s+n[5],t}function m(t,e,n,i){const s=e[0]-n[0],r=e[1]-n[1],o=Math.sin(i),a=Math.cos(i);return t[0]=s*a-r*o+n[0],t[1]=s*o+r*a+n[1],t}const p=c,_=r,g=o,y=a,x=l,v=h,b=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],i=t[1],s=e[0],r=e[1];let o=n*n+i*i;o>0&&(o=1/Math.sqrt(o));let a=s*s+r*r;a>0&&(a=1/Math.sqrt(a));const l=(n*s+i*r)*o*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},dist:x,distance:l,div:y,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],s=t[1],r=e[0],o=e[1],a=(0,i.g)();return Math.abs(n-r)<=a*Math.max(1,Math.abs(n),Math.abs(r))&&Math.abs(s-o)<=a*Math.max(1,Math.abs(s),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:p,length:c,lerp:d,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],i=e[1];let s=n*n+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t},projectAndScale:function(t,e,n,i,s){let r=e[0]-n[0],o=e[1]-n[1];const a=(i[0]*r+i[1]*o)*(s-1);return r=i[0]*a,o=i[1]*a,t[0]=e[0]+r,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const n=2*(0,i.R)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:m,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:s,sqrDist:v,sqrLen:b,squaredDistance:h,squaredLength:u,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:_,subtract:r,transformMat2:function(t,e,n){const i=e[0],s=e[1];return t[0]=n[0]*i+n[2]*s,t[1]=n[1]*i+n[3]*s,t},transformMat2d:f,transformMat3:function(t,e,n){const i=e[0],s=e[1];return t[0]=n[0]*i+n[3]*s+n[6],t[1]=n[1]*i+n[4]*s+n[7],t},transformMat4:function(t,e,n){const i=e[0],s=e[1];return t[0]=n[0]*i+n[4]*s+n[12],t[1]=n[1]*i+n[5]*s+n[13],t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function i(){return[0,0]}function s(t,e){return[t,e]}function r(t,e){return new Float64Array(t,e,2)}function o(){return s(1,1)}function a(){return s(1,0)}function l(){return s(0,1)}n.d(e,{a:()=>i,c:()=>r,f:()=>s});const h=o(),c=a(),u=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:c,UNIT_Y:u,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:i,createView:r,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let i=0;i<n;++i)e[i]=t[i];return e},fromValues:s,ones:o,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},46791:(t,e,n)=>{n.d(e,{Z:()=>O});var i,s=n(43697),r=n(3894),o=n(32448),a=n(50758),l=n(22974),h=n(71143);!function(t){t[t.ADD=1]="ADD",t[t.REMOVE=2]="REMOVE",t[t.MOVE=4]="MOVE"}(i||(i={}));var c,u=n(1654),d=n(75215),f=n(58971),m=n(5600),p=n(52421),_=n(52011),g=n(10661);const y=new h.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},void 0,(t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1}));function x(t){return t?t instanceof I?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function v(t){if(t&&t.length)return t[0]}function b(t,e,n,i){const s=Math.min(t.length-n,e.length-i);let r=0;for(;r<s&&t[n+r]===e[i+r];)r++;return r}function M(t,e,n,i){e&&e.forEach(((e,s,r)=>{t.push(e),M(t,n.call(i,e,s,r),n,i)}))}const w=new Set,P=new Set,C=new Set,R=new Map;let E=0,I=c=class extends o.Z.EventedAccessor{static isCollection(t){return null!=t&&t instanceof c}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new g.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:E++})}normalizeCtorArgs(t){return t?Array.isArray(t)||t instanceof c?{items:t}:t:{}}destroy(){this._removeAllRaw()}*[Symbol.iterator](){yield*this.items}get items(){return(0,f.it)(this._observable),this._items}set items(t){this._emitBeforeChanges(i.ADD)||(this._splice(0,this.length,x(t)),this._emitAfterChanges(i.ADD))}hasEventListener(t){return"change"===t?this._chgListeners.length>0:this._emitter.hasEventListener(t)}on(t,e){if("change"===t){const t=this._chgListeners,n={removed:!1,callback:e};return t.push(n),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,a.kB)((()=>{n.removed=!0,t.splice(t.indexOf(n),1)}))}return this._emitter.on(t,e)}once(t,e){return this.on(t,e)}add(t,e){if((0,f.it)(this._observable),this._emitBeforeChanges(i.ADD))return this;const n=this.getNextIndex(e??null);return this._splice(n,0,[t]),this._emitAfterChanges(i.ADD),this}addMany(t,e=this._items.length){if((0,f.it)(this._observable),!t||!t.length)return this;if(this._emitBeforeChanges(i.ADD))return this;const n=this.getNextIndex(e);return this._splice(n,0,x(t)),this._emitAfterChanges(i.ADD),this}at(t){if((0,f.it)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return[];const t=this._removeAllRaw();return this._emitAfterChanges(i.REMOVE),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.it)(this._observable),this._createNewInstance({items:this._items.map(l.d9)})}concat(...t){(0,f.it)(this._observable);const e=t.map(x);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const n=this._splice(0,this.length),s=n.length;for(let i=0;i<s;i++)t.call(e,n[i],i,n);this._emitAfterChanges(i.REMOVE)}every(t,e){return(0,f.it)(this._observable),this._items.every(t,e)}filter(t,e){let n;return(0,f.it)(this._observable),n=2===arguments.length?this._items.filter(t,e):this._items.filter(t),this._createNewInstance({items:n})}find(t,e){return(0,f.it)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,f.it)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,f.it)(this._observable);const n=[];return M(n,this,t,e),new c(n)}forEach(t,e){return(0,f.it)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,f.it)(this._observable),this._items[t]}getNextIndex(t){(0,f.it)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,f.it)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,f.it)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,f.it)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,f.it)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,f.it)(this._observable);const n=this._items.map(t,e);return new c({items:n})}reorder(t,e=this.length-1){(0,f.it)(this._observable);const n=this.indexOf(t);if(-1!==n){if(e<0?e=0:e>=this.length&&(e=this.length-1),n!==e){if(this._emitBeforeChanges(i.MOVE))return t;this._splice(n,1),this._splice(e,0,[t]),this._emitAfterChanges(i.MOVE)}return t}}pop(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=v(this._splice(this.length-1,1));return this._emitAfterChanges(i.REMOVE),t}push(...t){return(0,f.it)(this._observable),this._emitBeforeChanges(i.ADD)||(this._splice(this.length,0,t),this._emitAfterChanges(i.ADD)),this.length}reduce(t,e){(0,f.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(t,e):n.reduce(t)}reduceRight(t,e){(0,f.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(t,e):n.reduceRight(t)}remove(t){return(0,f.it)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,f.it)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(i.REMOVE))return;const e=v(this._splice(t,1));return this._emitAfterChanges(i.REMOVE),e}removeMany(t){if((0,f.it)(this._observable),!t||!t.length||this._emitBeforeChanges(i.REMOVE))return[];const e=t instanceof c?t.toArray():t,n=this._items,s=[],r=e.length;for(let t=0;t<r;t++){const i=e[t],r=n.indexOf(i);if(r>-1){const i=1+b(e,n,t+1,r+1),o=this._splice(r,i);o&&o.length>0&&s.push.apply(s,o),t+=i-1}}return this._emitAfterChanges(i.REMOVE),s}reverse(){if((0,f.it)(this._observable),this._emitBeforeChanges(i.MOVE))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(i.MOVE),this}shift(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=v(this._splice(0,1));return this._emitAfterChanges(i.REMOVE),t}slice(t=0,e=this.length){return(0,f.it)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,f.it)(this._observable),this._items.some(t,e)}sort(t){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.MOVE))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(i.MOVE),this}splice(t,e,...n){(0,f.it)(this._observable);const s=(e?i.REMOVE:0)|(n.length?i.ADD:0);if(this._emitBeforeChanges(s))return[];const r=this._splice(t,e,n)||[];return this._emitAfterChanges(s),r}toArray(){return(0,f.it)(this._observable),this._items.slice()}toJSON(){return(0,f.it)(this._observable),this.toArray()}toLocaleString(){return(0,f.it)(this._observable),this._items.toLocaleString()}toString(){return(0,f.it)(this._observable),this._items.toString()}unshift(...t){return(0,f.it)(this._observable),!t.length||this._emitBeforeChanges(i.ADD)||(this._splice(0,0,t),this._emitAfterChanges(i.ADD)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,n){const i=this._items,s=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,u.Os)((()=>this._dispatchChange()))),e){if(o=i.splice(t,e),this.hasEventListener("before-remove")){const e=y.acquire();e.target=this,e.cancellable=!0;for(let n=0,s=o.length;n<s;n++)r=o[n],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(n,1),i.splice(t,0,r),t+=1,n-=1,s-=1);y.release(e)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const t=y.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let n=0;n<e;n++)t.reset(o[n]),this.emit("after-remove",t);y.release(t)}}if(n&&n.length){if(s){const t=[];for(const e of n){const n=s.ensureType(e);null==n&&null!=e||t.push(n)}n=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const s=y.acquire();s.target=this,s.cancellable=!0;const a=y.acquire();a.target=this,a.cancellable=!1;for(const l of n)e?(s.reset(l),this.emit("before-add",s),s.defaultPrevented||(o?i.push(l):i.splice(t++,0,l),this._set("length",i.length),r&&(a.reset(l),this.emit("after-add",a)))):(o?i.push(l):i.splice(t++,0,l),this._set("length",i.length),a.reset(l),this.emit("after-add",a));y.release(a),y.release(s)}else{if(o)for(const t of n)i.push(t);else i.splice(t,0,...n);this._set("length",i.length)}}return(n&&n.length||o&&o.length)&&this._notifyChangeEvent(n,o),o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const n=y.acquire();n.target=this,n.cancellable=!0,n.type=t,this.emit("before-changes",n),e=n.defaultPrevented,y.release(n)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=y.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),y.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;w.clear(),P.clear(),C.clear();for(const{added:e,removed:n}of t){if(e)if(0===C.size&&0===P.size)for(const t of e)w.add(t);else for(const t of e)P.has(t)?(C.add(t),P.delete(t)):C.has(t)||w.add(t);if(n)if(0===C.size&&0===w.size)for(const t of n)P.add(t);else for(const t of n)w.has(t)?w.delete(t):(C.delete(t),P.add(t))}const n=r.Z.acquire();w.forEach((t=>{n.push(t)}));const i=r.Z.acquire();P.forEach((t=>{i.push(t)}));const s=this._items,o=e.items,a=r.Z.acquire();if(C.forEach((t=>{o.indexOf(t)!==s.indexOf(t)&&a.push(t)})),e.listeners&&(n.length||i.length||a.length)){const t={target:this,added:n,removed:i,moved:a},s=e.listeners.length;for(let n=0;n<s;n++){const i=e.listeners[n];i.removed||i.callback.call(this,t)}}r.Z.release(n),r.Z.release(i),r.Z.release(a)}w.clear(),P.clear(),C.clear()}};I.ofType=t=>{if(!t)return c;if(R.has(t))return R.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const n in t.typeMap){const i=t.typeMap[n].prototype.declaredClass;e?e+=` | ${i}`:e=i}let n=class extends c{};return(0,s._)([(0,p.c)({Type:t,ensureType:"function"==typeof t?(0,d.se)(t):(0,d.N7)(t)})],n.prototype,"itemType",void 0),n=(0,s._)([(0,_.j)(`esri.core.Collection<${e}>`)],n),R.set(t,n),n},(0,s._)([(0,m.Cb)()],I.prototype,"length",void 0),(0,s._)([(0,m.Cb)()],I.prototype,"items",null),I=c=(0,s._)([(0,_.j)("esri.core.Collection")],I);const O=I},52421:(t,e,n)=>{function i(t){return(e,n)=>{e[n]=t}}n.d(e,{c:()=>i})},70921:(t,e,n)=>{n.d(e,{R:()=>r,Z:()=>s});var i=n(46791);function s(t,e,n=i.Z){return e||(e=new n),e===t||(e.removeAll(),(s=t)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?e.addMany(t):t&&e.add(t)),e;var s}function r(t){return t}},24133:(t,e,n)=>{n.d(e,{Q:()=>o});var i=n(67676),s=n(44553),r=n(88764);class o{constructor(t=9,e){this._compareMinX=c,this._compareMinY=u,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),v.prune(),b.prune(),M.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const i=this._toBBox;if(g(t,n))for(x.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;g(t,o)&&(n.leaf?e(r):_(t,o)?this._all(r,e):x.push(r))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!g(t,e))return!1;for(x.clear();e;){for(let i=0,s=e.children.length;i<s;i++){const s=e.children[i],r=e.leaf?n(s):s;if(g(t,r)){if(e.leaf||_(t,r))return!0;x.push(s)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new C([]),this}remove(t){if(!t)return this;let e,n=this._data,s=null,r=0,o=!1;const a=this._toBBox(t);for(b.clear(),M.clear();n||b.length>0;){if(n||(n=b.pop(),s=b.data[b.length-1],r=M.pop()??0,o=!0),n.leaf&&(e=(0,i.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),b.push(n),this._condense(b),this;o||n.leaf||!_(n,a)?s?(r++,n=s.children[r],o=!1):n=null:(b.push(n),M.push(r),r=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(v.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else v.pushArray(n.children);n=v.pop()??null}}_build(t,e,n,i){const s=n-e+1;let r=this._maxEntries;if(s<=r){const i=new C(t.slice(e,n+1));return a(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new R([]);o.height=i;const l=Math.ceil(s/r),h=l*Math.ceil(Math.sqrt(r));y(t,e,n,h,this._compareMinX);for(let s=e;s<=n;s+=h){const e=Math.min(s+h-1,n);y(t,s,e,l,this._compareMinY);for(let n=s;n<=e;n+=l){const s=Math.min(n+l-1,e);o.children.push(this._build(t,n,s,i-1))}}return a(o,this._toBBox),o}_chooseSubtree(t,e,n,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],a=d(o),l=m(t,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}e=n||e.children[0]}return e}_insert(t,e,n){const i=this._toBBox,s=n?t:i(t);b.clear();const r=this._chooseSubtree(s,this._data,e,b);for(r.children.push(t),h(r,s);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;this._adjustParentBBoxes(s,b,e)}_split(t,e){const n=t.data[e],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 o=n.children.splice(r,n.children.length-r),l=n.leaf?new C(o):new R(o);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let i,s,r;i=s=1/0;for(let o=e;o<=n-e;o++){const e=l(t,0,o,this._toBBox),a=l(t,o,n,this._toBBox),h=p(e,a),c=d(e)+d(a);h<i?(i=h,r=o,s=c<s?c:s):h===i&&c<s&&(s=c,r=o)}return r}_chooseSplitAxis(t,e,n){const i=t.leaf?this._compareMinX:c,s=t.leaf?this._compareMinY:u;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,s)&&t.children.sort(i)}_allDistMargin(t,e,n,i){t.children.sort(i);const s=this._toBBox,r=l(t,0,e,s),o=l(t,n-e,n,s);let a=f(r)+f(o);for(let i=e;i<n-e;i++){const e=t.children[i];h(r,t.leaf?s(e):e),a+=f(r)}for(let i=n-e-1;i>=e;i--){const e=t.children[i];h(o,t.leaf?s(e):e),a+=f(o)}return a}_adjustParentBBoxes(t,e,n){for(let i=n;i>=0;i--)h(e.data[i],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const s=t.data[e-1],r=s.children;r.splice((0,i.cq)(r,n,r.length,s.indexHint),1)}else this.clear();else a(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,i,s){s||(s=new C([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=e;o<n;o++)r=t.children[o],h(s,t.leaf?i(r):r);return s}function h(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function p(t,e){const n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function _(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t,e,n,i,s){const o=[e,n];for(;o.length;){const e=o.pop(),n=o.pop();if(e-n<=i)continue;const a=n+Math.ceil((e-n)/i/2)*i;(0,r.q)(t,a,n,e,s),o.push(n,a,a,e)}}const x=new s.Z,v=new s.Z,b=new s.Z,M=new s.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class C extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,n)=>{n.d(e,{N1:()=>d,YP:()=>l,Z_:()=>p,gx:()=>h,nn:()=>_,on:()=>u,tX:()=>g});var i=n(91460),s=n(50758),r=n(70586),o=n(95330),a=n(26258);function l(t,e,n={}){return c(t,e,n,f)}function h(t,e,n={}){return c(t,e,n,m)}function c(t,e,n={},i){let s=null;const o=n.once?(t,n)=>{i(t)&&((0,r.hw)(s),e(t,n))}:(t,n)=>{i(t)&&e(t,n)};if(s=(0,a.aQ)(t,o,n.sync,n.equals),n.initial){const e=t();o(e,e)}return s}function u(t,e,n,o={}){let a=null,h=null,c=null;function u(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(t){o.once&&o.once&&(0,r.hw)(c),n(t)}const f=l(t,((t,n)=>{u(),(0,i.vT)(t)&&(a=t,h=(0,i.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return c=(0,s.kB)((()=>{f.remove(),u()})),c}function d(t,e){return function(t,e,n){if((0,o.Hc)(n))return Promise.reject((0,o.zE)());const i=t();if(e?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.hw)(a)}return new Promise(((i,r)=>{a=(0,s.AL)([(0,o.fu)(n,(()=>{l(),r((0,o.zE)())})),c(t,(t=>{l(),i(t)}),{sync:!1,once:!0},e??f)])}))}(t,m,e)}function f(t){return!0}function m(t){return!!t}n(87538);const p={sync:!0},_={initial:!0},g={sync:!0,initial:!0}},72762:(t,e,n)=>{n.d(e,{t:()=>c});var i=n(43697),s=n(92036),r=n(50758),o=n(17445),a=n(1654),l=n(5600),h=n(52011);let c=class extends s.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll()}add(t,e,n={}){return this._installWatch(t,e,n,o.YP)}addWhen(t,e,n={}){return this._installWatch(t,e,n,o.gx)}addOnCollectionChange(t,e,{initial:n=!1,final:i=!1}={}){const s=++this._handleId;return this.addHandles([(0,o.on)(t,"after-changes",this._createSyncUpdatingCallback(),o.Z_),(0,o.on)(t,"change",e,{onListenerAdd:n?t=>e({added:t.toArray(),removed:[]}):void 0,onListenerRemove:i?t=>e({added:[],removed:t.toArray()}):void 0})],s),(0,r.kB)((()=>this.removeHandles(s)))}addPromise(t){if(null==t)return t;const e=++this._handleId;this.addHandles((0,r.kB)((()=>{this._pendingPromises.delete(t)&&(0!==this._pendingPromises.size||this.hasHandles(u)||this._set("updating",!1))})),e),this._pendingPromises.add(t),this._set("updating",!0);const n=()=>this.removeHandles(e);return t.then(n,n),t}removeAll(){this._pendingPromises.clear(),this.removeAllHandles(),this._set("updating",!1)}_installWatch(t,e,n={},i){const s=++this._handleId;n.sync||this._installSyncUpdatingWatch(t,s);const o=i(t,e,n);return this.addHandles(o,s),(0,r.kB)((()=>this.removeHandles(s)))}_installSyncUpdatingWatch(t,e){const n=this._createSyncUpdatingCallback(),i=(0,o.YP)(t,n,{sync:!0,equals:()=>!1});return this.addHandles(i,e),i}_createSyncUpdatingCallback(){return()=>{this.removeHandles(u),++this._scheduleHandleId;const t=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this.addHandles((0,a.Os)((()=>{t===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this.removeHandles(u))})),u)}}};(0,i._)([(0,l.Cb)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,i._)([(0,h.j)("esri.core.support.WatchUpdatingTracking")],c);const u=-42},35463:(t,e,n)=>{n.d(e,{JE:()=>o,Nm:()=>r,rJ:()=>a}),n(80442);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},s={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function r(t,e,n){const i=new Date(t.getTime());if(e&&n){const t=s[n],{getter:r,setter:o,multiplier:a}=t;if("months"===n){const t=function(t,e){const n=new Date(t,e+1,1);return n.setDate(0),n.getDate()}(i.getFullYear(),i.getMonth()+e);i.getDate()>t&&i.setDate(t)}i[o](i[r]()+e*a)}return i}function o(t,e){switch(e){case"milliseconds":return new Date(t.getTime());case"seconds":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());case"minutes":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes());case"hours":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate());case"weeks":return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay());case"months":return new Date(t.getFullYear(),t.getMonth(),1);case"years":return new Date(t.getFullYear(),0,1);case"decades":return new Date(t.getFullYear()-t.getFullYear()%10,0,1);case"centuries":return new Date(t.getFullYear()-t.getFullYear()%100,0,1);default:return new Date}}function a(t,e,n){return 0===t?0:t*i[e]/i[n]}},41123:(t,e,n)=>{n.d(e,{D:()=>s,z:()=>r});const i="randomUUID"in crypto;function s(){if(i)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function r(){return`{${s()}}`}},73913:(t,e,n)=>{n.d(e,{Sy:()=>l,UZ:()=>o,XZ:()=>a,x3:()=>h});var i=n(58901),s=n(82971),r=n(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:s.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:s.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=h(t);for(const t of n)for(const n of t)n[0]+=e;return t}function h(t){return(0,r.oU)(t)?t.rings:t.paths}},7383:(t,e,n)=>{n.r(e),n.d(e,{default:()=>ae});var i=n(43697),s=n(46791),r=n(20102),o=n(92604),a=n(16453),l=n(5600),h=n(90578),c=(n(67676),n(80442),n(71715)),u=n(52011),d=n(30556),f=n(87085),m=n(71612),p=n(38009),_=n(72965),g=n(3172),y=n(81271),x=n(41123),v=(n(75215),n(10699)),b=n(96674),M=n(83379),w=n(92036),P=n(21787),C=n(46521),R=n(4307),E=n(17896);const I=(0,n(65617).c)(),O=(0,C.c)(),B=(0,C.c)(),S=(0,C.c)();function A(t,e,n){return(0,E.s)(I,e[0],e[1],1),(0,E.t)(I,I,(0,P.t)(O,n)),0===I[2]?(0,R.s)(t,I[0],I[1]):(0,R.s)(t,I[0]/I[2],I[1]/I[2])}function T(t,e,n){return Z(B,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),Z(S,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,P.m)(t,(0,P.b)(B,B),S),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function Z(t,e,n,i,s,r,o,a,l){(0,P.c)(t,e,i,r,n,s,o,1,1,1),(0,E.s)(I,a,l,1),(0,P.b)(O,t);const[h,c,u]=(0,E.t)(I,I,(0,P.t)(O,O));return(0,P.c)(O,h,0,0,0,c,0,0,0,u),(0,P.m)(t,O,t)}var j=n(62357),D=n(97323),L=n(94139),Y=n(38913),X=n(44547),V=n(82971),H=n(2368);let N=class extends H.j{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:i}=(0,X.dz)(t,e);return i?null:i||n?n:(o.Z.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};N=(0,i._)([(0,u.j)("esri.layers.support.GeoreferenceBase")],N);const q=N,z=(0,C.c)(),F=(0,D.a)();let W=class extends w.Z{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,i._)([(0,l.Cb)()],W.prototype,"sourcePoint",void 0),(0,i._)([(0,l.Cb)({type:L.Z})],W.prototype,"mapPoint",void 0),W=(0,i._)([(0,u.j)("esri.layers.support.ControlPoint")],W);let U=class extends((0,b.eC)(q)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=V.Z.fromJSON(e.spatialReference),i=(0,C.f)(...e.coefficients,1);return t.map((t=>((0,R.s)(F,t.x,t.y),A(F,F,i),{sourcePoint:t,mapPoint:new L.Z({x:F[0],y:F[1],spatialReference:n})})))}writeControlPoints(t,e,n,i){if(null!=this.transform)null!=t&&k(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new r.Z("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:i?.layer,georeference:this});i?.messages?i.messages.push(t):o.Z.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(z);if(null==t||!k(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,i){const s=(0,D.f)(0,n),r=(0,D.f)(0,0),o=(0,D.f)(e,0),a=(0,D.f)(e,n);return A(s,s,t),A(r,r,t),A(o,o,t),A(a,a,t),new Y.Z({rings:[[s,r,o,a,s]],spatialReference:i})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!k(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:i}=this,{rings:[[s,r,o,a]]}=t,l={sourcePoint:(0,j.vW)(0,i),mapPoint:new L.Z({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,j.vW)(0,0),mapPoint:new L.Z({x:r[0],y:r[1],spatialReference:e})},c={sourcePoint:(0,j.vW)(n,0),mapPoint:new L.Z({x:o[0],y:o[1],spatialReference:e})},u={sourcePoint:(0,j.vW)(n,i),mapPoint:new L.Z({x:a[0],y:a[1],spatialReference:e})};k(l)&&k(h)&&k(c)&&k(u)&&(rt(z,l,h,c,u),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,R.s)(F,t.x,t.y),A(F,F,z),{sourcePoint:t,mapPoint:new L.Z({x:F[0],y:F[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,P.e)((0,C.c)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!k(this.controlPoints[0]))return null;(0,R.s)(F,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return A(F,F,this.transform),new L.Z({x:F[0],y:F[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!k(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,X.dz)(t,e).geometry)?null:((0,R.s)(F,t.x,t.y),A(F,F,this.inverseTransform),(0,j.vW)(F[0],F[1]))}_updateTransform(t){const{controlPoints:e,width:n,height:i}=this;if(!(null!=e&&n>0&&i>0))return null;const[s,r,o,a]=e;if(!k(s))return null;const l=s.mapPoint.spatialReference,h=this._projectControlPoint(r,l),c=this._projectControlPoint(o,l),u=this._projectControlPoint(a,l);if(!h.valid||!c.valid||!u.valid)return null;if(!k(h.controlPoint))return null;null==t&&(t=(0,C.c)());let d=null;return d=k(c.controlPoint)&&k(u.controlPoint)?rt(t,s,h.controlPoint,c.controlPoint,u.controlPoint):k(c.controlPoint)?function(t,e,n,i){return st(J,Q,e),st(G,tt,n),st($,et,i),(0,R.l)(K,J,G,.5),(0,R.r)(K,$,K,Math.PI),(0,R.l)(nt,Q,tt,.5),(0,R.r)(nt,et,nt,Math.PI),ht(t,J,G,$,K,Q,tt,et,nt)}(t,s,h.controlPoint,c.controlPoint):function(t,e,n){return st(J,Q,e),st(G,tt,n),(0,R.r)($,G,J,it),(0,R.r)(K,J,G,it),(0,R.r)(et,tt,Q,-it),(0,R.r)(nt,Q,tt,-it),ht(t,J,G,$,K,Q,tt,et,nt)}(t,s,h.controlPoint),d.every((t=>0===t))?null:d}_projectControlPoint(t,e){if(!k(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:i}=t,{geometry:s,pending:r}=(0,X.dz)(i,e);return r?{valid:!1,controlPoint:null}:r||s?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:s}}:(o.Z.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:i.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function k(t){return null!=t&&null!=t.sourcePoint&&null!=t.mapPoint}(0,i._)([(0,l.Cb)({type:[W],json:{write:{allowNull:!1,isRequired:!0}}})],U.prototype,"controlPoints",void 0),(0,i._)([(0,c.r)("controlPoints")],U.prototype,"readControlPoints",null),(0,i._)([(0,d.c)("controlPoints")],U.prototype,"writeControlPoints",null),(0,i._)([(0,l.Cb)()],U.prototype,"coords",null),(0,i._)([(0,l.Cb)({json:{write:!0}})],U.prototype,"height",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],U.prototype,"inverseTransform",null),(0,i._)([(0,l.Cb)({readOnly:!0})],U.prototype,"transform",null),(0,i._)([(0,l.Cb)({json:{write:!0}})],U.prototype,"width",void 0),U=(0,i._)([(0,u.j)("esri.layers.support.ControlPointsGeoreference")],U);const J=(0,D.a)(),G=(0,D.a)(),$=(0,D.a)(),K=(0,D.a)(),Q=(0,D.a)(),tt=(0,D.a)(),et=(0,D.a)(),nt=(0,D.a)(),it=Math.PI/2;function st(t,e,n){(0,R.s)(t,n.sourcePoint.x,n.sourcePoint.y),(0,R.s)(e,n.mapPoint.x,n.mapPoint.y)}function rt(t,e,n,i,s){return st(J,Q,e),st(G,tt,n),st($,et,i),st(K,nt,s),ht(t,J,G,$,K,Q,tt,et,nt)}const ot=new Array(8).fill(0),at=new Array(8).fill(0);function lt(t,e,n,i,s){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=i[0],t[5]=i[1],t[6]=s[0],t[7]=s[1],t}function ht(t,e,n,i,s,r,o,a,l){return T(t,lt(ot,e,n,i,s),lt(at,r,o,a,l))}const ct=U;let ut=class extends q{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:i}=this;if(null==t||null==e||null==n||null==i)return null;const s=t.spatialReference;return e=this.projectOrWarn(e,s),n=this.projectOrWarn(n,s),i=this.projectOrWarn(i,s),null==e||null==n||null==i?null:new Y.Z({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[i.x,i.y],[n.x,n.y]]],spatialReference:s})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[i,s,r,o]]}=t;this.bottomLeft=new L.Z({x:i[0],y:i[1],spatialReference:n}),this.topLeft=new L.Z({x:s[0],y:s[1],spatialReference:n}),this.topRight=new L.Z({x:r[0],y:r[1],spatialReference:n}),this.bottomRight=new L.Z({x:o[0],y:o[1],spatialReference:n})}};(0,i._)([(0,l.Cb)()],ut.prototype,"coords",null),(0,i._)([(0,l.Cb)({type:L.Z})],ut.prototype,"bottomLeft",void 0),(0,i._)([(0,l.Cb)({type:L.Z})],ut.prototype,"bottomRight",void 0),(0,i._)([(0,l.Cb)({type:L.Z})],ut.prototype,"topLeft",void 0),(0,i._)([(0,l.Cb)({type:L.Z})],ut.prototype,"topRight",void 0),ut=(0,i._)([(0,u.j)("esri.layers.support.CornersGeoreference")],ut);const dt=ut;var ft=n(22021),mt=n(46851),pt=n(6570);let _t=class extends q{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:i,spatialReference:s}=this.extent;let r;if(this.rotation){const{x:s,y:o}=this.extent.center,a=gt(s,o,this.rotation);r=[a(t,e),a(t,i),a(n,i),a(n,e)],r.push(r[0])}else r=[[t,e],[t,i],[n,i],[n,e],[t,e]];return new Y.Z({rings:[r],spatialReference:s})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(null==(t=this.projectOrWarn(t,e))||null==t.extent)return;const{rings:[[n,i,s]],extent:{center:{x:r,y:o}}}=t,a=(0,ft.BV)(Math.PI/2-Math.atan2(i[1]-n[1],i[0]-n[0])),l=gt(r,o,-a),[h,c]=l(n[0],n[1]),[u,d]=l(s[0],s[1]);this.extent=new pt.Z({xmin:h,ymin:c,xmax:u,ymax:d,spatialReference:e}),this.rotation=a}};function gt(t,e,n){const i=(0,mt.t)(n),s=Math.cos(i),r=Math.sin(i);return(n,i)=>[s*(n-t)+r*(i-e)+t,s*(i-e)-r*(n-t)+e]}(0,i._)([(0,l.Cb)()],_t.prototype,"coords",null),(0,i._)([(0,l.Cb)({type:pt.Z})],_t.prototype,"extent",void 0),(0,i._)([(0,l.Cb)({type:Number})],_t.prototype,"rotation",void 0),_t=(0,i._)([(0,u.j)("esri.layers.support.ExtentAndRotationGeoreference")],_t);const yt={key:"type",base:q,typeMap:{"control-points":ct,corners:dt,"extent-and-rotation":_t}};let xt=class extends((0,v.iv)((0,b.eC)(M.Z))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return ct.fromJSON(t)}};(0,i._)([(0,l.Cb)({types:yt,json:{write:!0}})],xt.prototype,"georeference",void 0),(0,i._)([(0,c.r)("georeference")],xt.prototype,"readGeoreference",null),(0,i._)([(0,l.Cb)()],xt.prototype,"opacity",void 0),xt=(0,i._)([(0,u.j)("esri.layers.support.MediaElementBase")],xt);const vt=xt;var bt=n(66094),Mt=n(25929);let wt=class extends vt{constructor(t){super(t),this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,g.default)(t,{responseType:"image"}).then((({data:t})=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new r.Z("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}readImage(t,e,n){return(0,Mt.f)(e.url,n)}writeImage(t,e,n,i){if(null==t)return;const s=i?.portalItem,r=i?.resources;if(!s||!r)return void("string"==typeof t&&(e[n]=(0,Mt.t)(t,i)));const o="string"!=typeof t||(0,y.HK)(t)||(0,y.jc)(t)?null:t;if(o){if(null==(0,Mt.i)(o))return void(e[n]=o);const t=(0,Mt.t)(o,{...i,verifyItemRelativeUrls:i&&i.verifyItemRelativeUrls?{writtenUrls:i.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},Mt.M.NO);if(s&&t&&!(0,y.YP)(t))return r.toKeep.push({resource:s.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",r.pendingOperations.push(Ct(t).then((t=>{const i=function(t,e){const n=(0,x.D)(),i=`${(0,y.v_)("media",n)}.${(0,bt.B)(t)}`;return e.resourceFromPath(i)}(t,s);e[n]=i.itemRelativeUrl,r.toAdd.push({resource:i,content:t,compress:!1,finish:t=>{this.image=t.url}})})))}};(0,i._)([(0,l.Cb)({readOnly:!0})],wt.prototype,"content",void 0),(0,i._)([(0,l.Cb)({json:{name:"url",type:String}})],wt.prototype,"image",void 0),(0,i._)([(0,c.r)("image",["url"])],wt.prototype,"readImage",null),(0,i._)([(0,d.c)("image")],wt.prototype,"writeImage",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{name:"mediaType"}})],wt.prototype,"type",void 0),wt=(0,i._)([(0,u.j)("esri.layers.support.ImageElement")],wt);const Pt=wt;async function Ct(t){if("string"==typeof t){if((0,y.jc)(t)){const{data:e}=await(0,g.default)(t,{responseType:"blob"});return e}return(0,y.HK)(t)?(0,y.fw)(t):Ct((await(0,g.default)(t,{responseType:"image"})).data)}return new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,i=document.createElement("canvas"),s=i.getContext("2d");return i.width=e,i.height=n,t instanceof HTMLImageElement?s.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&s.putImageData(t,0,0),i}(t).toBlob(e)))}n(66577);var Rt=n(70921),Et=n(32448),It=n(61247),Ot=n(72762);const Bt=t=>{let e=class extends t{constructor(){super(...arguments),this._handles=new It.Z,this._updatingHandles=new Ot.t}destroy(){this.destroyed||(this._handles.destroy(),this._updatingHandles.destroy())}get handles(){return this._handles}get updatingHandles(){return this._updatingHandles}};return(0,i._)([(0,l.Cb)({readOnly:!0})],e.prototype,"handles",null),(0,i._)([(0,l.Cb)({readOnly:!0})],e.prototype,"updatingHandles",null),e=(0,i._)([(0,u.j)("esri.core.HandleOwner")],e),e};let St=class extends(Bt(w.Z)){};St=(0,i._)([(0,u.j)("esri.core.HandleOwner")],St);var At=n(609),Tt=n(95330),Zt=n(17445),jt=n(24470),Dt=n(87416),Lt=n(8744),Yt=n(37549),Xt=n(20322),Vt=n(86662),Ht=n(33955),Nt=n(73913);function qt(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:i,ymax:s,xmin:r,xmax:o}=t,a=t.xmax-t.xmin,[l,h]=e.valid,{x:c,frameId:u}=Ft(t.xmin,e),{x:d,frameId:f}=Ft(t.xmax,e),m=c===d&&a>0;if(a>2*h){const t={xmin:r<o?c:d,ymin:i,xmax:h,ymax:s},e={xmin:l,ymin:i,xmax:r<o?d:c,ymax:s},a={xmin:0,ymin:i,xmax:h,ymax:s},m={xmin:l,ymin:i,xmax:0,ymax:s},p=[],_=[];Wt(t,a)&&p.push(u),Wt(t,m)&&_.push(u),Wt(e,a)&&p.push(f),Wt(e,m)&&_.push(f);for(let t=u+1;t<f;t++)p.push(t),_.push(t);n.push(new Jt(t,[u]),new Jt(e,[f]),new Jt(a,p),new Jt(m,_))}else c>d||m?n.push(new Jt({xmin:c,ymin:i,xmax:h,ymax:s},[u]),new Jt({xmin:l,ymin:i,xmax:d,ymax:s},[f])):n.push(new Jt({xmin:c,ymin:i,xmax:d,ymax:s},[u]));return n}(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}function zt(t,e,n){if(Array.isArray(t)){const i=t[0];if(i>e){const n=(0,Nt.XZ)(i,e);t[0]=i+n*(-2*e)}else if(i<n){const e=(0,Nt.XZ)(i,n);t[0]=i+e*(-2*n)}}else{const i=t.x;if(i>e){const n=(0,Nt.XZ)(i,e);t.x+=n*(-2*e)}else if(i<n){const e=(0,Nt.XZ)(i,n);t.x+=e*(-2*n)}}return t}function Ft(t,e){const[n,i]=e.valid,s=2*i;let r,o=0;return t>i?(r=Math.ceil(Math.abs(t-i)/s),t-=r*s,o=r):t<n&&(r=Math.ceil(Math.abs(t-n)/s),t+=r*s,o=-r),{x:t,frameId:o}}function Wt(t,e){const{xmin:n,ymin:i,xmax:s,ymax:r}=e;return Ut(t,n,i)&&Ut(t,n,r)&&Ut(t,s,r)&&Ut(t,s,i)}function Ut(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function kt(t,e,n=!0){const i=!(0,Ht.l9)(t);if(i&&(0,Vt.Zy)(t),n)return(new $t).cut(t,e);const s=i?t.rings:t.paths,r=i?4:2,o=s.length,a=-2*e;for(let t=0;t<o;t++){const e=s[t];if(e&&e.length>=r){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);s.push(t)}}return i?t.rings=s:t.paths=s,t}class Jt{constructor(t,e){this.extent=t,this.frameIds=e}}const Gt=(0,jt.Ue)();class $t{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const i=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=i;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const i=t.length;i>1&&t[i-1][0]===e&&t[i-2][0]===e?t[i-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Kt=class extends w.Z{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t||null==t.extent?null:(0,jt.oJ)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,X.dz)(t,this.spatialReference).geometry}get normalizedCoords(){return Y.Z.fromJSON(function(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,Lt.C5)(n),s="toJSON"in t?t.toJSON():t;if(!i)return s;const r=(0,Lt.sS)(n)?102100:4326,o=Nt.UZ[r].maxX,a=Nt.UZ[r].minX;if((0,Ht.wp)(s))return zt(s,o,a);if((0,Ht.aW)(s))return s.points=s.points.map((t=>zt(t,o,a))),s;if((0,Ht.YX)(s))return qt(s,i);if((0,Ht.oU)(s)||(0,Ht.l9)(s)){const t=(0,Xt.$P)(Gt,s),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},i=(0,Nt.XZ)(n.xmin,a)*(2*o),r=0===i?s:(0,Nt.Sy)(s,i);return n.xmin+=i,n.xmax+=i,n.xmax>o?kt(r,o,e):n.xmin<a?kt(r,a,e):r}return s}(this.coords,!0))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,jt.oJ)(t):null}};(0,i._)([(0,l.Cb)()],Kt.prototype,"spatialReference",void 0),(0,i._)([(0,l.Cb)()],Kt.prototype,"element",void 0),(0,i._)([(0,l.Cb)()],Kt.prototype,"bounds",null),(0,i._)([(0,l.Cb)()],Kt.prototype,"coords",null),(0,i._)([(0,l.Cb)()],Kt.prototype,"normalizedCoords",null),(0,i._)([(0,l.Cb)()],Kt.prototype,"normalizedBounds",null),Kt=(0,i._)([(0,u.j)("esri.layers.support.MediaElementView")],Kt);let Qt=class extends vt{constructor(t){super(t),this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new r.Z("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):o.Z.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{t.oncanplay=()=>{t.oncanplay=null,t.play().then(e,n)},"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src=t.src)}))}};(0,i._)([(0,l.Cb)({readOnly:!0})],Qt.prototype,"content",void 0),(0,i._)([(0,l.Cb)()],Qt.prototype,"video",null),Qt=(0,i._)([(0,u.j)("esri.layers.support.VideoElement")],Qt);const te=Qt,ee={key:"type",defaultKeyValue:"image",base:vt,typeMap:{image:Pt,video:te}},ne=s.Z.ofType(ee);let ie=class extends(M.Z.LoadableMixin((0,At.v)(Bt(Et.Z.EventedAccessor)))){constructor(t){super(t),this._index=new Yt.H,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.handles.remove(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Kt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const i=(0,Zt.YP)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.handles.add(i,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new ne}async load(t){if((0,Tt.k_)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference&&null!=t.georeference.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:V.Z.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.handles.add(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,Rt.Z)(t,this._get("elements"),ne))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new pt.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):o.Z.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,X.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,Lt.fS)(t.spatialReference,this.spatialReference)?t:(0,X.iV)(t,this.spatialReference);if(!n)return[];const i=n.normalize(),s=[];for(const t of i)this._index.forEachInBounds((0,jt.oJ)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,Dt.Nl)(t,e)&&s.push(n)}));return s.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),s}_updateIndexForElement(t,e){const n=t.normalizedBounds,i=this._index.has(t),s=null!=n;this._index.delete(t),s&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(i!==s?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,i._)([(0,l.Cb)()],ie.prototype,"elements",null),(0,i._)([(0,l.Cb)({readOnly:!0})],ie.prototype,"fullExtent",null),(0,i._)([(0,l.Cb)()],ie.prototype,"spatialReference",null),ie=(0,i._)([(0,u.j)("esri.layers.support.LocalMediaElementSource")],ie);const se=ie;function re(t){return"object"==typeof t&&null!=t&&"type"in t}let oe=class extends((0,m.h)((0,_.M)((0,p.q)((0,a.R)(f.Z))))){constructor(t){super(t),this.effectiveSource=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this.source=new se}load(t){const e=this.source;if(!e)return this.addResolvingPromise(Promise.reject(new r.Z("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer."))),Promise.resolve(this);const n=re(e)?new se({elements:new s.Z([e])}):e;this._set("effectiveSource",n),this.spatialReference&&(n.spatialReference=this.spatialReference);const i=n.load(t).then((()=>{this.spatialReference=n.spatialReference}));return this.addResolvingPromise(i),Promise.resolve(this)}destroy(){this.effectiveSource?.destroy(),this.source?.destroy()}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"not-loaded"===this.loadStatus?this._set("source",t):o.Z.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new se({elements:new s.Z(t)}):t instanceof s.Z?new se({elements:t}):t:null}readSource(t,e,n){const i="image"===e.mediaType?new Pt:"video"===e.mediaType?new te:null;return i?.read(e,n),i}writeSource(t,e,n,i){t&&re(t)&&"image"===t.type?t.write(e,i):i?.messages&&i?.messages?.push(new r.Z("media-layer:unsupported-source","source must be an 'ImageElement'"))}};(0,i._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"effectiveSource",void 0),(0,i._)([(0,l.Cb)({type:String})],oe.prototype,"copyright",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"fullExtent",null),(0,i._)([(0,l.Cb)({type:["MediaLayer"]})],oe.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.Cb)({type:["show","hide"]})],oe.prototype,"listMode",void 0),(0,i._)([(0,l.Cb)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1}}})],oe.prototype,"source",null),(0,i._)([(0,h.p)("source")],oe.prototype,"castSource",null),(0,i._)([(0,c.r)("source",["url"])],oe.prototype,"readSource",null),(0,i._)([(0,d.c)("source")],oe.prototype,"writeSource",null),(0,i._)([(0,l.Cb)()],oe.prototype,"spatialReference",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"type",void 0),oe=(0,i._)([(0,u.j)("esri.layers.MediaLayer")],oe);const ae=oe},37549:(t,e,n)=>{n.d(e,{H:()=>a});var i=n(80442),s=n(24133),r=n(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.Q(9,(0,i.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,i)=>{t[e++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},66094:(t,e,n)=>{n.d(e,{B:()=>s});var i=n(81271);function s(t){return r[function(t){return t instanceof Blob?t.type:function(t){const e=(0,i.Ml)(t);return l[e]||o}(t.url)}(t)]||a}const r={},o="text/plain",a=r[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)r[l[t]]=t}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7954,5732],{92835:(t,e,n)=>{n.d(e,{Z:()=>m});var i,s=n(43697),r=n(96674),o=n(35463),a=n(5600),l=(n(75215),n(67676),n(80442),n(71715)),h=n(52011),c=n(30556);let u=i=class extends r.wq{static get allTime(){return d}static get empty(){return f}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?t.getTime():null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?t.getTime():null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=null!=this.start?this.start.getTime():this.start,n=null!=this.end?this.end.getTime():this.end,i=null!=t.start?t.start.getTime():t.start,s=null!=t.end?t.end.getTime():t.end;return e===i&&n===s}expandTo(t){if(this.isEmpty||this.isAllTime)return this.clone();let e=this.start;e&&(e=(0,o.JE)(e,t));let n=this.end;if(n){const e=(0,o.JE)(n,t);n=n.getTime()===e.getTime()?e:(0,o.Nm)(e,1,t)}return new i({start:e,end:n})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,s=t.start?.getTime()??-1/0,r=t.end?.getTime()??1/0;let o,a;if(s>=e&&s<=n?o=s:e>=s&&e<=r&&(o=e),n>=s&&n<=r?a=n:r>=e&&r<=n&&(a=r),null!=o&&null!=a&&!isNaN(o)&&!isNaN(a)){const t=new i;return t.start=o===-1/0?null:new Date(o),t.end=a===1/0?null:new Date(a),t}return i.empty}offset(t,e){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:r}=this;return null!=s&&(n.start=(0,o.Nm)(s,t,e)),null!=r&&(n.end=(0,o.Nm)(r,t,e)),n}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:n})}};(0,s._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],u.prototype,"end",void 0),(0,s._)([(0,l.r)("end")],u.prototype,"readEnd",null),(0,s._)([(0,c.c)("end")],u.prototype,"writeEnd",null),(0,s._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],u.prototype,"isAllTime",null),(0,s._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],u.prototype,"isEmpty",null),(0,s._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],u.prototype,"start",void 0),(0,s._)([(0,l.r)("start")],u.prototype,"readStart",null),(0,s._)([(0,c.c)("start")],u.prototype,"writeStart",null),u=i=(0,s._)([(0,h.j)("esri.TimeExtent")],u);const d=new u,f=new u({start:void 0,end:void 0}),m=u},5732:(t,e,n)=>{n.d(e,{c:()=>i,g:()=>s});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},21787:(t,e,n)=>{n.d(e,{b:()=>l,c:()=>r,d:()=>c,e:()=>a,f:()=>s,i:()=>d,m:()=>h,t:()=>o});var i=n(46851);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function r(t,e,n,i,s,r,o,a,l,h){return t[0]=e,t[1]=n,t[2]=i,t[3]=s,t[4]=r,t[5]=o,t[6]=a,t[7]=l,t[8]=h,t}function o(t,e){if(t===e){const n=e[1],i=e[2],s=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=s}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8],u=c*o-a*h,d=-c*r+a*l,f=h*r-o*l;let m=n*u+i*d+s*f;return m?(m=1/m,t[0]=u*m,t[1]=(-c*i+s*h)*m,t[2]=(a*i-s*o)*m,t[3]=d*m,t[4]=(c*n-s*l)*m,t[5]=(-a*n+s*r)*m,t[6]=f*m,t[7]=(-h*n+i*l)*m,t[8]=(o*n-i*r)*m,t):null}function l(t,e){const n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8];return t[0]=o*c-a*h,t[1]=s*h-i*c,t[2]=i*a-s*o,t[3]=a*l-r*c,t[4]=n*c-s*l,t[5]=s*r-n*a,t[6]=r*h-o*l,t[7]=i*l-n*h,t[8]=n*o-i*r,t}function h(t,e,n){const i=e[0],s=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],f=n[1],m=n[2],p=n[3],_=n[4],g=n[5],y=n[6],x=n[7],v=n[8];return t[0]=d*i+f*o+m*h,t[1]=d*s+f*a+m*c,t[2]=d*r+f*l+m*u,t[3]=p*i+_*o+g*h,t[4]=p*s+_*a+g*c,t[5]=p*r+_*l+g*u,t[6]=y*i+x*o+v*h,t[7]=y*s+x*a+v*c,t[8]=y*r+x*l+v*u,t}function c(t,e){const n=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8],u=e[9],d=e[10],f=e[11],m=e[12],p=e[13],_=e[14],g=e[15],y=n*a-i*o,x=n*l-s*o,v=n*h-r*o,b=i*l-s*a,M=i*h-r*a,w=s*h-r*l,P=c*p-u*m,C=c*_-d*m,R=c*g-f*m,E=u*_-d*p,I=u*g-f*p,O=d*g-f*_;let B=y*O-x*I+v*E+b*R-M*C+w*P;return B?(B=1/B,t[0]=(a*O-l*I+h*E)*B,t[1]=(l*R-o*O-h*C)*B,t[2]=(o*I-a*R+h*P)*B,t[3]=(s*I-i*O-r*E)*B,t[4]=(n*O-s*R+r*C)*B,t[5]=(i*R-n*I-r*P)*B,t[6]=(p*w-_*M+g*b)*B,t[7]=(_*v-m*w-g*x)*B,t[8]=(m*M-p*v+g*y)*B,t):null}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function d(t){const e=(0,i.g)(),n=t[0],s=t[1],r=t[2],o=t[3],a=t[4],l=t[5],h=t[6],c=t[7],u=t[8];return Math.abs(1-(n*n+o*o+h*h))<=e&&Math.abs(1-(s*s+a*a+c*c))<=e&&Math.abs(1-(r*r+l*l+u*u))<=e}const f=h,m=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],i=t[2],s=t[3],r=t[4],o=t[5],a=t[6],l=t[7],h=t[8];return e*(h*r-o*l)+n*(-h*s+o*a)+i*(l*s-r*a)},equals:function(t,e){const n=t[0],s=t[1],r=t[2],o=t[3],a=t[4],l=t[5],h=t[6],c=t[7],u=t[8],d=e[0],f=e[1],m=e[2],p=e[3],_=e[4],g=e[5],y=e[6],x=e[7],v=e[8],b=(0,i.g)();return Math.abs(n-d)<=b*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(s-f)<=b*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(r-m)<=b*Math.max(1,Math.abs(r),Math.abs(m))&&Math.abs(o-p)<=b*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-_)<=b*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(l-g)<=b*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(h-y)<=b*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(c-x)<=b*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(u-v)<=b*Math.max(1,Math.abs(u),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:s,fromQuat:function(t,e){const n=e[0],i=e[1],s=e[2],r=e[3],o=n+n,a=i+i,l=s+s,h=n*o,c=i*o,u=i*a,d=s*o,f=s*a,m=s*l,p=r*o,_=r*a,g=r*l;return t[0]=1-u-m,t[3]=c-g,t[6]=d+_,t[1]=c+g,t[4]=1-h-m,t[7]=f-p,t[2]=d-_,t[5]=f+p,t[8]=1-h-u,t},fromRotation:function(t,e){const n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:d,mul:f,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t},normalFromMat4:c,normalFromMat4Legacy:function(t,e){const n=e[0],i=e[1],s=e[2],r=e[4],o=e[5],a=e[6],l=e[8],h=e[9],c=e[10],u=c*o-a*h,d=-c*r+a*l,f=h*r-o*l,m=n*u+i*d+s*f;if(!m)return null;const p=1/m;return t[0]=u*p,t[1]=(-c*i+s*h)*p,t[2]=(a*i-s*o)*p,t[3]=d*p,t[4]=(c*n-s*l)*p,t[5]=(-a*n+s*r)*p,t[6]=f*p,t[7]=(-h*n+i*l)*p,t[8]=(o*n-i*r)*p,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const i=e[0],s=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=Math.sin(n),f=Math.cos(n);return t[0]=f*i+d*o,t[1]=f*s+d*a,t[2]=f*r+d*l,t[3]=f*o-d*i,t[4]=f*a-d*s,t[5]=f*l-d*r,t[6]=h,t[7]=c,t[8]=u,t},scale:function(t,e,n){const i=n[0],s=n[1],r=n[2];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t[6]=r*e[6],t[7]=r*e[7],t[8]=r*e[8],t},scaleByVec2:function(t,e,n){const i=n[0],s=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t},set:r,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:u,translate:function(t,e,n){const i=e[0],s=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],f=n[1];return t[0]=i,t[1]=s,t[2]=r,t[3]=o,t[4]=a,t[5]=l,t[6]=d*i+f*o+h,t[7]=d*s+f*a+c,t[8]=d*r+f*l+u,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,n,i,s,r,o,a,l){return[t,e,n,i,s,r,o,a,l]}function r(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>i,f:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:i,createView:r,fromValues:s},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>l});var i,s,r,o=n(5732),a={exports:{}};i=a,s=function(){function t(n,i,s,r,o){for(;r>s;){if(r-s>600){var a=r-s+1,l=i-s+1,h=Math.log(a),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(a-c)/a)*(l-a/2<0?-1:1);t(n,i,Math.max(s,Math.floor(i-l*c/a+u)),Math.min(r,Math.floor(i+(a-l)*c/a+u)),o)}var d=n[i],f=s,m=r;for(e(n,s,i),o(n[r],d)>0&&e(n,s,r);f<m;){for(e(n,f,m),f++,m--;o(n[f],d)<0;)f++;for(;o(n[m],d)>0;)m--}0===o(n[s],d)?e(n,s,m):e(n,++m,r),m<=i&&(s=m+1),i<=m&&(r=m-1)}}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return t<e?-1:t>e?1:0}return function(e,i,s,r,o){t(e,i,s||0,r||e.length-1,o||n)}},void 0!==(r=s())&&(i.exports=r);const l=(0,o.g)(a.exports)},4307:(t,e,n)=>{n.d(e,{d:()=>l,l:()=>d,r:()=>m,s:()=>s,t:()=>f});var i=n(46851);function s(t,e,n){return t[0]=e,t[1]=n,t}function r(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function o(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)}function h(t,e){const n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function c(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function u(t){const e=t[0],n=t[1];return e*e+n*n}function d(t,e,n,i){const s=e[0],r=e[1];return t[0]=s+i*(n[0]-s),t[1]=r+i*(n[1]-r),t}function f(t,e,n){const i=e[0],s=e[1];return t[0]=n[0]*i+n[2]*s+n[4],t[1]=n[1]*i+n[3]*s+n[5],t}function m(t,e,n,i){const s=e[0]-n[0],r=e[1]-n[1],o=Math.sin(i),a=Math.cos(i);return t[0]=s*a-r*o+n[0],t[1]=s*o+r*a+n[1],t}const p=c,_=r,g=o,y=a,x=l,v=h,b=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],i=t[1],s=e[0],r=e[1];let o=n*n+i*i;o>0&&(o=1/Math.sqrt(o));let a=s*s+r*r;a>0&&(a=1/Math.sqrt(a));const l=(n*s+i*r)*o*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},dist:x,distance:l,div:y,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],s=t[1],r=e[0],o=e[1],a=(0,i.g)();return Math.abs(n-r)<=a*Math.max(1,Math.abs(n),Math.abs(r))&&Math.abs(s-o)<=a*Math.max(1,Math.abs(s),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:p,length:c,lerp:d,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],i=e[1];let s=n*n+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t},projectAndScale:function(t,e,n,i,s){let r=e[0]-n[0],o=e[1]-n[1];const a=(i[0]*r+i[1]*o)*(s-1);return r=i[0]*a,o=i[1]*a,t[0]=e[0]+r,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const n=2*(0,i.R)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:m,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:s,sqrDist:v,sqrLen:b,squaredDistance:h,squaredLength:u,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:_,subtract:r,transformMat2:function(t,e,n){const i=e[0],s=e[1];return t[0]=n[0]*i+n[2]*s,t[1]=n[1]*i+n[3]*s,t},transformMat2d:f,transformMat3:function(t,e,n){const i=e[0],s=e[1];return t[0]=n[0]*i+n[3]*s+n[6],t[1]=n[1]*i+n[4]*s+n[7],t},transformMat4:function(t,e,n){const i=e[0],s=e[1];return t[0]=n[0]*i+n[4]*s+n[12],t[1]=n[1]*i+n[5]*s+n[13],t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function i(){return[0,0]}function s(t,e){return[t,e]}function r(t,e){return new Float64Array(t,e,2)}function o(){return s(1,1)}function a(){return s(1,0)}function l(){return s(0,1)}n.d(e,{a:()=>i,c:()=>r,f:()=>s});const h=o(),c=a(),u=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:c,UNIT_Y:u,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:i,createView:r,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let i=0;i<n;++i)e[i]=t[i];return e},fromValues:s,ones:o,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},46791:(t,e,n)=>{n.d(e,{Z:()=>O});var i,s=n(43697),r=n(3894),o=n(32448),a=n(50758),l=n(22974),h=n(71143);!function(t){t[t.ADD=1]="ADD",t[t.REMOVE=2]="REMOVE",t[t.MOVE=4]="MOVE"}(i||(i={}));var c,u=n(1654),d=n(75215),f=n(58971),m=n(5600),p=n(52421),_=n(52011),g=n(10661);const y=new h.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},void 0,(t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1}));function x(t){return t?t instanceof I?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function v(t){if(t&&t.length)return t[0]}function b(t,e,n,i){const s=Math.min(t.length-n,e.length-i);let r=0;for(;r<s&&t[n+r]===e[i+r];)r++;return r}function M(t,e,n,i){e&&e.forEach(((e,s,r)=>{t.push(e),M(t,n.call(i,e,s,r),n,i)}))}const w=new Set,P=new Set,C=new Set,R=new Map;let E=0,I=c=class extends o.Z.EventedAccessor{static isCollection(t){return null!=t&&t instanceof c}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new g.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:E++})}normalizeCtorArgs(t){return t?Array.isArray(t)||t instanceof c?{items:t}:t:{}}destroy(){this._removeAllRaw()}*[Symbol.iterator](){yield*this.items}get items(){return(0,f.it)(this._observable),this._items}set items(t){this._emitBeforeChanges(i.ADD)||(this._splice(0,this.length,x(t)),this._emitAfterChanges(i.ADD))}hasEventListener(t){return"change"===t?this._chgListeners.length>0:this._emitter.hasEventListener(t)}on(t,e){if("change"===t){const t=this._chgListeners,n={removed:!1,callback:e};return t.push(n),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,a.kB)((()=>{n.removed=!0,t.splice(t.indexOf(n),1)}))}return this._emitter.on(t,e)}once(t,e){return this.on(t,e)}add(t,e){if((0,f.it)(this._observable),this._emitBeforeChanges(i.ADD))return this;const n=this.getNextIndex(e??null);return this._splice(n,0,[t]),this._emitAfterChanges(i.ADD),this}addMany(t,e=this._items.length){if((0,f.it)(this._observable),!t||!t.length)return this;if(this._emitBeforeChanges(i.ADD))return this;const n=this.getNextIndex(e);return this._splice(n,0,x(t)),this._emitAfterChanges(i.ADD),this}at(t){if((0,f.it)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return[];const t=this._removeAllRaw();return this._emitAfterChanges(i.REMOVE),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.it)(this._observable),this._createNewInstance({items:this._items.map(l.d9)})}concat(...t){(0,f.it)(this._observable);const e=t.map(x);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const n=this._splice(0,this.length),s=n.length;for(let i=0;i<s;i++)t.call(e,n[i],i,n);this._emitAfterChanges(i.REMOVE)}every(t,e){return(0,f.it)(this._observable),this._items.every(t,e)}filter(t,e){let n;return(0,f.it)(this._observable),n=2===arguments.length?this._items.filter(t,e):this._items.filter(t),this._createNewInstance({items:n})}find(t,e){return(0,f.it)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,f.it)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,f.it)(this._observable);const n=[];return M(n,this,t,e),new c(n)}forEach(t,e){return(0,f.it)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,f.it)(this._observable),this._items[t]}getNextIndex(t){(0,f.it)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,f.it)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,f.it)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,f.it)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,f.it)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,f.it)(this._observable);const n=this._items.map(t,e);return new c({items:n})}reorder(t,e=this.length-1){(0,f.it)(this._observable);const n=this.indexOf(t);if(-1!==n){if(e<0?e=0:e>=this.length&&(e=this.length-1),n!==e){if(this._emitBeforeChanges(i.MOVE))return t;this._splice(n,1),this._splice(e,0,[t]),this._emitAfterChanges(i.MOVE)}return t}}pop(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=v(this._splice(this.length-1,1));return this._emitAfterChanges(i.REMOVE),t}push(...t){return(0,f.it)(this._observable),this._emitBeforeChanges(i.ADD)||(this._splice(this.length,0,t),this._emitAfterChanges(i.ADD)),this.length}reduce(t,e){(0,f.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(t,e):n.reduce(t)}reduceRight(t,e){(0,f.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(t,e):n.reduceRight(t)}remove(t){return(0,f.it)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,f.it)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(i.REMOVE))return;const e=v(this._splice(t,1));return this._emitAfterChanges(i.REMOVE),e}removeMany(t){if((0,f.it)(this._observable),!t||!t.length||this._emitBeforeChanges(i.REMOVE))return[];const e=t instanceof c?t.toArray():t,n=this._items,s=[],r=e.length;for(let t=0;t<r;t++){const i=e[t],r=n.indexOf(i);if(r>-1){const i=1+b(e,n,t+1,r+1),o=this._splice(r,i);o&&o.length>0&&s.push.apply(s,o),t+=i-1}}return this._emitAfterChanges(i.REMOVE),s}reverse(){if((0,f.it)(this._observable),this._emitBeforeChanges(i.MOVE))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(i.MOVE),this}shift(){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.REMOVE))return;const t=v(this._splice(0,1));return this._emitAfterChanges(i.REMOVE),t}slice(t=0,e=this.length){return(0,f.it)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,f.it)(this._observable),this._items.some(t,e)}sort(t){if((0,f.it)(this._observable),!this.length||this._emitBeforeChanges(i.MOVE))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(i.MOVE),this}splice(t,e,...n){(0,f.it)(this._observable);const s=(e?i.REMOVE:0)|(n.length?i.ADD:0);if(this._emitBeforeChanges(s))return[];const r=this._splice(t,e,n)||[];return this._emitAfterChanges(s),r}toArray(){return(0,f.it)(this._observable),this._items.slice()}toJSON(){return(0,f.it)(this._observable),this.toArray()}toLocaleString(){return(0,f.it)(this._observable),this._items.toLocaleString()}toString(){return(0,f.it)(this._observable),this._items.toString()}unshift(...t){return(0,f.it)(this._observable),!t.length||this._emitBeforeChanges(i.ADD)||(this._splice(0,0,t),this._emitAfterChanges(i.ADD)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,n){const i=this._items,s=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,u.Os)((()=>this._dispatchChange()))),e){if(o=i.splice(t,e),this.hasEventListener("before-remove")){const e=y.acquire();e.target=this,e.cancellable=!0;for(let n=0,s=o.length;n<s;n++)r=o[n],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(n,1),i.splice(t,0,r),t+=1,n-=1,s-=1);y.release(e)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const t=y.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let n=0;n<e;n++)t.reset(o[n]),this.emit("after-remove",t);y.release(t)}}if(n&&n.length){if(s){const t=[];for(const e of n){const n=s.ensureType(e);null==n&&null!=e||t.push(n)}n=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const s=y.acquire();s.target=this,s.cancellable=!0;const a=y.acquire();a.target=this,a.cancellable=!1;for(const l of n)e?(s.reset(l),this.emit("before-add",s),s.defaultPrevented||(o?i.push(l):i.splice(t++,0,l),this._set("length",i.length),r&&(a.reset(l),this.emit("after-add",a)))):(o?i.push(l):i.splice(t++,0,l),this._set("length",i.length),a.reset(l),this.emit("after-add",a));y.release(a),y.release(s)}else{if(o)for(const t of n)i.push(t);else i.splice(t,0,...n);this._set("length",i.length)}}return(n&&n.length||o&&o.length)&&this._notifyChangeEvent(n,o),o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const n=y.acquire();n.target=this,n.cancellable=!0,n.type=t,this.emit("before-changes",n),e=n.defaultPrevented,y.release(n)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=y.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),y.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;w.clear(),P.clear(),C.clear();for(const{added:e,removed:n}of t){if(e)if(0===C.size&&0===P.size)for(const t of e)w.add(t);else for(const t of e)P.has(t)?(C.add(t),P.delete(t)):C.has(t)||w.add(t);if(n)if(0===C.size&&0===w.size)for(const t of n)P.add(t);else for(const t of n)w.has(t)?w.delete(t):(C.delete(t),P.add(t))}const n=r.Z.acquire();w.forEach((t=>{n.push(t)}));const i=r.Z.acquire();P.forEach((t=>{i.push(t)}));const s=this._items,o=e.items,a=r.Z.acquire();if(C.forEach((t=>{o.indexOf(t)!==s.indexOf(t)&&a.push(t)})),e.listeners&&(n.length||i.length||a.length)){const t={target:this,added:n,removed:i,moved:a},s=e.listeners.length;for(let n=0;n<s;n++){const i=e.listeners[n];i.removed||i.callback.call(this,t)}}r.Z.release(n),r.Z.release(i),r.Z.release(a)}w.clear(),P.clear(),C.clear()}};I.ofType=t=>{if(!t)return c;if(R.has(t))return R.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const n in t.typeMap){const i=t.typeMap[n].prototype.declaredClass;e?e+=` | ${i}`:e=i}let n=class extends c{};return(0,s._)([(0,p.c)({Type:t,ensureType:"function"==typeof t?(0,d.se)(t):(0,d.N7)(t)})],n.prototype,"itemType",void 0),n=(0,s._)([(0,_.j)(`esri.core.Collection<${e}>`)],n),R.set(t,n),n},(0,s._)([(0,m.Cb)()],I.prototype,"length",void 0),(0,s._)([(0,m.Cb)()],I.prototype,"items",null),I=c=(0,s._)([(0,_.j)("esri.core.Collection")],I);const O=I},52421:(t,e,n)=>{function i(t){return(e,n)=>{e[n]=t}}n.d(e,{c:()=>i})},70921:(t,e,n)=>{n.d(e,{R:()=>r,Z:()=>s});var i=n(46791);function s(t,e,n=i.Z){return e||(e=new n),e===t||(e.removeAll(),(s=t)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?e.addMany(t):t&&e.add(t)),e;var s}function r(t){return t}},24133:(t,e,n)=>{n.d(e,{Q:()=>o});var i=n(67676),s=n(44553),r=n(88764);class o{constructor(t=9,e){this._compareMinX=c,this._compareMinY=u,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),v.prune(),b.prune(),M.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const i=this._toBBox;if(g(t,n))for(x.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;g(t,o)&&(n.leaf?e(r):_(t,o)?this._all(r,e):x.push(r))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!g(t,e))return!1;for(x.clear();e;){for(let i=0,s=e.children.length;i<s;i++){const s=e.children[i],r=e.leaf?n(s):s;if(g(t,r)){if(e.leaf||_(t,r))return!0;x.push(s)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new C([]),this}remove(t){if(!t)return this;let e,n=this._data,s=null,r=0,o=!1;const a=this._toBBox(t);for(b.clear(),M.clear();n||b.length>0;){if(n||(n=b.pop(),s=b.data[b.length-1],r=M.pop()??0,o=!0),n.leaf&&(e=(0,i.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),b.push(n),this._condense(b),this;o||n.leaf||!_(n,a)?s?(r++,n=s.children[r],o=!1):n=null:(b.push(n),M.push(r),r=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(v.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else v.pushArray(n.children);n=v.pop()??null}}_build(t,e,n,i){const s=n-e+1;let r=this._maxEntries;if(s<=r){const i=new C(t.slice(e,n+1));return a(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new R([]);o.height=i;const l=Math.ceil(s/r),h=l*Math.ceil(Math.sqrt(r));y(t,e,n,h,this._compareMinX);for(let s=e;s<=n;s+=h){const e=Math.min(s+h-1,n);y(t,s,e,l,this._compareMinY);for(let n=s;n<=e;n+=l){const s=Math.min(n+l-1,e);o.children.push(this._build(t,n,s,i-1))}}return a(o,this._toBBox),o}_chooseSubtree(t,e,n,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],a=d(o),l=m(t,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}e=n||e.children[0]}return e}_insert(t,e,n){const i=this._toBBox,s=n?t:i(t);b.clear();const r=this._chooseSubtree(s,this._data,e,b);for(r.children.push(t),h(r,s);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;this._adjustParentBBoxes(s,b,e)}_split(t,e){const n=t.data[e],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 o=n.children.splice(r,n.children.length-r),l=n.leaf?new C(o):new R(o);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let i,s,r;i=s=1/0;for(let o=e;o<=n-e;o++){const e=l(t,0,o,this._toBBox),a=l(t,o,n,this._toBBox),h=p(e,a),c=d(e)+d(a);h<i?(i=h,r=o,s=c<s?c:s):h===i&&c<s&&(s=c,r=o)}return r}_chooseSplitAxis(t,e,n){const i=t.leaf?this._compareMinX:c,s=t.leaf?this._compareMinY:u;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,s)&&t.children.sort(i)}_allDistMargin(t,e,n,i){t.children.sort(i);const s=this._toBBox,r=l(t,0,e,s),o=l(t,n-e,n,s);let a=f(r)+f(o);for(let i=e;i<n-e;i++){const e=t.children[i];h(r,t.leaf?s(e):e),a+=f(r)}for(let i=n-e-1;i>=e;i--){const e=t.children[i];h(o,t.leaf?s(e):e),a+=f(o)}return a}_adjustParentBBoxes(t,e,n){for(let i=n;i>=0;i--)h(e.data[i],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const s=t.data[e-1],r=s.children;r.splice((0,i.cq)(r,n,r.length,s.indexHint),1)}else this.clear();else a(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,i,s){s||(s=new C([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=e;o<n;o++)r=t.children[o],h(s,t.leaf?i(r):r);return s}function h(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function p(t,e){const n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function _(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t,e,n,i,s){const o=[e,n];for(;o.length;){const e=o.pop(),n=o.pop();if(e-n<=i)continue;const a=n+Math.ceil((e-n)/i/2)*i;(0,r.q)(t,a,n,e,s),o.push(n,a,a,e)}}const x=new s.Z,v=new s.Z,b=new s.Z,M=new s.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class C extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,n)=>{n.d(e,{N1:()=>d,YP:()=>l,Z_:()=>p,gx:()=>h,nn:()=>_,on:()=>u,tX:()=>g});var i=n(91460),s=n(50758),r=n(70586),o=n(95330),a=n(26258);function l(t,e,n={}){return c(t,e,n,f)}function h(t,e,n={}){return c(t,e,n,m)}function c(t,e,n={},i){let s=null;const o=n.once?(t,n)=>{i(t)&&((0,r.hw)(s),e(t,n))}:(t,n)=>{i(t)&&e(t,n)};if(s=(0,a.aQ)(t,o,n.sync,n.equals),n.initial){const e=t();o(e,e)}return s}function u(t,e,n,o={}){let a=null,h=null,c=null;function u(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(t){o.once&&o.once&&(0,r.hw)(c),n(t)}const f=l(t,((t,n)=>{u(),(0,i.vT)(t)&&(a=t,h=(0,i.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return c=(0,s.kB)((()=>{f.remove(),u()})),c}function d(t,e){return function(t,e,n){if((0,o.Hc)(n))return Promise.reject((0,o.zE)());const i=t();if(e?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.hw)(a)}return new Promise(((i,r)=>{a=(0,s.AL)([(0,o.fu)(n,(()=>{l(),r((0,o.zE)())})),c(t,(t=>{l(),i(t)}),{sync:!1,once:!0},e??f)])}))}(t,m,e)}function f(t){return!0}function m(t){return!!t}n(87538);const p={sync:!0},_={initial:!0},g={sync:!0,initial:!0}},19402:(t,e,n)=>{n.d(e,{R:()=>c});var i=n(43697),s=n(92036),r=n(50758),o=n(17445),a=n(1654),l=n(5600),h=n(52011);let c=class extends s.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll()}add(t,e,n={}){return this._installWatch(t,e,n,o.YP)}addWhen(t,e,n={}){return this._installWatch(t,e,n,o.gx)}addOnCollectionChange(t,e,{initial:n=!1,final:i=!1}={}){const s=++this._handleId;return this.addHandles([(0,o.on)(t,"after-changes",this._createSyncUpdatingCallback(),o.Z_),(0,o.on)(t,"change",e,{onListenerAdd:n?t=>e({added:t.toArray(),removed:[]}):void 0,onListenerRemove:i?t=>e({added:[],removed:t.toArray()}):void 0})],s),(0,r.kB)((()=>this.removeHandles(s)))}addPromise(t){if(null==t)return t;const e=++this._handleId;this.addHandles((0,r.kB)((()=>{this._pendingPromises.delete(t)&&(0!==this._pendingPromises.size||this.hasHandles(u)||this._set("updating",!1))})),e),this._pendingPromises.add(t),this._set("updating",!0);const n=()=>this.removeHandles(e);return t.then(n,n),t}removeAll(){this._pendingPromises.clear(),this.removeAllHandles(),this._set("updating",!1)}_installWatch(t,e,n={},i){const s=++this._handleId;n.sync||this._installSyncUpdatingWatch(t,s);const o=i(t,e,n);return this.addHandles(o,s),(0,r.kB)((()=>this.removeHandles(s)))}_installSyncUpdatingWatch(t,e){const n=this._createSyncUpdatingCallback(),i=(0,o.YP)(t,n,{sync:!0,equals:()=>!1});return this.addHandles(i,e),i}_createSyncUpdatingCallback(){return()=>{this.removeHandles(u),++this._scheduleHandleId;const t=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this.addHandles((0,a.Os)((()=>{t===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this.removeHandles(u))})),u)}}};(0,i._)([(0,l.Cb)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,i._)([(0,h.j)("esri.core.support.UpdatingHandles")],c);const u=-42},35463:(t,e,n)=>{n.d(e,{JE:()=>o,Nm:()=>r,rJ:()=>a}),n(80442);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},s={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function r(t,e,n){const i=new Date(t.getTime());if(e&&n){const t=s[n],{getter:r,setter:o,multiplier:a}=t;if("months"===n){const t=function(t,e){const n=new Date(t,e+1,1);return n.setDate(0),n.getDate()}(i.getFullYear(),i.getMonth()+e);i.getDate()>t&&i.setDate(t)}i[o](i[r]()+e*a)}return i}function o(t,e){switch(e){case"milliseconds":return new Date(t.getTime());case"seconds":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());case"minutes":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes());case"hours":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate());case"weeks":return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay());case"months":return new Date(t.getFullYear(),t.getMonth(),1);case"years":return new Date(t.getFullYear(),0,1);case"decades":return new Date(t.getFullYear()-t.getFullYear()%10,0,1);case"centuries":return new Date(t.getFullYear()-t.getFullYear()%100,0,1);default:return new Date}}function a(t,e,n){return 0===t?0:t*i[e]/i[n]}},41123:(t,e,n)=>{n.d(e,{D:()=>s,z:()=>r});const i="randomUUID"in crypto;function s(){if(i)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function r(){return`{${s()}}`}},73913:(t,e,n)=>{n.d(e,{Sy:()=>l,UZ:()=>o,XZ:()=>a,x3:()=>h});var i=n(58901),s=n(82971),r=n(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:s.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:s.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=h(t);for(const t of n)for(const n of t)n[0]+=e;return t}function h(t){return(0,r.oU)(t)?t.rings:t.paths}},7383:(t,e,n)=>{n.r(e),n.d(e,{default:()=>ae});var i=n(43697),s=n(46791),r=n(20102),o=n(92604),a=n(16453),l=n(5600),h=n(90578),c=(n(67676),n(80442),n(71715)),u=n(52011),d=n(30556),f=n(87085),m=n(71612),p=n(38009),_=n(72965),g=n(3172),y=n(81271),x=n(41123),v=(n(75215),n(10699)),b=n(96674),M=n(83379),w=n(92036),P=n(21787),C=n(46521),R=n(4307),E=n(17896);const I=(0,n(65617).c)(),O=(0,C.c)(),B=(0,C.c)(),S=(0,C.c)();function A(t,e,n){return(0,E.s)(I,e[0],e[1],1),(0,E.t)(I,I,(0,P.t)(O,n)),0===I[2]?(0,R.s)(t,I[0],I[1]):(0,R.s)(t,I[0]/I[2],I[1]/I[2])}function Z(t,e,n){return T(B,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),T(S,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,P.m)(t,(0,P.b)(B,B),S),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function T(t,e,n,i,s,r,o,a,l){(0,P.c)(t,e,i,r,n,s,o,1,1,1),(0,E.s)(I,a,l,1),(0,P.b)(O,t);const[h,c,u]=(0,E.t)(I,I,(0,P.t)(O,O));return(0,P.c)(O,h,0,0,0,c,0,0,0,u),(0,P.m)(t,O,t)}var j=n(62357),D=n(97323),L=n(94139),Y=n(38913),X=n(44547),H=n(82971),V=n(2368);let N=class extends V.j{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:i}=(0,X.dz)(t,e);return i?null:i||n?n:(o.Z.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};N=(0,i._)([(0,u.j)("esri.layers.support.GeoreferenceBase")],N);const q=N,z=(0,C.c)(),F=(0,D.a)();let U=class extends w.Z{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,i._)([(0,l.Cb)()],U.prototype,"sourcePoint",void 0),(0,i._)([(0,l.Cb)({type:L.Z})],U.prototype,"mapPoint",void 0),U=(0,i._)([(0,u.j)("esri.layers.support.ControlPoint")],U);let W=class extends((0,b.eC)(q)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=H.Z.fromJSON(e.spatialReference),i=(0,C.f)(...e.coefficients,1);return t.map((t=>((0,R.s)(F,t.x,t.y),A(F,F,i),{sourcePoint:t,mapPoint:new L.Z({x:F[0],y:F[1],spatialReference:n})})))}writeControlPoints(t,e,n,i){if(null!=this.transform)null!=t&&k(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new r.Z("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:i?.layer,georeference:this});i?.messages?i.messages.push(t):o.Z.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(z);if(null==t||!k(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,i){const s=(0,D.f)(0,n),r=(0,D.f)(0,0),o=(0,D.f)(e,0),a=(0,D.f)(e,n);return A(s,s,t),A(r,r,t),A(o,o,t),A(a,a,t),new Y.Z({rings:[[s,r,o,a,s]],spatialReference:i})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!k(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:i}=this,{rings:[[s,r,o,a]]}=t,l={sourcePoint:(0,j.vW)(0,i),mapPoint:new L.Z({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,j.vW)(0,0),mapPoint:new L.Z({x:r[0],y:r[1],spatialReference:e})},c={sourcePoint:(0,j.vW)(n,0),mapPoint:new L.Z({x:o[0],y:o[1],spatialReference:e})},u={sourcePoint:(0,j.vW)(n,i),mapPoint:new L.Z({x:a[0],y:a[1],spatialReference:e})};k(l)&&k(h)&&k(c)&&k(u)&&(rt(z,l,h,c,u),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,R.s)(F,t.x,t.y),A(F,F,z),{sourcePoint:t,mapPoint:new L.Z({x:F[0],y:F[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,P.e)((0,C.c)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!k(this.controlPoints[0]))return null;(0,R.s)(F,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return A(F,F,this.transform),new L.Z({x:F[0],y:F[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!k(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,X.dz)(t,e).geometry)?null:((0,R.s)(F,t.x,t.y),A(F,F,this.inverseTransform),(0,j.vW)(F[0],F[1]))}_updateTransform(t){const{controlPoints:e,width:n,height:i}=this;if(!(null!=e&&n>0&&i>0))return null;const[s,r,o,a]=e;if(!k(s))return null;const l=s.mapPoint.spatialReference,h=this._projectControlPoint(r,l),c=this._projectControlPoint(o,l),u=this._projectControlPoint(a,l);if(!h.valid||!c.valid||!u.valid)return null;if(!k(h.controlPoint))return null;null==t&&(t=(0,C.c)());let d=null;return d=k(c.controlPoint)&&k(u.controlPoint)?rt(t,s,h.controlPoint,c.controlPoint,u.controlPoint):k(c.controlPoint)?function(t,e,n,i){return st(J,Q,e),st(G,tt,n),st($,et,i),(0,R.l)(K,J,G,.5),(0,R.r)(K,$,K,Math.PI),(0,R.l)(nt,Q,tt,.5),(0,R.r)(nt,et,nt,Math.PI),ht(t,J,G,$,K,Q,tt,et,nt)}(t,s,h.controlPoint,c.controlPoint):function(t,e,n){return st(J,Q,e),st(G,tt,n),(0,R.r)($,G,J,it),(0,R.r)(K,J,G,it),(0,R.r)(et,tt,Q,-it),(0,R.r)(nt,Q,tt,-it),ht(t,J,G,$,K,Q,tt,et,nt)}(t,s,h.controlPoint),d.every((t=>0===t))?null:d}_projectControlPoint(t,e){if(!k(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:i}=t,{geometry:s,pending:r}=(0,X.dz)(i,e);return r?{valid:!1,controlPoint:null}:r||s?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:s}}:(o.Z.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:i.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function k(t){return null!=t&&null!=t.sourcePoint&&null!=t.mapPoint}(0,i._)([(0,l.Cb)({type:[U],json:{write:{allowNull:!1,isRequired:!0}}})],W.prototype,"controlPoints",void 0),(0,i._)([(0,c.r)("controlPoints")],W.prototype,"readControlPoints",null),(0,i._)([(0,d.c)("controlPoints")],W.prototype,"writeControlPoints",null),(0,i._)([(0,l.Cb)()],W.prototype,"coords",null),(0,i._)([(0,l.Cb)({json:{write:!0}})],W.prototype,"height",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],W.prototype,"inverseTransform",null),(0,i._)([(0,l.Cb)({readOnly:!0})],W.prototype,"transform",null),(0,i._)([(0,l.Cb)({json:{write:!0}})],W.prototype,"width",void 0),W=(0,i._)([(0,u.j)("esri.layers.support.ControlPointsGeoreference")],W);const J=(0,D.a)(),G=(0,D.a)(),$=(0,D.a)(),K=(0,D.a)(),Q=(0,D.a)(),tt=(0,D.a)(),et=(0,D.a)(),nt=(0,D.a)(),it=Math.PI/2;function st(t,e,n){(0,R.s)(t,n.sourcePoint.x,n.sourcePoint.y),(0,R.s)(e,n.mapPoint.x,n.mapPoint.y)}function rt(t,e,n,i,s){return st(J,Q,e),st(G,tt,n),st($,et,i),st(K,nt,s),ht(t,J,G,$,K,Q,tt,et,nt)}const ot=new Array(8).fill(0),at=new Array(8).fill(0);function lt(t,e,n,i,s){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=i[0],t[5]=i[1],t[6]=s[0],t[7]=s[1],t}function ht(t,e,n,i,s,r,o,a,l){return Z(t,lt(ot,e,n,i,s),lt(at,r,o,a,l))}const ct=W;let ut=class extends q{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:i}=this;if(null==t||null==e||null==n||null==i)return null;const s=t.spatialReference;return e=this.projectOrWarn(e,s),n=this.projectOrWarn(n,s),i=this.projectOrWarn(i,s),null==e||null==n||null==i?null:new Y.Z({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[i.x,i.y],[n.x,n.y]]],spatialReference:s})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[i,s,r,o]]}=t;this.bottomLeft=new L.Z({x:i[0],y:i[1],spatialReference:n}),this.topLeft=new L.Z({x:s[0],y:s[1],spatialReference:n}),this.topRight=new L.Z({x:r[0],y:r[1],spatialReference:n}),this.bottomRight=new L.Z({x:o[0],y:o[1],spatialReference:n})}};(0,i._)([(0,l.Cb)()],ut.prototype,"coords",null),(0,i._)([(0,l.Cb)({type:L.Z})],ut.prototype,"bottomLeft",void 0),(0,i._)([(0,l.Cb)({type:L.Z})],ut.prototype,"bottomRight",void 0),(0,i._)([(0,l.Cb)({type:L.Z})],ut.prototype,"topLeft",void 0),(0,i._)([(0,l.Cb)({type:L.Z})],ut.prototype,"topRight",void 0),ut=(0,i._)([(0,u.j)("esri.layers.support.CornersGeoreference")],ut);const dt=ut;var ft=n(22021),mt=n(46851),pt=n(6570);let _t=class extends q{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:i,spatialReference:s}=this.extent;let r;if(this.rotation){const{x:s,y:o}=this.extent.center,a=gt(s,o,this.rotation);r=[a(t,e),a(t,i),a(n,i),a(n,e)],r.push(r[0])}else r=[[t,e],[t,i],[n,i],[n,e],[t,e]];return new Y.Z({rings:[r],spatialReference:s})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(null==(t=this.projectOrWarn(t,e))||null==t.extent)return;const{rings:[[n,i,s]],extent:{center:{x:r,y:o}}}=t,a=(0,ft.BV)(Math.PI/2-Math.atan2(i[1]-n[1],i[0]-n[0])),l=gt(r,o,-a),[h,c]=l(n[0],n[1]),[u,d]=l(s[0],s[1]);this.extent=new pt.Z({xmin:h,ymin:c,xmax:u,ymax:d,spatialReference:e}),this.rotation=a}};function gt(t,e,n){const i=(0,mt.t)(n),s=Math.cos(i),r=Math.sin(i);return(n,i)=>[s*(n-t)+r*(i-e)+t,s*(i-e)-r*(n-t)+e]}(0,i._)([(0,l.Cb)()],_t.prototype,"coords",null),(0,i._)([(0,l.Cb)({type:pt.Z})],_t.prototype,"extent",void 0),(0,i._)([(0,l.Cb)({type:Number})],_t.prototype,"rotation",void 0),_t=(0,i._)([(0,u.j)("esri.layers.support.ExtentAndRotationGeoreference")],_t);const yt={key:"type",base:q,typeMap:{"control-points":ct,corners:dt,"extent-and-rotation":_t}};let xt=class extends((0,v.iv)((0,b.eC)(M.Z))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return ct.fromJSON(t)}};(0,i._)([(0,l.Cb)({types:yt,json:{write:!0}})],xt.prototype,"georeference",void 0),(0,i._)([(0,c.r)("georeference")],xt.prototype,"readGeoreference",null),(0,i._)([(0,l.Cb)()],xt.prototype,"opacity",void 0),xt=(0,i._)([(0,u.j)("esri.layers.support.MediaElementBase")],xt);const vt=xt;var bt=n(66094),Mt=n(25929);let wt=class extends vt{constructor(t){super(t),this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,g.default)(t,{responseType:"image"}).then((({data:t})=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new r.Z("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}readImage(t,e,n){return(0,Mt.f)(e.url,n)}writeImage(t,e,n,i){if(null==t)return;const s=i?.portalItem,r=i?.resources;if(!s||!r)return void("string"==typeof t&&(e[n]=(0,Mt.t)(t,i)));const o="string"!=typeof t||(0,y.HK)(t)||(0,y.jc)(t)?null:t;if(o){if(null==(0,Mt.i)(o))return void(e[n]=o);const t=(0,Mt.t)(o,{...i,verifyItemRelativeUrls:i&&i.verifyItemRelativeUrls?{writtenUrls:i.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},Mt.M.NO);if(s&&t&&!(0,y.YP)(t))return r.toKeep.push({resource:s.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",r.pendingOperations.push(Ct(t).then((t=>{const i=function(t,e){const n=(0,x.D)(),i=`${(0,y.v_)("media",n)}.${(0,bt.B)(t)}`;return e.resourceFromPath(i)}(t,s);e[n]=i.itemRelativeUrl,r.toAdd.push({resource:i,content:t,compress:!1,finish:t=>{this.image=t.url}})})))}};(0,i._)([(0,l.Cb)({readOnly:!0})],wt.prototype,"content",void 0),(0,i._)([(0,l.Cb)({json:{name:"url",type:String}})],wt.prototype,"image",void 0),(0,i._)([(0,c.r)("image",["url"])],wt.prototype,"readImage",null),(0,i._)([(0,d.c)("image")],wt.prototype,"writeImage",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{name:"mediaType"}})],wt.prototype,"type",void 0),wt=(0,i._)([(0,u.j)("esri.layers.support.ImageElement")],wt);const Pt=wt;async function Ct(t){if("string"==typeof t){if((0,y.jc)(t)){const{data:e}=await(0,g.default)(t,{responseType:"blob"});return e}return(0,y.HK)(t)?(0,y.fw)(t):Ct((await(0,g.default)(t,{responseType:"image"})).data)}return new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,i=document.createElement("canvas"),s=i.getContext("2d");return i.width=e,i.height=n,t instanceof HTMLImageElement?s.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&s.putImageData(t,0,0),i}(t).toBlob(e)))}n(66577);var Rt=n(70921),Et=n(32448),It=n(61247),Ot=n(19402);const Bt=t=>{let e=class extends t{constructor(){super(...arguments),this._handles=new It.Z,this._updatingHandles=new Ot.R}destroy(){this.destroyed||(this._handles.destroy(),this._updatingHandles.destroy())}get handles(){return this._handles}get updatingHandles(){return this._updatingHandles}};return(0,i._)([(0,l.Cb)({readOnly:!0})],e.prototype,"handles",null),(0,i._)([(0,l.Cb)({readOnly:!0})],e.prototype,"updatingHandles",null),e=(0,i._)([(0,u.j)("esri.core.HandleOwner")],e),e};let St=class extends(Bt(w.Z)){};St=(0,i._)([(0,u.j)("esri.core.HandleOwner")],St);var At=n(609),Zt=n(95330),Tt=n(17445),jt=n(24470),Dt=n(87416),Lt=n(8744),Yt=n(37549),Xt=n(20322),Ht=n(86662),Vt=n(33955),Nt=n(73913);function qt(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:i,ymax:s,xmin:r,xmax:o}=t,a=t.xmax-t.xmin,[l,h]=e.valid,{x:c,frameId:u}=Ft(t.xmin,e),{x:d,frameId:f}=Ft(t.xmax,e),m=c===d&&a>0;if(a>2*h){const t={xmin:r<o?c:d,ymin:i,xmax:h,ymax:s},e={xmin:l,ymin:i,xmax:r<o?d:c,ymax:s},a={xmin:0,ymin:i,xmax:h,ymax:s},m={xmin:l,ymin:i,xmax:0,ymax:s},p=[],_=[];Ut(t,a)&&p.push(u),Ut(t,m)&&_.push(u),Ut(e,a)&&p.push(f),Ut(e,m)&&_.push(f);for(let t=u+1;t<f;t++)p.push(t),_.push(t);n.push(new Jt(t,[u]),new Jt(e,[f]),new Jt(a,p),new Jt(m,_))}else c>d||m?n.push(new Jt({xmin:c,ymin:i,xmax:h,ymax:s},[u]),new Jt({xmin:l,ymin:i,xmax:d,ymax:s},[f])):n.push(new Jt({xmin:c,ymin:i,xmax:d,ymax:s},[u]));return n}(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}function zt(t,e,n){if(Array.isArray(t)){const i=t[0];if(i>e){const n=(0,Nt.XZ)(i,e);t[0]=i+n*(-2*e)}else if(i<n){const e=(0,Nt.XZ)(i,n);t[0]=i+e*(-2*n)}}else{const i=t.x;if(i>e){const n=(0,Nt.XZ)(i,e);t.x+=n*(-2*e)}else if(i<n){const e=(0,Nt.XZ)(i,n);t.x+=e*(-2*n)}}return t}function Ft(t,e){const[n,i]=e.valid,s=2*i;let r,o=0;return t>i?(r=Math.ceil(Math.abs(t-i)/s),t-=r*s,o=r):t<n&&(r=Math.ceil(Math.abs(t-n)/s),t+=r*s,o=-r),{x:t,frameId:o}}function Ut(t,e){const{xmin:n,ymin:i,xmax:s,ymax:r}=e;return Wt(t,n,i)&&Wt(t,n,r)&&Wt(t,s,r)&&Wt(t,s,i)}function Wt(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function kt(t,e,n=!0){const i=!(0,Vt.l9)(t);if(i&&(0,Ht.Zy)(t),n)return(new $t).cut(t,e);const s=i?t.rings:t.paths,r=i?4:2,o=s.length,a=-2*e;for(let t=0;t<o;t++){const e=s[t];if(e&&e.length>=r){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);s.push(t)}}return i?t.rings=s:t.paths=s,t}class Jt{constructor(t,e){this.extent=t,this.frameIds=e}}const Gt=(0,jt.Ue)();class $t{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const i=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=i;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const i=t.length;i>1&&t[i-1][0]===e&&t[i-2][0]===e?t[i-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Kt=class extends w.Z{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t||null==t.extent?null:(0,jt.oJ)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,X.dz)(t,this.spatialReference).geometry}get normalizedCoords(){return Y.Z.fromJSON(function(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,Lt.C5)(n),s="toJSON"in t?t.toJSON():t;if(!i)return s;const r=(0,Lt.sS)(n)?102100:4326,o=Nt.UZ[r].maxX,a=Nt.UZ[r].minX;if((0,Vt.wp)(s))return zt(s,o,a);if((0,Vt.aW)(s))return s.points=s.points.map((t=>zt(t,o,a))),s;if((0,Vt.YX)(s))return qt(s,i);if((0,Vt.oU)(s)||(0,Vt.l9)(s)){const t=(0,Xt.$P)(Gt,s),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},i=(0,Nt.XZ)(n.xmin,a)*(2*o),r=0===i?s:(0,Nt.Sy)(s,i);return n.xmin+=i,n.xmax+=i,n.xmax>o?kt(r,o,e):n.xmin<a?kt(r,a,e):r}return s}(this.coords,!0))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,jt.oJ)(t):null}};(0,i._)([(0,l.Cb)()],Kt.prototype,"spatialReference",void 0),(0,i._)([(0,l.Cb)()],Kt.prototype,"element",void 0),(0,i._)([(0,l.Cb)()],Kt.prototype,"bounds",null),(0,i._)([(0,l.Cb)()],Kt.prototype,"coords",null),(0,i._)([(0,l.Cb)()],Kt.prototype,"normalizedCoords",null),(0,i._)([(0,l.Cb)()],Kt.prototype,"normalizedBounds",null),Kt=(0,i._)([(0,u.j)("esri.layers.support.MediaElementView")],Kt);let Qt=class extends vt{constructor(t){super(t),this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new r.Z("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):o.Z.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{t.oncanplay=()=>{t.oncanplay=null,t.play().then(e,n)},"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src=t.src)}))}};(0,i._)([(0,l.Cb)({readOnly:!0})],Qt.prototype,"content",void 0),(0,i._)([(0,l.Cb)()],Qt.prototype,"video",null),Qt=(0,i._)([(0,u.j)("esri.layers.support.VideoElement")],Qt);const te=Qt,ee={key:"type",defaultKeyValue:"image",base:vt,typeMap:{image:Pt,video:te}},ne=s.Z.ofType(ee);let ie=class extends(M.Z.LoadableMixin((0,At.v)(Bt(Et.Z.EventedAccessor)))){constructor(t){super(t),this._index=new Yt.H,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.handles.remove(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Kt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const i=(0,Tt.YP)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.handles.add(i,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new ne}async load(t){if((0,Zt.k_)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference&&null!=t.georeference.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:H.Z.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.handles.add(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,Rt.Z)(t,this._get("elements"),ne))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new pt.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):o.Z.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,X.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,Lt.fS)(t.spatialReference,this.spatialReference)?t:(0,X.iV)(t,this.spatialReference);if(!n)return[];const i=n.normalize(),s=[];for(const t of i)this._index.forEachInBounds((0,jt.oJ)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,Dt.Nl)(t,e)&&s.push(n)}));return s.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),s}_updateIndexForElement(t,e){const n=t.normalizedBounds,i=this._index.has(t),s=null!=n;this._index.delete(t),s&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(i!==s?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,i._)([(0,l.Cb)()],ie.prototype,"elements",null),(0,i._)([(0,l.Cb)({readOnly:!0})],ie.prototype,"fullExtent",null),(0,i._)([(0,l.Cb)()],ie.prototype,"spatialReference",null),ie=(0,i._)([(0,u.j)("esri.layers.support.LocalMediaElementSource")],ie);const se=ie;function re(t){return"object"==typeof t&&null!=t&&"type"in t}let oe=class extends((0,m.h)((0,_.M)((0,p.q)((0,a.R)(f.Z))))){constructor(t){super(t),this.effectiveSource=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this.source=new se}load(t){const e=this.source;if(!e)return this.addResolvingPromise(Promise.reject(new r.Z("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer."))),Promise.resolve(this);const n=re(e)?new se({elements:new s.Z([e])}):e;this._set("effectiveSource",n),this.spatialReference&&(n.spatialReference=this.spatialReference);const i=n.load(t).then((()=>{this.spatialReference=n.spatialReference}));return this.addResolvingPromise(i),Promise.resolve(this)}destroy(){this.effectiveSource?.destroy(),this.source?.destroy()}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"not-loaded"===this.loadStatus?this._set("source",t):o.Z.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new se({elements:new s.Z(t)}):t instanceof s.Z?new se({elements:t}):t:null}readSource(t,e,n){const i="image"===e.mediaType?new Pt:"video"===e.mediaType?new te:null;return i?.read(e,n),i}writeSource(t,e,n,i){t&&re(t)&&"image"===t.type?t.write(e,i):i?.messages&&i?.messages?.push(new r.Z("media-layer:unsupported-source","source must be an 'ImageElement'"))}};(0,i._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"effectiveSource",void 0),(0,i._)([(0,l.Cb)({type:String})],oe.prototype,"copyright",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"fullExtent",null),(0,i._)([(0,l.Cb)({type:["MediaLayer"]})],oe.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.Cb)({type:["show","hide"]})],oe.prototype,"listMode",void 0),(0,i._)([(0,l.Cb)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1}}})],oe.prototype,"source",null),(0,i._)([(0,h.p)("source")],oe.prototype,"castSource",null),(0,i._)([(0,c.r)("source",["url"])],oe.prototype,"readSource",null),(0,i._)([(0,d.c)("source")],oe.prototype,"writeSource",null),(0,i._)([(0,l.Cb)()],oe.prototype,"spatialReference",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"type",void 0),oe=(0,i._)([(0,u.j)("esri.layers.MediaLayer")],oe);const ae=oe},37549:(t,e,n)=>{n.d(e,{H:()=>a});var i=n(80442),s=n(24133),r=n(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.Q(9,(0,i.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,i)=>{t[e++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},66094:(t,e,n)=>{n.d(e,{B:()=>s});var i=n(81271);function s(t){return r[function(t){return t instanceof Blob?t.type:function(t){const e=(0,i.Ml)(t);return l[e]||o}(t.url)}(t)]||a}const r={},o="text/plain",a=r[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)r[l[t]]=t}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1724],{84552:(e,t,i)=>{i.d(t,{Z:()=>c});var r=i(43697),s=i(2368),n=i(96674),l=i(35463),o=i(5600),a=(i(75215),i(67676),i(80442),i(36030)),d=i(52011),u=i(78981);let p=class extends((0,s.J)(n.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,l.rJ)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,a.J)(u.v,{nonNullable:!0})],p.prototype,"unit",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,r._)([(0,d.j)("esri.TimeInterval")],p);const c=p},88387:(e,t,i)=>{i.r(t),i.d(t,{default:()=>W});var r,s=i(43697),n=(i(66577),i(51773)),l=(i(16050),i(12501),i(28756),i(92271),i(72529),i(5499),i(84382),i(81571),i(91423)),o=i(32400),a=i(3172),d=i(20102),u=i(50758),p=i(92604),c=i(16453),m=i(95330),y=i(5600),h=i(75215),f=(i(67676),i(80442),i(71715)),b=i(52011),w=i(86973),v=i(87085),g=i(17287),I=i(71612),_=i(17017),S=i(69637),C=i(6404),x=i(38009),j=i(16859),E=i(34760),T=i(72965),R=i(28294),P=i(21506),U=i(50957),F=i(1231),O=i(53518),Z=i(35671),L=i(54306),N=i(30707),k=i(96674);let D=r=class extends k.wq{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new r({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,s._)([(0,y.Cb)({type:Number,json:{write:!0}})],D.prototype,"age",void 0),(0,s._)([(0,y.Cb)({type:Number,json:{write:!0}})],D.prototype,"ageReceived",void 0),(0,s._)([(0,y.Cb)({type:Number,json:{write:!0}})],D.prototype,"displayCount",void 0),(0,s._)([(0,y.Cb)({type:Number,json:{write:!0}})],D.prototype,"maxObservations",void 0),D=r=(0,s._)([(0,b.j)("esri.layers.support.PurgeOptions")],D);const M=D;var A=i(40555),$=i(14165),q=i(32163),H=i(86787),J=i(82971),V=i(6570);const z=(0,O.v)();function G(e,t){return new d.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let B=class extends((0,C.M)((0,S.b)((0,I.h)((0,R.n)((0,T.M)((0,E.Q)((0,g.Y)((0,x.q)((0,j.I)((0,c.R)((0,_.N)(v.Z)))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new M,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=J.Z.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new d.Z("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(m.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,Z.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;const r=t.drawingInfo?.renderer;if(r){const e=(0,l.a)(r,t,i)||void 0;return e||p.Z.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,U.Ob)(t,i)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([i.e(4599),i.e(5660)]).then(i.bind(i,95047)),this.load()]),r=this.geometryType?w.M.toJSON(this.geometryType):null,{customParameters:s=null,definitionExpression:n=null,geometryDefinition:l=null,maxReconnectionAttempts:o=0,maxReconnectionInterval:a=20,spatialReference:d=this.spatialReference}=e||this.createConnectionParameters(),p=t(this.parsedUrl,this.spatialReference,d,r,{geometry:l,where:n},o,a,s??void 0),c=(0,u.AL)([this.on("send-message-to-socket",(e=>p.sendMessageToSocket(e))),this.on("send-message-to-client",(e=>p.sendMessageToClient(e)))]);return p.once("destroy",c.remove),p}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,q.eZ)(this,e)}createQuery(){const e=new $.Z;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let i=null;return this.fields.some((t=>(t.name===e&&(i=t.domain),!!i))),i}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}write(e,t){const i=t?.messages;return this.webSocketUrl?(i?.push(G(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(i?.push(G(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,a.default)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new d.Z("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find((e=>"oid"===e.type))?.name;if(!e)throw new d.Z("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new d.Z("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some((e=>e.name===this.objectIdField))||this.fields.push(new F.Z({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new d.Z("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,Z.YN)(this.renderer,this.fieldsIndex),(0,Z.UF)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField="__esri_stream_id__"),(0,A.y)(this,{origin:"service"})}};(0,s._)([(0,y.Cb)({type:String})],B.prototype,"copyright",void 0),(0,s._)([(0,y.Cb)({readOnly:!0})],B.prototype,"defaultPopupTemplate",null),(0,s._)([(0,y.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],B.prototype,"definitionExpression",void 0),(0,s._)([(0,y.Cb)({type:String})],B.prototype,"displayField",void 0),(0,s._)([(0,y.Cb)({type:H.Z})],B.prototype,"elevationInfo",void 0),(0,s._)([(0,y.Cb)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],B.prototype,"featureReduction",null),(0,s._)([(0,y.Cb)(z.fields)],B.prototype,"fields",void 0),(0,s._)([(0,y.Cb)(z.fieldsIndex)],B.prototype,"fieldsIndex",void 0),(0,s._)([(0,y.Cb)({type:V.Z,json:{name:"layerDefinition.definitionGeometry",write:!0}})],B.prototype,"geometryDefinition",void 0),(0,s._)([(0,y.Cb)({type:w.M.apiValues,json:{read:{reader:w.M.read}}})],B.prototype,"geometryType",void 0),(0,s._)([(0,y.Cb)(P.iR)],B.prototype,"labelsVisible",void 0),(0,s._)([(0,y.Cb)({type:[L.Z],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:N.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],B.prototype,"labelingInfo",void 0),(0,s._)([(0,y.Cb)(P.rn)],B.prototype,"legendEnabled",void 0),(0,s._)([(0,y.Cb)({type:["show","hide"]})],B.prototype,"listMode",void 0),(0,s._)([(0,y.Cb)({type:h.z8})],B.prototype,"maxReconnectionAttempts",void 0),(0,s._)([(0,y.Cb)({type:h.z8})],B.prototype,"maxReconnectionInterval",void 0),(0,s._)([(0,y.Cb)(P.u1)],B.prototype,"maxScale",void 0),(0,s._)([(0,y.Cb)(P.rO)],B.prototype,"minScale",void 0),(0,s._)([(0,y.Cb)({type:String})],B.prototype,"objectIdField",void 0),(0,s._)([(0,y.Cb)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],B.prototype,"operationalLayerType",void 0),(0,s._)([(0,y.Cb)(P.C_)],B.prototype,"popupEnabled",void 0),(0,s._)([(0,y.Cb)({type:n.Z,json:{name:"popupInfo",write:!0}})],B.prototype,"popupTemplate",void 0),(0,s._)([(0,y.Cb)({type:M})],B.prototype,"purgeOptions",void 0),(0,s._)([(0,y.Cb)({json:{read:!1,write:!1}})],B.prototype,"refreshInterval",void 0),(0,s._)([(0,y.Cb)({types:o.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:o.o,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],B.prototype,"renderer",null),(0,s._)([(0,f.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,f.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],B.prototype,"readRenderer",null),(0,s._)([(0,y.Cb)(P.YI)],B.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,y.Cb)()],B.prototype,"sourceJSON",void 0),(0,s._)([(0,y.Cb)({type:J.Z,json:{origins:{service:{read:{source:"spatialReference"}}}}})],B.prototype,"spatialReference",void 0),(0,s._)([(0,y.Cb)({json:{read:!1}})],B.prototype,"type",void 0),(0,s._)([(0,y.Cb)(P.HQ)],B.prototype,"url",void 0),(0,s._)([(0,y.Cb)({type:Number})],B.prototype,"updateInterval",void 0),(0,s._)([(0,y.Cb)({json:{read:!1,write:!1}})],B.prototype,"useViewTime",void 0),(0,s._)([(0,y.Cb)({type:String})],B.prototype,"webSocketUrl",void 0),B=(0,s._)([(0,b.j)("esri.layers.StreamLayer")],B);const W=B},17287:(e,t,i)=>{i.d(t,{Y:()=>a});var r=i(43697),s=i(92604),n=i(5600),l=(i(75215),i(67676),i(80442),i(52011)),o=i(66677);const a=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Nm)(e,s.Z.getLogger(this)))}};return(0,r._)([(0,n.Cb)()],t.prototype,"title",null),(0,r._)([(0,n.Cb)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,l.j)("esri.layers.mixins.ArcGISService")],t),t}},17017:(e,t,i)=>{i.d(t,{N:()=>l});var r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011));const l=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,s.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,n.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},69637:(e,t,i)=>{i.d(t,{b:()=>E});var r,s=i(43697),n=i(5600),l=(i(75215),i(67676),i(80442),i(52011)),o=i(20102),a=i(96674),d=i(78286),u=i(67760),p=i(66577),c=i(92835),m=i(35454),y=i(22974),h=i(14165);const f=new m.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),b=new m.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=r=class extends a.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:i,spatialRelationship:r,timeExtent:s,objectIds:n,units:l,distance:o}=this;return new h.Z({geometry:(0,y.d9)(i),objectIds:(0,y.d9)(n),spatialRelationship:r,timeExtent:(0,y.d9)(s),where:t,units:l,distance:o,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:s,objectIds:n,units:l,distance:o}=this;return new r({geometry:(0,y.d9)(t),objectIds:(0,y.d9)(n),spatialRelationship:i,timeExtent:(0,y.d9)(s),where:e,units:l,distance:o})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,s._)([(0,n.Cb)({types:p.qM,json:{write:!0}})],w.prototype,"geometry",void 0),(0,s._)([(0,n.Cb)({type:f.apiValues,json:{name:"spatialRel",read:{reader:f.read},write:{allowNull:!1,writer:f.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,s._)([(0,n.Cb)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,s._)([(0,n.Cb)({type:b.apiValues,json:{read:b.read,write:{writer:b.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,s._)([(0,n.Cb)({type:c.Z,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=r=(0,s._)([(0,l.j)("esri.layers.support.FeatureFilter")],w);const v=w;var g;const I={read:{reader:u.ij},write:{writer:u.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},_={read:{reader:u.ij},write:{writer:u.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},S={name:"showExcludedLabels",default:!0};let C=g=class extends a.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(t?.origin){if(i.filter){const e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new g({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,s._)([(0,n.Cb)({type:v,json:{write:{allowNull:!0,writer(e,t,i,r){const s=e?.write({},r);s&&0!==Object.keys(s).length?(0,d.RB)(i,s,t):(0,d.RB)(i,null,t)}}}})],C.prototype,"filter",void 0),(0,s._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":I,"portal-item":I}}})],C.prototype,"includedEffect",void 0),(0,s._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":_,"portal-item":_}}})],C.prototype,"excludedEffect",void 0),(0,s._)([(0,n.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":S,"portal-item":S}}})],C.prototype,"excludedLabelsVisible",void 0),C=g=(0,s._)([(0,l.j)("esri.layers.support.FeatureEffect")],C);const x=C,j={write:{allowNull:!0}},E=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,s._)([(0,n.Cb)({type:x,json:{origins:{"web-map":j,"portal-item":j}}})],t.prototype,"featureEffect",void 0),t=(0,s._)([(0,l.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},16859:(e,t,i)=>{i.d(t,{I:()=>_});var r=i(43697),s=i(68773),n=i(40330),l=i(3172),o=i(66643),a=i(20102),d=i(92604),u=i(70586),p=i(95330),c=i(81271),m=i(5600),y=(i(75215),i(67676),i(80442),i(71715)),h=i(52011),f=i(30556),b=i(84230),w=i(48522),v=i(15235),g=i(86082),I=i(14661);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new v.default({id:t.itemId,portal:i&&i.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:r}=await i.e(8062).then(i.bind(i,18062));return(0,p.k_)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.D_)(e)||d.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.r9)(e),!0))))}async _setUserPrivileges(e,t){if(!s.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.r9)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=e===i.id;if(r&&i.portal.user)return(0,I.Ss)(i);let s,l;if(r)s=i.portal.url;else try{s=await(0,b.oP)(this.url,t)}catch(e){(0,p.r9)(e)}if(!s||!(0,c.Zo)(s,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(n.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.r9)(e)}if(!l)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(r?await i.reload():(i=new v.default({id:e,portal:{url:s}}),await i.load(t)),i.portal.user)return(0,I.Ss)(i)}catch(e){(0,p.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=i,null==i||null==i.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=w.Z.getDefault();if(s&&s.loaded&&(0,c.Fv)(s.restUrl)===(0,c.Fv)(r))return s.user;const a=`${r}/community/self`,d=null!=e?e.signal:null,u=await(0,o.q6)((0,l.default)(a,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?g.default.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t&&t.portal,r=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||w.Z.getDefault());return i&&r&&!(0,c.tm)(r.restUrl,i.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,r._)([(0,m.Cb)({type:v.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,m.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,m.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,m.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,m.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,h.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},28294:(e,t,i)=>{i.d(t,{n:()=>c});var r=i(43697),s=i(92835),n=i(84552),l=i(5600),o=(i(75215),i(67676),i(80442),i(71715)),a=i(52011),d=i(35671),u=i(76259),p=i(78981);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,s=p.v.fromJSON(i.timeOffsetUnits);return r&&s?new n.Z({value:r,unit:s}):null}set timeInfo(e){(0,d.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,l.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,l.Cb)({type:n.Z})],t.prototype,"timeOffset",void 0),(0,r._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,l.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,i)=>{i.d(t,{Z:()=>h});var r=i(43697),s=i(92835),n=i(84552),l=i(2368),o=i(96674),a=i(5600),d=(i(75215),i(67676),i(80442),i(71715)),u=i(52011),p=i(30556),c=i(80216);function m(e,t){return n.Z.fromJSON({value:e,unit:t})}let y=class extends((0,l.J)(o.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new s.Z({start:i,end:r})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,r._)([(0,a.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,r._)([(0,a.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,r._)([(0,d.r)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,r._)([(0,p.c)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,r._)([(0,a.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,r._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,r._)([(0,p.c)("interval")],y.prototype,"writeInterval",null),(0,r._)([(0,a.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,r._)([(0,a.Cb)({type:c.Z,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"timeReference",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),y=(0,r._)([(0,u.j)("esri.layers.support.TimeInfo")],y);const h=y},30707:(e,t,i)=>{i.d(t,{a:()=>p,r:()=>d});var r=i(20102),s=i(22974),n=i(92604),l=i(54306);const o=n.Z.getLogger("esri.layers.support.labelingInfo"),a=/\[([^\[\]]+)\]/gi;function d(e,t,i){return e?e.map((e=>{const r=new l.Z;if(r.read(e,i),r.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;r.labelExpression=r.labelExpression.replaceAll(a,((t,i)=>`[${function(e,t){if(!t)return e;const i=e.toLowerCase();for(let e=0;e<t.length;e++){const r=t[e].name;if(r.toLowerCase()===i)return r}return e}(i,e)}]`))}return r})):null}const u={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null};function p(e,t){const i=(0,s.d9)(e);return i.some((e=>function(e,t){const i=e.labelPlacement,s=u[t];if(!e.symbol)return o.warn("No ILabelClass symbol specified."),!0;if(!s)return o.error(new r.Z("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),!0;if(!s.includes(i)){const r=s[0];i&&o.warn(`Found invalid label placement type ${i} for ${t}. Defaulting to ${r}`),e.labelPlacement=r}return!1}(e,t)))?[]:i}},78981:(e,t,i)=>{i.d(t,{v:()=>r});const r=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},40555:(e,t,i)=>{i.d(t,{y:()=>l});var r=i(66643),s=i(95330),n=i(20941);async function l(e,t,i){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const o=await(0,r.q6)(l.populateFromStyle());if((0,s.k_)(i),!1===o.ok){const i=o.error;t&&t.messages&&t.messages.push(new n.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},58333:(e,t,i)=>{i.d(t,{ET:()=>n,I4:()=>s,eG:()=>a,lF:()=>l,lj:()=>u,qP:()=>o,wW:()=>d});const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},l={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},o={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},d={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},u={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1724],{84552:(e,t,i)=>{i.d(t,{Z:()=>c});var r=i(43697),s=i(2368),n=i(96674),l=i(35463),o=i(5600),a=(i(75215),i(67676),i(80442),i(36030)),d=i(52011),u=i(78981);let p=class extends((0,s.J)(n.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,l.rJ)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,a.J)(u.v,{nonNullable:!0})],p.prototype,"unit",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,r._)([(0,d.j)("esri.TimeInterval")],p);const c=p},88387:(e,t,i)=>{i.r(t),i.d(t,{default:()=>W});var r,s=i(43697),n=(i(66577),i(51773)),l=(i(16050),i(12501),i(28756),i(92271),i(72529),i(5499),i(84382),i(81571),i(91423)),o=i(32400),a=i(3172),d=i(20102),u=i(50758),p=i(92604),c=i(16453),m=i(95330),y=i(5600),h=i(75215),f=(i(67676),i(80442),i(71715)),b=i(52011),w=i(86973),v=i(87085),g=i(17287),I=i(71612),_=i(17017),S=i(69637),C=i(6404),x=i(38009),j=i(16859),E=i(34760),T=i(72965),R=i(28294),P=i(21506),U=i(50957),F=i(1231),O=i(53518),Z=i(35671),L=i(54306),N=i(30707),k=i(96674);let D=r=class extends k.wq{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new r({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,s._)([(0,y.Cb)({type:Number,json:{write:!0}})],D.prototype,"age",void 0),(0,s._)([(0,y.Cb)({type:Number,json:{write:!0}})],D.prototype,"ageReceived",void 0),(0,s._)([(0,y.Cb)({type:Number,json:{write:!0}})],D.prototype,"displayCount",void 0),(0,s._)([(0,y.Cb)({type:Number,json:{write:!0}})],D.prototype,"maxObservations",void 0),D=r=(0,s._)([(0,b.j)("esri.layers.support.PurgeOptions")],D);const M=D;var A=i(40555),$=i(14165),q=i(32163),H=i(86787),J=i(82971),V=i(6570);const z=(0,O.v)();function G(e,t){return new d.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let B=class extends((0,C.M)((0,S.b)((0,I.h)((0,R.n)((0,T.M)((0,E.Q)((0,g.Y)((0,x.q)((0,j.I)((0,c.R)((0,_.N)(v.Z)))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new M,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=J.Z.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new d.Z("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(m.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,Z.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;const r=t.drawingInfo?.renderer;if(r){const e=(0,l.a)(r,t,i)||void 0;return e||p.Z.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,U.Ob)(t,i)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([i.e(4599),i.e(5660)]).then(i.bind(i,95047)),this.load()]),r=this.geometryType?w.M.toJSON(this.geometryType):null,{customParameters:s=null,definitionExpression:n=null,geometryDefinition:l=null,maxReconnectionAttempts:o=0,maxReconnectionInterval:a=20,spatialReference:d=this.spatialReference}=e||this.createConnectionParameters(),p=t(this.parsedUrl,this.spatialReference,d,r,{geometry:l,where:n},o,a,s??void 0),c=(0,u.AL)([this.on("send-message-to-socket",(e=>p.sendMessageToSocket(e))),this.on("send-message-to-client",(e=>p.sendMessageToClient(e)))]);return p.once("destroy",c.remove),p}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,q.eZ)(this,e)}createQuery(){const e=new $.Z;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let i=null;return this.fields.some((t=>(t.name===e&&(i=t.domain),!!i))),i}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}write(e,t){const i=t?.messages;return this.webSocketUrl?(i?.push(G(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(i?.push(G(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,a.default)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new d.Z("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find((e=>"oid"===e.type))?.name;if(!e)throw new d.Z("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new d.Z("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some((e=>e.name===this.objectIdField))||this.fields.push(new F.Z({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new d.Z("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,Z.YN)(this.renderer,this.fieldsIndex),(0,Z.UF)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField="__esri_stream_id__"),(0,A.y)(this,{origin:"service"})}};(0,s._)([(0,y.Cb)({type:String})],B.prototype,"copyright",void 0),(0,s._)([(0,y.Cb)({readOnly:!0})],B.prototype,"defaultPopupTemplate",null),(0,s._)([(0,y.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],B.prototype,"definitionExpression",void 0),(0,s._)([(0,y.Cb)({type:String})],B.prototype,"displayField",void 0),(0,s._)([(0,y.Cb)({type:H.Z})],B.prototype,"elevationInfo",void 0),(0,s._)([(0,y.Cb)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],B.prototype,"featureReduction",null),(0,s._)([(0,y.Cb)(z.fields)],B.prototype,"fields",void 0),(0,s._)([(0,y.Cb)(z.fieldsIndex)],B.prototype,"fieldsIndex",void 0),(0,s._)([(0,y.Cb)({type:V.Z,json:{name:"layerDefinition.definitionGeometry",write:!0}})],B.prototype,"geometryDefinition",void 0),(0,s._)([(0,y.Cb)({type:w.M.apiValues,json:{read:{reader:w.M.read}}})],B.prototype,"geometryType",void 0),(0,s._)([(0,y.Cb)(P.iR)],B.prototype,"labelsVisible",void 0),(0,s._)([(0,y.Cb)({type:[L.Z],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:N.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],B.prototype,"labelingInfo",void 0),(0,s._)([(0,y.Cb)(P.rn)],B.prototype,"legendEnabled",void 0),(0,s._)([(0,y.Cb)({type:["show","hide"]})],B.prototype,"listMode",void 0),(0,s._)([(0,y.Cb)({type:h.z8})],B.prototype,"maxReconnectionAttempts",void 0),(0,s._)([(0,y.Cb)({type:h.z8})],B.prototype,"maxReconnectionInterval",void 0),(0,s._)([(0,y.Cb)(P.u1)],B.prototype,"maxScale",void 0),(0,s._)([(0,y.Cb)(P.rO)],B.prototype,"minScale",void 0),(0,s._)([(0,y.Cb)({type:String})],B.prototype,"objectIdField",void 0),(0,s._)([(0,y.Cb)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],B.prototype,"operationalLayerType",void 0),(0,s._)([(0,y.Cb)(P.C_)],B.prototype,"popupEnabled",void 0),(0,s._)([(0,y.Cb)({type:n.Z,json:{name:"popupInfo",write:!0}})],B.prototype,"popupTemplate",void 0),(0,s._)([(0,y.Cb)({type:M})],B.prototype,"purgeOptions",void 0),(0,s._)([(0,y.Cb)({json:{read:!1,write:!1}})],B.prototype,"refreshInterval",void 0),(0,s._)([(0,y.Cb)({types:o.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:o.o,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],B.prototype,"renderer",null),(0,s._)([(0,f.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,f.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],B.prototype,"readRenderer",null),(0,s._)([(0,y.Cb)(P.YI)],B.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,y.Cb)()],B.prototype,"sourceJSON",void 0),(0,s._)([(0,y.Cb)({type:J.Z,json:{origins:{service:{read:{source:"spatialReference"}}}}})],B.prototype,"spatialReference",void 0),(0,s._)([(0,y.Cb)({json:{read:!1}})],B.prototype,"type",void 0),(0,s._)([(0,y.Cb)(P.HQ)],B.prototype,"url",void 0),(0,s._)([(0,y.Cb)({type:Number})],B.prototype,"updateInterval",void 0),(0,s._)([(0,y.Cb)({json:{read:!1,write:!1}})],B.prototype,"useViewTime",void 0),(0,s._)([(0,y.Cb)({type:String})],B.prototype,"webSocketUrl",void 0),B=(0,s._)([(0,b.j)("esri.layers.StreamLayer")],B);const W=B},17287:(e,t,i)=>{i.d(t,{Y:()=>a});var r=i(43697),s=i(92604),n=i(5600),l=(i(75215),i(67676),i(80442),i(52011)),o=i(66677);const a=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Nm)(e,s.Z.getLogger(this)))}};return(0,r._)([(0,n.Cb)()],t.prototype,"title",null),(0,r._)([(0,n.Cb)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,l.j)("esri.layers.mixins.ArcGISService")],t),t}},17017:(e,t,i)=>{i.d(t,{N:()=>l});var r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011));const l=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,s.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,n.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},69637:(e,t,i)=>{i.d(t,{b:()=>E});var r,s=i(43697),n=i(5600),l=(i(75215),i(67676),i(80442),i(52011)),o=i(20102),a=i(96674),d=i(78286),u=i(67760),p=i(66577),c=i(92835),m=i(35454),y=i(22974),h=i(14165);const f=new m.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),b=new m.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=r=class extends a.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:i,spatialRelationship:r,timeExtent:s,objectIds:n,units:l,distance:o}=this;return new h.Z({geometry:(0,y.d9)(i),objectIds:(0,y.d9)(n),spatialRelationship:r,timeExtent:(0,y.d9)(s),where:t,units:l,distance:o,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:s,objectIds:n,units:l,distance:o}=this;return new r({geometry:(0,y.d9)(t),objectIds:(0,y.d9)(n),spatialRelationship:i,timeExtent:(0,y.d9)(s),where:e,units:l,distance:o})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,s._)([(0,n.Cb)({types:p.qM,json:{write:!0}})],w.prototype,"geometry",void 0),(0,s._)([(0,n.Cb)({type:f.apiValues,json:{name:"spatialRel",read:{reader:f.read},write:{allowNull:!1,writer:f.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,s._)([(0,n.Cb)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,s._)([(0,n.Cb)({type:b.apiValues,json:{read:b.read,write:{writer:b.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,s._)([(0,n.Cb)({type:c.Z,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=r=(0,s._)([(0,l.j)("esri.layers.support.FeatureFilter")],w);const v=w;var g;const I={read:{reader:u.ij},write:{writer:u.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},_={read:{reader:u.ij},write:{writer:u.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},S={name:"showExcludedLabels",default:!0};let C=g=class extends a.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(t?.origin){if(i.filter){const e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in i)return t.messages?.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new g({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,s._)([(0,n.Cb)({type:v,json:{write:{allowNull:!0,writer(e,t,i,r){const s=e?.write({},r);s&&0!==Object.keys(s).length?(0,d.RB)(i,s,t):(0,d.RB)(i,null,t)}}}})],C.prototype,"filter",void 0),(0,s._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":I,"portal-item":I}}})],C.prototype,"includedEffect",void 0),(0,s._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":_,"portal-item":_}}})],C.prototype,"excludedEffect",void 0),(0,s._)([(0,n.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":S,"portal-item":S}}})],C.prototype,"excludedLabelsVisible",void 0),C=g=(0,s._)([(0,l.j)("esri.layers.support.FeatureEffect")],C);const x=C,j={write:{allowNull:!0}},E=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,s._)([(0,n.Cb)({type:x,json:{origins:{"web-map":j,"portal-item":j}}})],t.prototype,"featureEffect",void 0),t=(0,s._)([(0,l.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},16859:(e,t,i)=>{i.d(t,{I:()=>I});var r=i(43697),s=i(68773),n=i(40330),l=i(3172),o=i(66643),a=i(20102),d=i(92604),u=i(95330),p=i(81271),c=i(5600),m=(i(75215),i(67676),i(80442),i(71715)),y=i(52011),h=i(30556),f=i(84230),b=i(48522),w=i(15235),v=i(86082),g=i(14661);const I=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=null,this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new w.default({id:t.itemId,portal:i&&i.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:r}=await i.e(8062).then(i.bind(i,18062));return(0,u.k_)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,u.D_)(e)||d.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,u.r9)(e),!0))))}async _setUserPrivileges(e,t){if(!s.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,u.r9)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=e===i.id;if(r&&i.portal.user)return(0,g.Ss)(i);let s,l;if(r)s=i.portal.url;else try{s=await(0,f.oP)(this.url,t)}catch(e){(0,u.r9)(e)}if(!s||!(0,p.Zo)(s,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(n.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,u.r9)(e)}if(!l)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(r?await i.reload():(i=new w.default({id:e,portal:{url:s}}),await i.load(t)),i.portal.user)return(0,g.Ss)(i)}catch(e){(0,u.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,u.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=i,null==i||null==i.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=b.Z.getDefault();if(s&&s.loaded&&(0,p.Fv)(s.restUrl)===(0,p.Fv)(r))return s.user;const a=`${r}/community/self`,d=null!=e?e.signal:null,u=await(0,o.q6)((0,l.default)(a,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?v.default.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t&&t.portal,r=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||b.Z.getDefault());return i&&r&&!(0,p.tm)(r.restUrl,i.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,r._)([(0,c.Cb)({type:w.default})],t.prototype,"portalItem",null),(0,r._)([(0,m.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,h.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,c.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,c.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,c.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,c.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,y.j)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},28294:(e,t,i)=>{i.d(t,{n:()=>c});var r=i(43697),s=i(92835),n=i(84552),l=i(5600),o=(i(75215),i(67676),i(80442),i(71715)),a=i(52011),d=i(35671),u=i(76259),p=i(78981);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,s=p.v.fromJSON(i.timeOffsetUnits);return r&&s?new n.Z({value:r,unit:s}):null}set timeInfo(e){(0,d.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,l.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,l.Cb)({type:n.Z})],t.prototype,"timeOffset",void 0),(0,r._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,l.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,i)=>{i.d(t,{Z:()=>h});var r=i(43697),s=i(92835),n=i(84552),l=i(2368),o=i(96674),a=i(5600),d=(i(75215),i(67676),i(80442),i(71715)),u=i(52011),p=i(30556),c=i(80216);function m(e,t){return n.Z.fromJSON({value:e,unit:t})}let y=class extends((0,l.J)(o.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new s.Z({start:i,end:r})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,r._)([(0,a.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,r._)([(0,a.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,r._)([(0,d.r)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,r._)([(0,p.c)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,r._)([(0,a.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,r._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,r._)([(0,p.c)("interval")],y.prototype,"writeInterval",null),(0,r._)([(0,a.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,r._)([(0,a.Cb)({type:c.Z,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"timeReference",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),y=(0,r._)([(0,u.j)("esri.layers.support.TimeInfo")],y);const h=y},30707:(e,t,i)=>{i.d(t,{a:()=>p,r:()=>d});var r=i(20102),s=i(22974),n=i(92604),l=i(54306);const o=n.Z.getLogger("esri.layers.support.labelingInfo"),a=/\[([^\[\]]+)\]/gi;function d(e,t,i){return e?e.map((e=>{const r=new l.Z;if(r.read(e,i),r.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;r.labelExpression=r.labelExpression.replaceAll(a,((t,i)=>`[${function(e,t){if(!t)return e;const i=e.toLowerCase();for(let e=0;e<t.length;e++){const r=t[e].name;if(r.toLowerCase()===i)return r}return e}(i,e)}]`))}return r})):null}const u={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null};function p(e,t){const i=(0,s.d9)(e);return i.some((e=>function(e,t){const i=e.labelPlacement,s=u[t];if(!e.symbol)return o.warn("No ILabelClass symbol specified."),!0;if(!s)return o.error(new r.Z("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),!0;if(!s.includes(i)){const r=s[0];i&&o.warn(`Found invalid label placement type ${i} for ${t}. Defaulting to ${r}`),e.labelPlacement=r}return!1}(e,t)))?[]:i}},78981:(e,t,i)=>{i.d(t,{v:()=>r});const r=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},40555:(e,t,i)=>{i.d(t,{y:()=>l});var r=i(66643),s=i(95330),n=i(20941);async function l(e,t,i){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const o=await(0,r.q6)(l.populateFromStyle());if((0,s.k_)(i),!1===o.ok){const i=o.error;t&&t.messages&&t.messages.push(new n.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},58333:(e,t,i)=>{i.d(t,{ET:()=>n,I4:()=>s,eG:()=>a,lF:()=>l,lj:()=>u,qP:()=>o,wW:()=>d});const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},l={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},o={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},d={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},u={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1900,4727],{10661:(e,t,n)=>{n.d(t,{s:()=>i});var r=n(42100);class i extends r.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},60437:(e,t,n)=>{n.d(t,{Gv:()=>f,HH:()=>l,JR:()=>m,TC:()=>a,Tn:()=>p,Ue:()=>i,al:()=>o,bZ:()=>h,cS:()=>y,dp:()=>u,fS:()=>b,is:()=>g,op:()=>d,pp:()=>s,t8:()=>c});var r=n(6570);function i(e=v){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,r,o,l,a=i()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=o,a[5]=l,a}function l(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.Z(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function s(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function p(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?c(e,f):i(f)}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function h(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function b(e,t,n){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(24470);const f=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];i()},1231:(e,t,n)=>{n.d(t,{Z:()=>g});var r,i=n(43697),o=n(35454),l=n(96674),a=n(5600),s=n(75215),u=(n(67676),n(80442),n(36030)),d=n(71715),p=n(52011),c=n(72729),y=n(86719);const m=new o.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let h=r=class extends l.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?m.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,i._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,i._)([(0,a.Cb)()],h.prototype,"description",void 0),(0,i._)([(0,d.r)("description")],h.prototype,"readDescription",null),(0,i._)([(0,a.Cb)({types:c.V5,json:{read:{reader:c.im},write:!0}})],h.prototype,"domain",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,i._)([(0,a.Cb)({type:s.z8,json:{write:!0}})],h.prototype,"length",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,i._)([(0,u.J)(y.v)],h.prototype,"type",void 0),(0,i._)([(0,a.Cb)()],h.prototype,"valueType",void 0),(0,i._)([(0,d.r)("valueType",["description"])],h.prototype,"readValueType",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=r=(0,i._)([(0,p.j)("esri.layers.support.Field")],h);const g=h},72729:(e,t,n)=>{n.d(t,{im:()=>x,V5:()=>w}),n(80442);var r,i=n(43697),o=n(22974),l=n(5600),a=(n(75215),n(36030)),s=n(52011),u=n(96674);n(67676);let d=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,l.Cb)({type:[String,Number],json:{write:!0}})],d.prototype,"code",void 0),d=r=(0,i._)([(0,s.j)("esri.layers.support.CodedValue")],d);const p=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,a.J)(p)],c.prototype,"type",void 0),c=(0,i._)([(0,s.j)("esri.layers.support.Domain")],c);const y=c;var m;let h=m=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,o.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,l.Cb)({type:[d],json:{write:!0}})],h.prototype,"codedValues",void 0),(0,i._)([(0,a.J)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=m=(0,i._)([(0,s.j)("esri.layers.support.CodedValueDomain")],h);const g=h;var b;n(92604),n(20102);let f=b=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,i._)([(0,a.J)({inherited:"inherited"})],f.prototype,"type",void 0),f=b=(0,i._)([(0,s.j)("esri.layers.support.InheritedDomain")],f);const v=f;var T;let V=T=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new T({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,l.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],V.prototype,"maxValue",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],V.prototype,"minValue",void 0),(0,i._)([(0,a.J)({range:"range"})],V.prototype,"type",void 0),V=T=(0,i._)([(0,s.j)("esri.layers.support.RangeDomain")],V);const _=V,w={key:"type",base:y,typeMap:{range:V,"coded-value":g,inherited:v}};function x(e){if(!e||!e.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return v.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>r});const r=new(n(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8636],{98636:(e,t,r)=>{r.r(t),r.d(t,{default:()=>j});var i,l=r(43697),a=r(3172),s=r(20102),n=r(68668),o=r(16453),c=r(95330),p=r(81271),u=r(5600),h=r(90578),d=(r(67676),r(80442),r(71715)),y=r(52011),f=r(30556),v=r(82971),m=r(87085),_=r(54295),b=r(46486),g=r(7944),S=r(17287),w=r(71612),C=r(17017),T=r(38009),O=r(16859),I=r(34760),L=r(72965),D=r(10343),R=r(66677),x=r(21506),M=r(90082),A=r(49867);const k=["Canvas/World_Dark_Gray_Base","Canvas/World_Dark_Gray_Reference","Canvas/World_Light_Gray_Base","Canvas/World_Light_Gray_Reference","Elevation/World_Hillshade","Elevation/World_Hillshade_Dark","Ocean/World_Ocean_Base","Ocean/World_Ocean_Reference","Ocean_Basemap","Reference/World_Boundaries_and_Places","Reference/World_Boundaries_and_Places_Alternate","Reference/World_Transportation","World_Imagery","World_Street_Map","World_Topo_Map"];let U=i=class extends((0,w.h)((0,L.M)((0,D.x)((0,b.Z)((0,g.O)((0,T.q)((0,O.I)((0,S.Y)((0,o.R)((0,I.Q)((0,_.V)((0,C.N)(m.Z))))))))))))){constructor(...e){super(...e),this.listMode="show",this.isReference=null,this.operationalLayerType="ArcGISTiledMapServiceLayer",this.resampling=!0,this.sourceJSON=null,this.spatialReference=null,this.path=null,this.sublayers=null,this.type="tile",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(c.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}get attributionDataUrl(){const e=this.parsedUrl?.path.toLowerCase();return e?this._getDefaultAttribution(this._getMapName(e)):null}readSpatialReference(e,t){return(e=e||t.tileInfo&&t.tileInfo.spatialReference)&&v.Z.fromJSON(e)}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const l=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray(),a=[],s={writeSublayerStructure:!1,...i};l.forEach((e=>{const t=e.write({},s);a.push(t)})),a.some((e=>Object.keys(e).length>1))&&(t.layers=a)}get tileServers(){return this._getDefaultTileServers(this.parsedUrl?.path)}castTileServers(e){return Array.isArray(e)?e.map((e=>(0,p.mN)(e).path)):null}fetchTile(e,t,r,i={}){const{signal:l}=i,s=this.getTileUrl(e,t,r),n={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,a.default)(s,n).then((e=>e.data))}async fetchImageBitmapTile(e,t,r,l={}){const{signal:s}=l;if(this.fetchTile!==i.prototype.fetchTile){const i=await this.fetchTile(e,t,r,l);return(0,M.V)(i,e,t,r,s)}const n=this.getTileUrl(e,t,r),o={responseType:"blob",signal:s,query:{...this.refreshParameters}},{data:c}=await(0,a.default)(n,o);return(0,M.V)(c,e,t,r,s)}getTileUrl(e,t,r){const i=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,l=(0,p.B7)({...this.parsedUrl?.query,blankTile:!i&&null,...this.customParameters,token:this.apiKey}),a=this.tileServers;return`${a&&a.length?a[t%a.length]:this.parsedUrl?.path}/tile/${e}/${t}/${r}${l?"?"+l:""}`}loadAll(){return(0,n.G)(this,(e=>{e(this.allSublayers)}))}_fetchService(e){return new Promise(((t,r)=>{if(this.sourceJSON){if(null!=this.sourceJSON.bandCount&&null!=this.sourceJSON.pixelSizeX)throw new s.Z("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");return void t({data:this.sourceJSON})}if(!this.parsedUrl)throw new s.Z("tile-layer:undefined-url","layer's url is not defined");const i=(0,R.Qc)(this.parsedUrl.path);if(null!=i&&"ImageServer"===i.serverType)throw new s.Z("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");(0,a.default)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t,r)})).then((t=>{let r=this.url;if(t.ssl&&(r=this.url=r.replace(/^http:/i,"https:")),this.sourceJSON=t.data,this.read(t.data,{origin:"service",url:this.parsedUrl}),10.1===this.version&&!(0,R.M8)(r))return this._fetchServerVersion(r,e).then((e=>{this.read({currentVersion:e})})).catch((()=>{}))}))}_fetchServerVersion(e,t){if(!(0,R.B5)(e))return Promise.reject();const r=e.replace(/(.*\/rest)\/.*/i,"$1")+"/info";return(0,a.default)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then((e=>{if(e.data&&e.data.currentVersion)return e.data.currentVersion;throw new s.Z("tile-layer:version-not-available")}))}_getMapName(e){const t=e.match(/^(?:https?:)?\/\/(server\.arcgisonline\.com|services\.arcgisonline\.com|ibasemaps-api\.arcgis\.com)\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/mapserver/i);return t?t[2]:void 0}_getDefaultAttribution(e){if(null==e)return null;let t;e=e.toLowerCase();for(let r=0,i=k.length;r<i;r++)if(t=k[r],t.toLowerCase().includes(e))return(0,p.hF)("//static.arcgis.com/attribution/"+t);return null}_getDefaultTileServers(e){if(null==e)return[];const t=-1!==e.search(/^(?:https?:)?\/\/server\.arcgisonline\.com/i),r=-1!==e.search(/^(?:https?:)?\/\/services\.arcgisonline\.com/i);return t||r?[e,e.replace(t?/server\.arcgisonline/i:/services\.arcgisonline/i,t?"services.arcgisonline":"server.arcgisonline")]:[]}get hasOverriddenFetchTile(){return!this.fetchTile[Z]}};(0,l._)([(0,u.Cb)({readOnly:!0})],U.prototype,"attributionDataUrl",null),(0,l._)([(0,u.Cb)({type:["show","hide","hide-children"]})],U.prototype,"listMode",void 0),(0,l._)([(0,u.Cb)({json:{read:!0,write:!0}})],U.prototype,"blendMode",void 0),(0,l._)([(0,u.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],U.prototype,"isReference",void 0),(0,l._)([(0,u.Cb)({readOnly:!0,type:["ArcGISTiledMapServiceLayer"]})],U.prototype,"operationalLayerType",void 0),(0,l._)([(0,u.Cb)({type:Boolean})],U.prototype,"resampling",void 0),(0,l._)([(0,u.Cb)()],U.prototype,"sourceJSON",void 0),(0,l._)([(0,u.Cb)({type:v.Z})],U.prototype,"spatialReference",void 0),(0,l._)([(0,d.r)("spatialReference",["spatialReference","tileInfo"])],U.prototype,"readSpatialReference",null),(0,l._)([(0,u.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],U.prototype,"path",void 0),(0,l._)([(0,u.Cb)({readOnly:!0})],U.prototype,"sublayers",void 0),(0,l._)([(0,f.c)("sublayers",{layers:{type:[A.Z]}})],U.prototype,"writeSublayers",null),(0,l._)([(0,u.Cb)({json:{read:!1,write:!1}})],U.prototype,"popupEnabled",void 0),(0,l._)([(0,u.Cb)()],U.prototype,"tileServers",null),(0,l._)([(0,h.p)("tileServers")],U.prototype,"castTileServers",null),(0,l._)([(0,u.Cb)({readOnly:!0,json:{read:!1}})],U.prototype,"type",void 0),(0,l._)([(0,u.Cb)(x.HQ)],U.prototype,"url",void 0),U=i=(0,l._)([(0,y.j)("esri.layers.TileLayer")],U);const Z=Symbol("default-fetch-tile");U.prototype.fetchTile[Z]=!0;const j=U},46486:(e,t,r)=>{r.d(t,{Z:()=>u});var i=r(43697),l=(r(66577),r(5600)),a=(r(75215),r(67676),r(80442),r(71715)),s=r(52011),n=r(11145),o=r(42238),c=r(28589),p=r(82971);const u=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,r){const i=t.capabilities?.includes("Tilemap");let{minLOD:l,maxLOD:a,minScale:s,maxScale:p}=t;if(null==l&&null==a&&0!==s&&0!==p){const e=e=>Math.round(1e4*e)/1e4;s=e(s||t.tileInfo.lods[0].scale),p=e(p||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const r of t.tileInfo.lods){const t=e(r.scale);l=t>=s?r.level:l,a=t>=p?r.level:a}}if(i)return new c.y({layer:this,minLOD:l,maxLOD:a});if(t.tileInfo){const e=new n.Z;return e.read(t.tileInfo,r),new o.Z(e,l,a)}return null}};return(0,i._)([(0,l.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,i._)([(0,l.Cb)()],t.prototype,"minScale",void 0),(0,i._)([(0,a.r)("service","minScale")],t.prototype,"readMinScale",null),(0,i._)([(0,l.Cb)()],t.prototype,"maxScale",void 0),(0,i._)([(0,a.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,i._)([(0,l.Cb)({type:p.Z})],t.prototype,"spatialReference",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],t.prototype,"supportsBlankTile",null),(0,i._)([(0,l.Cb)({type:n.Z})],t.prototype,"tileInfo",void 0),(0,i._)([(0,l.Cb)()],t.prototype,"tilemapCache",void 0),(0,i._)([(0,a.r)("service","tilemapCache",["capabilities","tileInfo"])],t.prototype,"readTilemapCache",null),(0,i._)([(0,l.Cb)()],t.prototype,"version",void 0),t=(0,i._)([(0,s.j)("esri.layers.mixins.ArcGISCachedService")],t),t}},42238:(e,t,r)=>{r.d(t,{Z:()=>a});var i=r(20102),l=r(95330);class a{constructor(e,t=0,r=e.lods.length-1){this.tileInfo=e,this.minLOD=t,this.maxLOD=r}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,r){const i=this.tileInfo?.lodAt(e);return!i||e<this.minLOD||e>this.maxLOD?"unavailable":i.cols&&i.rows?r>=i.cols[0]&&r<=i.cols[1]&&t>=i.rows[0]&&t<=i.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,r,a){await(0,l.Yn)(a);const s=this.getAvailability(e,t,r);if("unavailable"===s)throw new i.Z("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:r});return s}async fetchAvailabilityUpsample(e,t,r,i,a){await(0,l.Yn)(a),i.level=e,i.row=t,i.col=r;const s=this.tileInfo;return s.updateTileInfo(i),this.fetchAvailability(e,t,r,a).catch((e=>{if((0,l.D_)(e))throw e;if(s.upsampleTile(i))return this.fetchAvailabilityUpsample(i.level,i.row,i.col,i,a);throw e}))}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8636],{98636:(e,t,r)=>{r.r(t),r.d(t,{default:()=>j});var i,l=r(43697),a=r(3172),s=r(20102),n=r(68668),o=r(16453),c=r(95330),p=r(81271),h=r(5600),u=r(90578),d=(r(67676),r(80442),r(71715)),y=r(52011),f=r(30556),v=r(82971),m=r(87085),_=r(54295),b=r(46486),g=r(7944),S=r(17287),w=r(71612),C=r(17017),T=r(38009),O=r(16859),L=r(34760),D=r(72965),I=r(10343),x=r(66677),A=r(21506),R=r(90082),M=r(49867);const k=["Canvas/World_Dark_Gray_Base","Canvas/World_Dark_Gray_Reference","Canvas/World_Light_Gray_Base","Canvas/World_Light_Gray_Reference","Elevation/World_Hillshade","Elevation/World_Hillshade_Dark","Ocean/World_Ocean_Base","Ocean/World_Ocean_Reference","Ocean_Basemap","Reference/World_Boundaries_and_Places","Reference/World_Boundaries_and_Places_Alternate","Reference/World_Transportation","World_Imagery","World_Street_Map","World_Topo_Map"];let U=i=class extends((0,w.h)((0,D.M)((0,I.x)((0,b.Z)((0,g.O)((0,T.q)((0,O.I)((0,S.Y)((0,o.R)((0,L.Q)((0,_.V)((0,C.N)(m.Z))))))))))))){constructor(...e){super(...e),this.listMode="show",this.isReference=null,this.operationalLayerType="ArcGISTiledMapServiceLayer",this.resampling=!0,this.sourceJSON=null,this.spatialReference=null,this.path=null,this.sublayers=null,this.type="tile",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(c.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}get attributionDataUrl(){const e=this.parsedUrl?.path.toLowerCase();return e?this._getDefaultAttribution(this._getMapName(e)):null}readSpatialReference(e,t){return(e=e||t.tileInfo&&t.tileInfo.spatialReference)&&v.Z.fromJSON(e)}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const l=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray(),a=[],s={writeSublayerStructure:!1,...i};l.forEach((e=>{const t=e.write({},s);a.push(t)})),a.some((e=>Object.keys(e).length>1))&&(t.layers=a)}get tileServers(){return this._getDefaultTileServers(this.parsedUrl?.path)}castTileServers(e){return Array.isArray(e)?e.map((e=>(0,p.mN)(e).path)):null}fetchTile(e,t,r,i={}){const{signal:l}=i,s=this.getTileUrl(e,t,r),n={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,a.default)(s,n).then((e=>e.data))}async fetchImageBitmapTile(e,t,r,l={}){const{signal:s}=l;if(this.fetchTile!==i.prototype.fetchTile){const i=await this.fetchTile(e,t,r,l);return(0,R.V)(i,e,t,r,s)}const n=this.getTileUrl(e,t,r),o={responseType:"blob",signal:s,query:{...this.refreshParameters}},{data:c}=await(0,a.default)(n,o);return(0,R.V)(c,e,t,r,s)}getTileUrl(e,t,r){const i=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,l=(0,p.B7)({...this.parsedUrl?.query,blankTile:!i&&null,...this.customParameters,token:this.apiKey}),a=this.tileServers;return`${a&&a.length?a[t%a.length]:this.parsedUrl?.path}/tile/${e}/${t}/${r}${l?"?"+l:""}`}loadAll(){return(0,n.G)(this,(e=>{e(this.allSublayers)}))}_fetchService(e){return new Promise(((t,r)=>{if(this.sourceJSON){if(null!=this.sourceJSON.bandCount&&null!=this.sourceJSON.pixelSizeX)throw new s.Z("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");return void t({data:this.sourceJSON})}if(!this.parsedUrl)throw new s.Z("tile-layer:undefined-url","layer's url is not defined");const i=(0,x.Qc)(this.parsedUrl.path);if(null!=i&&"ImageServer"===i.serverType)throw new s.Z("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");(0,a.default)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t,r)})).then((t=>{let r=this.url;if(t.ssl&&(r=this.url=r.replace(/^http:/i,"https:")),this.sourceJSON=t.data,this.read(t.data,{origin:"service",url:this.parsedUrl}),10.1===this.version&&!(0,x.M8)(r))return this._fetchServerVersion(r,e).then((e=>{this.read({currentVersion:e})})).catch((()=>{}))}))}_fetchServerVersion(e,t){if(!(0,x.B5)(e))return Promise.reject();const r=e.replace(/(.*\/rest)\/.*/i,"$1")+"/info";return(0,a.default)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then((e=>{if(e.data&&e.data.currentVersion)return e.data.currentVersion;throw new s.Z("tile-layer:version-not-available")}))}_getMapName(e){const t=e.match(/^(?:https?:)?\/\/(server\.arcgisonline\.com|services\.arcgisonline\.com|ibasemaps-api\.arcgis\.com)\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/mapserver/i);return t?t[2]:void 0}_getDefaultAttribution(e){if(null==e)return null;let t;e=e.toLowerCase();for(let r=0,i=k.length;r<i;r++)if(t=k[r],t.toLowerCase().includes(e))return(0,p.hF)("//static.arcgis.com/attribution/"+t);return null}_getDefaultTileServers(e){if(null==e)return[];const t=-1!==e.search(/^(?:https?:)?\/\/server\.arcgisonline\.com/i),r=-1!==e.search(/^(?:https?:)?\/\/services\.arcgisonline\.com/i);return t||r?[e,e.replace(t?/server\.arcgisonline/i:/services\.arcgisonline/i,t?"services.arcgisonline":"server.arcgisonline")]:[]}get hasOverriddenFetchTile(){return!this.fetchTile[Z]}};(0,l._)([(0,h.Cb)({readOnly:!0})],U.prototype,"attributionDataUrl",null),(0,l._)([(0,h.Cb)({type:["show","hide","hide-children"]})],U.prototype,"listMode",void 0),(0,l._)([(0,h.Cb)({json:{read:!0,write:!0}})],U.prototype,"blendMode",void 0),(0,l._)([(0,h.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],U.prototype,"isReference",void 0),(0,l._)([(0,h.Cb)({readOnly:!0,type:["ArcGISTiledMapServiceLayer"]})],U.prototype,"operationalLayerType",void 0),(0,l._)([(0,h.Cb)({type:Boolean})],U.prototype,"resampling",void 0),(0,l._)([(0,h.Cb)()],U.prototype,"sourceJSON",void 0),(0,l._)([(0,h.Cb)({type:v.Z})],U.prototype,"spatialReference",void 0),(0,l._)([(0,d.r)("spatialReference",["spatialReference","tileInfo"])],U.prototype,"readSpatialReference",null),(0,l._)([(0,h.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],U.prototype,"path",void 0),(0,l._)([(0,h.Cb)({readOnly:!0})],U.prototype,"sublayers",void 0),(0,l._)([(0,f.c)("sublayers",{layers:{type:[M.Z]}})],U.prototype,"writeSublayers",null),(0,l._)([(0,h.Cb)({json:{read:!1,write:!1}})],U.prototype,"popupEnabled",void 0),(0,l._)([(0,h.Cb)()],U.prototype,"tileServers",null),(0,l._)([(0,u.p)("tileServers")],U.prototype,"castTileServers",null),(0,l._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],U.prototype,"type",void 0),(0,l._)([(0,h.Cb)(A.HQ)],U.prototype,"url",void 0),U=i=(0,l._)([(0,y.j)("esri.layers.TileLayer")],U);const Z=Symbol("default-fetch-tile");U.prototype.fetchTile[Z]=!0;const j=U},46486:(e,t,r)=>{r.d(t,{Z:()=>h});var i=r(43697),l=(r(66577),r(5600)),a=(r(75215),r(67676),r(80442),r(71715)),s=r(52011),n=r(11145),o=r(42238),c=r(28589),p=r(82971);const h=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,r){const i=t.capabilities?.includes("Tilemap");let{minLOD:l,maxLOD:a,minScale:s,maxScale:p}=t;if(null==l&&null==a&&0!==s&&0!==p){const e=e=>Math.round(1e4*e)/1e4;s=e(s||t.tileInfo.lods[0].scale),p=e(p||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const r of t.tileInfo.lods){const t=e(r.scale);l=t>=s?r.level:l,a=t>=p?r.level:a}}if(i)return new c.y({layer:this,minLOD:l,maxLOD:a});if(t.tileInfo){const e=new n.Z;return e.read(t.tileInfo,r),new o.Z(e,l,a)}return null}};return(0,i._)([(0,l.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,i._)([(0,l.Cb)()],t.prototype,"minScale",void 0),(0,i._)([(0,a.r)("service","minScale")],t.prototype,"readMinScale",null),(0,i._)([(0,l.Cb)()],t.prototype,"maxScale",void 0),(0,i._)([(0,a.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,i._)([(0,l.Cb)({type:p.Z})],t.prototype,"spatialReference",void 0),(0,i._)([(0,l.Cb)({readOnly:!0})],t.prototype,"supportsBlankTile",null),(0,i._)([(0,l.Cb)({type:n.Z})],t.prototype,"tileInfo",void 0),(0,i._)([(0,l.Cb)()],t.prototype,"tilemapCache",void 0),(0,i._)([(0,a.r)("service","tilemapCache",["capabilities","tileInfo"])],t.prototype,"readTilemapCache",null),(0,i._)([(0,l.Cb)()],t.prototype,"version",void 0),t=(0,i._)([(0,s.j)("esri.layers.mixins.ArcGISCachedService")],t),t}},42238:(e,t,r)=>{r.d(t,{Z:()=>a});var i=r(20102),l=r(95330);class a{constructor(e,t=0,r=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=r,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(r)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,r){const i=this.tileInfo?.lodAt(e);return!i||e<this.minLOD||e>this.maxLOD?"unavailable":i.cols&&i.rows?r>=i.cols[0]&&r<=i.cols[1]&&t>=i.rows[0]&&t<=i.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,r,a){await(0,l.Yn)(a);const s=this.getAvailability(e,t,r);if("unavailable"===s)throw new i.Z("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:r});return s}async fetchAvailabilityUpsample(e,t,r,i,a){await(0,l.Yn)(a),i.level=e,i.row=t,i.col=r;const s=this.tileInfo;return s.updateTileInfo(i),this.fetchAvailability(e,t,r,a).catch((e=>{if((0,l.D_)(e))throw e;if(s.upsampleTile(i))return this.fetchAvailabilityUpsample(i.level,i.row,i.col,i,a);throw e}))}}}}]);
@@ -1 +1 @@
1
- {"about":"About","add":"Add","all":"All","apply":"Apply","auth":{"logOut":"Log out","signIn":"Sign in"},"back":"Back","cancel":"Cancel","change":"Change","clear":"Clear","close":"Close","collapse":"Collapse","configure":"Configure","control":{"pause":"Pause","play":"Play","resume":"Resume","stop":"Stop"},"copy":"Copy","create":"Create","cut":"Cut","delete":"Delete","details":"Details","done":"Done","dragHandleTitle":"Drag/reorder","dragHandleLabel":"Activate the reorder button and use the arrow keys to reorder the list or use your mouse to drag/reorder. Press escape to cancel the reordering.","edit":"Edit","errorMessage":"Error","esri":"Esri","exit":"Exit","expand":"Expand","fieldsSummary":"List of attributes and values","find":"Find","form":{"no":"No","ok":"OK","password":"Password","submit":"Submit","username":"Username","yes":"Yes"},"help":"Help","home":"Home","info":"Info","information":"Information","layer":"Layer","loading":"Loading","maximize":"Maximize","menu":"Menu","more":"More","none":"None","open":"Open","options":"Options","pagination":{"down":"Down","first":"First","last":"Last","next":"Next","page":"Page","pageText":"{index} of {total}","previous":"Previous","up":"Up"},"paste":"Paste","preview":"Preview","print":"Print","publish":"Publish","redo":"Redo","refresh":"Refresh","remove":"Remove","rename":"Rename","reset":"Reset","restore":"Restore","save":"Save","saveAs":"Save As","search":"Search","searching":"Searching","select":"Select","settings":"Settings","sort":"Sort","share":"Share","title":"Title","untitled":"Untitled","unnamed":"Unnamed","update":"Update","upload":"Upload","undo":"Undo","view":"View","visibility":{"hide":"Hide","show":"Show","showAll":"Show all","toggle":"Toggle"},"warning":"Warning"}
1
+ {"about":"About","add":"Add","all":"All","apply":"Apply","auth":{"logOut":"Log out","signIn":"Sign in"},"back":"Back","cancel":"Cancel","change":"Change","clear":"Clear","close":"Close","collapse":"Collapse","configure":"Configure","control":{"pause":"Pause","play":"Play","resume":"Resume","stop":"Stop"},"copy":"Copy","create":"Create","cut":"Cut","delete":"Delete","details":"Details","done":"Done","dragHandleTitle":"Drag/reorder","dragHandleLabel":"Activate the reorder button and use the arrow keys to reorder the list or use your mouse to drag/reorder. Press escape to cancel the reordering.","edit":"Edit","errorMessage":"Error","esri":"Esri","exit":"Exit","expand":"Expand","fieldsSummary":"List of attributes and values","find":"Find","form":{"no":"No","ok":"OK","password":"Password","submit":"Submit","username":"Username","yes":"Yes"},"help":"Help","home":"Home","info":"Info","information":"Information","layer":"Layer","loading":"Loading","maximize":"Maximize","menu":"Menu","more":"More","none":"None","notApplicable":"—","open":"Open","options":"Options","pagination":{"down":"Down","first":"First","last":"Last","next":"Next","page":"Page","pageText":"{index} of {total}","previous":"Previous","up":"Up"},"paste":"Paste","preview":"Preview","print":"Print","publish":"Publish","redo":"Redo","refresh":"Refresh","remove":"Remove","rename":"Rename","reset":"Reset","restore":"Restore","save":"Save","saveAs":"Save As","search":"Search","searching":"Searching","select":"Select","settings":"Settings","sort":"Sort","share":"Share","title":"Title","untitled":"Untitled","unnamed":"Unnamed","update":"Update","upload":"Upload","undo":"Undo","view":"View","visibility":{"hide":"Hide","show":"Show","showAll":"Show all","toggle":"Toggle"},"warning":"Warning"}
@@ -1 +1 @@
1
- {"about":"About","add":"Add","all":"All","apply":"Apply","auth":{"logOut":"Log out","signIn":"Sign in"},"back":"Back","cancel":"Cancel","change":"Change","clear":"Clear","close":"Close","collapse":"Collapse","configure":"Configure","control":{"pause":"Pause","play":"Play","resume":"Resume","stop":"Stop"},"copy":"Copy","create":"Create","cut":"Cut","delete":"Delete","details":"Details","done":"Done","dragHandleTitle":"Drag/reorder","dragHandleLabel":"Activate the reorder button and use the arrow keys to reorder the list or use your mouse to drag/reorder. Press escape to cancel the reordering.","edit":"Edit","errorMessage":"Error","esri":"Esri","exit":"Exit","expand":"Expand","fieldsSummary":"List of attributes and values","find":"Find","form":{"no":"No","ok":"OK","password":"Password","submit":"Submit","username":"Username","yes":"Yes"},"help":"Help","home":"Home","info":"Info","information":"Information","layer":"Layer","loading":"Loading","maximize":"Maximize","menu":"Menu","more":"More","none":"None","open":"Open","options":"Options","pagination":{"down":"Down","first":"First","last":"Last","next":"Next","page":"Page","pageText":"{index} of {total}","previous":"Previous","up":"Up"},"paste":"Paste","preview":"Preview","print":"Print","publish":"Publish","redo":"Redo","refresh":"Refresh","remove":"Remove","rename":"Rename","reset":"Reset","restore":"Restore","save":"Save","saveAs":"Save As","search":"Search","searching":"Searching","select":"Select","settings":"Settings","sort":"Sort","share":"Share","title":"Title","untitled":"Untitled","unnamed":"Unnamed","update":"Update","upload":"Upload","undo":"Undo","view":"View","visibility":{"hide":"Hide","show":"Show","showAll":"Show all","toggle":"Toggle"},"warning":"Warning"}
1
+ {"about":"About","add":"Add","all":"All","apply":"Apply","auth":{"logOut":"Log out","signIn":"Sign in"},"back":"Back","cancel":"Cancel","change":"Change","clear":"Clear","close":"Close","collapse":"Collapse","configure":"Configure","control":{"pause":"Pause","play":"Play","resume":"Resume","stop":"Stop"},"copy":"Copy","create":"Create","cut":"Cut","delete":"Delete","details":"Details","done":"Done","dragHandleTitle":"Drag/reorder","dragHandleLabel":"Activate the reorder button and use the arrow keys to reorder the list or use your mouse to drag/reorder. Press escape to cancel the reordering.","edit":"Edit","errorMessage":"Error","esri":"Esri","exit":"Exit","expand":"Expand","fieldsSummary":"List of attributes and values","find":"Find","form":{"no":"No","ok":"OK","password":"Password","submit":"Submit","username":"Username","yes":"Yes"},"help":"Help","home":"Home","info":"Info","information":"Information","layer":"Layer","loading":"Loading","maximize":"Maximize","menu":"Menu","more":"More","none":"None","notApplicable":"—","open":"Open","options":"Options","pagination":{"down":"Down","first":"First","last":"Last","next":"Next","page":"Page","pageText":"{index} of {total}","previous":"Previous","up":"Up"},"paste":"Paste","preview":"Preview","print":"Print","publish":"Publish","redo":"Redo","refresh":"Refresh","remove":"Remove","rename":"Rename","reset":"Reset","restore":"Restore","save":"Save","saveAs":"Save As","search":"Search","searching":"Searching","select":"Select","settings":"Settings","sort":"Sort","share":"Share","title":"Title","untitled":"Untitled","unnamed":"Unnamed","update":"Update","upload":"Upload","undo":"Undo","view":"View","visibility":{"hide":"Hide","show":"Show","showAll":"Show all","toggle":"Toggle"},"warning":"Warning"}