@arcgis/core 4.22.0-next.20211021 → 4.22.0-next.20211025

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 (440) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/00ac1ce56f9885a8be83.js +1 -0
  3. package/assets/esri/core/workers/chunks/01c9afe41ab4ccc597c9.js +1 -0
  4. package/assets/esri/core/workers/chunks/02a3d14adc504a51fa24.js +1 -0
  5. package/assets/esri/core/workers/chunks/035a9ab0202d5386b782.js +1 -0
  6. package/assets/esri/core/workers/chunks/062bace5505f13689c7d.js +1 -0
  7. package/assets/esri/core/workers/chunks/06c7745d813bcb540ce8.js +1 -0
  8. package/assets/esri/core/workers/chunks/0950b488a60b2abc21fc.js +1 -0
  9. package/assets/esri/core/workers/chunks/0af396f2e0de681113ef.js +1 -0
  10. package/assets/esri/core/workers/chunks/131838059f0f81d8eaee.js +1 -0
  11. package/assets/esri/core/workers/chunks/146cba0d172ec2f4eba2.js +1 -0
  12. package/assets/esri/core/workers/chunks/17e49c0dfa5a5a6213e2.js +1 -0
  13. package/assets/esri/core/workers/chunks/1a0b08190274725dc956.js +1 -0
  14. package/assets/esri/core/workers/chunks/1add7f0779accdf8d204.js +1 -0
  15. package/assets/esri/core/workers/chunks/20b81d11e6286d347bfc.js +1 -0
  16. package/assets/esri/core/workers/chunks/{e596bd3de960d1dc1c57.js → 2207580a78ee292ed9b8.js} +1 -1
  17. package/assets/esri/core/workers/chunks/2d3646a83465c75986f9.js +1 -0
  18. package/assets/esri/core/workers/chunks/2d38ee3ef3ebe32a1194.js +1 -0
  19. package/assets/esri/core/workers/chunks/3737dcc3c0dea3ca05d5.js +1 -0
  20. package/assets/esri/core/workers/chunks/3e2042e70647c1afa6aa.js +1 -0
  21. package/assets/esri/core/workers/chunks/3ebfaab2855a2236a95d.js +1 -0
  22. package/assets/esri/core/workers/chunks/{d6fe616192a8efbfbc3e.js → 440f8101402a4c0d7019.js} +1 -1
  23. package/assets/esri/core/workers/chunks/4587d770767966985e22.js +1 -0
  24. package/assets/esri/core/workers/chunks/487b8892fae85810a8c0.js +1 -0
  25. package/assets/esri/core/workers/chunks/4901a78f32c3ea6b823b.js +1 -0
  26. package/assets/esri/core/workers/chunks/496fe47fc4d28e1a716d.js +1 -0
  27. package/assets/esri/core/workers/chunks/{9f22f47d4b2e72d7bdcf.js → 4c010119c24510ea31bb.js} +2 -2
  28. package/assets/esri/core/workers/chunks/{9f22f47d4b2e72d7bdcf.js.LICENSE.txt → 4c010119c24510ea31bb.js.LICENSE.txt} +0 -0
  29. package/assets/esri/core/workers/chunks/4f5076e1f2b18ce8156d.js +1 -0
  30. package/assets/esri/core/workers/chunks/{f291ebc4b089bd1f0a3f.js → 50e86a6bb13042b1dbac.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{64d9a062c1f1ac08a3ac.js → 565020b1c02a8cb33c2b.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{d78c60a22f76df7c48c7.js → 59640d78295e2e363f18.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{a0356f320a1b2fbd03f0.js → 5ac2b2598245aa17cdbd.js} +1 -1
  34. package/assets/esri/core/workers/chunks/5b4a8cce5601cc92c8a3.js +1 -0
  35. package/assets/esri/core/workers/chunks/5b92d5d4049622531109.js +1 -0
  36. package/assets/esri/core/workers/chunks/{751c1a2838b54a74a9a6.js → 5f3caa0ddb215342c728.js} +2 -2
  37. package/assets/esri/core/workers/chunks/615e995d5ce8fa044b09.js +1 -0
  38. package/assets/esri/core/workers/chunks/62a2453699e0dd2393b9.js +1 -0
  39. package/assets/esri/core/workers/chunks/67013547be1a7ae1670a.js +1 -0
  40. package/assets/esri/core/workers/chunks/67eddf4808f8888faeb4.js +1 -0
  41. package/assets/esri/core/workers/chunks/695dbedff2340aa019ba.js +1 -0
  42. package/assets/esri/core/workers/chunks/6a7e388c94206d2f61ff.js +1 -0
  43. package/assets/esri/core/workers/chunks/6e22b69d55e791ab3d9a.js +1 -0
  44. package/assets/esri/core/workers/chunks/71e6c0c5ef0aa7eb1703.js +1 -0
  45. package/assets/esri/core/workers/chunks/7a74e230439c5111f852.js +1 -0
  46. package/assets/esri/core/workers/chunks/7e76a8e6fa67e607d09e.js +1 -0
  47. package/assets/esri/core/workers/chunks/7fe4985ca0cb3e6d35c6.js +1 -0
  48. package/assets/esri/core/workers/chunks/8027330714ff5ffb020e.js +1 -0
  49. package/assets/esri/core/workers/chunks/844b564d1a422a17f6ac.js +1 -0
  50. package/assets/esri/core/workers/chunks/856f9281a08cb032238e.js +1 -0
  51. package/assets/esri/core/workers/chunks/89b4983de872780e9aa1.js +1 -0
  52. package/assets/esri/core/workers/chunks/8f3bc0cd2c2b01ab80cd.js +1 -0
  53. package/assets/esri/core/workers/chunks/8fd912e325ccd48b98a9.js +1 -0
  54. package/assets/esri/core/workers/chunks/901907a5c01f0fd1478f.js +1 -0
  55. package/assets/esri/core/workers/chunks/92a0b88a14c92239df8a.js +1 -0
  56. package/assets/esri/core/workers/chunks/972e9aeb3c29c9bf441a.js +1 -0
  57. package/assets/esri/core/workers/chunks/9758c34ce61c3714515a.js +1 -0
  58. package/assets/esri/core/workers/chunks/{457ea4feaa006d60c6b1.js → 9a04d087a29f0f3937a3.js} +1 -1
  59. package/assets/esri/core/workers/chunks/9b0bb171224b35ce2031.js +1 -0
  60. package/assets/esri/core/workers/chunks/9cbe7afdaef8720dfc8d.js +1 -0
  61. package/assets/esri/core/workers/chunks/9ccde5b6562f0007fe45.js +1 -0
  62. package/assets/esri/core/workers/chunks/9d320bbeedeea15522ab.js +1 -0
  63. package/assets/esri/core/workers/chunks/a001b3b4527817548094.js +1 -0
  64. package/assets/esri/core/workers/chunks/{197b72bca45065e0eb4a.js → a0c580d4a1915ddd3fe4.js} +1 -1
  65. package/assets/esri/core/workers/chunks/a4a9c15929b43d83701f.js +1 -0
  66. package/assets/esri/core/workers/chunks/a54d11f44721f808b82f.js +1 -0
  67. package/assets/esri/core/workers/chunks/a646a11673d513c00e7a.js +1 -0
  68. package/assets/esri/core/workers/chunks/a792e2bc7cafdc29f05e.js +1 -0
  69. package/assets/esri/core/workers/chunks/acae1771697034f265b1.js +1 -0
  70. package/assets/esri/core/workers/chunks/af2ee804a9c63eea610c.js +1 -0
  71. package/assets/esri/core/workers/chunks/b28b487047da3aeef3fd.js +1 -0
  72. package/assets/esri/core/workers/chunks/b3e57824a5855cb37a96.js +1 -0
  73. package/assets/esri/core/workers/chunks/b89449ead32e4cd21edd.js +1 -0
  74. package/assets/esri/core/workers/chunks/b99891ed5a02cab02173.js +1 -0
  75. package/assets/esri/core/workers/chunks/bac84bc621be73a7a4bc.js +1 -0
  76. package/assets/esri/core/workers/chunks/{25037dcf8a0c72b7b647.js → bbe068388167e9dd0c11.js} +1 -1
  77. package/assets/esri/core/workers/chunks/c271a1857bcc4e9a36dd.js +1 -0
  78. package/assets/esri/core/workers/chunks/{eb3035e49a45ecc82575.js → c5030664720fcdc6d85e.js} +1 -1
  79. package/assets/esri/core/workers/chunks/c534ed122f8a1202d3a3.js +1 -0
  80. package/assets/esri/core/workers/chunks/c5ef2e28b0c539ddb6a7.js +1 -0
  81. package/assets/esri/core/workers/chunks/c65e5ccfae03d148d82b.js +1 -0
  82. package/assets/esri/core/workers/chunks/c91660f3982be4e03705.js +1 -0
  83. package/assets/esri/core/workers/chunks/ce93113b99bdbeddd07b.js +1 -0
  84. package/assets/esri/core/workers/chunks/cf2d408e669cfa2c65be.js +1 -0
  85. package/assets/esri/core/workers/chunks/d08f63ffeecefa02ad91.js +1 -0
  86. package/assets/esri/core/workers/chunks/{8d33644192c01e5416b4.js → d1a71b58ef62e71979c5.js} +1 -1
  87. package/assets/esri/core/workers/chunks/d30eade5afecd334f6cb.js +1 -0
  88. package/assets/esri/core/workers/chunks/d8782d0856b9d815cb6c.js +1 -0
  89. package/assets/esri/core/workers/chunks/db16c21b650001502e6c.js +1 -0
  90. package/assets/esri/core/workers/chunks/db18110c57253a31ac96.js +1 -0
  91. package/assets/esri/core/workers/chunks/dbaa5fb466d6c0214f24.js +1 -0
  92. package/assets/esri/core/workers/chunks/deae370788a7aacf4dd5.js +1 -0
  93. package/assets/esri/core/workers/chunks/e6ca132e1eeea3aa174e.js +1 -0
  94. package/assets/esri/core/workers/chunks/e878ccc431729ef3360f.js +1 -0
  95. package/assets/esri/core/workers/chunks/eb124f15ad4b9193f00a.js +1 -0
  96. package/assets/esri/core/workers/chunks/ebc71c06c1c22aaef54e.js +1 -0
  97. package/assets/esri/core/workers/chunks/f183da283af0836421ab.js +1 -0
  98. package/assets/esri/core/workers/chunks/f42bdc2a134833d33b4e.js +1 -0
  99. package/assets/esri/core/workers/chunks/{736d628cda4e02d40337.js → f8612c2fc5739e98be58.js} +1 -1
  100. package/assets/esri/core/workers/chunks/f965e3e5f6f4f9ba54ac.js +1 -0
  101. package/assets/esri/core/workers/chunks/fa4089640f480b69962e.js +1 -0
  102. package/assets/esri/core/workers/chunks/fb219563e5169ea67d68.js +1 -0
  103. package/assets/esri/libs/i3s/i3s.wasm +0 -0
  104. package/chunks/ChapmanAtmosphere.glsl.js +56 -77
  105. package/chunks/Clouds.glsl.js +1 -1
  106. package/chunks/Pattern.glsl.js +9 -11
  107. package/chunks/RibbonLine.glsl.js +60 -68
  108. package/chunks/i3s.js +1 -1
  109. package/chunks/mat4.js +1 -1
  110. package/chunks/vec3.js +1 -1
  111. package/core/Collection.js +1 -1
  112. package/core/Loadable.js +1 -1
  113. package/core/accessorSupport/ensureType.js +1 -1
  114. package/core/promiseUtils.js +1 -1
  115. package/core/support/OwningCollection.js +1 -1
  116. package/core/workers/RemoteClient.js +1 -1
  117. package/core/workers/WorkerOwner.js +1 -1
  118. package/core/workers/workers.js +2 -2
  119. package/geometry/projection.js +1 -1
  120. package/identity/IdentityManagerBase.js +1 -1
  121. package/interfaces.d.ts +205 -497
  122. package/layers/ElevationLayer.js +1 -1
  123. package/layers/GeoJSONLayer.js +1 -1
  124. package/layers/ImageryTileLayer.js +1 -1
  125. package/layers/VectorTileLayer.js +1 -1
  126. package/layers/VoxelWasmPerScene.js +1 -1
  127. package/layers/WCSLayer.js +1 -1
  128. package/layers/analyses/AreaMeasurement3D.js +1 -1
  129. package/layers/analyses/DirectLineMeasurement3D.js +1 -1
  130. package/layers/analyses/Slice.js +1 -1
  131. package/layers/effects/EffectList.js +1 -1
  132. package/layers/effects/effects.js +1 -1
  133. package/layers/effects/jsonUtils.js +1 -1
  134. package/layers/effects/parser.js +1 -1
  135. package/layers/effects/utils.js +5 -0
  136. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  137. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  138. package/layers/graphics/data/QueryEngine.js +1 -1
  139. package/layers/graphics/data/QueryEngineResult.js +1 -1
  140. package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
  141. package/layers/mixins/ImageryTileMixin.js +1 -1
  142. package/layers/support/RasterWorker.js +1 -1
  143. package/layers/support/TilemapCache.js +1 -1
  144. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  145. package/layers/support/rasterDatasets/ImageServerRaster.js +1 -1
  146. package/layers/support/rasterDatasets/WCSRaster.js +1 -1
  147. package/layers/support/rasterFunctions/pixelUtils.js +1 -1
  148. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  149. package/package.json +2 -2
  150. package/portal/support/portalLayers.js +1 -1
  151. package/request.js +1 -1
  152. package/smartMapping/renderers/support/utils.js +1 -1
  153. package/smartMapping/statistics/support/WorkerClient.js +1 -1
  154. package/smartMapping/statistics/support/statsWorker.js +1 -1
  155. package/smartMapping/statistics/support/utils.js +1 -1
  156. package/smartMapping/support/adapters/CSVLayerAdapter.js +1 -1
  157. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  158. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  159. package/smartMapping/support/adapters/support/utils.js +1 -1
  160. package/statistics/utils.js +1 -1
  161. package/support/GraphicsCollection.js +1 -1
  162. package/support/revision.js +1 -1
  163. package/symbols/FillSymbol3DLayer.js +1 -1
  164. package/symbols/IconSymbol3DLayer.js +1 -1
  165. package/symbols/LineSymbol3DLayer.js +1 -1
  166. package/symbols/patterns/LinePattern3D.js +5 -0
  167. package/symbols/patterns/LineStylePattern3D.d.ts +4 -0
  168. package/symbols/patterns/LineStylePattern3D.js +5 -0
  169. package/symbols/patterns/StylePattern3D.js +1 -1
  170. package/symbols/patterns/lineStyles.js +5 -0
  171. package/symbols/patterns/utils.js +1 -1
  172. package/symbols/support/Symbol3DFillMaterial.js +1 -1
  173. package/symbols/support/Symbol3DIconOutline.js +5 -0
  174. package/symbols/support/Symbol3DMaterial.js +1 -1
  175. package/symbols/support/Symbol3DOutline.js +1 -1
  176. package/symbols/support/defaults3D.js +1 -1
  177. package/symbols/support/previewSymbol3D.js +1 -1
  178. package/symbols/support/symbolLayerUtils3D.js +1 -1
  179. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  180. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  181. package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
  182. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  183. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  184. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  185. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  186. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  187. package/views/2d/layers/features/controllers/EditsQueue.js +1 -1
  188. package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
  189. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  190. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  191. package/views/2d/layers/support/FeatureLayerProxy.js +1 -1
  192. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  193. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  194. package/views/3d/environment/CloudsGenerator.js +1 -1
  195. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  196. package/views/3d/environment/PanoramicAtmosphere.js +1 -1
  197. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  198. package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
  199. package/views/3d/externalRenderers.js +1 -1
  200. package/views/3d/interactive/Manipulator3D.js +1 -1
  201. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  202. package/views/3d/interactive/analysisTools/slice/images/Factory.js +5 -0
  203. package/views/3d/interactive/analysisTools/slice/sliceToolConfig.js +1 -1
  204. package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
  205. package/views/3d/interactive/editingTools/settings.js +1 -1
  206. package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
  207. package/views/3d/interactive/graphics/Slice/SliceController.js +1 -1
  208. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  209. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  210. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  211. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  212. package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
  213. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  214. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  215. package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
  216. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  217. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  218. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  219. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  220. package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
  221. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  222. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  223. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  224. package/views/3d/layers/I3SMeshView3D.js +1 -1
  225. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  226. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  227. package/views/3d/layers/analyses/AreaMeasurement3D/AreaMeasurementView3D.js +1 -1
  228. package/views/3d/layers/analyses/AreaMeasurement3D/support/AreaMeasurementPathHelper.js +1 -1
  229. package/views/3d/layers/analyses/AreaMeasurement3D/support/AreaMeasurementVisualization.js +1 -1
  230. package/views/3d/layers/analyses/DirectLineMeasurement3D/DirectLineMeasurementView3D.js +1 -1
  231. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  232. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  233. package/views/3d/layers/graphics/ElevationQuery.js +1 -1
  234. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  235. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  236. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  237. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  238. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  239. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  240. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  241. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  242. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  243. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  244. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  245. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  246. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  247. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  248. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  249. package/views/3d/layers/graphics/Labeler.js +1 -1
  250. package/views/3d/layers/graphics/Loadable.js +1 -1
  251. package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
  252. package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
  253. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  254. package/views/3d/layers/graphics/labelPlacement.js +1 -1
  255. package/views/3d/layers/graphics/pointUtils.js +1 -1
  256. package/views/3d/layers/i3s/I3SAttributeOverrides.js +1 -1
  257. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  258. package/views/3d/layers/i3s/I3SStreamDataController.js +1 -1
  259. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  260. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  261. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  262. package/views/3d/layers/support/patternUtils.js +1 -1
  263. package/views/3d/state/GoToOperation.js +1 -1
  264. package/views/3d/state/ViewStateManager.js +1 -1
  265. package/views/3d/support/LaserLineRenderer.js +1 -1
  266. package/views/3d/support/SharedSymbolResources.js +1 -1
  267. package/views/3d/support/StreamDataLoader.js +1 -1
  268. package/views/3d/support/StreamTextureCollection.js +5 -0
  269. package/views/3d/support/TextureCollection.js +1 -1
  270. package/views/3d/support/debugFlags.js +1 -1
  271. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  272. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  273. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  274. package/views/3d/terrain/OverlayManager.js +1 -1
  275. package/views/3d/terrain/OverlayRenderTarget.js +1 -1
  276. package/views/3d/terrain/OverlayRenderer.js +1 -1
  277. package/views/3d/terrain/Tile.js +1 -1
  278. package/views/3d/webgl-engine/Stage.js +1 -1
  279. package/views/3d/webgl-engine/core/material/RenderTexture.js +1 -1
  280. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +13 -12
  281. package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +1 -1
  282. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +10 -3
  283. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  284. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  285. package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
  286. package/views/3d/webgl-engine/lib/GLMaterialTexture.js +1 -1
  287. package/views/3d/webgl-engine/lib/GLMaterials.js +1 -1
  288. package/views/3d/webgl-engine/lib/Material.js +1 -1
  289. package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
  290. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  291. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  292. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  293. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  294. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  295. package/views/3d/webgl-engine/lib/TextTexture.js +1 -1
  296. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  297. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  298. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  299. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  300. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  301. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  302. package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
  303. package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
  304. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  305. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  306. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  307. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  308. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  309. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  310. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  311. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  312. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  313. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  314. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  315. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  316. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  317. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  318. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  319. package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
  320. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  321. package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
  322. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  323. package/views/3d/webgl-engine/parts/Model.js +1 -1
  324. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  325. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  326. package/views/LayerViewManager.js +1 -1
  327. package/views/SceneView.js +1 -1
  328. package/views/ToolViewManager.js +1 -1
  329. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  330. package/views/support/AllocationTracer.js +1 -1
  331. package/views/support/DefaultsFromMap.js +1 -1
  332. package/views/support/QueueProcessor.js +1 -1
  333. package/views/webgl/capabilities/load.js +1 -1
  334. package/webscene/Slide.js +1 -1
  335. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  336. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  337. package/widgets/BuildingExplorer/support/layerUtils.js +1 -1
  338. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  339. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  340. package/widgets/Editor/UpdateWorkflow.js +1 -1
  341. package/widgets/Feature/FeatureViewModel.js +1 -1
  342. package/widgets/Home/HomeViewModel.js +1 -1
  343. package/widgets/Locate/LocateViewModel.js +1 -1
  344. package/widgets/Popup/PopupViewModel.js +1 -1
  345. package/widgets/Search/SearchViewModel.js +1 -1
  346. package/widgets/Search.js +1 -1
  347. package/widgets/Sketch/SketchViewModel.js +1 -1
  348. package/widgets/Slice/SliceViewModel.js +1 -1
  349. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  350. package/assets/esri/core/workers/chunks/0283801d442984997abe.js +0 -1
  351. package/assets/esri/core/workers/chunks/0419e14a520b8fcf3e7a.js +0 -1
  352. package/assets/esri/core/workers/chunks/05318446b6a40caea361.js +0 -1
  353. package/assets/esri/core/workers/chunks/09e714d4381649348ac9.js +0 -1
  354. package/assets/esri/core/workers/chunks/0cecd668b9d5d3f83293.js +0 -1
  355. package/assets/esri/core/workers/chunks/13a73a88efd4f464173e.js +0 -1
  356. package/assets/esri/core/workers/chunks/1576727e8174d672555b.js +0 -1
  357. package/assets/esri/core/workers/chunks/1a3cbeb0a53d03a51dad.js +0 -1
  358. package/assets/esri/core/workers/chunks/1b8524b617bfc6fe422c.js +0 -1
  359. package/assets/esri/core/workers/chunks/1dc1d750046912ff6cef.js +0 -1
  360. package/assets/esri/core/workers/chunks/21fa174c114640be5e40.js +0 -1
  361. package/assets/esri/core/workers/chunks/2a3f6e56079620421a02.js +0 -1
  362. package/assets/esri/core/workers/chunks/2a5bcc73e55986ad93fe.js +0 -1
  363. package/assets/esri/core/workers/chunks/2a6f2e3d639aae491171.js +0 -1
  364. package/assets/esri/core/workers/chunks/2c17d1bad17bcee53f7d.js +0 -1
  365. package/assets/esri/core/workers/chunks/2cea27a0d07aa9a88ad4.js +0 -1
  366. package/assets/esri/core/workers/chunks/2e193d97d199b29b00c2.js +0 -1
  367. package/assets/esri/core/workers/chunks/2eb41fdf0d0a3b0c3232.js +0 -1
  368. package/assets/esri/core/workers/chunks/2f09ea639ca5d1d6ca7e.js +0 -1
  369. package/assets/esri/core/workers/chunks/2fb847ab1440bd1bdf15.js +0 -1
  370. package/assets/esri/core/workers/chunks/402d22ebbae608760b4f.js +0 -1
  371. package/assets/esri/core/workers/chunks/44daef7f0cbc6f6af09f.js +0 -1
  372. package/assets/esri/core/workers/chunks/46899156159e398c693f.js +0 -1
  373. package/assets/esri/core/workers/chunks/46bf8921db25845c63c0.js +0 -1
  374. package/assets/esri/core/workers/chunks/4eb23554e375350f73b5.js +0 -1
  375. package/assets/esri/core/workers/chunks/551917be63a513dfa4de.js +0 -1
  376. package/assets/esri/core/workers/chunks/564f6f5484bcb13ebb2b.js +0 -1
  377. package/assets/esri/core/workers/chunks/61df67ae47b7fb5875d9.js +0 -1
  378. package/assets/esri/core/workers/chunks/62642a8fc7bafe339984.js +0 -1
  379. package/assets/esri/core/workers/chunks/6304f4e53027df04eb8f.js +0 -1
  380. package/assets/esri/core/workers/chunks/6331987617ad166ea098.js +0 -1
  381. package/assets/esri/core/workers/chunks/6b13fcbc71c0088d317e.js +0 -1
  382. package/assets/esri/core/workers/chunks/6f7a6841e7269d2764ad.js +0 -1
  383. package/assets/esri/core/workers/chunks/70110efd2de23d9a5263.js +0 -1
  384. package/assets/esri/core/workers/chunks/7eae3f0588cde44fce39.js +0 -1
  385. package/assets/esri/core/workers/chunks/80d3c7a429c6412f1a8d.js +0 -1
  386. package/assets/esri/core/workers/chunks/80deebdf54bea04a0889.js +0 -1
  387. package/assets/esri/core/workers/chunks/81aa5fe7dcb4fdeb0974.js +0 -1
  388. package/assets/esri/core/workers/chunks/840d08b41913cad4df89.js +0 -1
  389. package/assets/esri/core/workers/chunks/85d154aeb511c5d70bb1.js +0 -1
  390. package/assets/esri/core/workers/chunks/8681e99e2bc9ece61c43.js +0 -1
  391. package/assets/esri/core/workers/chunks/8e5ef967f6518f4c93b1.js +0 -1
  392. package/assets/esri/core/workers/chunks/8edd7f70c8b95c34125c.js +0 -1
  393. package/assets/esri/core/workers/chunks/9044a7b90a53312b6392.js +0 -1
  394. package/assets/esri/core/workers/chunks/905b4dfc1ce57a225fa4.js +0 -1
  395. package/assets/esri/core/workers/chunks/945f90b31ebfae623ea0.js +0 -1
  396. package/assets/esri/core/workers/chunks/9943fd69b67cd1871d68.js +0 -1
  397. package/assets/esri/core/workers/chunks/9ad91c23480ffb656030.js +0 -1
  398. package/assets/esri/core/workers/chunks/9d103681372ab01a4147.js +0 -1
  399. package/assets/esri/core/workers/chunks/9d3230f59b4c4d1b2713.js +0 -1
  400. package/assets/esri/core/workers/chunks/9db75bc0980d16b730a1.js +0 -1
  401. package/assets/esri/core/workers/chunks/a0659b8bdc067da7badd.js +0 -1
  402. package/assets/esri/core/workers/chunks/a480ee9a994410177961.js +0 -1
  403. package/assets/esri/core/workers/chunks/a9b279975d7df0f295d7.js +0 -1
  404. package/assets/esri/core/workers/chunks/aa3abaa5ad4a5a3bcb84.js +0 -1
  405. package/assets/esri/core/workers/chunks/aa8e607f908297786675.js +0 -1
  406. package/assets/esri/core/workers/chunks/ab5a302b5f62d38293f9.js +0 -1
  407. package/assets/esri/core/workers/chunks/abd6a84396e0eb3f01ad.js +0 -1
  408. package/assets/esri/core/workers/chunks/abe9f8516b03a3fb0477.js +0 -1
  409. package/assets/esri/core/workers/chunks/aff6aa5c7f75f8e052d9.js +0 -1
  410. package/assets/esri/core/workers/chunks/b601cc5304b132536239.js +0 -1
  411. package/assets/esri/core/workers/chunks/b85f614ddbddd3c3007e.js +0 -1
  412. package/assets/esri/core/workers/chunks/b944f4ab25a691b3e611.js +0 -1
  413. package/assets/esri/core/workers/chunks/bbdacddb61e651ca0098.js +0 -1
  414. package/assets/esri/core/workers/chunks/c2fa728e805637a1783e.js +0 -1
  415. package/assets/esri/core/workers/chunks/c901f5f85d962254fc2c.js +0 -1
  416. package/assets/esri/core/workers/chunks/ca173b908d89a4e334f6.js +0 -1
  417. package/assets/esri/core/workers/chunks/cc2ef3bfa1f614d7452c.js +0 -1
  418. package/assets/esri/core/workers/chunks/cdb32a9ac9f5804c4212.js +0 -1
  419. package/assets/esri/core/workers/chunks/ce9a4997973da80141a5.js +0 -1
  420. package/assets/esri/core/workers/chunks/d0674b50a358d3bb9db2.js +0 -1
  421. package/assets/esri/core/workers/chunks/d18b7b4b3b9bea7204b0.js +0 -1
  422. package/assets/esri/core/workers/chunks/d2ce983f7babdf18a0ed.js +0 -1
  423. package/assets/esri/core/workers/chunks/d38a0d867dc6cecdc551.js +0 -1
  424. package/assets/esri/core/workers/chunks/e39ca33e9e463c1d6060.js +0 -1
  425. package/assets/esri/core/workers/chunks/e471d103205018a5cf7f.js +0 -1
  426. package/assets/esri/core/workers/chunks/e542fb044fc96f7e8af2.js +0 -1
  427. package/assets/esri/core/workers/chunks/e94e00a28591337b2def.js +0 -1
  428. package/assets/esri/core/workers/chunks/eb2709ccbc001f42ac1b.js +0 -1
  429. package/assets/esri/core/workers/chunks/f905511ca5f9b59fc17f.js +0 -1
  430. package/assets/esri/core/workers/chunks/f910e80dd87727af5184.js +0 -1
  431. package/assets/esri/core/workers/chunks/f9300a24305b0af1d227.js +0 -1
  432. package/assets/esri/core/workers/chunks/fa1e1ac5b3ef7bdf8a78.js +0 -1
  433. package/assets/esri/core/workers/chunks/fce76a84c7d25d8d47e8.js +0 -1
  434. package/assets/esri/core/workers/chunks/fef4f97fbe861a1b60e8.js +0 -1
  435. package/layers/AreaMeasurementLayer.d.ts +0 -4
  436. package/layers/DirectLineMeasurementLayer.d.ts +0 -4
  437. package/symbols/support/symbolPreview.d.ts +0 -4
  438. package/symbols/support/symbolPreview.js +0 -5
  439. package/views/3d/layers/AreaMeasurementLayerView3D.d.ts +0 -4
  440. package/views/3d/layers/DirectLineMeasurementLayerView3D.d.ts +0 -4
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1387],{95401:(t,e,n)=>{n.d(e,{e:()=>a});var r,o,i,s={exports:{}};r=s,o=function(){function t(t,n,o){o=o||2;var i,s,a,c,u,p,h,f=n&&n.length,g=f?n[0]*o:t.length,x=e(t,0,g,o,!0),d=[];if(!x||x.next===x.prev)return d;if(f&&(x=l(t,n,x,o)),t.length>80*o){i=a=t[0],s=c=t[1];for(var m=o;m<g;m+=o)(u=t[m])<i&&(i=u),(p=t[m+1])<s&&(s=p),u>a&&(a=u),p>c&&(c=p);h=0!==(h=Math.max(a-i,c-s))?1/h:0}return r(x,d,o,i,s,h),d}function e(t,e,n,r,o){var i,s;if(o===R(t,e,n,r)>0)for(i=e;i<n;i+=r)s=M(i,t[i],t[i+1],s);else for(i=n-r;i>=e;i-=r)s=M(i,t[i],t[i+1],s);if(s&&v(s,s.next)){var a=s.next;T(s),s=a}return s}function n(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(T(r),(r=e=o)===r.next)break;n=!0}}while(n||r!==e);return e}function r(t,e,l,c,u,p,h){if(t){!h&&p&&f(t,c,u,p);for(var g,x,d=t;t.prev!==t.next;)if(g=t.prev,x=t.next,p?i(t,c,u,p):o(t))e.push(g.i/l),e.push(t.i/l),e.push(x.i/l),T(t),t=x.next,d=x.next;else if((t=x)===d){h?1===h?r(t=s(n(t),e,l),e,l,c,u,p,2):2===h&&a(t,e,l,c,u,p):r(n(t),e,l,c,u,p,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var o=t.next.next;o!==t.prev;){if(d(e.x,e.y,n.x,n.y,r.x,r.y,o.x,o.y)&&y(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(t,e,n,r){var o=t.prev,i=t,s=t.next;if(y(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,c=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,u=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,p=g(a,l,e,n,r),h=g(c,u,e,n,r),f=t.prevZ,x=t.nextZ;f&&f.z>=p&&x&&x.z<=h;){if(f!==t.prev&&f!==t.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,x!==t.prev&&x!==t.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;f&&f.z>=p;){if(f!==t.prev&&f!==t.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;x&&x.z<=h;){if(x!==t.prev&&x!==t.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function s(t,e,r){var o=t;do{var i=o.prev,s=o.next.next;!v(i,s)&&w(i,o,o.next,s)&&A(i,s)&&A(s,i)&&(e.push(i.i/r),e.push(o.i/r),e.push(s.i/r),T(o),T(o.next),o=t=s),o=o.next}while(o!==t);return n(o)}function a(t,e,o,i,s,a){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=Z(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,e,o,i,s,a),void r(u,e,o,i,s,a)}c=c.next}l=l.next}while(l!==t)}function l(t,r,o,i){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=e(t,r[s]*i,s<a-1?r[s+1]*i:t.length,i,!1))===l.next&&(l.steiner=!0),u.push(x(l));for(u.sort(c),s=0;s<u.length;s++)o=n(o=p(u[s],o),o.next);return o}function c(t,e){return t.x-e.x}function u(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function p(t,e){var r=function(t,e){var n,r=e,o=t.x,i=t.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(o===s)return n;var l,c=n,u=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=u&&o!==r.x&&d(i<p?o:s,i,u,p,i<p?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),A(r,t)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(t,e);if(!r)return e;var o=Z(r,t),i=n(r,r.next);let s=u(o);return n(s,s.next),i=u(i),u(e===r?i:e)}function h(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function f(t,e,n,r){var o=t;do{if(null===o.z&&(o.z=g(o.x,o.y,e,n,r)),o.prev.next!==o||o.next.prev!==o)return o.prev.next=o,o.next.prev=o,f(t,e,n,r);o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,n,r,o,i,s,a,l,c=1;do{for(n=t,t=null,i=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:t=o,o.prevZ=i,i=o;n=r}i.nextZ=null,c*=2}while(s>1)}(o)}function g(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*o)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*o)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function x(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function d(t,e,n,r,o,i,s,a){return(o-s)*(e-a)-(t-s)*(i-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(A(t,e)&&A(e,t)&&function(t,e){var n=t,r=!1,o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||v(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){var o=C(y(t,e,n)),i=C(y(t,e,r)),s=C(y(n,r,t)),a=C(y(n,r,e));return o!==i&&s!==a||!(0!==o||!b(t,n,e))||!(0!==i||!b(t,r,e))||!(0!==s||!b(n,t,r))||!(0!==a||!b(n,e,r))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function C(t){return t>0?1:t<0?-1:0}function A(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function Z(t,e){var n=new F(t.i,t.x,t.y),r=new F(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function M(t,e,n,r){var o=new F(t,e,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function T(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function F(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function R(t,e,n,r){for(var o=0,i=e,s=n-r;i<n;i+=r)o+=(t[s]-t[i])*(t[i+1]+t[s+1]),s=i;return o}return t.deviation=function(t,e,n,r){var o=e&&e.length,i=o?e[0]*n:t.length,s=Math.abs(R(t,0,i,n));if(o)for(var a=0,l=e.length;a<l;a++){var c=e[a]*n,u=a<l-1?e[a+1]*n:t.length;s-=Math.abs(R(t,c,u,n))}var p=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,f=r[a+1]*n,g=r[a+2]*n;p+=Math.abs((t[h]-t[g])*(t[f+1]-t[h+1])-(t[h]-t[f])*(t[g+1]-t[h+1]))}return 0===s&&0===p?0:Math.abs((p-s)/s)},t.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,o=0;o<t.length;o++){for(var i=0;i<t[o].length;i++)for(var s=0;s<e;s++)n.vertices.push(t[o][i][s]);o>0&&(r+=t[o-1].length,n.holes.push(r))}return n},t},void 0!==(i=o())&&(r.exports=i);const a=s.exports},62540:(t,e,n)=>{n.d(e,{Z:()=>m});var r,o=n(43697),i=n(10736),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),p=n(75215),h=n(65542),f=n(60746),g=n(71630);const x=a.Z.getLogger("esri.geometry.support.MeshComponent");let d=r=class extends i.wq{constructor(t){super(t),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(t){return(0,p.TJ)(r,t)}castFaces(t){return(0,g.XQ)(t,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},x)}castMaterial(t){return(0,p.TJ)(t&&"object"==typeof t&&("metallic"in t||"roughness"in t||"metallicRoughnessTexture"in t)?f.Z:h.Z,t)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(t,e){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(t,e):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}};(0,o._)([(0,l.Cb)({json:{write:!0}})],d.prototype,"faces",void 0),(0,o._)([(0,c.p)("faces")],d.prototype,"castFaces",null),(0,o._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],d.prototype,"material",void 0),(0,o._)([(0,c.p)("material")],d.prototype,"castMaterial",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"shading",void 0),(0,o._)([(0,l.Cb)({type:Boolean})],d.prototype,"trustSourceNormals",void 0),d=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshComponent")],d);const m=d},65542:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(10736),a=n(70586),l=n(5600),c=(n(67676),n(80442),n(75215),n(52011)),u=n(81118);let p=r=class extends s.wq{constructor(t){super(t),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,a.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,a.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{color:(0,a.pC)(this.color)?this.color.clone():null,colorTexture:(0,a.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(t):null,normalTexture:(0,a.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(t):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided}}};(0,o._)([(0,l.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),p=r=(0,o._)([(0,c.j)("esri.geometry.support.MeshMaterial")],p);const h=p},60746:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(70586),a=n(5600),l=(n(67676),n(80442),n(75215),n(52011)),c=n(65542),u=n(81118);let p=r=class extends c.Z{constructor(t){super(t),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,s.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,s.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{...super.clonePropertiesWithDeduplication(t),emissiveColor:(0,s.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,s.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(t):null,occlusionTexture:(0,s.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(t):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,s.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(t):null}}};(0,o._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),p=r=(0,o._)([(0,l.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const h=p},81118:(t,e,n)=>{n.d(e,{Z:()=>m});var r=n(43697),o=(n(80442),n(10736)),i=n(5600),s=(n(67676),n(75215)),a=n(71715),l=n(52011),c=n(30556),u=n(25929);n(22021);let p=null,h=!0;var f;const g=new WeakMap;let x=0,d=f=class extends o.wq{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,n,r){if(t instanceof HTMLImageElement){const o={type:"image-element",src:(0,u.t)(t.src,r),crossOrigin:t.crossOrigin};e[n]=o}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),o={type:"canvas-element",imageData:this.encodeImageData(r)};e[n]=o}else if(t instanceof HTMLVideoElement){const o={type:"video-element",src:(0,u.t)(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[n]=o}else{const r={type:"image-data",imageData:this.encodeImageData(t)};e[n]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this.decodeImageData(t.imageData),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n}case"image-data":return this.decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this.imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this.imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),n=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===n)return!0}return!1}set transparent(t){null!=t?this._override("transparent",t):this._clearOverride("transparent")}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(g.has(this.data)||g.set(this.data,++x),e(g.get(this.data))):e()}clone(){const t={url:this.url,data:this.data,wrap:this.cloneWrap()};return new f(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const n=this.clone();return t.set(this,n),n}cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}encodeImageData(t){let e="";for(let n=0;n<t.data.length;n++)e+=String.fromCharCode(t.data[n]);return{data:btoa(e),width:t.width,height:t.height}}decodeImageData(t){const e=atob(t.data),n=new Uint8ClampedArray(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return function(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(h)try{return new ImageData(t,e,n)}catch(t){h=!1}const o=function(t,e,n){return n||(p||(p=document.createElement("canvas"),p.width=1,p.height=1),n=p),n.getContext("2d").createImageData(t,e)}(e,n,void 0);return o.data.set(t,0),o}(n,t.width,t.height)}imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new f({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new f({data:t}):(0,s.TJ)(f,t)}};(0,r._)([(0,i.Cb)({type:String,json:{write:u.w}})],d.prototype,"url",null),(0,r._)([(0,i.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,i.Cb)()],d.prototype,"data",null),(0,r._)([(0,c.c)("data")],d.prototype,"writeData",null),(0,r._)([(0,a.r)("data")],d.prototype,"readData",null),(0,r._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],d.prototype,"transparent",null),(0,r._)([(0,i.Cb)({json:{write:!0}})],d.prototype,"wrap",void 0),(0,r._)([(0,i.Cb)({readOnly:!0})],d.prototype,"contentHash",null),d=f=(0,r._)([(0,l.j)("esri.geometry.support.MeshTexture")],d);const m=d},71630:(t,e,n)=>{n.d(e,{QL:()=>h,XQ:()=>g,ZP:()=>d});var r,o=n(43697),i=n(10736),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const p=a.Z.getLogger("esri.geometry.support.MeshVertexAttributes");let h=r=class extends i.wq{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return g(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},p)}castPosition(t){return t&&t instanceof Float32Array&&p.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),g(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},p)}castUv(t){return g(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},p)}castNormal(t){return g(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},p)}castTangent(t){return g(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},p)}clone(){const t={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(t)}clonePositional(){const t={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(t)}};function f(t,e,n,r){const{loggerTag:o,stride:i}=e;return t.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):t}function g(t,e,n,r,o){if(!t)return t;if(t instanceof e)return f(t,r,e,o);for(const i of n)if(t instanceof i)return f(new e(t),r,e,o);if(Array.isArray(t))return f(new e(t),r,e,o);{const r=n.map((t=>`'${t.name}'`));return o.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new e([])}}function x(t,e,n){e[n]=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n];return e}(t)}(0,o._)([(0,l.Cb)({json:{write:x}})],h.prototype,"color",void 0),(0,o._)([(0,c.p)("color")],h.prototype,"castColor",null),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:x}})],h.prototype,"position",void 0),(0,o._)([(0,c.p)("position")],h.prototype,"castPosition",null),(0,o._)([(0,l.Cb)({json:{write:x}})],h.prototype,"uv",void 0),(0,o._)([(0,c.p)("uv")],h.prototype,"castUv",null),(0,o._)([(0,l.Cb)({json:{write:x}})],h.prototype,"normal",void 0),(0,o._)([(0,c.p)("normal")],h.prototype,"castNormal",null),(0,o._)([(0,l.Cb)({json:{write:x}})],h.prototype,"tangent",void 0),(0,o._)([(0,c.p)("tangent")],h.prototype,"castTangent",null),h=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshVertexAttributes")],h);const d=h},47545:(t,e,n)=>{n.d(e,{d:()=>o});var r=n(22021);function o(t,e,n){var o;const c=t.byteLength/(4*e),u=new Uint32Array(t,0,c*e);let p=new Uint32Array(c);const h=null!=(o=null==n?void 0:n.minReduction)?o:0,f=(null==n?void 0:n.originalIndices)||null,g=f?f.length:0,x=(null==n?void 0:n.componentOffsets)||null;let d=0;if(x)for(let t=0;t<x.length-1;t++){const e=x[t+1]-x[t];e>d&&(d=e)}else d=c;const m=Math.floor(1.1*d)+1;(null==l||l.length<2*m)&&(l=new Uint32Array((0,r.Sf)(2*m)));for(let t=0;t<2*m;t++)l[t]=0;let y=0;const v=!!x&&!!f,w=v?g:c,b=v?new Uint32Array(g):null,C=1.96;let A=0!==h?Math.ceil(4*C*C/(h*h)*h*(1-h)):w,Z=1,M=x?x[1]:w;for(let t=0;t<w;t++){if(t===A){const e=1-y/t;if(e+C*Math.sqrt(e*(1-e)/t)<h)return null;A*=2}if(t===M){for(let t=0;t<2*m;t++)l[t]=0;if(f)for(let t=x[Z-1];t<x[Z];t++)b[t]=p[f[t]];M=x[++Z]}const n=v?f[t]:t,r=n*e,o=a(u,r,e);let s=o%m,c=y;for(;0!==l[2*s+1];){if(l[2*s]===o){const t=l[2*s+1]-1;if(i(u,r,t*e,e)){c=p[t];break}}s++,s>=m&&(s-=m)}c===y&&(l[2*s]=o,l[2*s+1]=n+1,y++),p[n]=c}if(0!==h&&1-y/c<h)return null;if(v){for(let t=x[Z-1];t<b.length;t++)b[t]=p[f[t]];p=b}const T=new Uint32Array(e*y);y=0;for(let t=0;t<w;t++)p[t]===y&&(s(u,(v?f[t]:t)*e,T,y*e,e),y++);if(f&&!v){const t=new Uint32Array(g);for(let e=0;e<t.length;e++)t[e]=p[f[e]];p=t}return{buffer:T.buffer,indices:p,uniqueCount:y}}function i(t,e,n,r){for(let o=0;o<r;o++)if(t[e+o]!==t[n+o])return!1;return!0}function s(t,e,n,r,o){for(let i=0;i<o;i++)n[r+i]=t[e+i]}function a(t,e,n){let r=0;for(let o=0;o<n;o++)r=t[e+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null},31387:(t,e,n)=>{n.r(e),n.d(e,{meshFeatureSetFromJSON:()=>Mt});var r=n(38171),o=n(70586),i=n(6570),s=n(43697),a=n(20102),l=n(83379),c=n(92604),u=n(609),p=n(95330),h=n(5600),f=(n(67676),n(80442),n(75215),n(52011)),g=n(65617),x=n(9361),d=n(13473),m=n(17332),y=n(3709),v=n(62540),w=n(2674),b=n(71630),C=n(95401),A=n(86662),Z=n(47545);function M(t,e,n){const r=t.length,o=new Array(r),i=new Array(r),s=new Array(r);let a=0,l=0,c=0,u=0;for(let e=0;e<r;++e)u+=t[e].length;const p=new Float64Array(3*u);let h=0;for(let u=r-1;u>=0;u--){const f=t[u],g=1===n&&F(f);if(g&&1!==r)o[a++]=f;else{let t=f.length;for(let e=0;e<a;++e)t+=o[e].length;const n={index:h,pathLengths:new Array(a+1),count:t,holeIndices:new Array(a)};n.pathLengths[0]=f.length,f.length>0&&(s[c++]={index:h,count:f.length}),h=g?T(f,f.length-1,-1,p,h,f.length,e):T(f,0,1,p,h,f.length,e);for(let t=0;t<a;++t){const r=o[t];n.holeIndices[t]=h,n.pathLengths[t+1]=r.length,r.length>0&&(s[c++]={index:h,count:r.length}),h=T(r,0,1,p,h,r.length,e)}a=0,n.count>0&&(i[l++]=n)}}for(let t=0;t<a;++t){const n=o[t];n.length>0&&(s[c++]={index:h,count:n.length}),h=T(n,0,1,p,h,n.length,e)}return l<r&&(i.length=l),c<r&&(s.length=c),{position:p,polygons:i,outlines:s}}function T(t,e,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=t[e];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,e+=n}return o/3}function F(t){return!(0,A.bu)(t,!1,!1)}var R=n(42894),_=n(13442),D=n(66459);const O=c.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const j=(0,g.c)(),L=(0,g.c)();var P=n(17452);function I(t){const e=(0,P.Yd)(t.url);return n=>{var r;const o=(0,P.PF)(n,e,e),i=o?o.replace(/^ *\.\//,""):null;return null!=(r=t.files.get(i))?r:n}}async function z(t,e){return t instanceof Blob?S.fromBlob(t):"string"==typeof t?new S(t):Array.isArray(t)?async function(t,e){const n=new Map;let r=null;const i=await(0,p.WW)(t.map((async t=>({name:t.name,source:await z(t instanceof Blob?t:t.source,e)})))),s=[];for(const t of i)t&&((0,p.Hc)(e)?t.source.dispose():s.push(t));(0,p.k_)(e);for(const{name:t,source:e}of s)((0,o.Wi)(r)||/\.(gltf|glb)/i.test(t))&&(r=e.url),n.set(t,e.url),e.files&&e.files.forEach(((t,e)=>n.set(e,t)));if((0,o.Wi)(r))throw new a.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new S(r,(()=>s.forEach((({source:t})=>t.dispose()))),n)}(t,e):async function(t,e){const{default:r}=await(0,p.Hl)(Promise.resolve().then(n.bind(n,3172)),e),o="string"==typeof t.multipart[0]?await Promise.all(t.multipart.map((async t=>(await r(t,{responseType:"array-buffer"})).data))):t.multipart;return S.fromBlob(new Blob(o))}(t,e)}class S{constructor(t,e=(()=>{}),n=new Map){this.url=t,this.dispose=e,this.files=n}static fromBlob(t){const e=URL.createObjectURL(t);return new S(e,(()=>URL.revokeObjectURL(e)))}}var U=n(21787),E=n(46521),W=n(13598),k=n(17896),$=n(24678),N=n(56493);const H=c.Z.getLogger("esri.geometry.support.meshUtils.offset");function B(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const q=(0,g.c)(),X=(0,W.c)(),Y=(0,E.c)(),K={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function V(t,e,n){(function(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5})(t),function(t,e){if(null==e)return;const n="number"==typeof e?[e,e,e]:[null!=e.width?e.width:1,null!=e.depth?e.depth:1,null!=e.height?e.height:1];tt[0]=n[0],tt[4]=n[1],tt[8]=n[2];for(let e=0;e<t.position.length;e+=3){for(let n=0;n<3;n++)Q[n]=t.position[e+n];(0,k.t)(Q,Q,tt);for(let n=0;n<3;n++)t.position[e+n]=Q[n]}if(n[0]!==n[1]||n[1]!==n[2]){tt[0]=1/n[0],tt[4]=1/n[1],tt[8]=1/n[2];for(let e=0;e<t.normal.length;e+=3){for(let n=0;n<3;n++)Q[n]=t.normal[e+n];(0,k.t)(Q,Q,tt),(0,k.n)(Q,Q);for(let n=0;n<3;n++)t.normal[e+n]=Q[n]}}}(t,n&&n.size);const{vertexAttributes:r,transform:o}=(0,D.w1)(t,e,n);return{vertexAttributes:new b.ZP({...r,uv:t.uv}),transform:o,components:[new v.Z({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}const J={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},G={south:0,east:1,north:2,west:3,up:4,down:5},Q=(0,g.c)(),tt=(0,E.c)();var et=n(52138);const nt=c.Z.getLogger("esri.geometry.support.meshUtils.rotate");function rt(t,e,n,r=g.Z){if(!(0,o.Wi)(t)){(0,et.i)(at),(0,et.d)(at,at,(0,y.WH)(e),(0,y.ZZ)(e));for(let e=0;e<t.length;e+=n){for(let n=0;n<3;n++)ot[n]=t[e+n]-r[n];(0,k.m)(ot,ot,at);for(let n=0;n<3;n++)t[e+n]=ot[n]+r[n]}}}const ot=(0,g.c)(),it=(0,g.c)(),st=(0,y.Ue)(),at=(0,W.c)(),lt=(0,E.c)(),ct=(0,g.c)(),ut=c.Z.getLogger("esri.geometry.support.meshUtils.scale");function pt(t,e,n=g.Z){if(t)for(let r=0;r<t.length;r+=3){for(let e=0;e<3;e++)ht[e]=t[r+e]-n[e];(0,k.a)(ht,ht,e);for(let e=0;e<3;e++)t[r+e]=ht[e]+n[e]}}const ht=(0,g.c)(),ft=(0,g.c)(),gt=(0,g.c)();var xt;const dt=c.Z.getLogger("esri.geometry.Mesh");let mt=xt=class extends(l.Z.LoadableMixin((0,u.v)(x.Z))){constructor(t){super(t),this.components=null,this.transform=null,this.external=null,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new b.QL,this.type="mesh"}initialize(){((0,o.Wi)(this.external)||this.vertexAttributes.position.length)&&(this.loadStatus="loaded")}get hasExtent(){return!this.loaded&&(0,o.pC)(this.external)&&(0,o.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get boundingInfo(){const t=this.vertexAttributes.position,e=this.spatialReference;if(0===t.length||this.components&&0===this.components.length)return{extent:new i.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:e}),center:new d.Z({x:0,y:0,z:0,spatialReference:e})};const n=(0,o.pC)(this.transform)?this.transform.project(t,e):t;let r=1/0,s=1/0,a=1/0,l=-1/0,c=-1/0,u=-1/0,p=0,h=0,f=0;const g=n.length,x=1/(g/3);let m=0;for(;m<g;){const t=n[m++],e=n[m++],o=n[m++];r=Math.min(r,t),s=Math.min(s,e),a=Math.min(a,o),l=Math.max(l,t),c=Math.max(c,e),u=Math.max(u,o),p+=x*t,h+=x*e,f+=x*o}return{extent:new i.Z({xmin:r,ymin:s,zmin:a,xmax:l,ymax:c,zmax:u,spatialReference:e}),center:new d.Z({x:p,y:h,z:f,spatialReference:e})}}get anchor(){if((0,o.pC)(this.transform))return this.transform.getOriginPoint(this.spatialReference);const t=this.boundingInfo;return new d.Z({x:t.center.x,y:t.center.y,z:t.extent.zmin,spatialReference:this.spatialReference})}get origin(){return(0,o.pC)(this.transform)?this.transform.getOriginPoint(this.spatialReference):this.boundingInfo.center}get extent(){return!this.loaded&&(0,o.pC)(this.external)&&(0,o.pC)(this.external.extent)?this.external.extent.clone():this.boundingInfo.extent}addComponent(t){this.loaded?(this.components||(this.components=[]),this.components.push(v.Z.from(t)),this.notifyChange("components")):dt.error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(t){if(this.loaded){if(this.components){const e=this.components.indexOf(t);if(-1!==e)return this.components.splice(e,1),void this.notifyChange("components")}dt.error("removeComponent()","Provided component is not part of the list of components")}else dt.error("removeComponent()","Mesh must be loaded before applying operations")}rotate(t,e,n,r){return(0,y.uT)(yt.x,t,vt),(0,y.uT)(yt.y,e,wt),(0,y.uT)(yt.z,n,bt),(0,y.qC)(vt,wt,vt),(0,y.qC)(vt,bt,vt),function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const r=t.spatialReference;if((0,o.pC)(t.transform)){var i;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&nt.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const o=null!=(i=null==n?void 0:n.origin)?i:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,k.s)(ot,n.x,n.y,n.z),o=(0,k.f)(ot,r,t.origin);t.applyLocalInverse(o,it),t.rotation=(0,y.qC)(t.rotation,e,(0,y.Ue)()),t.applyLocalInverse(o,o),(0,k.f)(o,o,it),t.translation=(0,k.b)((0,g.c)(),t.translation,o)}(t.transform,e,o)}else{var s;const r=null!=(s=null==n?void 0:n.origin)?s:t.origin;(0,_.h)(t.spatialReference,n)?function(t,e,n){const r=t.spatialReference,i=(0,$.rS)(r),s=ct;(0,R.KC)(n,s,i)||(0,R.KC)(t.origin,s,i);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,o.pC)(l)?new Float32Array(l.length):null,h=(0,o.pC)(c)?new Float32Array(c.length):null;(0,R.Bm)(i,s,at,i),(0,U.f)(lt,at);const f=st;(0,k.t)((0,y.ZZ)(st),(0,y.ZZ)(e),lt),f[3]=e[3],(0,N.XO)(a,r,u),(0,o.pC)(l)&&(0,N.Iz)(l,a,u,r,p),(0,o.pC)(c)&&(0,N.wi)(c,a,u,r,h),rt(u,f,3,s),(0,N.To)(u,a,r),(0,o.pC)(l)&&(rt(p,f,3),(0,N.Yk)(p,a,u,r,l)),(0,o.pC)(c)&&(rt(h,f,4),(0,N.M2)(h,a,u,r,c)),t.vertexAttributesChanged()}(t,e,r):function(t,e,n){const r=ct;if(!(0,R.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,nt.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}rt(t.vertexAttributes.position,e,3,r),rt(t.vertexAttributes.normal,e,3),rt(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}(t,e,r)}}(this,vt,r),this}offset(t,e,n,r){return this.loaded?(Ct[0]=t,Ct[1]=e,Ct[2]=n,function(t,e,n){t.vertexAttributes&&t.vertexAttributes.position&&((0,o.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&H.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e){const n=t.origin;t.origin=(0,k.b)((0,g.c)(),n,e)}(t.transform,e)):(0,_.h)(t.spatialReference,n)?function(t,e){const n=t.spatialReference,r=t.vertexAttributes.position,i=t.vertexAttributes.normal,s=t.vertexAttributes.tangent,a=new Float64Array(r.length),l=(0,o.pC)(i)?new Float32Array(i.length):null,c=(0,o.pC)(s)?new Float32Array(s.length):null,u=t.extent.center,p=q;(0,R.Bm)(n,[u.x,u.y,u.z],X,(0,$.rS)(n)),(0,U.f)(Y,X),(0,k.t)(p,e,Y),(0,N.XO)(r,n,a),(0,o.pC)(i)&&(0,N.Iz)(i,r,a,n,l),(0,o.pC)(s)&&(0,N.wi)(s,r,a,n,c),B(a,p),(0,N.To)(a,r,n),(0,o.pC)(i)&&(0,N.Yk)(l,r,a,n,i),(0,o.pC)(s)&&(0,N.M2)(c,r,a,n,s),t.vertexAttributesChanged()}(t,e):function(t,e){B(t.vertexAttributes.position,e),t.vertexAttributesChanged()}(t,e))}(this,Ct,r),this):(dt.error("offset()","Mesh must be loaded before applying operations"),this)}scale(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const r=t.spatialReference;if((0,o.pC)(t.transform)){var i;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&ut.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const o=null!=(i=null==n?void 0:n.origin)?i:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,k.s)(ht,n.x,n.y,n.z),o=(0,k.f)(ht,r,t.origin);t.applyLocalInverse(o,ft);const i=(0,k.a)((0,g.c)(),t.scale,e);t.scale=i,t.applyLocalInverse(o,o),(0,k.f)(o,o,ft),t.translation=(0,k.b)((0,g.c)(),t.translation,o)}(t.transform,e,o)}else{const r=(0,_.h)(t.spatialReference,n),i=n&&n.origin||t.origin;r?function(t,e,n){const r=t.spatialReference,i=(0,$.rS)(r),s=gt;(0,R.KC)(n,s,i)||(0,R.KC)(t.origin,s,i);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,o.pC)(l)?new Float32Array(l.length):null,h=(0,o.pC)(c)?new Float32Array(c.length):null;(0,N.XO)(a,r,u),(0,o.pC)(l)&&(0,N.Iz)(l,a,u,r,p),(0,o.pC)(c)&&(0,N.wi)(c,a,u,r,h),pt(u,e,s),(0,N.To)(u,a,r),(0,o.pC)(l)&&(0,N.Yk)(p,a,u,r,l),(0,o.pC)(c)&&(0,N.M2)(h,a,u,r,c),t.vertexAttributesChanged()}(t,e,i):function(t,e,n){const r=gt;if(!(0,R.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,ut.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}pt(t.vertexAttributes.position,e,r),t.vertexAttributesChanged()}(t,e,i)}}(this,t,e),this):(dt.error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(t,e){return this.loaded?(function(t,e,n){var r;if(!t.vertexAttributes||!t.vertexAttributes.position)return;const i=null!=(r=null==n?void 0:n.origin)?r:t.origin;(0,o.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&O.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e,n){const r=e.x-n.x,o=e.y-n.y,i=e.hasZ&&n.hasZ?e.z-n.z:0,s=t.origin;t.origin=[s[0]+r,s[1]+o,s[2]+i]}(t.transform,e,i)):(0,_.h)(t.spatialReference,n)?function(t,e,n){const r=(0,D.FF)(t.vertexAttributes,n,{geographic:!0}),{position:o,normal:i,tangent:s}=(0,D.iv)(r,e,{geographic:!0});t.vertexAttributes.position=o,t.vertexAttributes.normal=i,t.vertexAttributes.tangent=s,t.vertexAttributesChanged()}(t,e,i):function(t,e,n){const r=L,o=j;if((0,R.KC)(e,o,t.spatialReference)){if(!(0,R.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,O.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}(function(t,e,n){if(t)for(let r=0;r<t.length;r+=3)for(let o=0;o<3;o++)t[r+o]+=e[o]-n[o]})(t.vertexAttributes.position,o,r),t.vertexAttributesChanged()}else O.error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid})`)}(t,e,i)}(this,t,e),this):(dt.error("centerAt()","Mesh must be loaded before applying operations"),this)}load(t){return(0,o.pC)(this.external)&&this.addResolvingPromise(async function(t,e,r){const{loadGLTFMesh:i}=await(0,p.Hl)(Promise.all([n.e(1762),n.e(9070)]).then(n.bind(n,99070)),r),s=await z(e,r),a=i(new d.Z({x:0,y:0,z:0,spatialReference:t.spatialReference}),s.url,{resolveFile:I(s),useTransform:!0,signal:(0,o.pC)(r)?r.signal:null});a.then((()=>s.dispose()),(()=>s.dispose()));const{vertexAttributes:l,components:c}=await a;t.vertexAttributes=l,t.components=c}(this,this.external.source,t)),Promise.resolve(this)}clone(){const t=this.components?new Map:null,e=this.components?new Map:null,n={components:this.components?this.components.map((n=>n.cloneWithDeduplication(t,e))):null,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,o.pC)(this.transform)?this.transform.clone():null,external:(0,o.pC)(this.external)?{source:this.external.source,extent:(0,o.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new xt(n)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(t){const{toBinaryGLTF:e}=await n.e(7277).then(n.bind(n,7277));return e(this,t)}static createBox(t,e){if(!(t instanceof d.Z))return dt.error(".createBox()","expected location to be a Point instance"),null;const n=new xt(V(function(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=J,r=4*t.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let l=0,c=0,u=0,p=0;for(let r=0;r<t.length;r++){const h=t[r],f=l/3;for(const t of e)a[p++]=f+t;const g=h.corners;for(let t=0;t<4;t++){const e=g[t];let r=0;s[u++]=.25*n[t][0]+h.uvOrigin[0],s[u++]=h.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==h.axis[t]?(o[l++]=.5*h.axis[t],i[c++]=h.axis[t]):(o[l++]=.5*e[r++],i[c++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),t,e));return e&&e.imageFace&&"all"!==e.imageFace?function(t,e){const n=t.components[0],r=n.faces,i=G[e],s=6*i,a=new Uint32Array(6),l=new Uint32Array(r.length-6);let c=0,u=0;for(let t=0;t<r.length;t++)t>=s&&t<s+6?a[c++]=r[t]:l[u++]=r[t];if((0,o.pC)(t.vertexAttributes.uv)){const e=new Float32Array(t.vertexAttributes.uv),n=4*i*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new v.Z({faces:a,material:n.material}),new v.Z({faces:l})],t}(n,e.imageFace):n}static createSphere(t,e){return t instanceof d.Z?new xt(V(function(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((e-1)*n*2*3);let l=0,c=0,u=0,p=0;for(let t=0;t<=e;t++){const r=t/e*Math.PI+.5*Math.PI,h=Math.cos(r),f=Math.sin(r);Q[2]=f;const g=0===t||t===e,x=g?n-1:n;for(let r=0;r<=x;r++){const f=r/x*2*Math.PI;Q[0]=-Math.sin(f)*h,Q[1]=Math.cos(f)*h;for(let t=0;t<3;t++)o[l]=.5*Q[t],i[l]=Q[t],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=t/e,0!==t&&r!==n&&(t!==e&&(a[u++]=p,a[u++]=p+1,a[u++]=p-n),1!==t&&(a[u++]=p,a[u++]=p-n,a[u++]=p-n-1)),p++}}return{position:o,normal:i,uv:s,faces:a}}(e&&e.densificationFactor||0),t,e)):(dt.error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(t,e){return t instanceof d.Z?new xt(V(function(t=0){const e=Math.round(16*2**t),n=4*(e+1)+2*e,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*e*3);let a=0,l=0,c=0,u=0,p=0;for(let t=0;t<=5;t++){const n=0===t||5===t,h=t<=1||t>=4,f=2===t||4===t,g=n?e-1:e;for(let x=0;x<=g;x++){const d=x/g*2*Math.PI,m=n?0:.5;Q[0]=m*Math.sin(d),Q[1]=m*-Math.cos(d),Q[2]=t<=2?.5:-.5;for(let e=0;e<3;e++)r[a++]=Q[e],o[l++]=h?2===e?t<=1?1:-1:0:2===e?0:Q[e]/m;i[c++]=(x+(n?.5:0))/e,i[c++]=t<=1?1*t/3:t<=3?1*(t-2)/3+1/3:1*(t-4)/3+2/3,f||0===t||x===e||(5!==t&&(s[u++]=p,s[u++]=p+1,s[u++]=p-e),1!==t&&(s[u++]=p,s[u++]=p-e,s[u++]=p-e-1)),p++}}return{position:r,normal:o,uv:i,faces:s}}(e&&e.densificationFactor||0),t,e)):(dt.error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(t,e){return t instanceof d.Z?new xt(V(function(t){const e=K.facingAxisOrderSwap[t],n=K.position,r=K.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let t=0;t<4;t++){const t=s;for(let a=0;a<3;a++){const l=e[a],c=Math.abs(l)-1,u=l>=0?1:-1;o[s]=n[t+c]*u,i[s]=r[t+c]*u,s++}}return{position:o,normal:i,uv:new Float32Array(K.uv),faces:new Uint32Array(K.faces)}}(e&&e.facing||"up"),t,e)):(dt.error(".createPlane()","expected location to be a Point instance"),null)}static createFromPolygon(t,e){if(!(t instanceof m.Z))return dt.error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(t){const e=M(t.rings,t.hasZ,1),n=[];let r=0,o=0;for(const t of e.polygons){const i=t.count,s=t.index,a=new Float64Array(e.position.buffer,3*s*e.position.BYTES_PER_ELEMENT,3*i),l=t.holeIndices.map((t=>t-s)),c=new Uint32Array((0,C.e)(a,l,3));n.push({position:a,faces:c}),r+=a.length,o+=c.length}const i=function(t,e,n){if(1===t.length)return t[0];const r=new Float64Array(e),o=new Uint32Array(n);let i=0,s=0,a=0;for(const e of t){for(let t=0;t<e.position.length;t++)r[i++]=e.position[t];for(let t=0;t<e.faces.length;t++)o[s++]=e.faces[t]+a;a=i/3}return{position:r,faces:o}}(n,r,o),s=(0,Z.d)(i.position.buffer,6,{originalIndices:i.faces});return i.position=new Float64Array(s.buffer),i.faces=s.indices,i}(t);return new xt({vertexAttributes:new b.QL({position:n.position}),components:[new v.Z({faces:n.faces,shading:"flat",material:e&&e.material||null})],spatialReference:t.spatialReference})}static async createFromGLTF(t,e,r){if(!(t instanceof d.Z))throw dt.error(".createfromGLTF()","expected location to be a Point instance"),new a.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,p.Hl)(Promise.all([n.e(1762),n.e(9070)]).then(n.bind(n,99070)),r);return new xt(await o(t,e,r))}static createWithExternalSource(t,e,n){var r,o,i;const s=null!=(r=null==n?void 0:n.extent)?r:null,a=null!=(o=null==n?void 0:n.transform.clone())?o:new w.Z;a.origin=[t.x,t.y,null!=(i=t.z)?i:0];const l=t.spatialReference;return new xt({external:{source:e,extent:s},transform:a,spatialReference:l})}static createIncomplete(t,e){var n,r;const o=null!=(n=null==e?void 0:e.transform.clone())?n:new w.Z;o.origin=[t.x,t.y,null!=(r=t.z)?r:0];const i=t.spatialReference,s=new xt({transform:o,spatialReference:i});return s.addResolvingPromise(Promise.reject(new a.Z("mesh-incomplete","Mesh resources are not complete"))),s}};(0,s._)([(0,h.Cb)({type:[v.Z],json:{write:!0}})],mt.prototype,"components",void 0),(0,s._)([(0,h.Cb)({type:w.Z,json:{write:!0}})],mt.prototype,"transform",void 0),(0,s._)([(0,h.Cb)({constructOnly:!0})],mt.prototype,"external",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],mt.prototype,"hasExtent",null),(0,s._)([(0,h.Cb)({readOnly:!0})],mt.prototype,"boundingInfo",null),(0,s._)([(0,h.Cb)({readOnly:!0})],mt.prototype,"anchor",null),(0,s._)([(0,h.Cb)({readOnly:!0})],mt.prototype,"origin",null),(0,s._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],mt.prototype,"extent",null),(0,s._)([(0,h.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],mt.prototype,"hasZ",void 0),(0,s._)([(0,h.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],mt.prototype,"hasM",void 0),(0,s._)([(0,h.Cb)({type:b.QL,nonNullable:!0,json:{write:!0}})],mt.prototype,"vertexAttributes",void 0),mt=xt=(0,s._)([(0,f.j)("esri.geometry.Mesh")],mt);const yt={x:(0,g.f)(1,0,0),y:(0,g.f)(0,1,0),z:(0,g.f)(0,0,1)},vt=(0,y.Ue)(),wt=(0,y.Ue)(),bt=(0,y.Ue)(),Ct=(0,g.c)(),At=mt;var Zt=n(74889);function Mt(t,e,n){const i=n.features;n.features=[],delete n.geometryType;const s=Zt.default.fromJSON(n);s.geometryType="mesh";const a=s.spatialReference,l=(0,o.Wi)(t.outFields)||!t.outFields.length?()=>({}):(c=t.outFields.includes("*")?null:new Set(t.outFields),({attributes:t})=>{if(!t)return{};if(!c)return t;for(const e in t)c.has(e)||delete t[e];return t});var c;for(const t of i){const n=Tt(t,a,e);(0,o.pC)(n)&&s.features.push(new r.Z({geometry:n,attributes:l(t)}))}return s}function Tt(t,e,n){const{status:r,source:o}=function(t){if(!t.assetMappings)return{status:0};const e=[],n=new Map;for(const r of t.assetMappings){const t=r.seqNo,o=r.assetName,i=r.assetURL,s=r.conversionStatus;if("FAILED"===s)return{status:0};if("COMPLETED"!==s)return{status:1};if(null==t)e.push({name:o,source:i});else{const r=n.get(o);let s;r?s=r.multipart:(s=[],e.push({name:o,source:{multipart:s}}),n.set(o,{multipart:s})),s[t]=i}}return{status:2,source:e}}(t);if(0===r)return null;const s=function({attributes:t},e,{transformFieldRoles:n}){return new d.Z({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}(t,e,n),a=i.Z.fromJSON(t.geometry);a.spatialReference=e;const l=function({attributes:t,assetMappings:e},{transformFieldRoles:n}){var r;return new w.Z({translation:[t[n.translationX],t[n.translationY],t[n.translationZ]],rotation:(0,y.uT)([t[n.rotationX],t[n.rotationY],t[n.rotationZ]],t[n.rotationDeg]),scale:[t[n.scaleX],t[n.scaleY],t[n.scaleZ]],geographic:!(null!=(r=e.flags)&&r.includes("PROJECT_VERTICES"))})}(t,n);return 1===r?At.createIncomplete(s,{extent:a,transform:l}):At.createWithExternalSource(s,o,{extent:a,transform:l})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8397],{17896:(t,e,n)=>{n.d(e,{E:()=>f,a:()=>l,b:()=>c,c:()=>g,d:()=>M,e:()=>y,f:()=>u,g:()=>o,h:()=>_,i:()=>m,k:()=>S,l:()=>r,m:()=>x,n:()=>d,p:()=>p,q:()=>z,r:()=>Z,s:()=>a,t:()=>b,u:()=>L,w:()=>w});var s=n(65617),i=n(46851);function r(t){const e=t[0],n=t[1],s=t[2];return Math.sqrt(e*e+n*n+s*s)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,s){return t[0]=e,t[1]=n,t[2]=s,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}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}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function l(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function m(t,e){const n=e[0]-t[0],s=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+s*s+i*i)}function _(t,e){const n=e[0]-t[0],s=e[1]-t[1],i=e[2]-t[2];return n*n+s*s+i*i}function p(t){const e=t[0],n=t[1],s=t[2];return e*e+n*n+s*s}function d(t,e){const n=e[0],s=e[1],i=e[2];let r=n*n+s*s+i*i;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r),t}function M(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function g(t,e,n){const s=e[0],i=e[1],r=e[2],o=n[0],a=n[1],c=n[2];return t[0]=i*c-r*a,t[1]=r*o-s*c,t[2]=s*a-i*o,t}function y(t,e,n,s){const i=e[0],r=e[1],o=e[2];return t[0]=i+s*(n[0]-i),t[1]=r+s*(n[1]-r),t[2]=o+s*(n[2]-o),t}function x(t,e,n){const s=e[0],i=e[1],r=e[2];return t[0]=n[0]*s+n[4]*i+n[8]*r+n[12],t[1]=n[1]*s+n[5]*i+n[9]*r+n[13],t[2]=n[2]*s+n[6]*i+n[10]*r+n[14],t}function b(t,e,n){const s=e[0],i=e[1],r=e[2];return t[0]=s*n[0]+i*n[3]+r*n[6],t[1]=s*n[1]+i*n[4]+r*n[7],t[2]=s*n[2]+i*n[5]+r*n[8],t}function z(t,e,n){const s=n[0],i=n[1],r=n[2],o=n[3],a=e[0],c=e[1],u=e[2];let h=i*u-r*c,f=r*a-s*u,l=s*c-i*a,m=i*l-r*f,_=r*h-s*l,p=s*f-i*h;const d=2*o;return h*=d,f*=d,l*=d,m*=2,_*=2,p*=2,t[0]=a+h+m,t[1]=c+f+_,t[2]=u+l+p,t}const v=(0,s.c)(),R=(0,s.c)();function S(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Z(t,e,n){const s=n[0]-e[0],i=n[1]-e[1],r=n[2]-e[2];let o=s*s+i*i+r*r;return o>0?(o=1/Math.sqrt(o),t[0]=s*o,t[1]=i*o,t[2]=r*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const w=u,q=h,A=f,X=m,E=_,L=r,F=p;Object.freeze({__proto__:null,length:r,copy:o,set:a,add:c,subtract:u,multiply:h,divide:f,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:l,scaleAndAdd:function(t,e,n,s){return t[0]=e[0]+n[0]*s,t[1]=e[1]+n[1]*s,t[2]=e[2]+n[2]*s,t},distance:m,squaredDistance:_,squaredLength:p,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},normalize:d,dot:M,cross:g,lerp:y,hermite:function(t,e,n,s,i,r){const o=r*r,a=o*(2*r-3)+1,c=o*(r-2)+r,u=o*(r-1),h=o*(3-2*r);return t[0]=e[0]*a+n[0]*c+s[0]*u+i[0]*h,t[1]=e[1]*a+n[1]*c+s[1]*u+i[1]*h,t[2]=e[2]*a+n[2]*c+s[2]*u+i[2]*h,t},bezier:function(t,e,n,s,i,r){const o=1-r,a=o*o,c=r*r,u=a*o,h=3*r*a,f=3*c*o,l=c*r;return t[0]=e[0]*u+n[0]*h+s[0]*f+i[0]*l,t[1]=e[1]*u+n[1]*h+s[1]*f+i[1]*l,t[2]=e[2]*u+n[2]*h+s[2]*f+i[2]*l,t},random:function(t,e){e=e||1;const n=2*(0,i.R)()*Math.PI,s=2*(0,i.R)()-1,r=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=s*e,t},transformMat4:x,transformMat3:b,transformQuat:z,rotateX:function(t,e,n,s){const i=[],r=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],r[0]=i[0],r[1]=i[1]*Math.cos(s)-i[2]*Math.sin(s),r[2]=i[1]*Math.sin(s)+i[2]*Math.cos(s),t[0]=r[0]+n[0],t[1]=r[1]+n[1],t[2]=r[2]+n[2],t},rotateY:function(t,e,n,s){const i=[],r=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],r[0]=i[2]*Math.sin(s)+i[0]*Math.cos(s),r[1]=i[1],r[2]=i[2]*Math.cos(s)-i[0]*Math.sin(s),t[0]=r[0]+n[0],t[1]=r[1]+n[1],t[2]=r[2]+n[2],t},rotateZ:function(t,e,n,s){const i=[],r=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],r[0]=i[0]*Math.cos(s)-i[1]*Math.sin(s),r[1]=i[0]*Math.sin(s)+i[1]*Math.cos(s),r[2]=i[2],t[0]=r[0]+n[0],t[1]=r[1]+n[1],t[2]=r[2]+n[2],t},angle:function(t,e){o(v,t),o(R,e),d(v,v),d(R,R);const n=M(v,R);return n>1?0:n<-1?Math.PI:Math.acos(n)},str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:S,equals:function(t,e){const n=t[0],s=t[1],r=t[2],o=e[0],a=e[1],c=e[2];return Math.abs(n-o)<=i.E*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(s-a)<=i.E*Math.max(1,Math.abs(s),Math.abs(a))&&Math.abs(r-c)<=i.E*Math.max(1,Math.abs(r),Math.abs(c))},direction:Z,sub:w,mul:q,div:A,dist:X,sqrDist:E,len:L,sqrLen:F})},98766:(t,e,n)=>{n.d(e,{a:()=>o,b:()=>h,c:()=>i,d:()=>d,e:()=>m,f:()=>_,g:()=>y,h:()=>x,l:()=>M,n:()=>p,s:()=>r,t:()=>g});var s=n(46851);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function r(t,e,n,s,i){return t[0]=e,t[1]=n,t[2]=s,t[3]=i,t}function o(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}function a(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}function c(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}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}function h(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}function f(t,e){const n=e[0]-t[0],s=e[1]-t[1],i=e[2]-t[2],r=e[3]-t[3];return Math.sqrt(n*n+s*s+i*i+r*r)}function l(t,e){const n=e[0]-t[0],s=e[1]-t[1],i=e[2]-t[2],r=e[3]-t[3];return n*n+s*s+i*i+r*r}function m(t){const e=t[0],n=t[1],s=t[2],i=t[3];return Math.sqrt(e*e+n*n+s*s+i*i)}function _(t){const e=t[0],n=t[1],s=t[2],i=t[3];return e*e+n*n+s*s+i*i}function p(t,e){const n=e[0],s=e[1],i=e[2],r=e[3];let o=n*n+s*s+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n*o,t[1]=s*o,t[2]=i*o,t[3]=r*o),t}function d(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function M(t,e,n,s){const i=e[0],r=e[1],o=e[2],a=e[3];return t[0]=i+s*(n[0]-i),t[1]=r+s*(n[1]-r),t[2]=o+s*(n[2]-o),t[3]=a+s*(n[3]-a),t}function g(t,e,n){const s=e[0],i=e[1],r=e[2],o=e[3];return t[0]=n[0]*s+n[4]*i+n[8]*r+n[12]*o,t[1]=n[1]*s+n[5]*i+n[9]*r+n[13]*o,t[2]=n[2]*s+n[6]*i+n[10]*r+n[14]*o,t[3]=n[3]*s+n[7]*i+n[11]*r+n[15]*o,t}function y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function x(t,e){const n=t[0],i=t[1],r=t[2],o=t[3],a=e[0],c=e[1],u=e[2],h=e[3];return Math.abs(n-a)<=s.E*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-c)<=s.E*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(r-u)<=s.E*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(o-h)<=s.E*Math.max(1,Math.abs(o),Math.abs(h))}const b=a,z=c,v=u,R=f,S=l,Z=m,w=_;Object.freeze({__proto__:null,copy:i,set:r,add:o,subtract:a,multiply:c,divide:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},scale:h,scaleAndAdd:function(t,e,n,s){return t[0]=e[0]+n[0]*s,t[1]=e[1]+n[1]*s,t[2]=e[2]+n[2]*s,t[3]=e[3]+n[3]*s,t},distance:f,squaredDistance:l,length:m,squaredLength:_,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},normalize:p,dot:d,lerp:M,random:function(t,e){let n,i,r,o,a,c;e=e||1;do{n=2*(0,s.R)()-1,i=2*(0,s.R)()-1,a=n*n+i*i}while(a>=1);do{r=2*(0,s.R)()-1,o=2*(0,s.R)()-1,c=r*r+o*o}while(c>=1);const u=Math.sqrt((1-a)/c);return t[0]=e*n,t[1]=e*i,t[2]=e*r*u,t[3]=e*o*u,t},transformMat4:g,transformQuat:function(t,e,n){const s=e[0],i=e[1],r=e[2],o=n[0],a=n[1],c=n[2],u=n[3],h=u*s+a*r-c*i,f=u*i+c*s-o*r,l=u*r+o*i-a*s,m=-o*s-a*i-c*r;return t[0]=h*u+m*-o+f*-c-l*-a,t[1]=f*u+m*-a+l*-o-h*-c,t[2]=l*u+m*-c+h*-a-f*-o,t[3]=e[3],t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:y,equals:x,sub:b,mul:z,div:v,dist:R,sqrDist:S,len:Z,sqrLen:w})},69801:(t,e,n)=>{n.d(e,{Xq:()=>r,WJ:()=>o});var s=n(70586),i=n(44553);class r{constructor(t,e,n){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",n&&(this._storage.registerRemoveFunc(this._namespace,n),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,n,s=0){this._storage.put(this._namespace+t,e,n,s)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,n){this._storage.updateSize(this._namespace+t,e,n)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class o{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new i.Z,this._users=new i.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,n,s){const i=this._db.get(t);if(i&&(this._size-=i.size,this._db.delete(t),i.entry!==e&&this._notifyRemove(t,i.entry,0)),n>this._maxSize)return void this._notifyRemove(t,e,0);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return void console.warn("Refusing to cache entry with invalid size "+n);const r=1+Math.max(s,-3)- -3;this._db.set(t,{entry:e,size:n,lifetime:r,lives:r}),this._size+=n,this._checkSizeLimit()}updateSize(t,e,n){const i=this._db.get(t);if(i&&i.entry===e){for(this._size-=i.size;n>this._maxSize;){const i=this._notifyRemove(t,e,1);if(!((0,s.pC)(i)&&i>0))return void this._db.delete(t);n=i}i.size=n,this._size+=n,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},n=new Array;this._db.forEach(((t,s)=>{const i=t.lifetime;n[i]=(n[i]||0)+t.size,this._users.forAll((n=>{const i=n.namespace;if(s.startsWith(i)){const n=e[i]||0;e[i]=n+t.size}}))}));const s={};this._users.forAll((t=>{const n=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const i=e[n]||0;e[n]=i,s[n]=Math.round(100*t.hitRate)+"%"}else s[n]="0%"}));const i=Object.keys(e);i.sort(((t,n)=>e[n]-e[t])),i.forEach((n=>t[n]=Math.round(e[n]/2**20)+"MB / "+s[n]));for(let e=n.length-1;e>=0;--e){const s=n[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,0))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,0))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,n){let s;return this._removeFuncs.some((i=>{if(t.startsWith(i[0])){const t=i[1](e,n);return"number"==typeof t&&(s=t),!0}return!1})),s}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const n=this._notifyRemove(t,e.entry,1);(0,s.pC)(n)&&n>0&&(this._size+=n,e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},22021:(t,e,n)=>{n.d(e,{ZF:()=>f,Kt:()=>l,jE:()=>p,uZ:()=>o,oK:()=>m,Vl:()=>u,wt:()=>a,t7:()=>c,Sf:()=>r,BV:()=>h});var s=n(17896);n(98766);const i=new Float32Array(1);function r(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function o(t,e,n){return Math.min(Math.max(t,e),n)}function a(t){return 0==(t&t-1)}function c(t,e,n){return t+(e-t)*n}function u(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function f(t){return Math.acos(o(t,-1,1))}function l(t){return Math.asin(o(t,-1,1))}function m(t){return _(Math.max(-d,Math.min(t,d)))}function _(t){return i[0]=t,i[0]}function p(t,e){const n=(0,s.l)(t),i=l(t[2]/n),r=Math.atan2(t[1]/n,t[0]/n);return(0,s.s)(e,n,i,r),e}const d=_(34028234663852886e22)},38581:(t,e,n)=>{n.d(e,{aX:()=>b});var s=n(68773),i=n(20102),r=n(92604),o=n(70586),a=n(17332),c=n(58901),u=n(73913),h=n(8744),f=n(40488),l=(n(66577),n(3172)),m=n(17452),_=n(33955);const p=r.Z.getLogger("esri.geometry.support.normalizeUtils");function d(t){return"polygon"===t[0].type}function M(t){return"polyline"===t[0].type}function g(t,e,n){if(e){const e=function(t,e){if(!(t instanceof c.Z||t instanceof a.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw p.error(t),new i.Z(t)}const n=(0,u.x3)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const i=t[s][0],r=t[s][1],o=t[s+1][0],a=t[s+1][1],c=Math.sqrt((o-i)*(o-i)+(a-r)*(a-r)),u=(a-r)/c,h=(o-i)/c,f=c/e;if(f>1){for(let t=1;t<=f-1;t++){const s=t*e,o=h*s+i,a=u*s+r;n.push([o,a])}const t=(c+Math.floor(f-1)*e)/2,s=h*t+i,o=u*t+r;n.push([s,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.Z({rings:s,spatialReference:t.spatialReference}):new c.Z({paths:s,spatialReference:t.spatialReference})}(t,1e6);t=(0,f.Sx)(e,!0)}return n&&(t=(0,u.Sy)(t,n)),t}function y(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.XZ)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.XZ)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.XZ)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.XZ)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function x(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const i=e.cutIndexes[s],r=e.geometries[s],o=(0,u.x3)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some((n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.XZ)(n,180);for(let n=0;n<e.length;n++){const e=r.getPoint(t,n);r.setPoint(t,n,e.clone().offset(s,0))}return!0}}))}if(i===n){if(d(t))for(const e of(0,u.x3)(r))t[i]=t[i].addRing(e);else if(M(t))for(const e of(0,u.x3)(r))t[i]=t[i].addPath(e)}else n=i,t[i]=r}return t}async function b(t,e,n){var i;if(!Array.isArray(t))return b([t],e);const r=null!=(i=null==e?void 0:e.url)?i:s.Z.geometryServiceUrl;let p,d,M,z,v,R,S,Z,w=0;const q=[],A=[];for(const e of t)if((0,o.Wi)(e))A.push(e);else if(p||(p=e.spatialReference,d=(0,h.C5)(p),M=p.isWebMercator,R=M?102100:4326,z=u.UZ[R].maxX,v=u.UZ[R].minX,S=u.UZ[R].plus180Line,Z=u.UZ[R].minus180Line),d)if("mesh"===e.type)A.push(e);else if("point"===e.type)A.push(y(e.clone(),z,v));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>y(t,z,v))),A.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,d);A.push(t.rings?new a.Z(t):t)}else if(e.extent){const t=e.extent,n=(0,u.XZ)(t.xmin,v)*(2*z);let s=0===n?e.clone():(0,u.Sy)(e.clone(),n);t.offset(n,0),t.intersects(S)&&t.xmax!==z?(w=t.xmax>w?t.xmax:w,s=g(s,M),q.push(s),A.push("cut")):t.intersects(Z)&&t.xmin!==v?(w=t.xmax*(2*z)>w?t.xmax*(2*z):w,s=g(s,M,360),q.push(s),A.push("cut")):A.push(s)}else A.push(e.clone());else A.push(e);let X=(0,u.XZ)(w,z),E=-90;const L=X,F=new c.Z;for(;X>0;){const t=360*X-180;F.addPath([[t,E],[t,-1*E]]),E*=-1,X--}if(q.length>0&&L>0){const e=x(q,await async function(t,e,n,s){const i="string"==typeof t?(0,m.mN)(t):t,r=e[0].spatialReference,o={...s,query:{...i.query,f:"json",sr:JSON.stringify(r),target:JSON.stringify({geometryType:(0,_.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,l.default)(i.path+"/cut",o),{cutIndexes:c,geometries:u=[]}=a.data;return{cutIndexes:c,geometries:u.map((t=>{const e=(0,_.im)(t);return e.spatialReference=r,e}))}}(r,q,F,n)),s=[],i=[];for(let n=0;n<A.length;n++){const r=A[n];if("cut"!==r)i.push(r);else{const r=e.shift(),a=t[n];(0,o.pC)(a)&&"polygon"===a.type&&a.rings&&a.rings.length>1&&r.rings.length>=a.rings.length?(s.push(r),i.push("simplify")):i.push(M?(0,f.$)(r):r)}}if(!s.length)return i;const a=await async function(t,e,n){const s="string"==typeof t?(0,m.mN)(t):t,i=e[0].spatialReference,r=(0,_.Ji)(e[0]),o={...n,query:{...s.query,f:"json",sr:i.wkid?i.wkid:JSON.stringify(i),geometries:JSON.stringify((a=e,{geometryType:(0,_.Ji)(a[0]),geometries:a.map((t=>t.toJSON()))}))}};var a;return function(t,e,n){const s=(0,_.q9)(e);return t.map((t=>{const e=s.fromJSON(t);return e.spatialReference=n,e}))}((await(0,l.default)(s.path+"/simplify",o)).data,r,i)}(r,s,n),c=[];for(let t=0;t<i.length;t++){const e=i[t];"simplify"!==e?c.push(e):c.push(M?(0,f.$)(a.shift()):a.shift())}return c}const k=[];for(let t=0;t<A.length;t++){const e=A[t];if("cut"!==e)k.push(e);else{const t=q.shift();k.push(!0===M?(0,f.$)(t):t)}}return Promise.resolve(k)}},73913:(t,e,n)=>{n.d(e,{UZ:()=>o,x3:()=>u,XZ:()=>a,Sy:()=>c});var s=n(58901),i=n(82971),r=n(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.Z.WebMercator}),minus180Line:new s.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.Z({paths:[[[180,-180],[180,180]]],spatialReference:i.Z.WGS84}),minus180Line:new s.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:i.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,r.oU)(t)?t.rings:t.paths}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8936],{46851:(t,n,e)=>{e.d(n,{E:()=>r,R:()=>i});const r=1e-6,i=Math.random,o=Math.PI/180,s=180/Math.PI;Object.freeze({__proto__:null,EPSILON:r,RANDOM:i,toRadian:function(t){return t*o},toDegree:function(t){return t*s},equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))}})},17896:(t,n,e)=>{e.d(n,{E:()=>l,a:()=>h,b:()=>c,c:()=>w,d:()=>M,e:()=>b,f:()=>u,g:()=>s,h:()=>p,i:()=>d,k:()=>F,l:()=>o,m:()=>v,n:()=>g,p:()=>m,q:()=>A,r:()=>I,s:()=>a,t:()=>y,u:()=>V,w:()=>N});var r=e(65617),i=e(46851);function o(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function a(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function f(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function m(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function g(t,n){const e=n[0],r=n[1],i=n[2];let o=e*e+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function M(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function w(t,n,e){const r=n[0],i=n[1],o=n[2],s=e[0],a=e[1],c=e[2];return t[0]=i*c-o*a,t[1]=o*s-r*c,t[2]=r*a-i*s,t}function b(t,n,e,r){const i=n[0],o=n[1],s=n[2];return t[0]=i+r*(e[0]-i),t[1]=o+r*(e[1]-o),t[2]=s+r*(e[2]-s),t}function v(t,n,e){const r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*o+e[12],t[1]=e[1]*r+e[5]*i+e[9]*o+e[13],t[2]=e[2]*r+e[6]*i+e[10]*o+e[14],t}function y(t,n,e){const r=n[0],i=n[1],o=n[2];return t[0]=r*e[0]+i*e[3]+o*e[6],t[1]=r*e[1]+i*e[4]+o*e[7],t[2]=r*e[2]+i*e[5]+o*e[8],t}function A(t,n,e){const r=e[0],i=e[1],o=e[2],s=e[3],a=n[0],c=n[1],u=n[2];let f=i*u-o*c,l=o*a-r*u,h=r*c-i*a,d=i*h-o*l,p=o*f-r*h,m=r*l-i*f;const g=2*s;return f*=g,l*=g,h*=g,d*=2,p*=2,m*=2,t[0]=a+f+d,t[1]=c+l+p,t[2]=u+h+m,t}const E=(0,r.c)(),x=(0,r.c)();function F(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function I(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],o=e[2]-n[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=u,q=f,U=l,L=d,S=p,V=o,_=m;Object.freeze({__proto__:null,length:o,copy:s,set:a,add:c,subtract:u,multiply:f,divide:l,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t},max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:h,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t},distance:d,squaredDistance:p,squaredLength:m,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},normalize:g,dot:M,cross:w,lerp:b,hermite:function(t,n,e,r,i,o){const s=o*o,a=s*(2*o-3)+1,c=s*(o-2)+o,u=s*(o-1),f=s*(3-2*o);return t[0]=n[0]*a+e[0]*c+r[0]*u+i[0]*f,t[1]=n[1]*a+e[1]*c+r[1]*u+i[1]*f,t[2]=n[2]*a+e[2]*c+r[2]*u+i[2]*f,t},bezier:function(t,n,e,r,i,o){const s=1-o,a=s*s,c=o*o,u=a*s,f=3*o*a,l=3*c*s,h=c*o;return t[0]=n[0]*u+e[0]*f+r[0]*l+i[0]*h,t[1]=n[1]*u+e[1]*f+r[1]*l+i[1]*h,t[2]=n[2]*u+e[2]*f+r[2]*l+i[2]*h,t},random:function(t,n){n=n||1;const e=2*(0,i.R)()*Math.PI,r=2*(0,i.R)()-1,o=Math.sqrt(1-r*r)*n;return t[0]=Math.cos(e)*o,t[1]=Math.sin(e)*o,t[2]=r*n,t},transformMat4:v,transformMat3:y,transformQuat:A,rotateX:function(t,n,e,r){const i=[],o=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],o=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],o=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},angle:function(t,n){s(E,t),s(x,n),g(E,E),g(x,x);const e=M(E,x);return e>1?0:e<-1?Math.PI:Math.acos(e)},str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:F,equals:function(t,n){const e=t[0],r=t[1],o=t[2],s=n[0],a=n[1],c=n[2];return Math.abs(e-s)<=i.E*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(r-a)<=i.E*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-c)<=i.E*Math.max(1,Math.abs(o),Math.abs(c))},direction:I,sub:N,mul:q,div:U,dist:L,sqrDist:S,len:V,sqrLen:_})},65617:(t,n,e)=>{function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function o(t,n,e){return[t,n,e]}function s(t){const n=[0,0,0],e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function a(t,n){return new Float64Array(t,n,3)}function c(){return o(1,1,1)}function u(){return o(1,0,0)}function f(){return o(0,1,0)}function l(){return o(0,0,1)}e.d(n,{O:()=>d,Z:()=>h,a:()=>i,b:()=>a,c:()=>r,d:()=>s,f:()=>o});const h=[0,0,0],d=c(),p=u(),m=f(),g=l();Object.freeze({__proto__:null,create:r,clone:i,fromValues:o,fromArray:s,createView:a,zeros:function(){return[0,0,0]},ones:c,unitX:u,unitY:f,unitZ:l,ZEROS:h,ONES:d,UNIT_X:p,UNIT_Y:m,UNIT_Z:g})},98766:(t,n,e)=>{e.d(n,{a:()=>s,b:()=>f,c:()=>i,d:()=>g,e:()=>d,f:()=>p,g:()=>b,h:()=>v,l:()=>M,n:()=>m,s:()=>o,t:()=>w});var r=e(46851);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function o(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function a(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function u(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function f(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],o=n[3]-t[3];return Math.sqrt(e*e+r*r+i*i+o*o)}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],o=n[3]-t[3];return e*e+r*r+i*i+o*o}function d(t){const n=t[0],e=t[1],r=t[2],i=t[3];return Math.sqrt(n*n+e*e+r*r+i*i)}function p(t){const n=t[0],e=t[1],r=t[2],i=t[3];return n*n+e*e+r*r+i*i}function m(t,n){const e=n[0],r=n[1],i=n[2],o=n[3];let s=e*e+r*r+i*i+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e*s,t[1]=r*s,t[2]=i*s,t[3]=o*s),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function M(t,n,e,r){const i=n[0],o=n[1],s=n[2],a=n[3];return t[0]=i+r*(e[0]-i),t[1]=o+r*(e[1]-o),t[2]=s+r*(e[2]-s),t[3]=a+r*(e[3]-a),t}function w(t,n,e){const r=n[0],i=n[1],o=n[2],s=n[3];return t[0]=e[0]*r+e[4]*i+e[8]*o+e[12]*s,t[1]=e[1]*r+e[5]*i+e[9]*o+e[13]*s,t[2]=e[2]*r+e[6]*i+e[10]*o+e[14]*s,t[3]=e[3]*r+e[7]*i+e[11]*o+e[15]*s,t}function b(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function v(t,n){const e=t[0],i=t[1],o=t[2],s=t[3],a=n[0],c=n[1],u=n[2],f=n[3];return Math.abs(e-a)<=r.E*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(i-c)<=r.E*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-u)<=r.E*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(s-f)<=r.E*Math.max(1,Math.abs(s),Math.abs(f))}const y=a,A=c,E=u,x=l,F=h,I=d,N=p;Object.freeze({__proto__:null,copy:i,set:o,add:s,subtract:a,multiply:c,divide:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:f,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},distance:l,squaredDistance:h,length:d,squaredLength:p,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},normalize:m,dot:g,lerp:M,random:function(t,n){let e,i,o,s,a,c;n=n||1;do{e=2*(0,r.R)()-1,i=2*(0,r.R)()-1,a=e*e+i*i}while(a>=1);do{o=2*(0,r.R)()-1,s=2*(0,r.R)()-1,c=o*o+s*s}while(c>=1);const u=Math.sqrt((1-a)/c);return t[0]=n*e,t[1]=n*i,t[2]=n*o*u,t[3]=n*s*u,t},transformMat4:w,transformQuat:function(t,n,e){const r=n[0],i=n[1],o=n[2],s=e[0],a=e[1],c=e[2],u=e[3],f=u*r+a*o-c*i,l=u*i+c*r-s*o,h=u*o+s*i-a*r,d=-s*r-a*i-c*o;return t[0]=f*u+d*-s+l*-c-h*-a,t[1]=l*u+d*-a+h*-s-f*-c,t[2]=h*u+d*-c+f*-a-l*-s,t[3]=n[3],t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:b,equals:v,sub:y,mul:A,div:E,dist:x,sqrDist:F,len:I,sqrLen:N})},22021:(t,n,e)=>{e.d(n,{ZF:()=>l,Kt:()=>h,jE:()=>m,uZ:()=>s,oK:()=>d,Vl:()=>u,wt:()=>a,t7:()=>c,Sf:()=>o,BV:()=>f});var r=e(17896);e(98766);const i=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function s(t,n,e){return Math.min(Math.max(t,n),e)}function a(t){return 0==(t&t-1)}function c(t,n,e){return t+(n-t)*e}function u(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function l(t){return Math.acos(s(t,-1,1))}function h(t){return Math.asin(s(t,-1,1))}function d(t){return p(Math.max(-g,Math.min(t,g)))}function p(t){return i[0]=t,i[0]}function m(t,n){const e=(0,r.l)(t),i=h(t[2]/e),o=Math.atan2(t[1]/e,t[0]/e);return(0,r.s)(n,e,i,o),n}const g=p(34028234663852886e22)},79583:(t,n,e)=>{function r(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8;default:return}}function i(t){switch(t){case"u8":case"u16":case"u32":return!1;case"i8":case"i16":case"i32":case"f32":case"f64":return!0;default:return}}function o(t){switch(t){case"u8":case"u16":case"u32":case"i8":case"i16":case"i32":return!0;case"f32":case"f64":return!1;default:return}}function s(t){switch(t){case"u8":return 255;case"u16":return 65535;case"u32":return 4294967295;case"i8":return 127;case"i16":return 32767;case"i32":return 2147483647;case"f32":return 3402823e32;case"f64":return 179769e303;default:return}}e.d(n,{n1:()=>r,U:()=>o,B3:()=>i,Op:()=>s}),e(80442)},47545:(t,n,e)=>{e.d(n,{d:()=>i});var r=e(22021);function i(t,n,e){var i;const u=t.byteLength/(4*n),f=new Uint32Array(t,0,u*n);let l=new Uint32Array(u);const h=null!=(i=null==e?void 0:e.minReduction)?i:0,d=(null==e?void 0:e.originalIndices)||null,p=d?d.length:0,m=(null==e?void 0:e.componentOffsets)||null;let g=0;if(m)for(let t=0;t<m.length-1;t++){const n=m[t+1]-m[t];n>g&&(g=n)}else g=u;const M=Math.floor(1.1*g)+1;(null==c||c.length<2*M)&&(c=new Uint32Array((0,r.Sf)(2*M)));for(let t=0;t<2*M;t++)c[t]=0;let w=0;const b=!!m&&!!d,v=b?p:u,y=b?new Uint32Array(p):null,A=1.96;let E=0!==h?Math.ceil(4*A*A/(h*h)*h*(1-h)):v,x=1,F=m?m[1]:v;for(let t=0;t<v;t++){if(t===E){const n=1-w/t;if(n+A*Math.sqrt(n*(1-n)/t)<h)return null;E*=2}if(t===F){for(let t=0;t<2*M;t++)c[t]=0;if(d)for(let t=m[x-1];t<m[x];t++)y[t]=l[d[t]];F=m[++x]}const e=b?d[t]:t,r=e*n,i=a(f,r,n);let s=i%M,u=w;for(;0!==c[2*s+1];){if(c[2*s]===i){const t=c[2*s+1]-1;if(o(f,r,t*n,n)){u=l[t];break}}s++,s>=M&&(s-=M)}u===w&&(c[2*s]=i,c[2*s+1]=e+1,w++),l[e]=u}if(0!==h&&1-w/u<h)return null;if(b){for(let t=m[x-1];t<y.length;t++)y[t]=l[d[t]];l=y}const I=new Uint32Array(n*w);w=0;for(let t=0;t<v;t++)l[t]===w&&(s(f,(b?d[t]:t)*n,I,w*n,n),w++);if(d&&!b){const t=new Uint32Array(p);for(let n=0;n<t.length;n++)t[n]=l[d[n]];l=t}return{buffer:I.buffer,indices:l,uniqueCount:w}}function o(t,n,e,r){for(let i=0;i<r;i++)if(t[n+i]!==t[e+i])return!1;return!0}function s(t,n,e,r,i){for(let o=0;o<i;o++)e[r+o]=t[n+o]}function a(t,n,e){let r=0;for(let i=0;i<e;i++)r=t[n+i]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let c=null},65576:(t,n,e)=>{e.d(n,{U$:()=>a});var r=e(56481),i=e(79583);class o{constructor(t,n){this.layout=t,this.buffer="number"==typeof n?new ArrayBuffer(n*t.stride):n;for(const n of t.fieldNames){const e=t.fields.get(n);this[n]=new e.constructor(this.buffer,e.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,n){const e=this[t];return e&&e.elementCount===n.ElementCount&&e.elementType===n.ElementType?e:null}slice(t,n){return new o(this.layout,this.buffer.slice(t*this.stride,n*this.stride))}copyFrom(t,n,e,r){const i=this.stride;if(i%4==0){const o=new Uint32Array(t.buffer,n*i,r*i/4);new Uint32Array(this.buffer,e*i,r*i/4).set(o)}else{const o=new Uint8Array(t.buffer,n*i,r*i);new Uint8Array(this.buffer,e*i,r*i).set(o)}}}class s{constructor(){this.stride=0,this.fields=new Map,this.fieldNames=[]}vec2f(t,n){return this.appendField(t,r.Eu,n),this}vec2f64(t,n){return this.appendField(t,r.q6,n),this}vec3f(t,n){return this.appendField(t,r.ct,n),this}vec3f64(t,n){return this.appendField(t,r.fP,n),this}vec4f(t,n){return this.appendField(t,r.ek,n),this}vec4f64(t,n){return this.appendField(t,r.Cd,n),this}mat3f(t,n){return this.appendField(t,r.gK,n),this}mat3f64(t,n){return this.appendField(t,r.ey,n),this}mat4f(t,n){return this.appendField(t,r.bj,n),this}mat4f64(t,n){return this.appendField(t,r.O1,n),this}vec4u8(t,n){return this.appendField(t,r.mc,n),this}f32(t,n){return this.appendField(t,r.ly,n),this}f64(t,n){return this.appendField(t,r.oS,n),this}u8(t,n){return this.appendField(t,r.D_,n),this}u16(t,n){return this.appendField(t,r.av,n),this}i8(t,n){return this.appendField(t,r.Hz,n),this}vec2i8(t,n){return this.appendField(t,r.Vs,n),this}vec2i16(t,n){return this.appendField(t,r.or,n),this}vec2u8(t,n){return this.appendField(t,r.xA,n),this}vec4u16(t,n){return this.appendField(t,r.v6,n),this}u32(t,n){return this.appendField(t,r.Nu,n),this}appendField(t,n,e){const r=n.ElementCount*(0,i.n1)(n.ElementType),o=this.stride;this.fields.set(t,{size:r,constructor:n,offset:o,optional:e}),this.stride+=r,this.fieldNames.push(t)}alignTo(t){return this.stride=Math.floor((this.stride+t-1)/t)*t,this}hasField(t){return this.fieldNames.indexOf(t)>=0}createBuffer(t){return new o(this,t)}createView(t){return new o(this,t)}clone(){const t=new s;return t.stride=this.stride,t.fields=new Map,this.fields.forEach(((n,e)=>t.fields.set(e,n))),t.fieldNames=this.fieldNames.slice(),t.BufferType=this.BufferType,t}}function a(){return new s}},18936:(t,n,e)=>{e.r(n),e.d(n,{work:()=>j,wrappedWork:()=>Z});var r=e(47545);function i(t,n,e){const r=n/3,i=new Uint32Array(e+1),o=new Uint32Array(e+1),s=(t,n)=>{t<n?i[t+1]++:o[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],i=t[3*n+2];s(e,r),s(r,i),s(i,e)}let a=0,c=0;for(let t=0;t<e;t++){const n=i[t+1],e=o[t+1];i[t+1]=a,o[t+1]=c,a+=n,c+=e}const u=new Uint32Array(6*r),f=i[e],l=(t,n,e)=>{if(t<n){const r=i[t+1]++;u[2*r]=n,u[2*r+1]=e}else{const r=o[n+1]++;u[2*f+2*r]=t,u[2*f+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],i=t[3*n+2];l(e,r,n),l(r,i,n),l(i,e,n)}const h=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=u[e+2*t],r=u[e+2*t+1];let i=t-1;for(;i>=0&&u[e+2*i]>n;i--)u[e+2*i+2]=u[e+2*i],u[e+2*i+3]=u[e+2*i+1];u[e+2*i+2]=n,u[e+2*i+3]=r}};for(let t=0;t<e;t++)h(i[t],i[t+1]),h(f+o[t],f+o[t+1]);const d=new Int32Array(3*r),p=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,m=(t,n)=>{const e=p(t,n);d[3*n+e]=-1},g=(t,n,e,r)=>{const i=p(t,n);d[3*n+i]=r;const o=p(e,r);d[3*r+o]=n};for(let t=0;t<e;t++){let n=i[t];const e=i[t+1];let r=o[t];const s=o[t+1];for(;n<e&&r<s;){const e=u[2*n],i=u[2*f+2*r];e===i?(g(t,u[2*n+1],i,u[2*f+2*r+1]),n++,r++):e<i?(m(t,u[2*n+1]),n++):(m(i,u[2*f+2*r+1]),r++)}for(;n<e;)m(t,u[2*n+1]),n++;for(;r<s;)m(u[2*f+2*r],u[2*f+2*r+1]),r++}return d}var o=e(56481),s=e(65576);function a(t,n){return n.push(t.buffer),{buffer:t.buffer,layout:c(t.layout)}}function c(t){const n=new Array;return t.fields.forEach(((t,e)=>{const r={...t,constructor:f(t.constructor)};n.push([e,r])})),{stride:t.stride,fields:n,fieldNames:t.fieldNames}}const u=[o.ly,o.Eu,o.ct,o.ek,o.gK,o.bj,o.oS,o.q6,o.fP,o.Cd,o.ey,o.O1,o.D_,o.xA,o.ne,o.mc,o.av,o.TS,o.mw,o.v6,o.Nu,o.qt,o.G5,o.hu,o.Hz,o.Vs,o.P_,o.ir,o.o7,o.or,o.n1,o.zO,o.Jj,o.wA,o.PP,o.TN];function f(t){return`${t.ElementType}_${t.ElementCount}`}const l=new Map;function h(t,n=0){const e=t.stride;return t.fieldNames.filter((n=>{const e=t.fields.get(n).optional;return!(e&&e.glPadding)})).map((r=>{const i=t.fields.get(r),o=i.constructor.ElementCount,s=d(i.constructor.ElementType),a=i.offset,c=!(!i.optional||!i.optional.glNormalized);return{name:r,stride:e,count:o,type:s,offset:a,normalized:c,divisor:n}}))}function d(t){const n=p[t];if(n)return n;throw new Error("BufferType not supported in WebGL")}u.forEach((t=>l.set(f(t),t)));const p={u8:5121,u16:5123,u32:5125,i8:5120,i16:5122,i32:5124,f32:5126},m=(0,s.U$)().vec3f("position").u16("componentIndex").u16("u16padding"),g=(h((0,s.U$)().vec2u8("sideness")),(0,s.U$)().vec3f("position0").vec3f("position1").u16("componentIndex").u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).u8("u8padding",{glPadding:!0}).u16("u16padding",{glPadding:!0})),M=g.clone().vec3f("normal"),w=g.clone().vec3f("normalA").vec3f("normalB");new Map([["position0",0],["position1",1],["componentIndex",2],["variantOffset",3],["variantStroke",4],["variantExtension",5],["normal",6],["normalA",6],["normalB",7],["sideness",8]]);var b=e(77734),v=e(17896),y=e(65617);class A{updateSettings(t){this.settings=t,this.edgeHashFunction=t.reducedPrecision?N:I}write(t,n,e){const r=this.edgeHashFunction(e);V.seed=r;const i=V.getIntRange(0,255),o=V.getIntRange(0,this.settings.variants-1),s=V.getFloat(),a=255*(.5*function(t,n){const e=t<0?-1:1;return Math.abs(t)**1.2*e}(-(1-Math.min(s/.7,1))+Math.max(0,s-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,i),t.variantStroke.set(n,o),t.variantExtension.set(n,a)}trim(t,n){return t.slice(0,n)}}const E=new Float32Array(6),x=new Uint32Array(E.buffer),F=new Uint32Array(1);function I(t){const n=E;n[0]=t.position0[0],n[1]=t.position0[1],n[2]=t.position0[2],n[3]=t.position1[0],n[4]=t.position1[1],n[5]=t.position1[2],F[0]=5381;for(let t=0;t<x.length;t++)F[0]=31*F[0]+x[t];return F[0]}function N(t){const n=E;n[0]=q(t.position0[0]),n[1]=q(t.position0[1]),n[2]=q(t.position0[2]),n[3]=q(t.position1[0]),n[4]=q(t.position1[1]),n[5]=q(t.position1[2]),F[0]=5381;for(let t=0;t<x.length;t++)F[0]=31*F[0]+x[t];return F[0]}function q(t){return Math.round(1e4*t)/1e4}class U{constructor(){this.commonWriter=new A}updateSettings(t){this.commonWriter.updateSettings(t)}allocate(t){return M.createBuffer(t)}write(t,n,e){this.commonWriter.write(t,n,e),(0,v.b)(S,e.faceNormal0,e.faceNormal1),(0,v.n)(S,S),t.normal.setVec(n,S)}trim(t,n){return this.commonWriter.trim(t,n)}}U.Layout=M,U.glLayout=h(M,1);class L{constructor(){this.commonWriter=new A}updateSettings(t){this.commonWriter.updateSettings(t)}allocate(t){return w.createBuffer(t)}write(t,n,e){this.commonWriter.write(t,n,e),t.normalA.setVec(n,e.faceNormal0),t.normalB.setVec(n,e.faceNormal1)}trim(t,n){return this.commonWriter.trim(t,n)}}L.Layout=w,L.glLayout=h(w,1);const S=(0,y.c)(),V=new b.Z;var _=e(67676),O=e(22021),P=e(1533);const D=-1;function k(t,n){return t.cosAngle<n}function z(t,n){return t.cosAngle>n}function T(t,n){const e=(0,O.ZF)(t.cosAngle),r=R.fwd,i=R.ortho;return(0,v.r)(r,t.position1,t.position0),e*((0,v.d)((0,v.c)(i,t.faceNormal0,t.faceNormal1),r)>0?-1:1)>n}function B(t){const n=t.faces.length/3,e=t.vertices.position,r=t.faces,i=C.v0,o=C.v1,s=C.v2,a=new Float32Array(3*n);for(let t=0;t<n;t++){const n=r[3*t+0],c=r[3*t+1],u=r[3*t+2];e.getVec(n,i),e.getVec(c,o),e.getVec(u,s),(0,v.f)(o,o,i),(0,v.f)(s,s,i),(0,v.c)(i,o,s),(0,v.n)(i,i),a[3*t+0]=i[0],a[3*t+1]=i[1],a[3*t+2]=i[2]}return a}const R={edge:{position0:(0,y.c)(),position1:(0,y.c)(),faceNormal0:(0,y.c)(),faceNormal1:(0,y.c)(),componentIndex:0,cosAngle:0},ortho:(0,y.c)(),fwd:(0,y.c)()},C={v0:(0,y.c)(),v1:(0,y.c)(),v2:(0,y.c)()},W={anglePlanar:4,angleSignificantEdge:35};async function Z(t){const n=function(t){return{data:m.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indicesBuffer):"Uint16Array"===t.indicesType?new Uint16Array(t.indicesBuffer):void 0,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}(t),e=j(n),r=[n.data.buffer];return{result:$(e,r),transferList:r}}function j(t){const n=H(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return K.updateSettings(t.writerSettings),X.updateSettings(t.writerSettings),function(t,n,e,r=W){const i=t.vertices.position,o=t.vertices.componentIndex,s=(0,O.Vl)(r.anglePlanar),a=(0,O.Vl)(r.angleSignificantEdge),c=Math.cos(a),u=Math.cos(s),f=R.edge,l=f.position0,h=f.position1,d=f.faceNormal0,p=f.faceNormal1,m=B(t),g=function(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors;let i=0;for(let t=0;t<n;t++){const n=r[3*t+0],o=r[3*t+1],s=r[3*t+2],a=e[3*t+0],c=e[3*t+1],u=e[3*t+2];i+=n===D||a<c?1:0,i+=o===D||c<u?1:0,i+=s===D||u<a?1:0}const o=new Int32Array(4*i);let s=0;for(let t=0;t<n;t++){const n=r[3*t+0],i=r[3*t+1],a=r[3*t+2],c=e[3*t+0],u=e[3*t+1],f=e[3*t+2];(n===D||c<u)&&(o[s++]=c,o[s++]=u,o[s++]=t,o[s++]=n),(i===D||u<f)&&(o[s++]=u,o[s++]=f,o[s++]=t,o[s++]=i),(a===D||f<c)&&(o[s++]=f,o[s++]=c,o[s++]=t,o[s++]=a)}return o}(t),M=g.length/4,w=n.allocate(M);let b=0;const y=M,A=e.allocate(y);let E=0,x=0,F=0;const I=(0,_.w6)(0,M),N=new Float32Array(M);(0,P.Ed)(N,((t,n,e)=>{i.getVec(g[4*n+0],l),i.getVec(g[4*n+1],h),e[n]=(0,v.i)(l,h)})),I.sort(((t,n)=>N[n]-N[t]));const q=new Array,U=new Array;for(let t=0;t<M;t++){const r=I[t],a=N[r],M=g[4*r+0],y=g[4*r+1],L=g[4*r+2],S=g[4*r+3],V=S===D;if(i.getVec(M,l),i.getVec(y,h),V)(0,v.s)(d,m[3*L+0],m[3*L+1],m[3*L+2]),(0,v.g)(p,d),f.componentIndex=o.get(M),f.cosAngle=(0,v.d)(d,p);else{if((0,v.s)(d,m[3*L+0],m[3*L+1],m[3*L+2]),(0,v.s)(p,m[3*S+0],m[3*S+1],m[3*S+2]),f.componentIndex=o.get(M),f.cosAngle=(0,v.d)(d,p),z(f,u))continue;f.cosAngle<-.9999&&(0,v.g)(p,d)}x+=a,F++,V||k(f,c)?(n.write(w,b++,f),q.push(a)):T(f,s)&&(e.write(A,E++,f),U.push(a))}const L=new Float32Array(q.reverse()),S=new Float32Array(U.reverse());return{regular:{instancesData:n.trim(w,b),lodInfo:{lengths:L}},silhouette:{instancesData:e.trim(A,E),lodInfo:{lengths:S}},averageEdgeLength:x/F}}(n,K,X)}function $(t,n){return n.push(t.regular.lodInfo.lengths.buffer),n.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:a(t.regular.instancesData,n),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:a(t.silhouette.instancesData,n),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}function H(t,n,e,o){if(n)return{faces:e,facesLength:o,neighbors:i(e,o,t.count),vertices:t};const s=(0,r.d)(t.buffer,t.stride/4,{originalIndices:e,originalIndicesLength:o}),a=i(s.indices,o,s.uniqueCount);return{faces:s.indices,facesLength:s.indices.length,neighbors:a,vertices:m.createView(s.buffer)}}const K=new U,X=new L}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5265,3172],{99880:(e,t,r)=>{r.d(t,{V:()=>l});var n=r(68773),s=(r(3172),r(20102)),o=r(92604),a=r(17452);const i=o.Z.getLogger("esri.assets");function l(e){if(!n.Z.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new s.Z("assets:path-not-set","config.assetsPath is not set");return(0,a.v_)(n.Z.assetsPath,e)}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(68773),s=r(40330),o=r(20102),a=r(16358),i=r(80442),l=r(22974),c=r(70586),u=r(95330),d=r(17452),f=r(71058),h=r(85958);async function p(e,t){var l;const h=(0,d.HK)(e),w=(0,d.jc)(e);w||h||(e=(0,d.Fv)(e));const g={url:e,requestOptions:{...(0,c.Wg)(t)}};let E=(0,d.oh)(e);if(E){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=O("request:interceptor",e,t)}if((n instanceof Error||n instanceof o.Z)&&(r=O("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(E,g);if(null!=e)return{data:e,getHeader:T,requestOptions:g.requestOptions,url:g.url};E.after||E.error||(E=null)}if(e=g.url,"image"===(t=g.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw O("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g)}else if(h)throw O("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),g);if("head"===t.method){if(t.body)throw O("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(h||w)throw O("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,i.Z)("host-webworker")?m||(m=await r.e(9884).then(r.bind(r,29884))):p._abortableFetch||(p._abortableFetch=a.Z.fetch.bind(a.Z))}(),m)return m.execute(e,t);const v=(0,u.yi)();(0,u.fu)(t,(()=>v.abort()));const L={controller:v,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:E,params:g,redoRequest:!1,useIdentity:y.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=await async function(e){var t,r;let o,i;await async function(e){const t=e.params.url,r=e.params.requestOptions,o=e.controller.signal,i=r.body;let l=null,c=null,d=null;if(b&&"HTMLFormElement"in a.Z&&(i instanceof FormData?l=i:i instanceof HTMLFormElement&&(c=i,l=new FormData(c))),"string"==typeof i&&(d=i),e.fetchOptions={cache:r.cacheBust&&!p._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:o},(l||d)&&(e.fetchOptions.body=l||d),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query&&r.query.token||l&&l.get&&l.get("token")||c&&c.elements.token),!e.hasToken&&n.Z.apiKey&&(0,f.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!q(t)&&!(0,u.Hc)(o)){let n;"immediate"===r.authMode?(await P(),n=await s.id.getCredential(t,{signal:o}),e.credential=n):"no-prompt"===r.authMode?(await P(),n=await s.id.getCredential(t,{prompt:!1,signal:o}).catch((()=>{})),e.credential=n):s.id&&(n=s.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[o,i]=await k(e)}while(!await x(e,o,i))}catch(t){const r=O("request:server",t,e.params,o);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const l=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(l)&&!e.hasToken&&!e.credentialToken&&null!=(t=i)&&null!=(r=t.user)&&r.username&&!(0,d.kl)(l)){const e=(0,d.P$)(l,!0);e&&y.trustedServers.push(e)}const c=e.credential;if(c&&s.id){const e=s.id.findServerInfo(c.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,c.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:i,getHeader:o?e=>o.headers.get(e):T,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(L);return null==(l=E)||null==l.after||l.after(S),S}let m;const y=n.Z.request,b="FormData"in a.Z,w=[499,498,403,401],g=["COM_0056","COM_0057","SB_0008"],E=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],T=()=>null,v=Symbol();function L(e){const t=(0,d.P$)(e);return!t||t.endsWith(".arcgis.com")||p._corsServers.includes(t)||(0,d.kl)(t)}function O(e,t,r,n){let s="Error";const a={url:r.url,requestOptions:r.requestOptions,getHeader:T,ssl:!1};if(t instanceof o.Z)return t.details?(t.details=(0,l.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=a,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,o=t.message;o&&(s=o),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=v in t?t[v]:t}return(0,u.D_)(t)?(0,u.zE)():new o.Z(e,s,a)}async function P(){s.id||await Promise.all([r.e(7824),r.e(8778),r.e(9625)]).then(r.bind(r,79339))}function q(e){return E.some((t=>t.test(e)))}async function k(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions,o=(0,d.jc)(t)||(0,d.HK)(t),a=r.responseType||"json",l=o?0:null!=r.timeout?r.timeout:y.timeout;let c=!1;if(!o){e.useSSL&&(t=(0,d.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,d.ZN)(t,"request.preventCache",Date.now()));let o={...r.query};e.credentialToken&&(o.token=e.credentialToken);let a=(0,d.B7)(o);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let u;c="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>y.maxUrlLength;const f=r.useProxy||!!(0,d.ed)(t);if(f){const e=(0,d.b7)(t);u=e.path,!c&&u.length+1+l>y.maxUrlLength&&(c=!0),e.query&&(o={...e.query,...o})}if("HEAD"===n.method&&(c||f)){if(c){if(l>y.maxUrlLength)throw O("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw O("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw O("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(c?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,d.fl)(t,o):(n.body=(0,d.B7)(o),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,d.fl)(t,o),f&&(e.useProxy=!0,t=`${u}?${t}`),o.token&&b&&n.body instanceof FormData){const e=n.body;e.set?e.set("token",o.token):e.append("token",o.token)}if(r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,d.D6)(t,d.Gd))if((0,d.kl)(t))e.withCredentials=!0;else if(s.id){const r=s.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include")}let f,h,m=0,w=!1;l>0&&(m=setTimeout((()=>{w=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)h=n,h.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||c||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!o&&!e.useProxy&&y.proxyUrl&&!L(t)){if(f=await p._abortableFetch(t,n),e.useProxy||function(e){const t=(0,d.P$)(e);t&&!p._corsServers.includes(t)&&p._corsServers.push(t)}(t),"native"===r.responseType)h=f;else if("HEAD"!==n.method)if(f.ok){switch(a){case"array-buffer":h=await f.arrayBuffer();break;case"blob":case"image":h=await f.blob();break;default:h=await f.text()}if(m&&(clearTimeout(m),m=0),"json"===a||"xml"===a||"document"===a)if(h)switch(a){case"json":h=JSON.parse(h);break;case"xml":h=S(h,"application/xml");break;case"document":h=S(h,"text/html")}else h=null;if(h){if("array-buffer"===a||"blob"===a){const e=f.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&h["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(h).json();e.error&&(h=e)}catch{}}"image"===a&&h instanceof Blob&&(h=await C(URL.createObjectURL(h),e,!0))}}else h=await f.text()}else h=await C(t,e)}catch(n){if("AbortError"===n.name){if(w)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!f&&n instanceof TypeError&&y.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||L(t))throw n;e.redoRequest=!0,(0,d.tD)({proxyUrl:y.proxyUrl,urlPrefix:(0,d.P$)(t)})}finally{m&&clearTimeout(m)}return[f,h]}function S(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function x(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let o,a,i,l;if(!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[v]=r,o;null!=r&&r.error&&(o=r.error),o&&(a=Number(o.code),i=o.hasOwnProperty("subcode")?Number(o.subcode):null,l=o.messageCode,l=l&&l.toUpperCase());const c=n.authMode;if(403===a&&(4===i||o.message&&o.message.toLowerCase().indexOf("ssl")>-1&&-1===o.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===a)&&-1!==w.indexOf(a)&&!q(e.params.url)&&(403!==a||-1===g.indexOf(l)&&(null==i||2===i&&e.credentialToken))){await P();try{const t=await s.id.getCredential(e.params.url,{error:O("request:server",o,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=null,e.credentialToken=null,!1;o=t}}if(o)throw o;return!0}function C(e,t,r=!1){const n=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.src=e,(0,h.f)(s,e,r,n)}p._abortableFetch=null,p._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>o});var n=r(17452);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function o(e){const t=(0,n.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{f:()=>a});var n=r(80442),s=r(70586),o=r(95330);function a(e,t,r=!1,a){return new Promise(((l,c)=>{if((0,o.Hc)(a))return void c(i());let u=()=>{h(),c(new Error(`Unable to load ${t}`))},d=()=>{const t=e;h(),l(t)},f=()=>{if(!e)return;const t=e;h(),t.src="",c(i())};const h=()=>{(0,n.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",d)),u=null,d=null,e=null,(0,s.pC)(a)&&a.removeEventListener("abort",f),f=null,r&&URL.revokeObjectURL(t)};(0,s.pC)(a)&&a.addEventListener("abort",f),(0,n.Z)("esri-image-decode")?e.decode().then(d,u):(e.addEventListener("error",u),e.addEventListener("load",d))}))}function i(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}},55265:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>m,dracoDecompressPointCloudData:()=>d,filterObbsForModifications:()=>f,filterObbsForModificationsSync:()=>g,initialize:()=>v,interpretObbModificationResults:()=>w,process:()=>u,setLegacySchema:()=>p,setModifications:()=>h,setModificationsSync:()=>y,test:()=>L});var n=r(70586),s=r(1533),o=r(99880);function a(e){return(0,o.V)(`esri/libs/i3s/${e}`)}let i,l,c;async function u(e){await v();const t=[e.geometryBuffer];return{result:b(e,t),transferList:t}}async function d(e){var t;await v();const r=[e.geometryBuffer],{geometryBuffer:n}=e,o=n.byteLength,a=c._malloc(o),i=new Uint8Array(c.HEAPU8.buffer,a,o);i.set(new Uint8Array(n));const l=c.dracoDecompressPointCloudData(a,i.byteLength);if(c._free(a),l.error.length>0)throw`i3s.wasm: ${l.error}`;const u=(null==(t=l.featureIds)?void 0:t.length)>0?(0,s.tP)(l.featureIds):null,d=(0,s.tP)(l.positions);return u&&r.push(u.buffer),r.push(d.buffer),{result:{positions:d,featureIds:u},transferList:r}}async function f(e){await v(),g(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function h(e){await v(),y(e)}async function p(e){await v(),c.setLegacySchema(e.context,e.jsonSchema)}function m(e){E(e)}function y(e){const t=e.modifications,r=c._malloc(8*t.length),n=new Float64Array(c.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];c.setModifications(e.context,r,t.length,e.isGeodetic),c._free(r)}function b(e,t){if(!c)return null;const{context:r,localOrigin:o,globalTrafo:a,mbs:i,obb:l,elevationOffset:u,geometryBuffer:d,geometryDescriptor:f,indexToVertexProjector:h,vertexToRenderProjector:p}=e,m=c._malloc(d.byteLength),y=c._malloc(33*Float64Array.BYTES_PER_ELEMENT),b=new Uint8Array(c.HEAPU8.buffer,m,d.byteLength);b.set(new Uint8Array(d));const w=new Float64Array(c.HEAPU8.buffer,y,33);T(w,o);let g=w.byteOffset+3*w.BYTES_PER_ELEMENT,E=new Float64Array(w.buffer,g);T(E,a),g+=16*w.BYTES_PER_ELEMENT,E=new Float64Array(w.buffer,g),T(E,i),g+=4*w.BYTES_PER_ELEMENT,(0,n.pC)(l)&&(E=new Float64Array(w.buffer,g),T(E,l.center),g+=3*w.BYTES_PER_ELEMENT,E=new Float64Array(w.buffer,g),T(E,l.halfSize),g+=3*w.BYTES_PER_ELEMENT,E=new Float64Array(w.buffer,g),T(E,l.quaternion));const v=f,L={isDraco:!1,isLegacy:!1,color:e.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:e.needNormals&&e.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:e.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:e.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:v.featureIndex},O=c.process(r,!!e.obb,m,b.byteLength,v,L,y,u,h,p,e.normalReferenceFrame);if(c._free(y),c._free(m),O.error.length>0)throw`i3s.wasm: ${O.error}`;if(O.discarded)return null;const P=O.componentOffsets.length>0?(0,s.tP)(O.componentOffsets):null,q=O.featureIds.length>0?(0,s.tP)(O.featureIds):null,k=(0,s.tP)(O.interleavedVertedData).buffer,S=1===O.indicesType?(0,s.tP)(new Uint16Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/2)):(0,s.tP)(new Uint32Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/4)),x=(0,s.tP)(O.positions),C=1===O.positionIndicesType?(0,s.tP)(new Uint16Array(O.positionIndices.buffer,O.positionIndices.byteOffset,O.positionIndices.byteLength/2)):(0,s.tP)(new Uint32Array(O.positionIndices.buffer,O.positionIndices.byteOffset,O.positionIndices.byteLength/4)),_={layout:e.layouts[0],interleavedVertexData:k,indices:S,hasColors:O.hasColors,hasModifications:O.hasModifications,positionData:{data:x,indices:C}};return q&&t.push(q.buffer),P&&t.push(P.buffer),t.push(k),t.push(S.buffer),t.push(x.buffer),t.push(C.buffer),{componentOffsets:P,featureIds:q,transformedGeometry:_,obb:O.obb}}function w(e){return 0===e?0:1===e?1:2===e?2:3}function g(e){const{context:t,buffer:r}=e,n=c._malloc(r.byteLength),s=r.byteLength/Float64Array.BYTES_PER_ELEMENT,o=new Float64Array(c.HEAPU8.buffer,n,s),a=new Float64Array(r);o.set(a),c.filterOBBs(t,n,s),a.set(o),c._free(n)}function E(e){c&&c.destroy(e)}function T(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}function v(){return c?Promise.resolve():(l||(l=(i||(i=new Promise((e=>r.e(6710).then(r.bind(r,26710)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:a,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>Promise.reject(e)))),i).then((e=>{c=e,l=null}))),l)}const L={transform:b,destroy:E}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5823],{84552:(e,t,r)=>{r.d(t,{Z:()=>d});var i,s=r(43697),a=r(10736),n=r(35463),l=r(5600),o=(r(67676),r(80442),r(75215),r(52011)),u=r(78981);let p=i=class extends a.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,n.rJ)(this.value,this.unit,"milliseconds")}clone(){return new i({value:this.value,unit:this.unit})}};(0,s._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),(0,s._)([(0,l.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],p.prototype,"unit",void 0),p=i=(0,s._)([(0,o.j)("esri.TimeInterval")],p);const d=p},68668:(e,t,r)=>{r.d(t,{GZ:()=>l,wF:()=>o});var i=r(66643),s=r(81049),a=r(83379),n=r(70586);async function l(e,t){return await e.load(),o(e,t)}async function o(e,t){const r=[],l=(...e)=>{for(const t of e)(0,n.Wi)(t)||(Array.isArray(t)?l(...t):s.Z.isCollection(t)?t.forEach((e=>l(e))):a.Z.isLoadable(t)&&r.push(t))};t(l);let o=null;if(await(0,i.UI)(r,(async e=>{!1!==(await(0,i.q6)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load())).ok||o||(o=e)})),o)throw o.loadError;return e}},91040:(e,t,r)=>{r.d(t,{yZ:()=>s});var i=r(67900);function s(e,t){const r=t||e.extent,s=e.width,a=(0,i.c9)(r&&r.spatialReference);return r&&s?r.width/s*a*i.hd*96:0}},75823:(e,t,r)=>{r.r(t),r.d(t,{default:()=>R});var i=r(43697),s=r(3172),a=r(92835),n=r(20102),l=r(3920),o=r(68668),u=r(70586),p=r(16453),d=r(95330),y=r(5600),m=(r(67676),r(80442),r(75215)),c=r(71715),h=r(52011),v=r(30556),g=r(31263),f=r(6570),b=r(91040),w=r(29600),I=r(54295),x=r(7944),S=r(17287),_=r(78096),C=r(17017),T=r(38009),E=r(16859),O=r(34760),D=r(72965),U=r(10343),F=r(28294),j=r(21506),L=r(15923),N=r(32073),P=r(410);const Z={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let k=class extends((0,l.p)(L.Z)){constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map((e=>{const t=(0,P.ff)(this.floors,e);return e.toExportImageJSON(t)}));return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,N.FN)(this.visibleSublayers,this.layer.serviceSublayers,this.layer)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.allSublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("sublayer-update",(e=>this.notifyChange(Z[e.propertyName])))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map((e=>e.id)).join(","):"show:-1":null}get layerDefs(){var e;const t=!(null==(e=this.floors)||!e.length),r=this.visibleSublayers.filter((e=>null!=e.definitionExpression||t&&null!=e.floorInfo));return r.length?JSON.stringify(r.reduce(((e,t)=>{const r=(0,P.ff)(this.floors,t),i=(0,u.pC)(r)?(0,P.Hp)(r,t):t.definitionExpression;return e[t.id]=i,e}),{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers"),this.commitProperty("timeExtent");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=t=>{const i=this.scale,s=0===i,a=0===t.minScale||i<=t.minScale,n=0===t.maxScale||i>=t.maxScale;t.visible&&(s||a&&n)&&(t.sublayers?t.sublayers.forEach(r):e.unshift(t))};t&&t.forEach(r);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some(((t,r)=>e[r]!==t))?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i._)([(0,y.Cb)({readOnly:!0})],k.prototype,"dynamicLayers",null),(0,i._)([(0,y.Cb)()],k.prototype,"floors",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],k.prototype,"hasDynamicLayers",null),(0,i._)([(0,y.Cb)()],k.prototype,"layer",null),(0,i._)([(0,y.Cb)({readOnly:!0})],k.prototype,"layers",null),(0,i._)([(0,y.Cb)({readOnly:!0})],k.prototype,"layerDefs",null),(0,i._)([(0,y.Cb)({type:Number})],k.prototype,"scale",void 0),(0,i._)([(0,y.Cb)(j.qG)],k.prototype,"timeExtent",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],k.prototype,"version",null),(0,i._)([(0,y.Cb)({readOnly:!0})],k.prototype,"visibleSublayers",null),k=(0,i._)([(0,h.j)("esri.layers.mixins.ExportImageParameters")],k);var J=r(49867);let M=class extends((0,_.h)((0,F.n)((0,D.M)((0,U.x)((0,x.O)((0,S.Y)((0,T.q)((0,E.I)((0,p.R)((0,O.Q)((0,I.V)((0,C.N)((0,l.p)(w.Z)))))))))))))){constructor(...e){super(...e),this.datesInUnknownTimezone=!1,this.dpi=96,this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,u.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.indexOf("PNG32")>-1?"png32":"png24"}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray();let a=!1;if(this.capabilities&&this.capabilities.operations.supportsExportMap&&this.capabilities.exportMap.supportsDynamicLayers){const e=(0,g.M9)(i.origin);if(3===e){const e=this.createSublayersForOrigin("service").sublayers;a=(0,N.QV)(s,e,2)}else if(e>3){const e=this.createSublayersForOrigin("portal-item");a=(0,N.QV)(s,e.sublayers,(0,g.M9)(e.origin))}}const n=[],l={writeSublayerStructure:a,...i};let o=a;s.forEach((e=>{const t=e.write({},l);n.push(t),o=o||"user"===e.originOf("visible")})),n.some((e=>Object.keys(e).length>1))&&(t.layers=n),o&&(t.visibleLayers=s.filter((e=>e.visible)).map((e=>e.id)))}createExportImageParameters(e,t,r,i){const s=i&&i.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian());const a=new k({layer:this,floors:null==i?void 0:i.floors,scale:(0,b.yZ)({extent:e,width:t})*s}),n=a.toJSON();a.destroy();const l=!i||!i.rotation||this.version<10.3?{}:{rotation:-i.rotation},o=e&&e.spatialReference,u=o.wkid||JSON.stringify(o.toJSON());n.dpi*=s;const p={};if(null!=i&&i.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();p.time=e&&t&&e===t?""+e:`${null==e?"null":e},${null==t?"null":t}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(p.time="null,null");return{bbox:e&&e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:u,imageSR:u,size:t+","+r,...n,...l,...p}}async fetchImage(e,t,r,i){var a;const l={responseType:"image",signal:null!=(a=null==i?void 0:i.signal)?a:null,query:{...this.parsedUrl.query,...this.createExportImageParameters(e,t,r,i),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},o=this.parsedUrl.path+"/export";return null==l.query.dynamicLayers||this.capabilities.exportMap.supportsDynamicLayers?(0,s.default)(o,l).then((e=>e.data)).catch((e=>{if((0,d.D_)(e))throw e;throw new n.Z("mapimagelayer:image-fetch-error",`Unable to load image: ${o}`,{error:e})})):Promise.reject(new n.Z("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:l.query}))}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,s.default)(this.url,t),{extent:i,fullExtent:n,timeExtent:l}=r,o=i||n;return{fullExtent:o&&f.Z.fromJSON(o),timeExtent:l&&a.Z.fromJSON({start:l[0],end:l[1]})}}loadAll(){return(0,o.GZ)(this,(e=>{e(this.allSublayers)}))}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,s.default)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}};(0,i._)([(0,y.Cb)({type:Boolean})],M.prototype,"datesInUnknownTimezone",void 0),(0,i._)([(0,y.Cb)()],M.prototype,"dpi",void 0),(0,i._)([(0,y.Cb)()],M.prototype,"gdbVersion",void 0),(0,i._)([(0,y.Cb)()],M.prototype,"imageFormat",void 0),(0,i._)([(0,c.r)("imageFormat",["supportedImageFormatTypes"])],M.prototype,"readImageFormat",null),(0,i._)([(0,y.Cb)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],M.prototype,"imageMaxHeight",void 0),(0,i._)([(0,y.Cb)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],M.prototype,"imageMaxWidth",void 0),(0,i._)([(0,y.Cb)()],M.prototype,"imageTransparency",void 0),(0,i._)([(0,y.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],M.prototype,"isReference",void 0),(0,i._)([(0,y.Cb)({json:{read:!1,write:!1}})],M.prototype,"labelsVisible",void 0),(0,i._)([(0,y.Cb)({type:["ArcGISMapServiceLayer"]})],M.prototype,"operationalLayerType",void 0),(0,i._)([(0,y.Cb)({json:{read:!1,write:!1}})],M.prototype,"popupEnabled",void 0),(0,i._)([(0,y.Cb)()],M.prototype,"sourceJSON",void 0),(0,i._)([(0,y.Cb)({json:{write:{ignoreOrigin:!0}}})],M.prototype,"sublayers",void 0),(0,i._)([(0,v.c)("sublayers",{layers:{type:[J.Z]},visibleLayers:{type:[m.z8]}})],M.prototype,"writeSublayers",null),(0,i._)([(0,y.Cb)({type:["show","hide","hide-children"]})],M.prototype,"listMode",void 0),(0,i._)([(0,y.Cb)({json:{read:!1},readOnly:!0,value:"map-image"})],M.prototype,"type",void 0),(0,i._)([(0,y.Cb)(j.HQ)],M.prototype,"url",void 0),M=(0,i._)([(0,h.j)("esri.layers.MapImageLayer")],M);const R=M},16859:(e,t,r)=>{r.d(t,{I:()=>w});var i=r(43697),s=r(40330),a=r(3172),n=r(66643),l=r(20102),o=r(92604),u=r(70586),p=r(95330),d=r(17452),y=r(5600),m=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),h=r(30556),v=r(65587),g=r(15235),f=r(86082);const b=o.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,p.k_)(t),await i.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,p.D_)(e)||b.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 fetchUserHasEditingPrivileges(e){const t=this.url?null==s.id?void 0:s.id.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this.fetchEditingUser(e);return I.credential=t,I.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async fetchEditingUser(e){var t,r;const i=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(i)return i;const l=s.id.findServerInfo(this.url);if(null==l||!l.owningSystemUrl)return null;const o=`${l.owningSystemUrl}/sharing/rest`,p=v.Z.getDefault();if(p&&p.loaded&&(0,d.Fv)(p.restUrl)===(0,d.Fv)(o))return p.user;const y=`${o}/community/self`,m=(0,u.pC)(e)?e.signal:null,c=await(0,n.q6)((0,a.default)(y,{authMode:"no-prompt",query:{f:"json"},signal:m}));return c.ok?f.default.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,i._)([(0,m.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,h.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.Cb)()],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,i._)([(0,c.j)("esri.layers.mixins.PortalLayer")],t),t},I={credential:null,user:null}},28294:(e,t,r)=>{r.d(t,{n:()=>y});var i=r(43697),s=r(92835),a=r(84552),n=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),o=r(52011),u=r(30547),p=r(35671),d=r(78981);const y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=d.v.fromJSON(r.timeOffsetUnits);return i&&s?new a.Z({value:i,unit:s}):null}set timeInfo(e){(0,p.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,n.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,n.Cb)({type:a.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,l.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,n.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.TemporalLayer")],t),t}},30547:(e,t,r)=>{r.d(t,{Z:()=>b});var i,s=r(43697),a=r(92835),n=r(84552),l=r(10736),o=r(22974),u=r(70586),p=r(5600),d=(r(75215),r(71715)),y=r(52011),m=r(30556);r(67676),r(80442);let c=i=class extends l.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new i({respectsDaylightSaving:e,timezone:t})}};(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"respectsDaylightSaving",void 0),(0,s._)([(0,d.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],c.prototype,"readRespectsDaylightSaving",null),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],c.prototype,"timezone",void 0),c=i=(0,s._)([(0,y.j)("esri.layers.support.TimeReference")],c);const h=c;var v,g=r(78981);let f=v=class extends l.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 r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new a.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new n.Z({value:t.timeInterval,unit:g.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new n.Z({value:t.defaultTimeInterval,unit:g.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const r=e.toJSON();t.timeInterval=r.value,t.timeIntervalUnits=r.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:r,interval:i,startField:s,timeReference:a,fullTimeExtent:n,trackIdField:l,useTime:u}=this;return new v({cumulative:e,endField:t,hasLiveData:r,interval:i,startField:s,timeReference:(0,o.d9)(a),fullTimeExtent:(0,o.d9)(n),trackIdField:l,useTime:u})}};(0,s._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],f.prototype,"cumulative",void 0),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],f.prototype,"endField",void 0),(0,s._)([(0,p.Cb)({type:a.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,s._)([(0,d.r)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,s._)([(0,m.c)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,s._)([(0,p.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,s._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,s._)([(0,m.c)("interval")],f.prototype,"writeInterval",null),(0,s._)([(0,p.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],f.prototype,"startField",void 0),(0,s._)([(0,p.Cb)({type:h,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"timeReference",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],f.prototype,"useTime",void 0),f=v=(0,s._)([(0,y.j)("esri.layers.support.TimeInfo")],f);const b=f},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).wY)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9554],{66577:(e,t,r)=>{r.d(t,{qM:()=>f});var n=r(75215),i=r(6570),o=r(9361),s=r(65091),a=r(13473),l=r(17332),u=r(58901);r(82971),r(86973),r(33955);const f={base:o.Z,key:"type",typeMap:{extent:i.Z,multipoint:s.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(f)},33955:(e,t,r)=>{r.d(t,{im:()=>m,q9:()=>_,Ji:()=>d,YX:()=>f,aW:()=>c,wp:()=>p,oU:()=>N,l9:()=>y});var n=r(70586),i=r(6570),o=r(9361),s=r(65091),a=r(13473),l=r(17332),u=r(58901);function f(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function y(e){return void 0!==e.paths}function N(e){return void 0!==e.rings}function m(e){return(0,n.Wi)(e)?null:e instanceof o.Z?e:p(e)?a.Z.fromJSON(e):y(e)?u.Z.fromJSON(e):N(e)?l.Z.fromJSON(e):c(e)?s.Z.fromJSON(e):f(e)?i.Z.fromJSON(e):null}function d(e){return e?p(e)?"esriGeometryPoint":y(e)?"esriGeometryPolyline":N(e)?"esriGeometryPolygon":f(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:s.Z};function _(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>o});var n=r(35454);const i=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),o=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},11282:(e,t,r)=>{r.d(t,{lA:()=>i,cv:()=>s,en:()=>o});var n=r(17452);function i(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,n.mN)(e):e}function s(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const o=e[i];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){n[i]=[];for(let e=0;e<o.length;e++)n[i][e]=s(o[e])}else if("object"==typeof o)if(o.toJSON){const e=o.toJSON(r&&r[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?o:JSON.stringify(o);else n[i]=o}return n}},29554:(e,t,r)=>{r.r(t),r.d(t,{default:()=>K});var n=r(43697),i=r(5600),o=(r(67676),r(80442),r(75215)),s=r(52011),a=r(3172),l=r(11282);r(66577);var u=r(33955);function f(e){return{geometryType:(0,u.Ji)(e[0]),geometries:e.map((e=>e.toJSON()))}}function c(e,t,r){const n=(0,u.q9)(t);return e.map((e=>{const t=n.fromJSON(e);return t.spatialReference=r,t}))}var p=r(17332);async function y(e,t,r,n){const i=t[0].spatialReference,o=(0,l.en)(e),s={...o.query,f:"json",sr:JSON.stringify(i.toJSON()),polygons:JSON.stringify(f(t).geometries),polylines:JSON.stringify(f(r).geometries)},u=(0,l.lA)(s,n);return(0,a.default)(o.path+"/autoComplete",u).then((({data:e})=>(e.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:i,rings:e})))))}async function N(e,t,r){const n=t[0].spatialReference,i=(0,l.en)(e),o={...i.query,f:"json",sr:JSON.stringify(n.toJSON()),geometries:JSON.stringify(f(t))},s=(0,l.lA)(o,r);return(0,a.default)(i.path+"/convexHull",s).then((({data:e})=>(0,u.im)(e.geometry).set({spatialReference:n})))}async function m(e,t,r,n){const i=t[0].spatialReference,o=(0,l.en)(e);let s={query:{...o.query,f:"json",sr:JSON.stringify(i.toJSON()),geometries:JSON.stringify(f(t)),geometry:JSON.stringify({geometryType:(0,u.Ji)(r),geometry:r.toJSON()})}};return n&&(s={...n,...s}),(0,a.default)(o.path+"/difference",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,u.im)(e).set({spatialReference:i})))))}var d=r(35454);const g=new d.Xn({MGRS:"mgrs",USNG:"usng",UTM:"utm",GeoRef:"geo-ref",GARS:"gars",DMS:"dms",DDM:"ddm",DD:"dd"});var _=r(10736);let S=class extends _.wq{constructor(e){super(e),this.deviationUnit=null,this.geometries=null,this.maxDeviation=null}};(0,n._)([(0,i.Cb)({type:String,json:{write:!0}})],S.prototype,"deviationUnit",void 0),(0,n._)([(0,i.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,u.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],S.prototype,"geometries",void 0),(0,n._)([(0,i.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxDeviation",void 0),S=(0,n._)([(0,s.j)("esri.rest.support.GeneralizeParameters")],S),S.from=(0,o.se)(S);const T=S,I=new d.Xn({109006:"centimeters",9102:"decimal-degrees",109005:"decimeters",9002:"feet",109009:"inches",9036:"kilometers",9001:"meters",9035:"miles",109007:"millimeters",109012:"nautical-miles",9096:"yards"});async function O(e,t,r,n){const i=t[0].spatialReference,o=(0,l.en)(e),s={...o.query,f:"json",sr:JSON.stringify(i.toJSON()),geometries:JSON.stringify(f(t)),geometry:JSON.stringify({geometryType:(0,u.Ji)(r),geometry:r.toJSON()})},c=(0,l.lA)(s,n);return(0,a.default)(o.path+"/intersect",c).then((({data:e})=>(e.geometries||[]).map((e=>(0,u.im)(e).set({spatialReference:i})))))}var h=r(58901);let R=class extends _.wq{constructor(e){super(e),this.calculationType=null,this.geodesic=null,this.lengthUnit=null,this.polylines=null}};(0,n._)([(0,i.Cb)({type:String,json:{write:!0}})],R.prototype,"calculationType",void 0),(0,n._)([(0,i.Cb)({type:Boolean,json:{write:!0}})],R.prototype,"geodesic",void 0),(0,n._)([(0,i.Cb)({json:{write:!0}})],R.prototype,"lengthUnit",void 0),(0,n._)([(0,i.Cb)({type:[h.Z],json:{read:{reader:e=>e?e.map((e=>(0,u.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],R.prototype,"polylines",void 0),R=(0,n._)([(0,s.j)("esri.rest.support.LengthsParameters")],R),R.from=(0,o.se)(R);const U=R,J=new d.Xn({preserveShape:"preserve-shape"});function A(e){const{polylines:t,lengthUnit:r,geodesic:n,calculationType:i}=e.toJSON(),o={};o.polylines=JSON.stringify(t);const s=e.polylines[0].spatialReference;return o.sr=s.wkid?s.wkid:JSON.stringify(s.toJSON()),r&&(o.lengthUnit=r),n&&(o.geodesic=n),i&&(o.calculationType=J.toJSON(i)),o}let E=class extends _.wq{constructor(e){super(e),this.bevelRatio=null,this.geometries=null,this.offsetDistance=null,this.offsetHow=null,this.offsetUnit=null}};(0,n._)([(0,i.Cb)({type:Number,json:{write:!0}})],E.prototype,"bevelRatio",void 0),(0,n._)([(0,i.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,u.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],E.prototype,"geometries",void 0),(0,n._)([(0,i.Cb)({type:Number,json:{write:!0}})],E.prototype,"offsetDistance",void 0),(0,n._)([(0,i.Cb)({type:String,json:{write:!0}})],E.prototype,"offsetHow",void 0),(0,n._)([(0,i.Cb)({type:String,json:{write:!0}})],E.prototype,"offsetUnit",void 0),E=(0,n._)([(0,s.j)("esri.rest.support.OffsetParameters")],E),E.from=(0,o.se)(E);const v=E,w=new d.Xn({esriGeometryOffsetBevelled:"bevelled",esriGeometryOffsetMitered:"mitered",esriGeometryOffsetRounded:"rounded"}),C=new d.Xn({9001:"meters",9002:"feet",9036:"kilometers",9093:"miles",109012:"nautical-miles",109001:"yards"});let j=class extends _.wq{constructor(e){super(e),this.geometries=null,this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((function(e){return e.toJSON()})),t=this.geometries[0],r={};return r.outSR=this.outSpatialReference.wkid||JSON.stringify(this.outSpatialReference.toJSON()),r.inSR=t.spatialReference.wkid||JSON.stringify(t.spatialReference.toJSON()),r.geometries=JSON.stringify({geometryType:(0,u.Ji)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,n._)([(0,i.Cb)()],j.prototype,"geometries",void 0),(0,n._)([(0,i.Cb)({json:{read:{source:"outSR"}}})],j.prototype,"outSpatialReference",void 0),(0,n._)([(0,i.Cb)()],j.prototype,"transformation",void 0),(0,n._)([(0,i.Cb)()],j.prototype,"transformForward",void 0),j=(0,n._)([(0,s.j)("esri.rest.support.ProjectParameters")],j);const G=j,b=(0,o.se)(G);let M=class extends _.wq{constructor(e){super(e),this.geometries1=null,this.geometries2=null,this.relation=null,this.relationParameter=null}};(0,n._)([(0,i.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,u.im)(e))):null},write:{writer:(e,t)=>{t.geometries1=e.map((e=>e.toJSON()))}}}})],M.prototype,"geometries1",void 0),(0,n._)([(0,i.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,u.im)(e))):null},write:{writer:(e,t)=>{t.geometries2=e.map((e=>e.toJSON()))}}}})],M.prototype,"geometries2",void 0),(0,n._)([(0,i.Cb)({type:String,json:{write:!0}})],M.prototype,"relation",void 0),(0,n._)([(0,i.Cb)({type:String,json:{write:!0}})],M.prototype,"relationParameter",void 0),M=(0,n._)([(0,s.j)("esri.rest.support.RelationParameters")],M),M.from=(0,o.se)(M);const q=M,D=new d.Xn({esriGeometryRelationCross:"cross",esriGeometryRelationDisjoint:"disjoint",esriGeometryRelationIn:"in",esriGeometryRelationInteriorIntersection:"interior-intersection",esriGeometryRelationIntersection:"intersection",esriGeometryRelationLineCoincidence:"line-coincidence",esriGeometryRelationLineTouch:"line-touch",esriGeometryRelationOverlap:"overlap",esriGeometryRelationPointTouch:"point-touch",esriGeometryRelationTouch:"touch",esriGeometryRelationWithin:"within",esriGeometryRelationRelation:"relation"});var L=r(17452);async function x(e,t,r){const n="string"==typeof e?(0,L.mN)(e):e,i=t[0].spatialReference,o=(0,u.Ji)(t[0]),s={...r,query:{...n.query,f:"json",sr:i.wkid?i.wkid:JSON.stringify(i),geometries:JSON.stringify(f(t))}},{data:l}=await(0,a.default)(n.path+"/simplify",s);return c(l.geometries,o,i)}let P=class extends _.wq{constructor(e){super(e),this.extendHow="default-curve-extension",this.polylines=null,this.trimExtendTo=null}};(0,n._)([(0,i.Cb)({type:String,json:{write:!0}})],P.prototype,"extendHow",void 0),(0,n._)([(0,i.Cb)({type:[h.Z],json:{read:{reader:e=>e?e.map((e=>(0,u.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],P.prototype,"polylines",void 0),(0,n._)([(0,i.Cb)({json:{read:{reader:e=>e?(0,u.im)(e):null},write:{writer:(e,t)=>{t.trimExtendTo=e.toJSON()}}}})],P.prototype,"trimExtendTo",void 0),P=(0,n._)([(0,s.j)("esri.rest.support.TrimExtendParameters")],P),P.from=(0,o.se)(P);const k=P,H=new d.Xn({0:"default-curve-extension",1:"relocate-ends",2:"keep-end-attributes",4:"no-end-attributes",8:"no-extend-at-from",16:"no-extend-at-to"});async function Z(e,t,r){const n=t[0].spatialReference,i=(0,l.en)(e),o={...i.query,f:"json",sr:JSON.stringify(n.toJSON()),geometries:JSON.stringify(f(t))},s=(0,l.lA)(o,r);return(0,a.default)(i.path+"/union",s).then((({data:e})=>(0,u.im)(e.geometry).set({spatialReference:n})))}var Y=r(59633);let F=class extends Y.Z{constructor(e){super(e),this.url=null}areasAndLengths(e,t){return async function(e,t,r){const n=(0,l.en)(e),i={...n.query,f:"json",...t.toJSON()},o=(0,l.lA)(i,r);return(0,a.default)(n.path+"/areasAndLengths",o).then((e=>e.data))}(this.url,e,t)}autoComplete(e,t,r){return y(this.url,e,t,r)}buffer(e,t){return async function(e,t,r){const n=(0,l.en)(e),i={...n.query,f:"json",...t.toJSON()},o=t.outSpatialReference||t.geometries[0].spatialReference,s=(0,l.lA)(i,r);return(0,a.default)(n.path+"/buffer",s).then((e=>(e.data.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:o,rings:e})))))}(this.url,e,t)}convexHull(e,t){return N(this.url,e,t)}cut(e,t,r){return async function(e,t,r,n){const i=(0,l.en)(e),o=t[0].spatialReference,s={...n,query:{...i.query,f:"json",sr:JSON.stringify(o),target:JSON.stringify({geometryType:(0,u.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},f=await(0,a.default)(i.path+"/cut",s),{cutIndexes:c,geometries:p=[]}=f.data;return{cutIndexes:c,geometries:p.map((e=>{const t=(0,u.im)(e);return t.spatialReference=o,t}))}}(this.url,e,t,r)}densify(e,t){return async function(e,t,r){const n=t.geometries[0].spatialReference,i=(0,l.en)(e),o={...i.query,f:"json",...t.toJSON()},s=(0,l.lA)(o,r);return(0,a.default)(i.path+"/densify",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,u.im)(e).set({spatialReference:n})))))}(this.url,e,t)}difference(e,t,r){return m(this.url,e,t,r)}distance(e,t){return async function(e,t,r){const n=(0,l.en)(e),i={...n.query,f:"json",...t.toJSON()},o=(0,l.lA)(i,r);return(0,a.default)(n.path+"/distance",o).then((({data:e})=>e&&e.distance))}(this.url,e,t)}fromGeoCoordinateString(e,t){return async function(e,t,r){const n={};null!=t.sr&&"object"==typeof t.sr?n.sr=t.sr.wkid||JSON.stringify(t.sr):n.sr=t.sr,n.strings=JSON.stringify(t.strings);const i=t.conversionType||"mgrs";n.conversionType=g.toJSON(i),n.conversionMode=t.conversionMode;const o=(0,l.en)(e),s={...o.query,f:"json",...n},u=(0,l.lA)(s,r);return(0,a.default)(o.path+"/fromGeoCoordinateString",u).then((({data:e})=>e.coordinates))}(this.url,e,t)}generalize(e,t){return async function(e,t,r){const n=(t=T.from(t)).toJSON(),i=function(e){const{geometries:t,deviationUnit:r,maxDeviation:n}=e.toJSON(),i={maxDeviation:n};return t&&t.length&&(i.geometries=JSON.stringify({geometryType:(0,u.Ji)(t[0]),geometries:t}),i.sr=JSON.stringify(t[0].spatialReference)),I.write(r,i,"deviationUnit"),i}(t),o=(0,l.en)(e),s={...o.query,f:"json",...i},f=n.geometries[0].spatialReference,c=(0,l.lA)(s,r);return(0,a.default)(o.path+"/generalize",c).then((({data:e})=>(e.geometries||[]).map((e=>(0,u.im)(e).set({spatialReference:f})))))}(this.url,e,t)}intersect(e,t,r){return O(this.url,e,t,r)}labelPoints(e,t){return function(e,t,r){const n=t.map((e=>e.toJSON())),i=t[0].spatialReference,o=(0,l.en)(e),s={...o.query,f:"json",sr:i.wkid?i.wkid:JSON.stringify(i.toJSON()),polygons:JSON.stringify(n)},f=(0,l.lA)(s,r);return(0,a.default)(o.path+"/labelPoints",f).then((({data:e})=>(e.labelPoints||[]).map((e=>(0,u.im)(e).set({spatialReference:i})))))}(this.url,e,t)}lengths(e,t){return async function(e,t,r){const n=A(t=U.from(t)),i=(0,l.en)(e),o={...i.query,f:"json",...n},s=(0,l.lA)(o,r);return(0,a.default)(i.path+"/lengths",s).then((({data:e})=>e))}(this.url,e,t)}offset(e,t){return async function(e,t,r){const n=function(e){const{geometries:t,bevelRatio:r,offsetDistance:n,offsetHow:i,offsetUnit:o}=e.toJSON(),s={bevelRatio:r,offsetDistance:n};return t&&t.length&&(s.geometries=JSON.stringify({geometryType:(0,u.Ji)(t[0]),geometries:t}),s.sr=JSON.stringify(t[0].spatialReference)),i&&(s.offsetHow=w.toJSON(i)),o&&(s.offsetUnit=C.toJSON(o)),s}(t=v.from(t)),i=(0,l.en)(e),o={...i.query,f:"json",...n},s=t.geometries[0].spatialReference,f=(0,l.lA)(o,r);return(0,a.default)(i.path+"/offset",f).then((({data:e})=>(e.geometries||[]).map((e=>(0,u.im)(e).set({spatialReference:s})))))}(this.url,e,t)}project(e,t){return async function(e,t,r){t=b(t);const n=(0,l.en)(e),i={...n.query,f:"json",...t.toJSON()},o=t.outSpatialReference,s=(0,u.Ji)(t.geometries[0]),f=(0,l.lA)(i,r);return(0,a.default)(n.path+"/project",f).then((({data:{geometries:e}})=>c(e,s,o)))}(this.url,e,t)}relation(e,t){return async function(e,t,r){const n=function(e){const{geometries1:t,geometries2:r,relation:n,relationParameter:i}=e.toJSON(),o={};if(t&&t.length){o.geometries1=JSON.stringify({geometryType:(0,u.Ji)(t[0]),geometries:t});const e=t[0].spatialReference;o.sr=e.wkid?e.wkid:JSON.stringify(e)}return r&&r.length>0&&(o.geometries2=JSON.stringify({geometryType:(0,u.Ji)(r[0]),geometries:r})),n&&(o.relation=D.toJSON(n)),i&&(o.relationParam=i),o}(t=q.from(t)),i=(0,l.en)(e),o={...i.query,f:"json",...n},s=(0,l.lA)(o,r);return(0,a.default)(i.path+"/relation",s).then((({data:e})=>e.relations))}(this.url,e,t)}reshape(e,t,r){return async function(e,t,r,n){const i=t.spatialReference,o=(0,l.en)(e),s={...o.query,f:"json",sr:JSON.stringify(i.toJSON()),target:JSON.stringify({geometryType:(0,u.Ji)(t),geometry:t.toJSON()}),reshaper:JSON.stringify(r.toJSON())},f=(0,l.lA)(s,n);return(0,a.default)(o.path+"/reshape",f).then((({data:e})=>(0,u.im)(e.geometry).set({spatialReference:i})))}(this.url,e,t,r)}simplify(e,t){return x(this.url,e,t)}toGeoCoordinateString(e,t){return async function(e,t,r){const n={};null!=t.sr&&"object"==typeof t.sr?n.sr=t.sr.wkid||JSON.stringify(t.sr):n.sr=t.sr,n.coordinates=JSON.stringify(t.coordinates);const i=t.conversionType||"mgrs";n.conversionType=g.toJSON(i),n.conversionMode=t.conversionMode,n.numOfDigits=t.numOfDigits,n.rounding=t.rounding,n.addSpaces=t.addSpaces;const o=(0,l.en)(e),s={...o.query,f:"json",...n},u=(0,l.lA)(s,r);return(0,a.default)(o.path+"/toGeoCoordinateString",u).then((({data:e})=>e.strings))}(this.url,e,t)}trimExtend(e,t){return async function(e,t,r){const n=function(e){const{extendHow:t,polylines:r,trimExtendTo:n}=e.toJSON(),i={};return i.extendHow=H.toJSON(t),r&&r.length&&(i.polylines=JSON.stringify(r),i.sr=JSON.stringify(r[0].spatialReference)),n&&(i.trimExtendTo=JSON.stringify(n)),i}(t=k.from(t)),i=(0,l.en)(e),o={...i.query,f:"json",...n},s=t.sr,u=(0,l.lA)(o,r);return(0,a.default)(i.path+"/trimExtend",u).then((({data:e})=>(e.geometries||[]).map((({paths:e})=>new h.Z({spatialReference:s,paths:e})))))}(this.url,e,t)}union(e,t){return Z(this.url,e,t)}};F.UNIT_METER=9001,F.UNIT_GERMAN_METER=9031,F.UNIT_FOOT=9002,F.UNIT_SURVEY_FOOT=9003,F.UNIT_CLARKE_FOOT=9005,F.UNIT_FATHOM=9014,F.UNIT_NAUTICAL_MILE=9030,F.UNIT_SURVEY_CHAIN=9033,F.UNIT_SURVEY_LINK=9034,F.UNIT_SURVEY_MILE=9035,F.UNIT_KILOMETER=9036,F.UNIT_CLARKE_YARD=9037,F.UNIT_CLARKE_CHAIN=9038,F.UNIT_CLARKE_LINK=9039,F.UNIT_SEARS_YARD=9040,F.UNIT_SEARS_FOOT=9041,F.UNIT_SEARS_CHAIN=9042,F.UNIT_SEARS_LINK=9043,F.UNIT_BENOIT_1895A_YARD=9050,F.UNIT_BENOIT_1895A_FOOT=9051,F.UNIT_BENOIT_1895A_CHAIN=9052,F.UNIT_BENOIT_1895A_LINK=9053,F.UNIT_BENOIT_1895B_YARD=9060,F.UNIT_BENOIT_1895B_FOOT=9061,F.UNIT_BENOIT_1895B_CHAIN=9062,F.UNIT_BENOIT_1895B_LINK=9063,F.UNIT_INDIAN_FOOT=9080,F.UNIT_INDIAN_1937_FOOT=9081,F.UNIT_INDIAN_1962_FOOT=9082,F.UNIT_INDIAN_1975_FOOT=9083,F.UNIT_INDIAN_YARD=9084,F.UNIT_INDIAN_1937_YARD=9085,F.UNIT_INDIAN_1962_YARD=9086,F.UNIT_INDIAN_1975_YARD=9087,F.UNIT_FOOT_1865=9070,F.UNIT_RADIAN=9101,F.UNIT_DEGREE=9102,F.UNIT_ARCMINUTE=9103,F.UNIT_ARCSECOND=9104,F.UNIT_GRAD=9105,F.UNIT_GON=9106,F.UNIT_MICRORADIAN=9109,F.UNIT_ARCMINUTE_CENTESIMAL=9112,F.UNIT_ARCSECOND_CENTESIMAL=9113,F.UNIT_MIL6400=9114,F.UNIT_BRITISH_1936_FOOT=9095,F.UNIT_GOLDCOAST_FOOT=9094,F.UNIT_INTERNATIONAL_CHAIN=109003,F.UNIT_INTERNATIONAL_LINK=109004,F.UNIT_INTERNATIONAL_YARD=109001,F.UNIT_STATUTE_MILE=9093,F.UNIT_SURVEY_YARD=109002,F.UNIT_50KILOMETER_LENGTH=109030,F.UNIT_150KILOMETER_LENGTH=109031,F.UNIT_DECIMETER=109005,F.UNIT_CENTIMETER=109006,F.UNIT_MILLIMETER=109007,F.UNIT_INTERNATIONAL_INCH=109008,F.UNIT_US_SURVEY_INCH=109009,F.UNIT_INTERNATIONAL_ROD=109010,F.UNIT_US_SURVEY_ROD=109011,F.UNIT_US_NAUTICAL_MILE=109012,F.UNIT_UK_NAUTICAL_MILE=109013,F.UNIT_SQUARE_INCHES="esriSquareInches",F.UNIT_SQUARE_FEET="esriSquareFeet",F.UNIT_SQUARE_YARDS="esriSquareYards",F.UNIT_ACRES="esriAcres",F.UNIT_SQUARE_MILES="esriSquareMiles",F.UNIT_SQUARE_MILLIMETERS="esriSquareMillimeters",F.UNIT_SQUARE_CENTIMETERS="esriSquareCentimeters",F.UNIT_SQUARE_DECIMETERS="esriSquareDecimeters",F.UNIT_SQUARE_METERS="esriSquareMeters",F.UNIT_ARES="esriAres",F.UNIT_HECTARES="esriHectares",F.UNIT_SQUARE_KILOMETERS="esriSquareKilometers",(0,n._)([(0,i.Cb)()],F.prototype,"url",void 0),F=(0,n._)([(0,s.j)("esri.tasks.GeometryService")],F);const K=F},59633:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(43697),i=r(15923),o=r(17452),s=r(5600),a=(r(67676),r(80442),r(75215),r(52011));let l=class extends i.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,o.mN)(e):null}_encode(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const o=e[i];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){n[i]=[];for(let e=0;e<o.length;e++)n[i][e]=this._encode(o[e])}else if("object"==typeof o)if(o.toJSON){const e=o.toJSON(r&&r[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?o:JSON.stringify(o);else n[i]=o}return n}};(0,n._)([(0,s.Cb)({readOnly:!0})],l.prototype,"parsedUrl",null),(0,n._)([(0,s.Cb)()],l.prototype,"requestOptions",void 0),(0,n._)([(0,s.Cb)({type:String})],l.prototype,"url",void 0),l=(0,n._)([(0,a.j)("esri.tasks.Task")],l);const u=l}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1611],{99880:(e,t,n)=>{n.d(t,{V:()=>l});var r=n(68773),s=(n(3172),n(20102)),o=n(92604),i=n(17452);const a=o.Z.getLogger("esri.assets");function l(e){if(!r.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new s.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.Z.assetsPath,e)}},80903:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(50758),s=n(92604),o=n(95330),i=n(25045);const a=s.Z.getLogger("esri.core.workers.Connection");class l{constructor(){this._clients=new Array,this._clientPromises=new Array,this._clientIdx=0}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((n,r)=>{let s=!0;const a=e=>{(0,o.k_)(t.signal),s&&(s=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length;for(let s=0;s<e.length;++s){const l=e[s];(0,o.y8)(l)?this._clientPromises[s]=l.then((e=>(this._clients[s]=new i.default(e,t),a(n),this._clients[s])),(()=>(a(r),null))):(this._clients[s]=new i.default(l,t),this._clientPromises[s]=Promise.resolve(this._clients[s]),a(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let s=0;s<this._clientPromises.length;++s){const o=this._clientPromises[s];r[s]=o.then((r=>r.invoke(e,t,n)))}return r}close(){for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}getAvailableClient(){let e;for(let t=0;t<this._clients.length;++t){const n=this._clients[t];if(n){if(!n.isBusy())return Promise.resolve(n)}else e=e||[],e.push(this._clientPromises[t])}return e?Promise.race(e):(this._clientIdx=(this._clientIdx+1)%this._clients.length,Promise.resolve(this._clients[this._clientIdx]))}invoke(e,t,n){let r=null;return Array.isArray(n)?(a.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),r={transferList:n}):r=n,this.closed?Promise.reject(new Error("Connection closed")):this.getAvailableClient().then((n=>n.invoke(e,t,r)))}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.AL)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((s=>{t[r]=s.openPort(),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},25045:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n(40330),s=n(20102),o=n(91460),i=n(70586),a=n(95330),l=n(94362),c=n(17202);const h={statsWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(7267)]).then(n.bind(n,37267)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(8677),n.e(2894),n.e(1534),n.e(8397),n.e(3474),n.e(4324),n.e(1183)]).then(n.bind(n,27793)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(8936)]).then(n.bind(n,18936)),ElevationSamplerWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(2894),n.e(6481),n.e(3675),n.e(5413)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(8677),n.e(9349),n.e(2894),n.e(1534),n.e(8397),n.e(3474),n.e(4324),n.e(991)]).then(n.bind(n,41650)),GeoJSONSourceWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(8677),n.e(2894),n.e(1534),n.e(8397),n.e(3474),n.e(4324),n.e(4077),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(8677),n.e(2894),n.e(1534),n.e(8397),n.e(3474),n.e(4324),n.e(4077),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(3474),n.e(1951)]).then(n.bind(n,61916)),Pipeline:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(8677),n.e(9349),n.e(2894),n.e(1534),n.e(8397),n.e(3474),n.e(4324),n.e(6312),n.e(3142)]).then(n.bind(n,53142)),PointCloudWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(2894),n.e(3941)]).then(n.bind(n,16583)),RasterWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(7303),n.e(3594)]).then(n.bind(n,61576)),SceneLayerWorker:()=>n.e(5265).then(n.bind(n,55265)),WFSSourceWorker:()=>Promise.all([n.e(8778),n.e(6570),n.e(9928),n.e(8677),n.e(2894),n.e(1534),n.e(8397),n.e(3474),n.e(4324),n.e(4077),n.e(6919),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(3568),n.e(6810),n.e(3388)]).then(n.bind(n,56456))},{CLOSE:u,ABORT:d,INVOKE:m,RESPONSE:g,OPEN_PORT:f,ON:p}=l.Cs;class y{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===l.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class _{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new _(t.port1,{channel:t,client:n});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),_.clients.set(r,n),t.port2}static loadWorker(e){const t=h[e];return t?t():Promise.resolve(null)}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,o=n&&n.transferList;if(!this._port)return Promise.reject(new s.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,l.jt)();return new Promise(((n,s)=>{const l=(0,a.$F)(r,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:i}),s((0,a.zE)()))})),c={resolve:n,reject:s,abortHandle:l,debugInfo:e};this._outJobs.set(i,c),this._post({type:m,jobId:i,methodName:e,abortable:null!=r},t,o)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:l.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:l.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}openPort(){const e=new MessageChannel;return this._post({type:f,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.QM)(e);if(t)switch(t.type){case g:this._onResponseMessage(t);break;case m:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case u:this._onCloseMessage();break;case f:this._onOpenPortMessage(t);break;case p:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&_.clients.get(this)===e&&e.destroy(),_.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:s}=e,o=s?(0,a.yi)():null,i=this._inJobs;let c,h=this._client,u=h[t];try{if(!u&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)h=h[e[t]],u=h[e[t+1]]}if("function"!=typeof u)throw new TypeError(`${t} is not a function`);c=u.call(h,r,{client:this,signal:o?o.signal:null})}catch(e){return void this._post({type:g,jobId:n,error:(0,l.AB)(e)})}(0,a.y8)(c)?(i.set(n,{controller:o,promise:c}),c.then((e=>{i.has(n)&&(i.delete(n),this._post({type:g,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:g,jobId:n,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:g,jobId:n},c)}_onOpenPortMessage(e){new _(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,o.on)(e.port,"message",(e=>{(0,l.QM)(e).type===l.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:n,error:r,data:o}=e,i=this._outJobs;if(!i.has(n))return;const a=i.get(n);i.delete(n),null==(t=a.abortHandle)||t.remove(),r?a.reject(s.Z.fromJSON(JSON.parse(r))):a.resolve(o)}_post(e,t,n){return(0,l.oi)(this._port,e,t,n)}}_.kernelInfo={revision:c.$,version:r.i8,buildDate:c.r},_.clients=new Map},94362:(e,t,n)=>{n.d(t,{Cs:()=>r,jt:()=>a,oi:()=>c,QM:()=>h,AB:()=>l});var r,s,o=n(80442);(s=r||(r={}))[s.HANDSHAKE=0]="HANDSHAKE",s[s.OPEN=1]="OPEN",s[s.OPENED=2]="OPENED",s[s.RESPONSE=3]="RESPONSE",s[s.INVOKE=4]="INVOKE",s[s.ABORT=5]="ABORT",s[s.CLOSE=6]="CLOSE",s[s.OPEN_PORT=7]="OPEN_PORT",s[s.ON=8]="ON";let i=0;function a(){return i++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,n,s){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let o;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(o=u(s),t.data=n):(o=u(n.transferList),t.data=n.result),o?e.postMessage(t,o):e.postMessage(t)}function h(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},8667:(e,t,n)=>{n.d(t,{f3:()=>A,oq:()=>h,r3:()=>d,jU:()=>m,z7:()=>u,Cz:()=>D,e5:()=>M,ED:()=>b,TE:()=>g,fS:()=>f,D$:()=>C,Y4:()=>R,rd:()=>N,j2:()=>I,kQ:()=>W,wf:()=>O,kK:()=>p,Gg:()=>P,cv:()=>L,Nm:()=>w,CJ:()=>J,sz:()=>j,LV:()=>v,U1:()=>T,og:()=>k,Sp:()=>S,W4:()=>y,G0:()=>E,uh:()=>_}),n(66577);var r=n(78346),s=(n(13473),n(33955));function o(e){var t;return Array.isArray(e)?null==(t=e[0])?void 0:t.spatialReference:null==e?void 0:e.spatialReference}function i(e){return e?Array.isArray(e)?e.map(i):e.toJSON?e.toJSON():e:e}function a(e){return Array.isArray(e)?e.map((e=>(0,s.im)(e))):(0,s.im)(e)}let l;async function c(e,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:i(t)})}async function h(e,t){return a(await c("clip",[o(e),e,t]))}async function u(e,t){return a(await c("cut",[o(e),e,t]))}function d(e,t){return c("contains",[o(e),e,t])}function m(e,t){return c("crosses",[o(e),e,t])}function g(e,t,n){return c("distance",[o(e),e,t,n])}function f(e,t){return c("equals",[o(e),e,t])}function p(e,t){return c("intersects",[o(e),e,t])}function y(e,t){return c("touches",[o(e),e,t])}function _(e,t){return c("within",[o(e),e,t])}function b(e,t){return c("disjoint",[o(e),e,t])}function w(e,t){return c("overlaps",[o(e),e,t])}function v(e,t,n){return c("relate",[o(e),e,t,n])}function P(e){return c("isSimple",[o(e),e])}async function k(e){return a(await c("simplify",[o(e),e]))}async function M(e,t){return a(await c("difference",[o(e),e,t]))}async function S(e,t){return a(await c("symmetricDifference",[o(e),e,t]))}async function O(e,t){return a(await c("intersect",[o(e),e,t]))}async function E(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return a(await c("union",[o(n),n]))}async function L(e,t,n,r,s,i){return a(await c("offset",[o(e),e,t,n,r,s,i]))}async function A(e,t,n,r=!1){const s=[o(e),e,t,n,r];return a(await c("buffer",s))}async function N(e,t,n,r,s,i){const l=[o(e),e,t,n,r,s,i];return a(await c("geodesicBuffer",l))}async function T(e,t,n){var r;if(null==e)throw new Error("Illegal Argument Exception");const s=e.spatialReference;n=null!=(r=n)?r:function(e){return"xmin"in e?e.center:"x"in e?e:e.extent.center}(e);const o=e.constructor.fromJSON(await c("rotate",[s,e,t,n]));return o.spatialReference=s,o}async function C(e,t,n,r){return a(await c("generalize",[o(e),e,t,n,r]))}async function D(e,t,n){return a(await c("densify",[o(e),e,t,n]))}async function I(e,t,n,r=0){return a(await c("geodesicDensify",[o(e),e,t,n,r]))}function J(e,t){return c("planarArea",[o(e),e,t])}function j(e,t){return c("planarLength",[o(e),e,t])}function R(e,t,n){return c("geodesicArea",[o(e),e,t,n])}function W(e,t,n){return c("geodesicLength",[o(e),e,t,n])}},2587:(e,t,n)=>{n(90344),n(18848),n(940),n(70171);var r=n(94443),s=n(3172),o=n(20102),i=n(16358),a=n(70586);async function l(e){if((0,a.pC)(c.fetchBundleAsset))return c.fetchBundleAsset(e);const t=await(0,s.default)(e,{responseType:"text"});return JSON.parse(t.data)}const c={};var h,u=n(99880);(0,r.tz)((h={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:n=new URL(window.location.href)}){let r;r="string"==typeof n?e=>new URL(e,new URL(n,i.Z.location)).href:n instanceof URL?e=>new URL(e,n).href:n,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,n,s){const i=t.exec(n);if(!i)throw new o.Z("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${t}"`);const a=i[1]?`${i[1]}/`:"",c=i[2],h=(0,r.Su)(s),u=`${a}${c}.json`,d=h?`${a}${c}_${h}.json`:u;let m;try{m=await l(e(d))}catch(t){if(d===u)throw new o.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:t});try{m=await l(e(u))}catch(e){throw new o.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:e})}}return m}(this.getAssetUrl,this.matcher,e,t)}}(h)))},90344:(e,t,n)=>{n.d(t,{Ze:()=>p,p6:()=>y});var r=n(35454),s=n(70171);const o={year:"numeric",month:"numeric",day:"numeric"},i={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},h={...c,second:"numeric"},u={"short-date":o,"short-date-short-time":{...o,...c},"short-date-short-time-24":{...o,...c,hour12:!1},"short-date-long-time":{...o,...h},"short-date-long-time-24":{...o,...h,hour12:!1},"short-date-le":o,"short-date-le-short-time":{...o,...c},"short-date-le-short-time-24":{...o,...c,hour12:!1},"short-date-le-long-time":{...o,...h},"short-date-le-long-time-24":{...o,...h,hour12:!1},"long-month-day-year":i,"long-month-day-year-short-time":{...i,...c},"long-month-day-year-short-time-24":{...i,...c,hour12:!1},"long-month-day-year-long-time":{...i,...h},"long-month-day-year-long-time-24":{...i,...h,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...c},"day-short-month-year-short-time-24":{...a,...c,hour12:!1},"day-short-month-year-long-time":{...a,...h},"day-short-month-year-long-time-24":{...a,...h,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...h},"long-date-long-time-24":{...l,...h,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":h},d=(0,r.wY)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),m=(d.apiValues,d.toJSON.bind(d),d.fromJSON.bind(d),{ar:"ar-u-nu-latn-ca-gregory"});let g=new WeakMap,f=u["short-date-short-time"];function p(e){return u[e]||null}function y(e,t){return function(e){const t=e||f;if(!g.has(t)){const e=(0,s.Kd)(),n=m[(0,s.Kd)()]||e;g.set(t,new Intl.DateTimeFormat(n,t))}return g.get(t)}(t).format(e)}(0,s.Ze)((()=>{g=new WeakMap,f=u["short-date-short-time"]}))},94443:(e,t,n)=>{n.d(t,{ME:()=>m,Su:()=>g,tz:()=>d});var r=n(20102),s=n(95330),o=n(70171);const i=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const c=[],h=new Map;function u(e){for(const t of h.keys())f(e.pattern,t)&&h.delete(t)}function d(e){return c.includes(e)||(u(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),u(e))}}}async function m(e){const t=(0,o.Kd)();h.has(e)||h.set(e,async function(e,t){const n=[];for(const r of c)if(f(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=h.get(e);return await p.add(n),n}function g(e){if(!i.test(e))return null;const[,t,n]=i.exec(e),r=t+(n?"-"+n.toUpperCase():"");return l(r)?r:l(t)?t:null}function f(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ze)((()=>{h.clear()}));const p=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,s.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,n)=>{n.d(t,{sh:()=>l,uf:()=>c});var r=n(70586),s=n(70171);const o={ar:"ar-u-nu-latn"};let i=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function c(e,t){return function(e){const t=e||a;if(!i.has(t)){const n=(0,s.Kd)(),r=o[(0,s.Kd)()]||n;i.set(t,new Intl.NumberFormat(r,e))}return(0,r.j0)(i.get(t))}(t).format(e)}(0,s.Ze)((()=>{i=new WeakMap,a={}}))},940:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(92604),s=n(78286),o=n(19153),i=n(90344),a=n(18848);const l=r.Z.getLogger("esri.intl");function c(e,t,n={}){const{format:r={}}=n;return(0,o.gx)(e,(e=>function(e,t,n){let r,o;const i=e.indexOf(":");if(-1===i?r=e.trim():(r=e.slice(0,i).trim(),o=e.slice(i+1).trim()),!r)return"";const a=(0,s.hS)(r,t);if(null==a)return"";const l=n[o]||n[r];return l?h(a,l):o?u(a,o):d(a)}(e,t,r)))}function h(e,t){switch(t.type){case"date":return(0,i.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),d(e)}}function u(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):d(e)}}function d(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.p6)(e):""}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3384],{99880:(e,t,r)=>{r.d(t,{V:()=>l});var s=r(68773),o=(r(3172),r(20102)),n=r(92604),i=r(17452);const a=n.Z.getLogger("esri.assets");function l(e){if(!s.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(s.Z.assetsPath,e)}},25929:(e,t,r)=>{r.d(t,{f:()=>n,i:()=>d,p:()=>h,r:()=>a,t:()=>i,w:()=>l});var s=r(70586),o=r(17452);function n(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,o.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,o.PF)(e,t.portalItem.itemUrl);c.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return p(e,t&&t.portal)}function i(e,t,r=0){if(!e)return e;!(0,o.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,o.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const n=p(r,t.portal);s=(0,o.PF)(p(s,t.portal),n,n),s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=function(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,o.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}(s,t&&t.portal),(0,o.YP)(s)&&(s=(0,o.Fv)(s)),null!=t&&t.resources&&null!=t&&t.portalItem&&!(0,o.YP)(s)&&!(0,o.HK)(s)&&0===r&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s)}),s}function a(e,t,r){return n(e,r)}function l(e,t,r,s){const o=i(e,s);void 0!==o&&(t[r]=o)}const u=/\/items\/([^\/]+)\/resources\//,c=/^\.\/resources\//;function d(e){const t=(0,s.pC)(e)?e.match(u):null;return(0,s.pC)(t)?t[1]:null}function p(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`;return(0,o.D6)(o.Gd,`${o.Gd.scheme}://${r}`)?(0,o.Ie)(e,t.portalHostname,r):(0,o.Ie)(e,r,t.portalHostname)}const h=Object.freeze({__proto__:null,fromJSON:n,toJSON:i,read:a,write:l,itemIdFromResourceUrl:d})},36030:(e,t,r)=>{r.d(t,{J:()=>n});var s=r(35454),o=r(5600);function n(e,t={}){var r;const n=e instanceof s.Xn?e:new s.Xn(e,t),i={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?n.apiValues:String,readOnly:null==t?void 0:t.readOnly,json:{type:n.jsonValues,read:(null==t||!t.readOnly)&&{reader:n.read},write:{writer:n.write}}};return void 0!==(null==t?void 0:t.default)&&(i.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(i.json.name=t.name),(0,o.Cb)(i)}},80903:(e,t,r)=>{r.d(t,{Z:()=>l});var s=r(50758),o=r(92604),n=r(95330),i=r(25045);const a=o.Z.getLogger("esri.core.workers.Connection");class l{constructor(){this._clients=new Array,this._clientPromises=new Array,this._clientIdx=0}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((r,s)=>{let o=!0;const a=e=>{(0,n.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,n.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new i.default(e,t),a(r),this._clients[o])),(()=>(a(s),null))):(this._clients[o]=new i.default(l,t),this._clientPromises[o]=Promise.resolve(this._clients[o]),a(r))}}))}broadcast(e,t,r){const s=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const n=this._clientPromises[o];s[o]=n.then((s=>s.invoke(e,t,r)))}return s}close(){for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}getAvailableClient(){let e;for(let t=0;t<this._clients.length;++t){const r=this._clients[t];if(r){if(!r.isBusy())return Promise.resolve(r)}else e=e||[],e.push(this._clientPromises[t])}return e?Promise.race(e):(this._clientIdx=(this._clientIdx+1)%this._clients.length,Promise.resolve(this._clients[this._clientIdx]))}invoke(e,t,r){let s=null;return Array.isArray(r)?(a.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),s={transferList:r}):s=r,this.closed?Promise.reject(new Error("Connection closed")):this.getAvailableClient().then((r=>r.invoke(e,t,s)))}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,s.AL)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let s=0;s<this._clientPromises.length;++s)this._clientPromises[s].then((o=>{t[s]=o.openPort(),0==--r&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},25045:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var s=r(40330),o=r(20102),n=r(91460),i=r(70586),a=r(95330),l=r(94362),u=r(17202);const c={statsWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7267)]).then(r.bind(r,37267)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(8677),r.e(2894),r.e(1534),r.e(8397),r.e(3474),r.e(4324),r.e(1183)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(6481),r.e(3675),r.e(5413)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(8677),r.e(9349),r.e(2894),r.e(1534),r.e(8397),r.e(3474),r.e(4324),r.e(991)]).then(r.bind(r,41650)),GeoJSONSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(8677),r.e(2894),r.e(1534),r.e(8397),r.e(3474),r.e(4324),r.e(4077),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(8677),r.e(2894),r.e(1534),r.e(8397),r.e(3474),r.e(4324),r.e(4077),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(3474),r.e(1951)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(8677),r.e(9349),r.e(2894),r.e(1534),r.e(8397),r.e(3474),r.e(4324),r.e(6312),r.e(3142)]).then(r.bind(r,53142)),PointCloudWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(3941)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7303),r.e(3594)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(5265).then(r.bind(r,55265)),WFSSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(8677),r.e(2894),r.e(1534),r.e(8397),r.e(3474),r.e(4324),r.e(4077),r.e(6919),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(3568),r.e(6810),r.e(3388)]).then(r.bind(r,56456))},{CLOSE:d,ABORT:p,INVOKE:h,RESPONSE:y,OPEN_PORT:m,ON:f}=l.Cs;class g{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===l.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class b{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new g((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const s=new b(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=s),b.clients.set(s,r),t.port2}static loadWorker(e){const t=c[e];return t?t():Promise.resolve(null)}close(){this._post({type:d}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const s=r&&r.signal,n=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,l.jt)();return new Promise(((r,o)=>{const l=(0,a.$F)(s,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:p,jobId:i}),o((0,a.zE)()))})),u={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(i,u),this._post({type:h,jobId:i,methodName:e,abortable:null!=s},t,n)}))}on(e,t){const r=new MessageChannel;function s(e){t(e.data)}return this._port.postMessage({type:l.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",s),r.port1.start(),{remove(){r.port1.postMessage({type:l.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",s)}}}openPort(){const e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.QM)(e);if(t)switch(t.type){case y:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case p:this._onAbortMessage(t);break;case d:this._onCloseMessage();break;case m:this._onOpenPortMessage(t);break;case f:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);this._invokeQueue.push(e),s&&(s.controller&&s.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&b.clients.get(this)===e&&e.destroy(),b.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:o}=e,n=o?(0,a.yi)():null,i=this._inJobs;let u,c=this._client,d=c[t];try{if(!d&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)c=c[e[t]],d=c[e[t+1]]}if("function"!=typeof d)throw new TypeError(`${t} is not a function`);u=d.call(c,s,{client:this,signal:n?n.signal:null})}catch(e){return void this._post({type:y,jobId:r,error:(0,l.AB)(e)})}(0,a.y8)(u)?(i.set(r,{controller:n,promise:u}),u.then((e=>{i.has(r)&&(i.delete(r),this._post({type:y,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:y,jobId:r,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:y,jobId:r},u)}_onOpenPortMessage(e){new b(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),s=(0,n.on)(e.port,"message",(e=>{(0,l.QM)(e).type===l.Cs.CLOSE&&(s.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:s,data:n}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),s?a.reject(o.Z.fromJSON(JSON.parse(s))):a.resolve(n)}_post(e,t,r){return(0,l.oi)(this._port,e,t,r)}}b.kernelInfo={revision:u.$,version:s.i8,buildDate:u.r},b.clients=new Map},94362:(e,t,r)=>{r.d(t,{Cs:()=>s,jt:()=>a,oi:()=>u,QM:()=>c,AB:()=>l});var s,o,n=r(80442);(o=s||(s={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function u(e,t,r,o){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let n;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(n=d(o),t.data=r):(n=d(r.transferList),t.data=r.result),n?e.postMessage(t,n):e.postMessage(t)}function c(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function d(e){if(!e||!e.length)return null;if((0,n.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},78346:(e,t,r)=>{r.d(t,{bA:()=>G});var s=r(20102),o=r(80442),n=r(95330),i=r(80903),a=r(25045),l=r(40330),u=r(92604),c=r(94362),d=r(99880),p=r(68773),h=(r(2587),r(17452));const y={};function m(e){var t;const r={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(r.async=!0),e.hasOwnProperty("isDebug")||(r.isDebug=!1),e.baseUrl||(r.baseUrl=y.baseUrl),null==(t=y.packages)||t.forEach((e=>{!function(e,t){for(const r of e)if(r.name===t.name)return;e.push(t)}(r.packages,e)})),r}var f=r(16358);class g{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}const b=f.Z.MutationObserver||f.Z.WebKitMutationObserver,v=function(){let e;if(f.Z.process&&f.Z.process.nextTick)e=e=>{f.Z.process.nextTick(e)};else if(f.Z.Promise)e=e=>{f.Z.Promise.resolve().then(e)};else if(b){const t=[],r=document.createElement("div");new b((()=>{for(;t.length>0;)t.shift()()})).observe(r,{attributes:!0}),e=e=>{t.push(e),r.setAttribute("queueStatus","1")}}return e}(),_=(()=>{const e=f.Z.MessageEvent;try{new e("message",{data:null})}catch{return(e,t={})=>{const{data:r,bubbles:s=!1,cancelable:o=!1}=t,n=document.createEvent("Event");return n.initEvent(e,s,o),n.data=r,n}}return(t,r)=>new e(t,r)})();class w{constructor(){this._dispatcher=new g,this._workerPostMessage({type:c.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){v((()=>{this._workerMessageHandler(_("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){v((()=>{this.dispatchEvent(_("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,c.QM)(e);if(t&&t.type===c.Cs.OPEN){const{modulePath:e,jobId:r}=t;let s=await a.default.loadWorker(e);s||(s=await import(e));const o=a.default.connect(s);this._workerPostMessage({type:c.Cs.OPENED,jobId:r,data:o})}}}var S=r(70171),k=r(17202);const E=u.Z.getLogger("esri.core.workers"),{HANDSHAKE:P}=c.Cs;let O,C;const I="Failed to create Worker. Fallback to execute module in main thread";async function F(e){return new Promise((t=>{function r(o){const n=(0,c.QM)(o);n&&n.type===P&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),E.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new w).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)}))}let N=0;const j=u.Z.getLogger("esri.core.workers"),{ABORT:M,INVOKE:R,OPEN:J,OPENED:T,RESPONSE:Z}=c.Cs;class x{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),j.error(e)}))}static async create(e){const t=await async function(){if(!(0,o.Z)("esri-workers"))return F(new w);if(!O&&!C)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=p.Z.default){const t={...p.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(p.Z));e.assetsPath=(0,h.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,S.Kd)(),e.has={"esri-csp-restrictions":(0,o.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,o.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,o.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.Z)("featurelayer-simplify-payload-size-factors"),"esri-atomics":(0,o.Z)("esri-atomics"),"esri-shared-array-buffer":(0,o.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.Z)("esri-workers-arraybuffer-transfer"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,h.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,h.hF)(e.workers.workerPath):e.workers.workerPath=(0,h.hF)((0,d.V)("esri/core/workers/RemoteClient.js"));const t=p.Z.workers.loaderConfig,r=m({baseUrl:null==t?void 0:t.baseUrl,locale:(0,S.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...null==t?void 0:t.has},map:{...null==t?void 0:t.map},paths:{...null==t?void 0:t.paths},packages:(null==t?void 0:t.packages)||[]}),s={version:l.i8,buildDate:k.r,revision:k.$};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:s})}()}'`);O=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){C=e||{}}let e;if(O)try{e=new Worker(O,{name:"esri-worker-"+N++})}catch(t){E.warn(I,C),e=new w}else E.warn(I,C),e=new w;return F(e)}();return new x(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,s=(0,c.jt)();return new Promise(((t,o)=>{const i={resolve:t,reject:o,abortHandle:(0,n.$F)(r,(()=>{this._outJobs.delete(s),this._post({type:M,jobId:s})}))};this._outJobs.set(s,i),this._post({type:J,jobId:s,modulePath:e})}))}_onMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case T:this._onOpenedMessage(t);break;case Z:this._onResponseMessage(t);break;case M:this._onAbortMessage(t);break;case R:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:o}=e,i=o?(0,n.yi)():null,a=this._inJobs,u=l.Nv[t];let d;try{if("function"!=typeof u)throw new TypeError(`${t} is not a function`);d=u.call(null,s,{signal:i?i.signal:null})}catch(e){return void this._post({type:Z,jobId:r,error:(0,c.AB)(e)})}(0,n.y8)(d)?(a.set(r,{controller:i,promise:d}),d.then((e=>{a.has(r)&&(a.delete(r),this._post({type:Z,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,n.D_)(e)||this._post({type:Z,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:Z,jobId:r},d)}_onOpenedMessage(e){var t;const{jobId:r,data:s}=e,o=this._outJobs.get(r);o&&(this._outJobs.delete(r),null==(t=o.abortHandle)||t.remove(),o.resolve(s))}_onResponseMessage(e){var t;const{jobId:r,error:o,data:n}=e,i=this._outJobs.get(r);i&&(this._outJobs.delete(r),null==(t=i.abortHandle)||t.remove(),o?i.reject(s.Z.fromJSON(JSON.parse(o))):i.resolve(n))}_post(e,t,r){return(0,c.oi)(this.worker,e,t,r)}}let A=(0,o.Z)("esri-workers-debug")?1:(0,o.Z)("host-browser")?navigator.hardwareConcurrency-1:0;A||(A=(0,o.Z)("safari")&&(0,o.Z)("mac")||(0,o.Z)("trident")?7:2);let L=0;const D=[];async function q(e,t){const r=new i.Z;return await r.open(e,t),r}async function G(e,t={}){if("string"!=typeof e)throw new s.Z("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,o.Z)("host-webworker")&&!(0,o.Z)("esri-workers")&&(r="local"),"local"===r){let r=await a.default.loadWorker(e);r||(r=await import(e)),(0,n.k_)(t.signal);const s=t.client||r;return q([a.default.connect(r)],{...t,client:s})}if(await async function(){if(U)return U;V=(0,n.yi)();const e=[];for(let t=0;t<A;t++){const r=x.create(t).then((e=>(D[t]=e,e)));e.push(r)}return U=Promise.all(e),U}(),(0,n.k_)(t.signal),"dedicated"===r){const r=L++%A;return q([await D[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,A);if(r<A){const s=new Array(r);for(let o=0;o<r;++o){const r=L++%A;s[o]=D[r].open(e,t)}return q(s,t)}}return q(D.map((r=>r.open(e,t))),t)}let V,U=null},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var s=r(75215),o=r(6570),n=r(9361),i=r(65091),a=r(13473),l=r(17332),u=r(58901);r(82971),r(86973),r(33955);const c={base:n.Z,key:"type",typeMap:{extent:o.Z,multipoint:i.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,s.N7)(c)},33955:(e,t,r)=>{r.d(t,{im:()=>m,q9:()=>b,Ji:()=>f,YX:()=>c,aW:()=>d,wp:()=>p,oU:()=>y,l9:()=>h});var s=r(70586),o=r(6570),n=r(9361),i=r(65091),a=r(13473),l=r(17332),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function d(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function y(e){return void 0!==e.rings}function m(e){return(0,s.Wi)(e)?null:e instanceof n.Z?e:p(e)?a.Z.fromJSON(e):h(e)?u.Z.fromJSON(e):y(e)?l.Z.fromJSON(e):d(e)?i.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):null}function f(e){return e?p(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:i.Z};function b(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>o,P$:()=>n});var s=r(35454);const o=(0,s.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),n=(0,s.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40330:(e,t,r)=>{r.d(t,{Dp:()=>u,id:()=>a,qh:()=>l,i8:()=>n,Nv:()=>i});var s=r(80442),o=r(17452);const n="4.22",i={async request(e,t){var s;const{default:n}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(s=(0,o.oh)(e.url))&&s.after?a:"array-buffer";const l=await n(e.url,i),u={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete u.data.signal,u;case"blob":u.data=await u.data.arrayBuffer();break;case"json":u.data=(new TextEncoder).encode(JSON.stringify(u.data)).buffer;break;case"text":u.data=(new TextEncoder).encode(u.data).buffer}return{result:u,transferList:[u.data]}}};let a;function l(e){a=e}function u(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,s.Z)("host-webworker")||((0,s.Z)("edge")||(0,s.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},23477:(e,t,r)=>{r.r(t),r.d(t,{default:()=>$});var s=r(43697),o=(r(66577),r(51773)),n=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382),r(30687),r(91423),r(32400)),i=r(70586),a=r(16453),l=r(17452),u=r(5600),c=(r(67676),r(80442)),d=(r(75215),r(52011)),p=r(86973),h=r(29600),y=r(20102),m=r(83379),f=r(92604),g=r(95330),b=r(78346),v=r(25278),_=r(74889),w=r(6570),S=r(17332);const k=f.Z.getLogger("esri.layers.graphics.sources.GeoJSONSource");let E=class extends m.Z{constructor(){super(...arguments),this.type="geojson",this.refresh=(0,g.Ds)((async e=>{await this.load();const{extent:t,timeExtent:r}=await this._connection.invoke("refresh",e);return this.sourceJSON.extent=t,r&&(this.sourceJSON.timeInfo.timeExtent=[r.start,r.end]),{dataChanged:!0,updates:{extent:this.sourceJSON.extent,timeInfo:this.sourceJSON.timeInfo}}}))}load(e){const t=(0,i.pC)(e)?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){var e;null==(e=this._connection)||e.close(),this._connection=null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}queryFeatures(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatures",e?e.toJSON():null,t))).then((e=>_.default.fromJSON(e)))}queryFeaturesJSON(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatures",e?e.toJSON():null,t)))}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:w.Z.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}_applyEdits(e){if(!this._connection)throw new y.Z("geojson-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField,r=[],s=[],o=[];if(e.addFeatures)for(const t of e.addFeatures)r.push(this._serializeFeature(t));if(e.deleteFeatures)for(const r of e.deleteFeatures)"objectId"in r&&null!=r.objectId?s.push(r.objectId):"attributes"in r&&null!=r.attributes[t]&&s.push(r.attributes[t]);if(e.updateFeatures)for(const t of e.updateFeatures)o.push(this._serializeFeature(t));return this._connection.invoke("applyEdits",{adds:r,updates:o,deletes:s}).then((({extent:e,timeExtent:t,featureEditResults:r})=>(this.sourceJSON.extent=e,t&&(this.sourceJSON.timeInfo.timeExtent=[t.start,t.end]),this._createEditsResult(r))))}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new y.Z("geojson-layer-source:edit-failure",t.description,{code:t.code}):null}}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e);return r?{geometry:r.toJSON(),attributes:t}:{attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return(0,i.Wi)(t)?null:"mesh"===t.type||"extent"===t.type?S.Z.fromExtent(t.extent):t}async _startWorker(e){this._connection=await(0,b.bA)("GeoJSONSourceWorker",{strategy:(0,c.Z)("feature-layers-workers")?"dedicated":"local",signal:e});const{fields:t,spatialReference:r,hasZ:s,geometryType:o,objectIdField:n,url:i,timeInfo:a,customParameters:l}=this.layer,u="defaults"===this.layer.originOf("spatialReference"),d={url:i,customParameters:l,fields:t&&t.map((e=>e.toJSON())),geometryType:p.Mk.toJSON(o),hasZ:s,objectIdField:n,timeInfo:a?a.toJSON():null,spatialReference:u?null:r&&r.toJSON()},h=await this._connection.invoke("load",d,{signal:e});for(const e of h.warnings)k.warn(e.message,{layer:this.layer,warning:e});h.featureErrors.length&&k.warn(`Encountered ${h.featureErrors.length} validation errors while loading features`,h.featureErrors),this.sourceJSON=h.layerDefinition,this.capabilities=(0,v.MS)(this.sourceJSON.hasZ,!0)}};(0,s._)([(0,u.Cb)()],E.prototype,"capabilities",void 0),(0,s._)([(0,u.Cb)()],E.prototype,"type",void 0),(0,s._)([(0,u.Cb)({constructOnly:!0})],E.prototype,"layer",void 0),(0,s._)([(0,u.Cb)()],E.prototype,"sourceJSON",void 0),E=(0,s._)([(0,d.j)("esri.layers.graphics.sources.GeoJSONSource")],E);const P=E;var O=r(78096),C=r(17017),I=r(38009),F=r(68825),N=r(34760),j=r(72965),M=r(28294),R=r(21506),J=r(55785),T=r(70082),Z=r(16451),x=r(1231),A=r(53518),L=r(35671),D=r(54306),q=r(30707),G=r(57444),V=r(32163),U=r(82971);const W=(0,A.v)();let H=class extends((0,F.c)((0,C.N)((0,O.h)((0,M.n)((0,j.M)((0,N.Q)((0,I.q)((0,a.R)(h.Z))))))))){constructor(e){super(e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.editingEnabled=!0,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="GeoJSON",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new P({layer:this}),this.spatialReference=U.Z.WGS84,this.templates=null,this.title="GeoJSON",this.type="geojson",this.typeIdField=null,this.types=null,this.url=null}destroy(){var e;null==(e=this.source)||e.destroy()}load(e){return this.addResolvingPromise(this.source.load(e).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo"],"service"),(0,L.YN)(this.renderer,this.fieldsIndex),(0,L.UF)(this.timeInfo,this.fieldsIndex)}))),Promise.resolve(this)}get capabilities(){return this.source?this.source.capabilities:null}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}get parsedUrl(){return this.url?(0,l.mN)(this.url):null}set renderer(e){(0,L.YN)(e,this.fieldsIndex),this._set("renderer",e)}async applyEdits(e,t){const s=await r.e(1444).then(r.bind(r,14720));await this.load();const o=await s.applyEdits(this,this.source,e,t);return this.read({extent:this.source.sourceJSON.extent,timeInfo:this.source.sourceJSON.timeInfo},{origin:"service",ignoreDefaults:!0}),o}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,V.eZ)(this,e)}createQuery(){const e=new G.Z,t=this.get("capabilities.data");e.returnGeometry=!0,t&&t.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:r,timeExtent:s}=this;return e.timeExtent=null!=r&&null!=s?s.offset(-r.value,r.unit):s||null,e}getFieldDomain(e,t){let r,s=!1;const o=t&&t.feature,n=o&&o.attributes,i=this.typeIdField&&n&&n[this.typeIdField];return null!=i&&this.types&&(s=this.types.some((t=>t.id==i&&(r=t.domains&&t.domains[e],r&&"inherited"===r.type&&(r=this._getLayerDomain(e)),!0)))),s||r||(r=this._getLayerDomain(e)),r}getField(e){return this.fieldsIndex.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(G.Z.from(e)||this.createQuery(),t))).then((e=>{if(null!=e&&e.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(G.Z.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(G.Z.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(G.Z.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return(0,i.pC)(t)&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}_getLayerDomain(e){if(!this.fields)return null;let t=null;return this.fields.some((r=>(r.name===e&&(t=r.domain),!!t))),t}};(0,s._)([(0,u.Cb)({readOnly:!0,json:{read:!1,write:!1}})],H.prototype,"capabilities",null),(0,s._)([(0,u.Cb)({type:String})],H.prototype,"copyright",void 0),(0,s._)([(0,u.Cb)({readOnly:!0})],H.prototype,"createQueryVersion",null),(0,s._)([(0,u.Cb)({readOnly:!0})],H.prototype,"defaultPopupTemplate",null),(0,s._)([(0,u.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],H.prototype,"definitionExpression",void 0),(0,s._)([(0,u.Cb)({type:String})],H.prototype,"displayField",void 0),(0,s._)([(0,u.Cb)({type:Boolean})],H.prototype,"editingEnabled",void 0),(0,s._)([(0,u.Cb)(R.PV)],H.prototype,"elevationInfo",void 0),(0,s._)([(0,u.Cb)(J.d)],H.prototype,"featureReduction",void 0),(0,s._)([(0,u.Cb)({type:[x.Z],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],H.prototype,"fields",void 0),(0,s._)([(0,u.Cb)(W.fieldsIndex)],H.prototype,"fieldsIndex",void 0),(0,s._)([(0,u.Cb)({type:w.Z,json:{name:"extent"}})],H.prototype,"fullExtent",void 0),(0,s._)([(0,u.Cb)({type:["point","polygon","polyline","multipoint"],json:{read:{reader:p.Mk.read}}})],H.prototype,"geometryType",void 0),(0,s._)([(0,u.Cb)({type:Boolean})],H.prototype,"hasZ",void 0),(0,s._)([(0,u.Cb)(R.id)],H.prototype,"id",void 0),(0,s._)([(0,u.Cb)({type:Boolean,readOnly:!0})],H.prototype,"isTable",null),(0,s._)([(0,u.Cb)(R.iR)],H.prototype,"labelsVisible",void 0),(0,s._)([(0,u.Cb)({type:[D.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:q.r},write:!0}})],H.prototype,"labelingInfo",void 0),(0,s._)([(0,u.Cb)(R.rn)],H.prototype,"legendEnabled",void 0),(0,s._)([(0,u.Cb)({type:["show","hide"]})],H.prototype,"listMode",void 0),(0,s._)([(0,u.Cb)({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],H.prototype,"objectIdField",void 0),(0,s._)([(0,u.Cb)(R.Oh)],H.prototype,"opacity",void 0),(0,s._)([(0,u.Cb)({type:["GeoJSON"]})],H.prototype,"operationalLayerType",void 0),(0,s._)([(0,u.Cb)({readOnly:!0})],H.prototype,"parsedUrl",null),(0,s._)([(0,u.Cb)(R.C_)],H.prototype,"popupEnabled",void 0),(0,s._)([(0,u.Cb)({type:o.Z,json:{name:"popupInfo",write:!0}})],H.prototype,"popupTemplate",void 0),(0,s._)([(0,u.Cb)({types:n.A,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:n.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],H.prototype,"renderer",null),(0,s._)([(0,u.Cb)(R.YI)],H.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,u.Cb)({readOnly:!0})],H.prototype,"source",void 0),(0,s._)([(0,u.Cb)({type:U.Z})],H.prototype,"spatialReference",void 0),(0,s._)([(0,u.Cb)({type:[T.Z]})],H.prototype,"templates",void 0),(0,s._)([(0,u.Cb)()],H.prototype,"title",void 0),(0,s._)([(0,u.Cb)({json:{read:!1},readOnly:!0})],H.prototype,"type",void 0),(0,s._)([(0,u.Cb)({type:String,readOnly:!0})],H.prototype,"typeIdField",void 0),(0,s._)([(0,u.Cb)({type:[Z.Z]})],H.prototype,"types",void 0),(0,s._)([(0,u.Cb)(R.HQ)],H.prototype,"url",void 0),H=(0,s._)([(0,d.j)("esri.layers.GeoJSONLayer")],H);const $=H},61159:(e,t,r)=>{r.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},25278:(e,t,r)=>{r.d(t,{MS:()=>c,Dm:()=>l,Hq:()=>u,bU:()=>a});var s=r(80442),o=r(22974),n=r(61159),i=r(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}function l(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const s=new Function(r);return()=>new s}catch(r){return()=>({[t]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,o.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:n.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},70082:(e,t,r)=>{r.d(t,{Z:()=>c});var s=r(43697),o=r(35454),n=r(10736),i=r(5600),a=(r(67676),r(80442),r(75215),r(52011));const l=new o.Xn({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends n.wq{constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,s._)([(0,i.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,s._)([(0,i.Cb)({json:{write:!0}})],u.prototype,"description",void 0),(0,s._)([(0,i.Cb)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,s._)([(0,i.Cb)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,s._)([(0,i.Cb)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,s._)([(0,a.j)("esri.layers.support.FeatureTemplate")],u);const c=u},16451:(e,t,r)=>{r.d(t,{Z:()=>p});var s=r(43697),o=r(10736),n=r(5600),i=(r(67676),r(80442),r(75215),r(71715)),a=r(52011),l=r(30556),u=r(72729),c=r(70082);let d=class extends o.wq{constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,u.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e)){var s;e[t]&&(r[t]=null==(s=e[t])?void 0:s.toJSON())}t.domains=r}};(0,s._)([(0,n.Cb)({json:{write:!0}})],d.prototype,"id",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],d.prototype,"domains",void 0),(0,s._)([(0,i.r)("domains")],d.prototype,"readDomains",null),(0,s._)([(0,l.c)("domains")],d.prototype,"writeDomains",null),(0,s._)([(0,n.Cb)({type:[c.Z],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,s._)([(0,a.j)("esri.layers.support.FeatureType")],d);const p=d},1231:(e,t,r)=>{r.d(t,{Z:()=>f});var s,o=r(43697),n=r(35454),i=r(10736),a=r(5600),l=(r(67676),r(80442),r(75215)),u=r(36030),c=r(71715),d=r(52011),p=r(72729),h=r(86719);const y=new n.Xn({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 m=s=class extends i.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}readDescription(e,{description:t}){let r;try{r=JSON.parse(t)}catch(e){}return r?r.value:null}readValueType(e,{description:t}){let r;try{r=JSON.parse(t)}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new s({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})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,a.Cb)()],m.prototype,"description",void 0),(0,o._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,o._)([(0,a.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.J)(h.v)],m.prototype,"type",void 0),(0,o._)([(0,a.Cb)()],m.prototype,"valueType",void 0),(0,o._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=s=(0,o._)([(0,d.j)("esri.layers.support.Field")],m);const f=m},72729:(e,t,r)=>{r.d(t,{im:()=>P,V5:()=>E}),r(80442);var s,o=r(43697),n=r(22974),i=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(10736);r(67676);let c=s=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o._)([(0,i.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=s=(0,o._)([(0,l.j)("esri.layers.support.CodedValue")],c);const d=c,p=new(r(35454).Xn)({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,o._)([(0,a.J)(p)],h.prototype,"type",void 0),h=(0,o._)([(0,l.j)("esri.layers.support.Domain")],h);const y=h;var m;let f=m=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,n.d9)(this.codedValues),name:this.name})}};(0,o._)([(0,i.Cb)({type:[d],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,o._)([(0,a.J)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=m=(0,o._)([(0,l.j)("esri.layers.support.CodedValueDomain")],f);const g=f;var b;r(92604),r(37697);let v=b=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,o._)([(0,a.J)({inherited:"inherited"})],v.prototype,"type",void 0),v=b=(0,o._)([(0,l.j)("esri.layers.support.InheritedDomain")],v);const _=v;var w;let S=w=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,i.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,r){t[r]=[this.minValue||0,e]}}}})],S.prototype,"maxValue",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],S.prototype,"minValue",void 0),(0,o._)([(0,a.J)({range:"range"})],S.prototype,"type",void 0),S=w=(0,o._)([(0,l.j)("esri.layers.support.RangeDomain")],S);const k=S,E={key:"type",base:y,typeMap:{range:S,"coded-value":g,inherited:_}};function P(e){if(!e||!e.type)return null;switch(e.type){case"range":return k.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return _.fromJSON(e)}return null}},86719:(e,t,r)=>{r.d(t,{v:()=>s});const s=new(r(35454).Xn)({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"})},59266:(e,t,r)=>{r.d(t,{mz:()=>c,pp:()=>u,WW:()=>a,Yi:()=>l,LC:()=>i}),r(66577);var s=r(70586),o=r(82971);let n;function i(){return n||(n=(async()=>{const e=await Promise.all([r.e(9490),r.e(6690)]).then(r.bind(r,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),n}const a=(e,t,r)=>c.create(e,t,r,null,["$feature"]),l=(e,t,r)=>c.create(e,t,r,null,["$feature","$view"]),u=(e,t,r,s)=>c.create(e,t,r,s,["$feature","$view"]);class c{constructor(e,t,r,s,o,n,i,a){this.script=e,this.evaluate=o;const l=Array.isArray(i)?i:i.fields;this.fields=l,this._syntaxTree=s,this._arcade=t,this._arcadeDictionary=r,this._arcadeFeature=n,this._spatialReference=a,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,r,n,a,l){const{arcade:u,Feature:d,Dictionary:p}=await i(),h=o.Z.fromJSON(t),y=u.parseScript(e,l),m=a.reduce(((e,t)=>({...e,[t]:null})),{});let f=null;(0,s.pC)(n)&&(f=new p(n),f.immutable=!0,m.$config=null);const g=u.scriptUsesGeometryEngine(y)&&u.enableGeometrySupport(),b=u.scriptUsesFeatureSet(y)&&u.enableFeatureSetSupport(),v=u.scriptIsAsync(y)&&u.enableAsyncSupport(),_={vars:m,spatialReference:h,useAsync:!!v},w=new p;w.immutable=!1,w.setField("scale",0);const S=u.compileScript(y,_);return await Promise.all([g,b,v]),new c(e,u,p,y,(e=>("$view"in e&&e.$view&&(w.setField("scale",e.$view.scale),e.$view=w),f&&(e.$config=f),S({vars:e,spatialReference:h}))),new d,r,h)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},58333:(e,t,r)=>{r.d(t,{I4:()=>o,lF:()=>i,ET:()=>n,qP:()=>a,eG:()=>l,lj:()=>c,wW:()=>u});const s=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s},i={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={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},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);