@arcgis/core 5.2.0-next.73 → 5.2.0-next.75

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 (339) hide show
  1. package/analysis/ViewshedAnalysis.js +1 -1
  2. package/arcgisGlobal.d.ts +1 -0
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/0502641d9a214b37ff29.js +1 -0
  5. package/assets/esri/core/workers/chunks/{d3be4d914fc99a1d686c.js → 075e65cc4275ac886f08.js} +1 -1
  6. package/assets/esri/core/workers/chunks/087bd698b80ca0cea71e.js +1 -0
  7. package/assets/esri/core/workers/chunks/{b6c7b7b7f87dce5de811.js → 0bf644f93c180a2bc2f8.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0d3b2d9a19383bb63f0a.js +1 -0
  9. package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +1 -0
  10. package/assets/esri/core/workers/chunks/0daaa89de339e8ea4b81.js +1 -0
  11. package/assets/esri/core/workers/chunks/{1ca04ecf010e68863014.js → 0eb35e09765fd74eb698.js} +1 -1
  12. package/assets/esri/core/workers/chunks/12234a63d3fa4bc25e7e.js +1 -0
  13. package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +1 -0
  14. package/assets/esri/core/workers/chunks/1c49c9472167a2e0c923.js +1 -0
  15. package/assets/esri/core/workers/chunks/{cf360767310fb45660a8.js → 1cf8fb704c48ac3d3b15.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{2e44978ee677aa23163d.js → 2435ef7d11f8dbb920b7.js} +1 -1
  17. package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +1 -0
  18. package/assets/esri/core/workers/chunks/2740f755c3a322cbd477.js +1 -0
  19. package/assets/esri/core/workers/chunks/27f574acf52f2c8bc2c9.js +1 -0
  20. package/assets/esri/core/workers/chunks/28f87daaba1ae3441364.js +1 -0
  21. package/assets/esri/core/workers/chunks/2b93888e61ca638490cf.js +1 -0
  22. package/assets/esri/core/workers/chunks/2c31648a4b95275516ee.js +1 -0
  23. package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +1 -0
  24. package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +1 -0
  25. package/assets/esri/core/workers/chunks/305eea9c1fc4aee3309e.js +1 -0
  26. package/assets/esri/core/workers/chunks/30818b5ff0ce51b25d6f.js +1 -0
  27. package/assets/esri/core/workers/chunks/3235e14fedb19dd94807.js +1 -0
  28. package/assets/esri/core/workers/chunks/36ec5b84e551ab08b24a.js +1 -0
  29. package/assets/esri/core/workers/chunks/3c28e2040cb4fb716eaa.js +1 -0
  30. package/assets/esri/core/workers/chunks/3c32471785bc8570e41c.js +1 -0
  31. package/assets/esri/core/workers/chunks/4046bd65d7d0677f4600.js +1 -0
  32. package/assets/esri/core/workers/chunks/4295822fa6ef743c76f1.js +1 -0
  33. package/assets/esri/core/workers/chunks/{35fd2f765d2cb3f59a22.js → 42d5ed44111bea77ec71.js} +115 -115
  34. package/assets/esri/core/workers/chunks/43713bc6f7eea07259d0.js +1 -0
  35. package/assets/esri/core/workers/chunks/{36171c72a3c04b0d13ef.js → 43a65cab888d43954564.js} +1 -1
  36. package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +1 -0
  37. package/assets/esri/core/workers/chunks/46873badbd6ce8ff4e1e.js +1 -0
  38. package/assets/esri/core/workers/chunks/495f90fe3d0ad32bb82d.js +1 -0
  39. package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +1 -0
  40. package/assets/esri/core/workers/chunks/4d7a3b3aaf876da0891b.js +1 -0
  41. package/assets/esri/core/workers/chunks/4fe2cca405180af23364.js +1 -0
  42. package/assets/esri/core/workers/chunks/50b08415e072a49bc572.js +1 -0
  43. package/assets/esri/core/workers/chunks/519af918050b47f93516.js +1 -0
  44. package/assets/esri/core/workers/chunks/{bd311c85437743cf7d2f.js → 53d165b4f30fd64e5d8a.js} +1 -1
  45. package/assets/esri/core/workers/chunks/552d6aecc7d88d16227b.js +1 -0
  46. package/assets/esri/core/workers/chunks/5627f562dea8bae2f346.js +1 -0
  47. package/assets/esri/core/workers/chunks/5ba3a30b7cbfa9e3aa62.js +1 -0
  48. package/assets/esri/core/workers/chunks/5e1d84e97de0e662aaa9.js +1 -0
  49. package/assets/esri/core/workers/chunks/64a1ffc221e5b63b43fb.js +1 -0
  50. package/assets/esri/core/workers/chunks/{31669511cfddf116d991.js → 66e60351aacbd162775f.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{c203df41f9d2e4b80889.js → 6743d726e45e7b660505.js} +1 -1
  52. package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +1 -0
  53. package/assets/esri/core/workers/chunks/6b783f440c4a5d36e879.js +1 -0
  54. package/assets/esri/core/workers/chunks/6dddd3df31961b9fda12.js +1 -0
  55. package/assets/esri/core/workers/chunks/6fc3553c52af6ace926d.js +1 -0
  56. package/assets/esri/core/workers/chunks/702b2381acf4d1f90094.js +1 -0
  57. package/assets/esri/core/workers/chunks/762be5d3e6aeaea33f74.js +29 -0
  58. package/assets/esri/core/workers/chunks/792303e4090c0c70c4ff.js +1 -0
  59. package/assets/esri/core/workers/chunks/7a24cc0f3b4eff2bdb8e.js +1 -0
  60. package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +1 -0
  61. package/assets/esri/core/workers/chunks/7dc5aedc964eacd1be5a.js +1 -0
  62. package/assets/esri/core/workers/chunks/81130dbcb738d40f723b.js +1 -0
  63. package/assets/esri/core/workers/chunks/835af7b4fd92cb4e7af0.js +1 -0
  64. package/assets/esri/core/workers/chunks/841c81c280114412c95b.js +1 -0
  65. package/assets/esri/core/workers/chunks/{96d861265566854760cd.js → 88fd698b940dadcc6dc5.js} +1 -1
  66. package/assets/esri/core/workers/chunks/8a36b999cbd65dd2f16c.js +1 -0
  67. package/assets/esri/core/workers/chunks/8ae3a6ddc87bf8315583.js +1 -0
  68. package/assets/esri/core/workers/chunks/8f0d4aec8bd3cbfefc40.js +1 -0
  69. package/assets/esri/core/workers/chunks/{7f208ef75ef2ce0d7cf9.js → 910c93bbbf8113a4a51f.js} +1 -1
  70. package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +1 -0
  71. package/assets/esri/core/workers/chunks/{509cfac9e5d86a8ee449.js → 936d44c7bc3a181e64a3.js} +1 -1
  72. package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +1 -0
  73. package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +1 -0
  74. package/assets/esri/core/workers/chunks/9cff18e6f751d1b3085e.js +1 -0
  75. package/assets/esri/core/workers/chunks/a101152066dd56259619.js +1 -0
  76. package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +1 -0
  77. package/assets/esri/core/workers/chunks/a50421fe79f264ae3619.js +1 -0
  78. package/assets/esri/core/workers/chunks/a6a2a4a2bae0d327d7ed.js +1 -0
  79. package/assets/esri/core/workers/chunks/a7a7d3289d4ca95f545f.js +1 -0
  80. package/assets/esri/core/workers/chunks/abb6c76d5dba3559a68e.js +1 -0
  81. package/assets/esri/core/workers/chunks/aca5c524bd3c955e9243.js +1 -0
  82. package/assets/esri/core/workers/chunks/b14961a9f1f40028f141.js +1 -0
  83. package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +1 -0
  84. package/assets/esri/core/workers/chunks/b6cd165d0e58598f28a5.js +1 -0
  85. package/assets/esri/core/workers/chunks/b78f509fd8e95f728178.js +1 -0
  86. package/assets/esri/core/workers/chunks/b9c61b20bbc91cb63036.js +1 -0
  87. package/assets/esri/core/workers/chunks/b9d1bb106737a05290e1.js +1 -0
  88. package/assets/esri/core/workers/chunks/{faa55265020591fd2224.js → bc0395777c5c1adb1ddb.js} +1 -1
  89. package/assets/esri/core/workers/chunks/bf3dc3ad8df8488da3f0.js +1 -0
  90. package/assets/esri/core/workers/chunks/c1568bcd3f04014152e1.js +1 -0
  91. package/assets/esri/core/workers/chunks/c374e5d5980db74c4aca.js +1 -0
  92. package/assets/esri/core/workers/chunks/{b9953277d0cd4a01bdc6.js → c37b28f200b704ae6002.js} +1 -1
  93. package/assets/esri/core/workers/chunks/c67e4a848d41038367b8.js +1 -0
  94. package/assets/esri/core/workers/chunks/cff6390b863361eaeeed.js +1 -0
  95. package/assets/esri/core/workers/chunks/d1c7c877edc6948f3801.js +1 -0
  96. package/assets/esri/core/workers/chunks/d2172583ee6e481a66aa.js +1 -0
  97. package/assets/esri/core/workers/chunks/d633e98b0dfa0490e4de.js +1 -0
  98. package/assets/esri/core/workers/chunks/d8eca13c127b443141b7.js +1 -0
  99. package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +1 -0
  100. package/assets/esri/core/workers/chunks/de5013f89f0eae93978f.js +1 -0
  101. package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +1 -0
  102. package/assets/esri/core/workers/chunks/e557043f90c051e93925.js +1 -0
  103. package/assets/esri/core/workers/chunks/e59101f1d060d0a30a65.js +1 -0
  104. package/assets/esri/core/workers/chunks/{bee5e738ecf8680909c4.js → eaf26c1cc938789d5336.js} +1 -1
  105. package/assets/esri/core/workers/chunks/eb1a86159dbc098f06fe.js +1 -0
  106. package/assets/esri/core/workers/chunks/ee9eb381e675d2d01260.js +1 -0
  107. package/assets/esri/core/workers/chunks/{014f9fd2818e2c9d9a3b.js → f43a0edf58941e2ac78e.js} +1 -1
  108. package/assets/esri/core/workers/chunks/f4bc563c71c478d3912f.js +1 -0
  109. package/assets/esri/core/workers/chunks/{4abd54518e35050feb90.js → f78acff510ca615d42e4.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{01c92e68fb17cf2d0e08.js → f7a5c4d22a24e1ac433c.js} +1 -1
  111. package/assets/esri/core/workers/chunks/fb0b89bbb4f8607d5f20.js +1 -0
  112. package/assets/esri/core/workers/chunks/ff890167ff2baabfc4ce.js +1 -0
  113. package/chunks/GaussianSplat.glsl.js +8 -8
  114. package/chunks/GaussianSplatShadow.glsl.js +4 -5
  115. package/chunks/OccludedGeometryDepth.glsl.js +5 -0
  116. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  117. package/config.js +1 -1
  118. package/core/importUtils.js +2 -0
  119. package/geometry/operators/importUtils.js +2 -0
  120. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  121. package/geometry/support/normalizeUtils.d.ts +17 -15
  122. package/geometry/support/normalizeUtils.js +1 -1
  123. package/kernel.js +1 -1
  124. package/layers/DimensionFeatureLayer.d.ts +22 -0
  125. package/layers/DimensionFeatureLayer.js +1 -1
  126. package/layers/FeatureLayer.d.ts +1 -1
  127. package/layers/graphics/data/QueryEngine.js +1 -1
  128. package/layers/graphics/data/queryUtils.js +1 -1
  129. package/layers/graphics/hydratedFeatures.js +1 -1
  130. package/layers/save/featureLayerUtils.js +1 -1
  131. package/layers/support/layerUtils.js +1 -1
  132. package/layers/support/layersMapping.js +1 -1
  133. package/package.json +1 -1
  134. package/portal/schemas/definitions.js +1 -1
  135. package/rest/geoprocessor/utils.js +1 -1
  136. package/rest/identify.js +1 -1
  137. package/rest/imageService.js +1 -1
  138. package/rest/query/operations/query.js +1 -1
  139. package/rest/query/operations/queryAttributeBins.js +1 -1
  140. package/rest/query/operations/queryPivot.js +1 -1
  141. package/rest/query/operations/queryTopFeatures.js +1 -1
  142. package/support/revision.js +1 -1
  143. package/symbols/cim/CIMEffects.js +1 -1
  144. package/symbols/cim/utils.js +1 -1
  145. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  146. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  147. package/views/2d/layers/support/RouteLayerInteraction.js +1 -1
  148. package/views/2d/viewpointUtils.js +1 -1
  149. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +1 -1
  150. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  151. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  152. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  153. package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
  154. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  155. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  156. package/views/3d/environment/EnvironmentManager.js +1 -1
  157. package/views/3d/interactive/Manipulator3D.js +1 -1
  158. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  159. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  160. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  161. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  162. package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
  163. package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
  164. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  165. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  166. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  167. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
  168. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  169. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  170. package/views/3d/interactive/manipulatorUtils.js +1 -1
  171. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  172. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  173. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  174. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  175. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  176. package/views/3d/support/hitTest.js +1 -1
  177. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  178. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatCovariance.glsl.js +8 -3
  179. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +8 -2
  180. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +2 -0
  181. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulate.glsl.js +2 -0
  182. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechnique.js +2 -0
  183. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechniqueConfiguration.js +2 -0
  184. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClear.glsl.js +2 -0
  185. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClearTechnique.js +2 -0
  186. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastMaskTechnique.js +2 -0
  187. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastRenderer.js +2 -0
  188. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualize.glsl.js +2 -0
  189. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechnique.js +2 -0
  190. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechniqueConfiguration.js +2 -0
  191. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  192. package/views/3d/webgl-engine/lib/CutFillVisualization.js +1 -1
  193. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  194. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  195. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  196. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  197. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  198. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +28 -21
  199. package/views/3d/webgl-engine/shaders/OccludedGeometryDepth.glsl.js +2 -0
  200. package/views/3d/webgl-engine/shaders/OccludedGeometryDepthTechnique.js +2 -0
  201. package/views/draw/DrawGraphicTool.js +1 -1
  202. package/views/draw/DrawTool.js +1 -1
  203. package/views/draw/plugins/PolylinePlugin.js +1 -1
  204. package/views/draw/support/Box.js +1 -1
  205. package/views/draw/support/InteractiveHandle.js +1 -1
  206. package/views/draw/support/Reshape.js +1 -1
  207. package/views/draw/support/drawToolUtils.js +1 -1
  208. package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
  209. package/views/draw/support/managers/TooltipManager.js +1 -1
  210. package/views/draw/support/reshapeTooltipUtils.js +1 -1
  211. package/views/draw/support/tooltipUtils.js +1 -1
  212. package/views/interactive/options/InteractiveToolOptions.d.ts +36 -0
  213. package/views/interactive/options/InteractiveToolOptions.js +2 -0
  214. package/views/interactive/sketch/SketchOptions.d.ts +4 -3
  215. package/views/interactive/sketch/SketchOptions.js +1 -1
  216. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  217. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  218. package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
  219. package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
  220. package/views/interactive/tooltip/content/TooltipContentDynamic.js +1 -1
  221. package/views/interactive/tooltip/fields/fields.js +1 -1
  222. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  223. package/views/interactive/tooltip/infos/SketchTooltipInfo.js +1 -1
  224. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  225. package/views/selection/SelectionOperation.js +1 -1
  226. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  227. package/widgets/Sketch/SketchViewModel.js +1 -1
  228. package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
  229. package/widgets/support/SelectionList/GroupLayerItem.d.ts +8 -1
  230. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  231. package/widgets/support/SelectionList/LayerItem.d.ts +8 -1
  232. package/widgets/support/SelectionList/LayerItem.js +1 -1
  233. package/widgets/support/SelectionList/SelectionListViewModel.d.ts +29 -1
  234. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  235. package/widgets/support/SelectionList.js +1 -1
  236. package/widgets/support/SelectionToolbar.js +1 -1
  237. package/assets/esri/core/workers/chunks/00cbff0b785e24e87d97.js +0 -1
  238. package/assets/esri/core/workers/chunks/0623acb2bd14a61b65c9.js +0 -29
  239. package/assets/esri/core/workers/chunks/06c9aac75a01d3af6d54.js +0 -1
  240. package/assets/esri/core/workers/chunks/089f8c60e96d920a2cb2.js +0 -1
  241. package/assets/esri/core/workers/chunks/0c3c311400ee352187ea.js +0 -1
  242. package/assets/esri/core/workers/chunks/0dbf31a663b5220a3136.js +0 -1
  243. package/assets/esri/core/workers/chunks/0df660dfd941cff3ea1d.js +0 -1
  244. package/assets/esri/core/workers/chunks/1418c03c4ab87f7ab5f4.js +0 -1
  245. package/assets/esri/core/workers/chunks/158d2ac0333d53556e33.js +0 -1
  246. package/assets/esri/core/workers/chunks/160b204cbf5bda2a29e9.js +0 -1
  247. package/assets/esri/core/workers/chunks/16cade1c2ddf44e336ee.js +0 -1
  248. package/assets/esri/core/workers/chunks/1b130af7d14eaae69d96.js +0 -1
  249. package/assets/esri/core/workers/chunks/1cc063aa2ddf44bbd515.js +0 -1
  250. package/assets/esri/core/workers/chunks/1e0140556c2e3fa72545.js +0 -1
  251. package/assets/esri/core/workers/chunks/1e5cb72830c7f32f2961.js +0 -1
  252. package/assets/esri/core/workers/chunks/259bdacfb7b0f866a8d0.js +0 -1
  253. package/assets/esri/core/workers/chunks/2a2ed7bd44010f24c2dd.js +0 -1
  254. package/assets/esri/core/workers/chunks/2bdb9b5365869081c936.js +0 -1
  255. package/assets/esri/core/workers/chunks/2f58e1f64df2da8259a2.js +0 -1
  256. package/assets/esri/core/workers/chunks/383304d33b496c5d8baa.js +0 -1
  257. package/assets/esri/core/workers/chunks/3aacb935d632834d4154.js +0 -1
  258. package/assets/esri/core/workers/chunks/3c8e98cf23ad8ef12fcb.js +0 -1
  259. package/assets/esri/core/workers/chunks/3d6b2d5ae647e140abaf.js +0 -1
  260. package/assets/esri/core/workers/chunks/3dc71e03a630dd50b28e.js +0 -1
  261. package/assets/esri/core/workers/chunks/3fd022df127af32782ce.js +0 -1
  262. package/assets/esri/core/workers/chunks/4344ab1250a1c550bf8b.js +0 -1
  263. package/assets/esri/core/workers/chunks/43de723f765ec8f268ac.js +0 -1
  264. package/assets/esri/core/workers/chunks/44b50d4716a2567ab6f1.js +0 -1
  265. package/assets/esri/core/workers/chunks/44e8cd4b3dad777ab0c9.js +0 -1
  266. package/assets/esri/core/workers/chunks/4695cd6120f60b234d5c.js +0 -1
  267. package/assets/esri/core/workers/chunks/4cf2b0558a4acc141429.js +0 -1
  268. package/assets/esri/core/workers/chunks/4e129b9f5772a06e580c.js +0 -1
  269. package/assets/esri/core/workers/chunks/5441f96cdd0660229efe.js +0 -1
  270. package/assets/esri/core/workers/chunks/56bbde1dff96b423fbb9.js +0 -1
  271. package/assets/esri/core/workers/chunks/582a1d468089b9986416.js +0 -1
  272. package/assets/esri/core/workers/chunks/5f201c77a09ae0df29d6.js +0 -1
  273. package/assets/esri/core/workers/chunks/6080e46fc79127500283.js +0 -1
  274. package/assets/esri/core/workers/chunks/613e799377bdb767c955.js +0 -1
  275. package/assets/esri/core/workers/chunks/623d5518bca227f643bd.js +0 -1
  276. package/assets/esri/core/workers/chunks/62811bca7ad2100c023c.js +0 -1
  277. package/assets/esri/core/workers/chunks/64176f7ae719289a2f79.js +0 -1
  278. package/assets/esri/core/workers/chunks/67d3ff7fcefaa7d5d27f.js +0 -1
  279. package/assets/esri/core/workers/chunks/6a9002fcba11e2cf3f2e.js +0 -1
  280. package/assets/esri/core/workers/chunks/72dcd4bd1a28bf8605c5.js +0 -1
  281. package/assets/esri/core/workers/chunks/73f228d966b89c73c9e9.js +0 -1
  282. package/assets/esri/core/workers/chunks/73f77f5a6907cb8d9a35.js +0 -1
  283. package/assets/esri/core/workers/chunks/77df0bb35d2688729479.js +0 -1
  284. package/assets/esri/core/workers/chunks/7a143ca61c0a70306185.js +0 -1
  285. package/assets/esri/core/workers/chunks/7e373d9c98ce910db9d2.js +0 -1
  286. package/assets/esri/core/workers/chunks/869d292a60747c93dc84.js +0 -1
  287. package/assets/esri/core/workers/chunks/86a4057572755b403548.js +0 -1
  288. package/assets/esri/core/workers/chunks/8c76f31a363dd0c3354d.js +0 -1
  289. package/assets/esri/core/workers/chunks/98e6c1d035755a074d24.js +0 -1
  290. package/assets/esri/core/workers/chunks/9c57161ad48d8d546dc7.js +0 -1
  291. package/assets/esri/core/workers/chunks/a27cdf4c29dd50a6dab1.js +0 -1
  292. package/assets/esri/core/workers/chunks/a294dd12b5c708ce04af.js +0 -1
  293. package/assets/esri/core/workers/chunks/a7f42ada0aa69873a938.js +0 -1
  294. package/assets/esri/core/workers/chunks/a988fd54912969b812ce.js +0 -1
  295. package/assets/esri/core/workers/chunks/aff0e7761276036e029d.js +0 -1
  296. package/assets/esri/core/workers/chunks/b33d870cbfa238762c5e.js +0 -1
  297. package/assets/esri/core/workers/chunks/b599b7dadce8b8bc88f6.js +0 -1
  298. package/assets/esri/core/workers/chunks/b7d8817018b3d277c454.js +0 -1
  299. package/assets/esri/core/workers/chunks/b984b808d383974ca3d8.js +0 -1
  300. package/assets/esri/core/workers/chunks/ba4f419f46be09a9a55c.js +0 -1
  301. package/assets/esri/core/workers/chunks/bfb6566c27c09deb0929.js +0 -1
  302. package/assets/esri/core/workers/chunks/c25dc9073e73d6b44d88.js +0 -1
  303. package/assets/esri/core/workers/chunks/c45a5bcf26659daf02a1.js +0 -1
  304. package/assets/esri/core/workers/chunks/c715c585c42d8c2b86f5.js +0 -1
  305. package/assets/esri/core/workers/chunks/c7e9513f75b8ec205562.js +0 -1
  306. package/assets/esri/core/workers/chunks/c838cc1c786368b78598.js +0 -1
  307. package/assets/esri/core/workers/chunks/c866b66ba72d96453899.js +0 -1
  308. package/assets/esri/core/workers/chunks/c873383e7dae35dc1a61.js +0 -1
  309. package/assets/esri/core/workers/chunks/cd4e5c948d1bfa9b9a2d.js +0 -1
  310. package/assets/esri/core/workers/chunks/cfe31b7d1c6c05fbd268.js +0 -1
  311. package/assets/esri/core/workers/chunks/d08f81d545930a79fb2e.js +0 -1
  312. package/assets/esri/core/workers/chunks/d0c1bc90e474f706211c.js +0 -1
  313. package/assets/esri/core/workers/chunks/d607cf154218d20e4114.js +0 -1
  314. package/assets/esri/core/workers/chunks/d901f8503a73277cfa58.js +0 -1
  315. package/assets/esri/core/workers/chunks/da484787bd9fd3b13d15.js +0 -1
  316. package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +0 -1
  317. package/assets/esri/core/workers/chunks/e21b3490bfce75405e55.js +0 -1
  318. package/assets/esri/core/workers/chunks/e4353f0792f45aa6a62f.js +0 -1
  319. package/assets/esri/core/workers/chunks/e4a2eefffe16cd5bb20f.js +0 -1
  320. package/assets/esri/core/workers/chunks/e602b91d8fdc36a92530.js +0 -1
  321. package/assets/esri/core/workers/chunks/e702abaeccef20b64a81.js +0 -1
  322. package/assets/esri/core/workers/chunks/ebd619533be077059494.js +0 -1
  323. package/assets/esri/core/workers/chunks/f475672ff4c2ec9367c2.js +0 -1
  324. package/assets/esri/core/workers/chunks/f69329b85b362b349a8c.js +0 -1
  325. package/assets/esri/core/workers/chunks/f721756a6c1593f96409.js +0 -1
  326. package/assets/esri/core/workers/chunks/fb51f823b25c827c6b29.js +0 -1
  327. package/assets/esri/core/workers/chunks/fba8065a3a6fbd877e23.js +0 -1
  328. package/assets/esri/core/workers/chunks/fec07a16b72cdcafc641.js +0 -1
  329. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +0 -2
  330. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +0 -2
  331. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +0 -2
  332. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +0 -2
  333. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +0 -2
  334. package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +0 -2
  335. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +0 -2
  336. package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +0 -2
  337. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +0 -2
  338. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +0 -2
  339. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,7120],{38961(e,t,r){var i=r(5482),o=r(7762),s=r(36708),n=r(10107),l=r(64108),a=r(80559);let p=class extends o.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new o.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,n.MZ)()],p.prototype,"getCollections",void 0),(0,i.Cg)([(0,n.MZ)()],p.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,n.MZ)()],p.prototype,"itemFilterFunction",void 0),p=(0,i.Cg)([(0,l.$)("esri.core.CollectionFlattener")],p);const u=p;r.d(t,["A",0,u])},81583(e,t,r){r.d(t,{L:()=>l,g:()=>n});var i=r(60999),o=r(7762),s=r(92474);async function n(e,t){return await e.load(),l(e,t)}async function l(e,t){const r=[],n=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?n(...t):o.A.isCollection(t)?t.forEach(e=>n(e)):(0,s.Zm)(t)&&r.push(t))};t(n);let l=null;if(await(0,i.Tj)(r,async e=>{const t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||l||(l=t)}),l)throw l.error;return e}},82411(e,t,r){r.r(t),r.d(t,{default:()=>tt});var i=r(5482),o=r(7762),s=r(38961),n=r(49186),l=r(36563),a=r(4718),p=r(81583),u=r(53966),d=r(25728),y=r(17676),c=r(36708),g=r(84952),h=r(91429),f=r(16930),m=r(4146),v=r(52106),C=r(37838),b=r(11254),w=r(66552),M=r(92474),Z=r(61893),S=r(5443),F=r(55156),T=r(60950),x=r(89808),A=r(99959);const O=Symbol("isBuildingGraphicOrigin");var j;class I extends A.A{get[(j=O,T.ym)](){return this.sublayer}get[F.e](){return this.sublayer}get[x.Q](){return this.sublayer}constructor(e){super(),this[j]=!0,this.type="building",this.sublayer=e}get layer(){return this.sublayer.layer}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var L=r(53781),R=r(69622),E=r(4902),P=r(56507),_=r(10873),N=r(36005);let q=class extends((0,E.s)((0,d.M)(R.A))){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],q.prototype,"title",void 0),(0,i.Cg)([(0,N.w)("service","title",["alias","name"])],q.prototype,"readTitle",null),(0,i.Cg)([(0,h.MZ)()],q.prototype,"layer",void 0),(0,i.Cg)([(0,h.MZ)({type:P.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],q.prototype,"id",void 0),(0,i.Cg)([(0,N.w)("service","id")],q.prototype,"readIdOnlyOnce",null),(0,i.Cg)([(0,h.MZ)((0,_.Qo)(String))],q.prototype,"modelName",void 0),(0,i.Cg)([(0,h.MZ)((0,_.Qo)(Boolean))],q.prototype,"isEmpty",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],q.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],q.prototype,"visible",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],q.prototype,"opacity",void 0),q=(0,i.Cg)([(0,h.$K)("esri.layers.buildingSublayers.BuildingSublayer")],q);var B=r(4071),K=r(15426),$=r(17036),k=r(95466),D=r(30524),Q=r(83898),J=r(50805),G=r(41214),z=r(97552),U=r(54218),V=r(30291),H=r(88625),W=r(5682),Y=r(45671),X=r(93223);const ee=(0,$.p)();let te=class extends((0,M.WV)((0,Z.g)(q))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}initialize(){this._set("graphicOrigin",new I(this))}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new k.A(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return null!=r&&"number"==typeof i?new L.default({portalItem:r,customParameters:this.customParameters,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return""}get globalIdField(){if(null!=this.fields)for(const e of this.fields)if("global-id"===e.type)return e.name;return""}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=null!=e?e.signal:null,r=this._fetchService(t).then(()=>{this.indexInfo=(0,Q.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,u.A.getLogger(this),t),this.indexInfo.catch(()=>{})});return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,V.tn)(this,e)}async _fetchService(e){const t=(await(0,b.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,K.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:B.P,{query:t,operations:{supportsQuery:r},data:{supportsZ:i,supportsM:o,isVersioned:s}}=e;return{query:t,operations:{supportsQuery:r},data:{supportsZ:i,supportsM:o,isVersioned:s}}}createQuery(){const e=new z.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryObjectIds(e,t){const r=await this._getAssociatedLayerForQuery();return(await r.queryObjectIds(e||this.createQuery(),t)).filter(U.Et)}async queryCachedAttributes(e,t){const r=(0,D.hL)(this.fieldsIndex,await(0,Y.TO)(this,(0,Y.D8)(this)));return(0,W.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new n.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new v.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i.Cg)([(0,h.MZ)({readOnly:!0})],te.prototype,"parsedUrl",null),(0,i.Cg)([(0,h.MZ)({type:J.W4,readOnly:!0})],te.prototype,"nodePages",void 0),(0,i.Cg)([(0,h.MZ)({type:[J.uV],readOnly:!0})],te.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,h.MZ)({type:[J.Ot],readOnly:!0})],te.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,h.MZ)({type:[J.L0],readOnly:!0})],te.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],te.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],te.prototype,"store",void 0),(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],te.prototype,"rootNode",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],te.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,h.MZ)(ee.fields)],te.prototype,"fields",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],te.prototype,"fieldsIndex",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:L.default})],te.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,N.w)("service","associatedLayer",["associatedLayerID"])],te.prototype,"readAssociatedLayer",null),(0,i.Cg)([(0,h.MZ)(ee.outFields)],te.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0})],te.prototype,"objectIdField",null),(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0})],te.prototype,"globalIdField",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String,json:{read:!1}})],te.prototype,"displayField",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String})],te.prototype,"apiKey",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String})],te.prototype,"customParameters",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:S.A})],te.prototype,"fullExtent",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:f.A})],te.prototype,"spatialReference",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],te.prototype,"version",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:H.A})],te.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Number})],te.prototype,"minScale",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Number})],te.prototype,"maxScale",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Number})],te.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,h.MZ)({type:["hide","show"],json:{write:!0}})],te.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)({types:G.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],te.prototype,"renderer",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],te.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,h.MZ)(_.M6)],te.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:C.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],te.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],te.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],te.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],te.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,h.MZ)()],te.prototype,"types",null),(0,i.Cg)([(0,h.MZ)()],te.prototype,"typeIdField",null),(0,i.Cg)([(0,h.MZ)({json:{write:!1}}),(0,X.e)(new w.J({"3DObject":"3d-object",Point:"point"}))],te.prototype,"layerType",void 0),(0,i.Cg)([(0,h.MZ)()],te.prototype,"geometryType",null),(0,i.Cg)([(0,h.MZ)()],te.prototype,"profile",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],te.prototype,"capabilities",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],te.prototype,"statisticsInfo",void 0),te=(0,i.Cg)([(0,h.$K)("esri.layers.buildingSublayers.BuildingComponentSublayer")],te);var re=r(67076);function ie(e,t){e.forEach(e=>{t(e),"building-group"===e.type&&ie(e.sublayers,t)})}const oe={type:o.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:se}}},read:!1}};function se(e,t,r){if(e&&Array.isArray(e))return new o.A(e.map(e=>{const t=function(e){return"group"===e.layerType?ne:te}(e);if(t){const i=new t;return i.read(e,r),i}return r?.messages&&e&&r.messages.push(new re.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null}))}let ne=class extends q{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,p.L)(this,e=>ie(this.sublayers,t=>{"building-group"!==t.type&&e(t)}))}static{this.sublayersProperty=oe}static{this.readSublayers=se}};(0,i.Cg)([(0,h.MZ)({type:["hide","show","hide-children"],json:{write:!0}})],ne.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)(oe)],ne.prototype,"sublayers",void 0),ne=(0,i.Cg)([(0,h.$K)("esri.layers.buildingSublayers.BuildingGroupSublayer")],ne);var le=r(52136),ae=r(18768),pe=r(69208),ue=r(34287),de=r(8303),ye=r(25036),ce=r(58947),ge=r(92009),he=r(25482),fe=r(13069);let me=class extends he.o{constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],me.prototype,"type",void 0),me=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfo")],me);const ve=me;var Ce;let be=Ce=class extends he.o{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new Ce({filterType:this.filterType,filterValues:(0,a.o8)(this.filterValues)})}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{isRequired:!0}}})],be.prototype,"filterType",void 0),(0,i.Cg)([(0,h.MZ)({type:[String],json:{write:{isRequired:!0}}})],be.prototype,"filterValues",void 0),be=Ce=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfoType")],be);const we=be;var Me;const Ze=o.A.ofType(we);let Se=Me=class extends he.o{clone(){return new Me({filterTypes:(0,a.o8)(this.filterTypes)})}};(0,i.Cg)([(0,h.MZ)({type:Ze,json:{write:{isRequired:!0}}})],Se.prototype,"filterTypes",void 0),Se=Me=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],Se);const Fe=Se;var Te;const xe=o.A.ofType(Fe);let Ae=Te=class extends ve{constructor(){super(...arguments),this.type="checkbox"}clone(){return new Te({filterBlocks:(0,a.o8)(this.filterBlocks)})}};(0,i.Cg)([(0,h.MZ)({type:["checkbox"]})],Ae.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)({type:xe,json:{write:{isRequired:!0}}})],Ae.prototype,"filterBlocks",void 0),Ae=Te=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],Ae);const Oe=Ae;var je=r(69540);let Ie=class extends((0,je.OU)(he.o)){};(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Ie.prototype,"type",void 0),Ie=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterMode")],Ie);const Le=Ie;let Re=class extends Le{constructor(e){super(e),this.type="solid"}};(0,i.Cg)([(0,h.MZ)({type:["solid"],readOnly:!0,json:{write:{isRequired:!0}}})],Re.prototype,"type",void 0),Re=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterModeSolid")],Re);const Ee=Re;var Pe=r(51734);let _e=class extends Le{constructor(e){super(e),this.type="wire-frame",this.edges=null}};(0,i.Cg)([(0,X.e)({wireFrame:"wire-frame"})],_e.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)(Pe.J)],_e.prototype,"edges",void 0),_e=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterModeWireFrame")],_e);const Ne=_e;let qe=class extends Le{constructor(e){super(e),this.type="x-ray"}};(0,i.Cg)([(0,h.MZ)({type:["x-ray"],readOnly:!0,json:{write:{isRequired:!0}}})],qe.prototype,"type",void 0),qe=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterModeXRay")],qe);const Be=qe;var Ke;let $e=Ke=class extends he.o{constructor(e){super(e),this.filterExpression=null,this.filterMode=new Ee,this.title=""}clone(){return new Ke({filterExpression:this.filterExpression,filterMode:(0,a.o8)(this.filterMode),title:this.title})}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],$e.prototype,"filterExpression",void 0),(0,i.Cg)([(0,h.MZ)({nonNullable:!0,types:{key:"type",base:Le,typeMap:{solid:Ee,"wire-frame":Ne,"x-ray":Be}},json:{read:e=>{switch(e?.type){case"solid":return Ee.fromJSON(e);case"wireFrame":return Ne.fromJSON(e);case"x-ray":return Be.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}})],$e.prototype,"filterMode",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],$e.prototype,"title",void 0),$e=Ke=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterBlock")],$e);const ke=$e;var De;const Qe=o.A.ofType(ke);let Je=De=class extends he.o{constructor(e){super(e),this.description=null,this.filterBlocks=null,this.id=(0,fe.lk)(),this.name=null}clone(){return new De({description:this.description,filterBlocks:(0,a.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,a.o8)(this.filterAuthoringInfo)})}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],Je.prototype,"description",void 0),(0,i.Cg)([(0,h.MZ)({type:Qe,json:{write:{enabled:!0,isRequired:!0}}})],Je.prototype,"filterBlocks",void 0),(0,i.Cg)([(0,h.MZ)({types:{key:"type",base:ve,typeMap:{checkbox:Oe}},json:{read:e=>"checkbox"===e?.type?Oe.fromJSON(e):null,write:!0}})],Je.prototype,"filterAuthoringInfo",void 0),(0,i.Cg)([(0,h.MZ)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Je.prototype,"id",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Je.prototype,"name",void 0),Je=De=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilter")],Je);let Ge=class extends he.o{constructor(e){super(e),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i.Cg)([(0,h.MZ)({type:String})],Ge.prototype,"fieldName",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],Ge.prototype,"modelName",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],Ge.prototype,"label",void 0),(0,i.Cg)([(0,h.MZ)({type:Number})],Ge.prototype,"min",void 0),(0,i.Cg)([(0,h.MZ)({type:Number})],Ge.prototype,"max",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:e=>Array.isArray(e)&&(e.every(e=>"string"==typeof e)||e.every(e=>"number"==typeof e))?e.slice():null}})],Ge.prototype,"mostFrequentValues",void 0),(0,i.Cg)([(0,h.MZ)({type:[Number]})],Ge.prototype,"subLayerIds",void 0),Ge=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFieldStatistics")],Ge);const ze=Ge;let Ue=class extends((0,M.WV)((0,Z.g)(he.o))){constructor(e){super(e),this.url=null,this.customParameters=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(u.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,b.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i.Cg)([(0,h.MZ)({constructOnly:!0,type:String})],Ue.prototype,"url",void 0),(0,i.Cg)([(0,h.MZ)({constructOnly:!0})],Ue.prototype,"customParameters",void 0),(0,i.Cg)([(0,h.MZ)({constructOnly:!0})],Ue.prototype,"apiKey",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:[ze],json:{read:{source:"summary"}}})],Ue.prototype,"fields",null),Ue=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingSummaryStatistics")],Ue);var Ve=r(24212);const He=o.A.ofType(Je),We=(0,a.o8)(ne.sublayersProperty),Ye=We.json?.origins;Ye&&(Ye["web-scene"]={type:[te],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Ye["portal-item"]={type:[te],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let Xe=class extends((0,ce.w6)((0,ae.b)((0,ue.q)((0,de.A)((0,ye.j)((0,d.M)((0,pe.d)((0,le.p)(m.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new s.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new He,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const i=ne.readSublayers(e,t,r);return ie(i,e=>e.layer=this),this._allSublayerOverrides&&(function(e,t){t.forEach(t=>et(e,t))}(i,this._allSublayerOverrides),this._allSublayerOverrides=null),i}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?function(e,t,r){const i=[];ie(e,e=>{const t=e.write({},r);Object.keys(t).length>1&&i.push(t)}),i.length>0&&(t.sublayers=i)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){const i=r?.origin&&e.get(r.origin);i&&(t.sublayers=[],i.overrides.forEach(e=>{t.sublayers.push((0,a.o8)(e))}))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){const r=function(e,t){const r=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new n.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?et(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef&&this.parsedUrl){const e=(0,g.fj)(this.parsedUrl.path,t.statisticsHRef);return new Ue({url:e,apiKey:this.apiKey,customParameters:this.customParameters})}return null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.QP).then(()=>this._fetchService(t)).then(()=>this._fetchAssociatedFeatureService(t));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,p.g)(this,e=>{ie(this.sublayers,t=>{"building-group"!==t.type&&e(t)}),this.summaryStatistics&&e(this.summaryStatistics)})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:t}=await(0,ge.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch(e){(0,y.QZ)(this._logWarningOnPopupEnabled())}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,l.rE)(e)),await(0,c.C_)(()=>this.allSublayers.filter(e=>"building-component"===e.type).some(e=>e.popupEnabled&&null!=e.popupTemplate),e.signal);const t=this.allSublayers.filter(e=>"building-component"===e.type).filter(e=>e.popupEnabled&&null!=e.popupTemplate),r=[],i=[];for(const e of t){const t=e.title??`untitled ${e.id}`;e.attributeStorageInfo?r.push(t):i.push(t)}const o="\n ",s=r.length>0?`\nThe following sublayers will fall back to binary attributes for Popups:${o}${r.join(o)}`:"",n=i.length>0?`\nThe following sublayers have no binary attributes and will not work with Popups:${o}${i.join(o)}`:"";u.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded for this BuildingSceneLayer: ${this.title}.`,s,n)}_validateElevationInfo(e){const t="Building scene layers";(0,Ve.XF)(u.A.getLogger(this),(0,Ve.B)(t,"absolute-height",e)),(0,Ve.XF)(u.A.getLogger(this),(0,Ve.tW)(t,e))}};function et(e,t){const{overrides:r,context:i}=t;ie(e,e=>e.read(r.get(e.id),i))}(0,i.Cg)([(0,h.MZ)({type:["BuildingSceneLayer"]})],Xe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],Xe.prototype,"allSublayers",void 0),(0,i.Cg)([(0,h.MZ)(We)],Xe.prototype,"sublayers",void 0),(0,i.Cg)([(0,N.w)("service","sublayers")],Xe.prototype,"readSublayers",null),(0,i.Cg)([(0,h.MZ)({type:He,nonNullable:!0,json:{write:!0}})],Xe.prototype,"filters",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],Xe.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Ue})],Xe.prototype,"summaryStatistics",void 0),(0,i.Cg)([(0,N.w)("summaryStatistics",["statisticsHRef"])],Xe.prototype,"readSummaryStatistics",null),(0,i.Cg)([(0,h.MZ)({type:[String],json:{read:!1}})],Xe.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)(_.Fm)],Xe.prototype,"fullExtent",void 0),(0,i.Cg)([(0,h.MZ)(_.fV)],Xe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],Xe.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)((0,_.Qo)(f.A))],Xe.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.MZ)(_.Yj)],Xe.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({json:{read:!1},readOnly:!0})],Xe.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)()],Xe.prototype,"associatedFeatureServiceItem",void 0),Xe=(0,i.Cg)([(0,h.$K)("esri.layers.BuildingSceneLayer")],Xe);const tt=Xe},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(5482),o=r(93637),s=r(91429),n=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const o=new n.A;return o.read(i,r),[o]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const s=e.find(e=>!!e.field);s&&(0,o.sM)(r,[s.toJSON()],t)}}}};r.d(t,["fY",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,s.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(5482),o=r(69540),s=r(25482),n=r(91429),l=r(56400);let a=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,n.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,n.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,n.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(5482),o=r(69540),s=r(66552),n=r(25482),l=r(91429);const a=new s.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(5482),o=r(69540),s=r(25482),n=r(91429),l=r(8631),a=r(29005),p=r(36005),u=r(43937);let d=class extends((0,o.OU)(s.o)){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,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],d)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(5482),s=r(66552),n=r(25482),l=r(91429);const a=new s.J({asc:"ascending",desc:"descending"});let p=class extends n.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(5482),o=r(69540),s=r(66552),n=r(25482),l=r(91429);const a=new s.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new s.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],u)},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>s});var i=r(34727),o=r(39516);function s(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){const s=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(r,s[1])))return"";const n=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;const o=u(e.at(0)?.minScale),s=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(s,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(5482),s=r(52106),n=r(66552),l=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(60408),y=r(65864),c=r(50498),g=r(20437),h=r(36005),f=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,o]}=e,s=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=s.length;e<t;e++)n?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,o],scale:[s,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*s+i,e=>o-e*n,l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const s=e[t],n=r.fromJSON(s),l=s.geometry?.spatialReference;null==n.geometry||l||(n.geometry.spatialReference=i);const a=s.aggregateGeometries,p=n.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],r=a[e],o=r?.spatialReference;null==t||o||(t.spatialReference=i)}o.push(n)}return o}_quantizePoints(e,t,r){let i,o;const s=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===i&&n===o||(s.push([e-i,n-o]),i=e,o=n)}else i=t(l[0]),o=r(l[1]),s.push([i,o])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],n=this._quantizePoints(s,t,r);n&&o.push(n)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,d.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(n+=o[0],l+=o[1]):(n=o[0],l=o[1]),o[0]=t(n),o[1]=r(l)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let n,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1273,7561],{11273(t,e,r){r.r(e),r.d(e,{executeTopFeaturesQuery:()=>l});var i=r(2272),o=r(24645),s=r(22671),n=r(57561);async function l(t,e,r,l){const u=(0,i.Dl)(t),p={...l},{data:a}=await(0,o.Yb)(u,n.default.from(e),r,p);return s.A.fromJSON(a)}},24645(t,e,r){r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(11254),o=r(84952),s=r(60408),n=r(52039),l=r(21325),u=r(10536),p=(r(5076),r(58501));const a="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(a);if(e.hasOwnProperty("count"))throw new Error(a);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}async function g(t,e,r,s={},l={}){const p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];s.responseType="json";const[y]=await(0,n.el)(a,s);null!=y&&((e=e.clone()).geometry=y);const c=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...c,...s.query}})}},57561(t,e,r){r.d(e,{default:()=>S});var i,o=r(5482),s=r(66552),n=r(25482),l=r(4718),u=r(91429),p=r(56507),a=r(16930),d=r(65864),y=r(50498);let c=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),c=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFilter")],c);const h=c;var m,g=r(79677),w=r(43937);const F=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),v=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let S=class extends n.o{static{m=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new m((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:!!t})}}})],S.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],S.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],S.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:a.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],S.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],S.prototype,"start",void 0),(0,o.Cg)([(0,w.K)("start"),(0,w.K)("num")],S.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:F.read},write:{target:"spatialRel",writer:F.write}}})],S.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:g.A,json:{write:!0}})],S.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:h,json:{write:!0}})],S.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:v.read,write:{writer:v.write,overridePolicy(t){return{enabled:null!=t&&!!this.distance}}}}})],S.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=m=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],S),S.from=(0,p.dp)(S)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3367],{99719(e,t,r){r.d(t,{x:()=>n});class n{}},47609(e,t,r){r.d(t,{A:()=>i});var n=r(66395);class i extends n.A{constructor(e){super({__proto__:null,url:e}),this.declaredClass="esri.arcade.Portal"}get url(){return this.field("url")}}},66395(e,t,r){r.d(t,{A:()=>l});var n=r(66131),i=r(6800),s=r(85935),o=r(78878),a=r(91075);class l{constructor(e){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,e instanceof l?this.attributes=e.attributes:null==e?this.attributes=Object.create(null):null!=Object.getPrototypeOf(e)?this.attributes={__proto__:null,...e}:this.attributes=e}static createMutable(e){const t=new l(e);return t.immutable=!1,t}static containerEntry(e,t){return new l({__proto__:null,key:e,value:t})}static textFormatting(){return l.createMutable({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"})}field(e){const t=e.toLowerCase(),r=this.attributes[e];if(void 0!==r)return r;for(const e in this.attributes)if(e.toLowerCase()===t)return this.attributes[e];throw new s.D$("FieldNotFound",null,{key:e})}setField(e,t){if(this.immutable)throw new s.D$("Immutable",null);if((0,o.i)(t))throw new s.D$("NoFunctionInDictionary",null);const r=e.toLowerCase();if(t instanceof Date&&(t=n.lY.dateJSToArcadeDate(t)),void 0===this.attributes[e]){for(const e in this.attributes)if(e.toLowerCase()===r)return void(this.attributes[e]=t);this.attributes[e]=t}else this.attributes[e]=t}eraseField(e){if(this.immutable)throw new s.D$("Immutable",null);if(e in this.attributes)return void delete this.attributes[e];const t=e.toLowerCase();for(const e in this.attributes)if(e.toLowerCase()===t)return void delete this.attributes[e]}hasField(e){const t=e.toLowerCase();if(void 0!==this.attributes[e])return!0;for(const e in this.attributes)if(e.toLowerCase()===t)return!0;return!1}keys(){const e=[];for(const t in this.attributes)e.push(t);return e.sort((e,t)=>e.toLowerCase()<t.toLowerCase()?-1:1)}values(){return this.keys().map(e=>this.attributes[e])}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(e=!1){return(0,o.c)(this.attributes,{useNumbersForDates:e})}castAsJson(){const e=Object.create(null);for(const t in this.attributes){const r=this.attributes[t];void 0!==r&&(e[t]=(0,o.a)(r))}return e}async castAsJsonAsync(e=null){const t=Object.create(null),r=[];for(const i in this.attributes){const s=this.attributes[i];void 0!==s&&((0,o.b)(s)||s instanceof a.A||s instanceof n.lY?t[i]=(0,o.a)(s):r.push((0,o.d)(s,e).then(e=>{t[i]=e})))}return r.length>0&&await Promise.all(r),t}deepClone(){const e=new l;e.immutable=!1;for(const t of this.keys())e.setField(t,(0,i.G)(this.field(t)));return e}}},92400(e,t,r){r.d(t,{CU:()=>a,UQ:()=>o,fF:()=>i,o6:()=>s});var n=r(17676);class i{constructor(){}}function s(e,t,r){if(e instanceof i&&!(e instanceof a)){const n=new a;return n.fn=e,n.parameterEvaluator=r,n.context=t,n}return e}class o extends i{constructor(e,t){super(),this._name=t,this.fn=e}get debugName(){return null!=this._name?`<native>.${this._name}`:"<native>"}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,r,o){return o(e,t,(t,l,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof a)?s(t,e,o):t);const c=this.call(r,{args:u});return(0,n.$X)(c)?c.then(e=>s(e,r,o)):c})}}class a extends i{constructor(){super(...arguments),this.fn=null,this.context=null}get debugName(){return null!=this.fn.debugName?`<imported>.${this.fn.debugName}`:null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,r){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818(e,t,r){r.d(t,{A:()=>n});class n{static from(e){return new i(e)}length(){return this._elements.length}toArray(){return this.slice()}slice(e=0,t=this.length()){const r=[];for(let n=e;n<t;n++)r.push(this.get(n));return r}}class i extends n{constructor(e){super(),this._elements=e}get(e){return this._elements[e]}slice(e=0,t=this.length()){return this._elements.slice(Math.max(e,0),Math.min(t,this.length()))}equalityTest(e){return this===e}}},7320(e,t,r){r.d(t,{A:()=>s});var n=r(93818),i=r(86738);class s extends n.A{constructor(e,t,r,n,i,s){super(),this._elements=e,this._spRef=t,this._hasZ=r,this._hasM=n,this._cacheId=i,this._partId=s,this._lazyPt=[]}hasZ(){return this._hasZ}hasM(){return this._hasM}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const r=new i.A(t[0],t[1],this._spRef);this._hasZ&&(r.z=t[2]),this._hasM&&(r.m=this._hasZ?t[3]:t[2]),r.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=r}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},48938(e,t,r){r.d(t,{X:()=>i});var n=r(85935);function i(e){if("string"==typeof e)return e.toLowerCase();if("name"in e)return e.name.toLowerCase();if("string"!=typeof e.value)throw new n.D$("InvalidIdentifier",null);return e.value.toLowerCase()}const s=Object.freeze({aborted:!1});r.d(t,["_",0,s])},6800(e,t,r){r.d(t,{G:()=>a,y:()=>s});var n=r(78878),i=r(54218);function s(e){o=e}let o;function a(e){return null==e?null:(0,n.e)(e)?e.clone():(0,n.b)(e)?e:(0,n.f)(e)?e.clone():(0,n.g)(e)?e.toArray().map(e=>a(e)):(0,i.cy)(e)?e.map(e=>a(e)):(0,n.h)(e)?o.createFromArcadeFeature(e):(0,n.j)(e)||(0,n.k)(e)?e:(0,n.l)(e)||(0,n.m)(e)?e.deepClone():((0,n.n)(e)||(0,n.o)(e)||(0,n.p)(e)||(0,n.i)(e),e)}},33325(e,t,r){r.d(t,{$P:()=>c,JB:()=>g,Lk:()=>p,Qi:()=>y,eB:()=>m,eg:()=>h,f0:()=>d,ke:()=>l,nE:()=>u,rX:()=>f});var n=r(66131),i=r(44729),s=r(15032),o=r(20437),a=r(92647);function l(e){return o.A.fromJSON(e.toJSON())}function u(e){return"toJSON"in e?e.toJSON():e}function c(e){return e instanceof Date}function p(e){return e instanceof a.c9}function f(e){return e instanceof n.lY}function d(e){return e instanceof i.n}function h(e){return e instanceof s.k}function y(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function g(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(n?.(t));for(o="",i=0;i<l.length;i++){const r=l[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(a,1),"{"+o+"}"}(e)}function m(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"parquet":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}r.d(t,["At",0,{"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"},"ik",0,{point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},"yT",0,{point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"}])},80672(e,t,r){r.d(t,{Iq:()=>a,RI:()=>o,VQ:()=>u,wI:()=>l});var n=r(47609),i=r(84952),s=r(20655);function o(e,t){return null==t?a(e):new s.A({url:t.url})}function a(e){return e.services?.portal??s.A.getDefault()}function l(e){const t=a(e);return new n.A(t.url)}function u(e,t){const r=e.url;return!!r&&(0,i.ut)(r,t.restUrl)}},3367(e,t,r){r.d(t,{B:()=>S,P:()=>g,g:()=>b,r:()=>v});var n=r(48938),i=r(66395),s=r(85935),o=r(78878),a=r(80672),l=r(49186),u=r(53966),c=r(91869),p=r(45475),f=r(67090),d=r(62791),h=r(14942),y=r(54218);class g{constructor(e,t){this.portal=e,this._debugLog=t}async translate(e){this.portal.loaded||await this.portal.load();const t=this.portal.helperServices?.aiUtilityServices;if(null==t)return{success:!1};const r=t.api?.text_translate;if(null==r)return{success:!1};const n=t.url+r;try{return e.requestSource??="arcade",{success:!0,results:(await(0,p.T)(n,e,{authMode:"no-prompt"})).map(e=>e.toJSON())}}catch(e){return null!=this._debugLog&&(e instanceof Error||e instanceof l.A)&&this._debugLog(`TranslateText error: ${e.message}`),u.A.getLogger("esri.arcade.functions.aiServices").error(e),{success:!1}}}}class m{constructor(e,t,r){this._parameters=e,this._maxTotalContentSize=t,this._maxContentsLength=r,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(e){const t=new Set(e.filter(e=>!this._normalizedContents.has(e.text)).map(e=>e.text));if(this._requests.length+t.size>this._maxContentsLength)return null;let r=0;for(const e of t)r+=e.length;if((r+this._contentsTotalSize)*(this._parameters.outputCultures.length??1)>this._maxTotalContentSize)return null;const n=this._requests.length;for(const{key:t,text:r}of e)(0,c.tE)(this._normalizedContents,r,()=>[]).push({batchIdx:n,key:t});return this._requests.push(e),this._contentsTotalSize+=r,n}async send(e){const t=[],r=[];let n=0;for(const[e,i]of this._normalizedContents)t.push(new f.k({key:String(n++),text:e})),r.push(i);const i=new d.F(this._parameters);i.input=t;const s=await e.translate(i);if(!s.success)return Array.from(this._requests,()=>s);const o=Array.from(this._requests,()=>({success:!0,results:[]}));for(const e of s.results){const t=Number(e.key);for(const n of r[t])o[n.batchIdx].results.push({...e,key:n.key})}return o}}function b(e){const t=[...new Set(e.outputCultures)].sort(),r=e.inputCulture??null,n=e.portalUrl,i=e.provider;return JSON.stringify([t,r,n,i])}async function w(e,t,r){try{return(await e.yieldFor(r))[t]}catch{return{success:!1}}}class S{constructor(e,t,{maxTotalContentSize:r=5e4,maxContentsLength:n=1e3}={}){this._executor=e,this._service=t,this._openBatches=new Map,this._maxTotalContentSize=r,this._maxContentsLength=n}create(e){return{translate:async t=>{const r=b(t),{input:n,outputCultures:i,inputCulture:s,provider:o,portalUrl:a}=t;if(null==i)return{success:!1};if(null==n||n.every(e=>0===e.text.length))return{success:!1};const l=this._openBatches.get(r);if(null!=l){const t=l.data.tryAdd(n);if(null!=t)return await w(e,t,l);l.send()}const u=new m({outputCultures:i,inputCulture:s,provider:o,portalUrl:a},this._maxTotalContentSize,this._maxContentsLength),c=u.tryAdd(n);if(null!=c){const t=this._executor.openBatch(u,{open:e=>{this._openBatches.set(r,e)},execute:e=>e.send(this._service),close:e=>{this._openBatches.get(r)===e&&this._openBatches.delete(r)}});return await w(e,c,t)}return await this._service.translate(t)}}}}function v(e){"async"===e.mode&&(e.functions[(0,n.X)("TranslateText")]=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,r)=>{if((0,o.E)(r,2,3,t),!(0,y.Kg)(r[0])&&!(0,y.cy)(r[0])&&!(0,o.g)(r[0]))throw new s.D$("InvalidParameter",t);const n=(0,o.Q)(r[0]);if(!(0,y.Kg)(r[1])&&!(0,y.cy)(r[1])&&!(0,o.g)(r[1]))throw new s.D$("InvalidParameter",t);const l=(0,o.Q)(r[1]);let u=null;if(r.length>=3){if(!(0,y.Kg)(r[2]))throw new s.D$("InvalidParameter",t);u=r[2]}const c=n.map((e,t)=>new f.k({key:String(t),text:e})),p=(0,a.Iq)(e),m=new d.F({outputCultures:l,input:c,inputCulture:u,portalUrl:p.restUrl.replace(/\/sharing\/rest$/,"")}),w=new Map;let S;if(null!=e.lrucache){const t=e.lrucache;S??=b(m),m.input=m.input?.filter(e=>{const r=t.getCachedTranslation(S,e.text);return null==r||(w.set(e.key,{...r,key:e.key}),!1)})}if(m.input?.length){const t=e.services?.translation??new g(p,e.console),r=await t.translate(m);if(!r.success)return new i.A({__proto__:null,success:!1});for(const t of r.results){const r=m.input?.find(e=>e.key===t.key)?.text;if(null==r)throw new s.D$("NeverReach",null);w.set(t.key,t),null!=e.lrucache&&(S??=b(m),e.lrucache.setCachedTranslation(S,r,{detectedLanguage:t.detectedLanguage,translations:t.translations}))}}const v=Array.from(c,e=>{const t=h.s.fromJSON(w.get(e.key));if(null==t)throw new s.D$("NeverReach",null);const r=Object.create(null);for(const e of t.translations)r[e.to]=e.text;return new i.A({__proto__:null,key:t.key,text:e.text,detectedLanguage:new i.A({__proto__:null,language:t.detectedLanguage,score:t.detectedLanguageScore}),translation:new i.A(r)})});return new i.A({__proto__:null,success:!0,results:v})})})}const T=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:S,PortalTranslationService:g,getTranslateParametersKey:b,registerFunctions:v},Symbol.toStringTag,{value:"Module"}));r.d(t,["A",0,T])},78878(e,t,r){r.d(t,{$:()=>Ie,A:()=>Oe,B:()=>V,E:()=>H,F:()=>j,G:()=>J,H:()=>Te,I:()=>N,J:()=>ye,K:()=>Ne,L:()=>Ae,M:()=>xe,N:()=>he,O:()=>k,P:()=>W,Q:()=>Fe,R:()=>C,S:()=>D,T:()=>je,U:()=>de,V:()=>ne,W:()=>ee,X:()=>Le,Y:()=>Je,Z:()=>Re,_:()=>Ge,a:()=>Me,a0:()=>ge,a1:()=>_,a3:()=>ue,a4:()=>Pe,a5:()=>Ze,a6:()=>we,a7:()=>me,a8:()=>be,b:()=>M,c:()=>ae,d:()=>ke,e:()=>B,f:()=>L,g:()=>Y,h:()=>R,i:()=>Z,j:()=>z,k:()=>G,l:()=>E,m:()=>q,n:()=>$,o:()=>K,p:()=>O,q:()=>U,r:()=>Q,t:()=>ce,u:()=>P,v:()=>fe,w:()=>le,y:()=>se,z:()=>oe});var n=r(66131),i=r(99719),s=r(85935),o=r(92400),a=r(93818),l=r(7320),u=r(33325),c=r(14607),p=r(44729),f=r(15032),d=r(91075),h=r(48526),y=r(86738),g=r(39829),m=r(82799),b=r(95108),w=r(73444),S=r(54218),v=r(92647),T=r(94128);class C{constructor(e){this.value=e}}class N{constructor(e){this.value=e}}const A={type:"VOID"},x=Symbol("BREAK"),F=Symbol("CONTINUE");function _(e,t,r){return""===t||null==t||t===r||t===r?e:e=e.split(t).join(r)}function Z(e){return e instanceof o.fF}function O(e){return e instanceof i.x}function M(e){return!!((0,S.Kg)(e)||(0,S.Et)(e)||B(e)||U(e)||Q(e)||(0,S.Lm)(e)||null===e||e===A)}function k(e,t){return void 0===e?t:e}function D(e){if(null==e)return"";if((0,S.cy)(e))return"Array";if(Y(e))return"Array";if(B(e))return"Date";if(Q(e))return"Time";if(U(e))return"DateOnly";if((0,S.Kg)(e))return"String";if((0,S.Lm)(e))return"Boolean";if((0,S.Et)(e))return"Number";if(q(e))return"Attachment";if($(e))return"Portal";if(E(e))return"Dictionary";if(K(e))return"KnowledgeGraph";if(O(e))return"Module";if(R(e))return"Feature";if(L(e))switch(e.type){case"point":return"Point";case"polygon":return"Polygon";case"polyline":return"Polyline";case"multipoint":return"Multipoint";case"extent":return"Extent";default:return"Unrecognized Type"}return Z(e)?"Function":G(e)?"FeatureSet":z(e)?"FeatureSetCollection":J(e)?"Voxel":j(e)?"Pixel":e===A?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function P(e){return e===A}function L(e){return e instanceof d.A}function I(e){return e instanceof y.A}function R(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function J(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function j(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function G(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function E(e){return"esri.arcade.Dictionary"===e?.declaredClass}function $(e){return"esri.arcade.Portal"===e?.declaredClass}function q(e){return"esri.arcade.Attachment"===e?.declaredClass}function V(e){return E(e)||R(e)||J(e)||j(e)}function z(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function K(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function Y(e){return e instanceof a.A}function B(e){return e instanceof n.lY}function U(e){return e instanceof p.n}function Q(e){return e instanceof f.k}function X(e){return null!=e&&"object"==typeof e}function H(e,t,r,n){if(e.length<t||e.length>r)throw new s.D$("WrongNumberOfParameters",n)}function W(e){return null==e||P(e)||""===e}function ee(e){return e<0?-Math.round(-e):Math.round(e)}function te(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=_(t,"‰",""),t=_(t,"¤",""),(0,c.GP)(e,{pattern:t}))}function re(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(ne(t),{locale:(0,w.JK)(),numberingSystem:"latn"})}function ne(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let r="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(n)||[])switch(i){case"D":r+="d";break;case"DD":r+="dd";break;case"DDD":r+="o";break;case"d":r+="c";break;case"ddd":r+="ccc";break;case"dddd":r+="cccc";break;case"M":r+="L";break;case"MM":r+="LL";break;case"MMM":r+="LLL";break;case"MMMM":r+="LLLL";break;case"YY":r+="yy";break;case"Y":case"YYYY":r+="yyyy";break;case"Q":r+="q";break;case"Z":r+="Z";break;case"ZZ":r+="ZZ";break;case"ZZZ":r+="ZZZ";break;case"ZZZZ":r+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":r+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":r+="'S'";break;case"SS":r+="'SS'";break;case"SSS":r+="u";break;case"A":case"a":r+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":r+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?r+=`'${i.slice(1,-1)}'`:r+=`'${i}'`}return r}function ie(e,t,r){switch(r){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function se(e,t,r){if(null===e){if(null===t||t===A)return ie(null,null,r);if((0,S.Et)(t))return ie(0,t,r);if((0,S.Kg)(t))return ie(0,fe(t),r);if((0,S.Lm)(t))return ie(0,fe(t),r);if(B(t))return ie(0,t.toNumber(),r);if(Q(t))return ie(e,t.toNumber(),r);if(U(t))return ie(e,t.toNumber(),r)}if(e===A){if(null===t||t===A)return ie(null,null,r);if((0,S.Et)(t))return ie(0,t,r);if((0,S.Kg)(t))return ie(0,fe(t),r);if((0,S.Lm)(t))return ie(0,fe(t),r);if(B(t))return ie(0,t.toNumber(),r);if(Q(t))return ie(e,t.toNumber(),r);if(U(t))return ie(e,t.toNumber(),r)}else if((0,S.Et)(e)){if((0,S.Et)(t))return ie(e,t,r);if((0,S.Lm)(t))return ie(e,fe(t),r);if(null===t||t===A)return ie(e,0,r);if((0,S.Kg)(t))return ie(e,fe(t),r);if(B(t))return ie(e,t.toNumber(),r);if(Q(t))return ie(e,t.toNumber(),r);if(U(t))return ie(e,t.toNumber(),r)}else if((0,S.Kg)(e)){if((0,S.Kg)(t))return ie(le(e),le(t),r);if(B(t))return ie(fe(e),t.toNumber(),r);if(Q(t))return ie(fe(e),t.toNumber(),r);if(U(t))return ie(fe(e),t.toNumber(),r);if((0,S.Et)(t))return ie(fe(e),t,r);if(null===t||t===A)return ie(fe(e),0,r);if((0,S.Lm)(t))return ie(fe(e),fe(t),r)}else if(B(e)){if(B(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=n.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=n.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),ie(e.toNumber(),t.toNumber(),r);if(null===t||t===A)return ie(e.toNumber(),0,r);if((0,S.Et)(t))return ie(e.toNumber(),t,r);if((0,S.Lm)(t))return ie(e.toNumber(),fe(t),r);if((0,S.Kg)(t))return ie(e.toNumber(),fe(t),r);if(Q(t))throw new s.D$("CannotCompareDateAndTime",null);if(U(t))return ie(e.toNumber(),t.toNumber(),r)}else if((0,S.Lm)(e)){if((0,S.Lm)(t))return ie(e,t,r);if((0,S.Et)(t))return ie(fe(e),fe(t),r);if(B(t))return ie(fe(e),t.toNumber(),r);if(Q(t))return ie(fe(e),t.toNumber(),r);if(U(t))return ie(fe(e),t.toNumber(),r);if(null===t||t===A)return ie(fe(e),0,r);if((0,S.Kg)(t))return ie(fe(e),fe(t),r)}else if(U(e)){if(B(t))return ie(e.toNumber(),t.toNumber(),r);if(null===t||t===A)return ie(e.toNumber(),0,r);if((0,S.Et)(t))return ie(e.toNumber(),t,r);if((0,S.Lm)(t))return ie(e.toNumber(),fe(t),r);if((0,S.Kg)(t))return ie(e.toNumber(),fe(t),r);if(Q(t))throw new s.D$("CannotCompareDateAndTime",null);if(U(t))return ie(e.toNumber(),t.toNumber(),r)}else if(Q(e)){if(B(t))throw new s.D$("CannotCompareDateAndTime",null);if(null===t||t===A)return ie(e.toNumber(),0,r);if((0,S.Et)(t))return ie(e.toNumber(),t,r);if((0,S.Lm)(t))return ie(e.toNumber(),fe(t),r);if((0,S.Kg)(t))return ie(e.toNumber(),fe(t),r);if(Q(t))return ie(e.toNumber(),t.toNumber(),r);if(U(t))throw new s.D$("CannotCompareDateAndTime",null)}return!!oe(e,t)&&("<="===r||">="===r)}function oe(e,t){if(e===t)return!0;if(null===e&&t===A||null===t&&e===A)return!0;if(B(e)&&B(t))return e.equals(t);if(Q(e)&&Q(t))return e.equals(t);if(U(e)&&U(t))return e.equals(t);if(Y(e))return e.equalityTest(t);if(I(e)&&I(t)){const r=e.cache._arcadeCacheId,n=t.cache._arcadeCacheId;if(null!=r)return r===n}if(X(e)&&X(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ae(e,{useNumbersForDates:t}){let r="";for(const n in e){""!==r&&(r+=",");const i=e[n];null==i?r+=JSON.stringify(n)+":null":(0,S.Lm)(i)||(0,S.Et)(i)||(0,S.Kg)(i)?r+=JSON.stringify(n)+":"+JSON.stringify(i):L(i)?r+=JSON.stringify(n)+":"+ce(i):Q(i)||U(i)?r+=`${JSON.stringify(n)}:${JSON.stringify(i.toString())}`:Y(i)||Array.isArray(i)?r+=JSON.stringify(n)+":"+ce(i,null,t):B(i)?r+=t?JSON.stringify(n)+":"+JSON.stringify(i.getTime()):JSON.stringify(n)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(r+=JSON.stringify(n)+":"+i.castToText(t))}return"{"+r+"}"}function le(e,t){if((0,S.Kg)(e))return e;if(null===e)return"";if((0,S.Et)(e))return te(e,t);if((0,S.Lm)(e))return e.toString();if(B(e))return re(e,t);if(Q(e))return e.toFormat(t);if(U(e))return e.toFormat(t);if(L(e))return JSON.stringify(e.toJSON());if((0,S.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=pe(e[r]);return"["+t.join(",")+"]"}if(Y(e)){const t=[];for(let r=0;r<e.length();r++)t[r]=pe(e.get(r));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():Z(e)?"object, Function":e===A?"":O(e)?"object, Module":""}function ue(e){const t=[];if(Y(e)){for(let r=0;r<e.length();r++)t[r]=fe(e.get(r));return t}if(!(0,S.cy)(e))return null;for(let r=0;r<e.length;r++)t[r]=fe(e[r]);return t}function ce(e,t,r=!1){if((0,S.Kg)(e))return e;if(null===e)return"";if((0,S.Et)(e))return te(e,t);if((0,S.Lm)(e))return e.toString();if(B(e))return re(e,t);if(Q(e))return e.toFormat(t);if(U(e))return e.toFormat(t);if(L(e))return"extent"===e.type?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+ve(e.spatialReference)+"}":ve(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,S.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=pe(e[n],r);return"["+t.join(",")+"]"}if(Y(e)){const t=[];for(let n=0;n<e.length();n++)t[n]=pe(e.get(n),r);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(r):Z(e)?"object, Function":P(e)?"":O(e)?"object, Module":""}function pe(e,t=!1){if(null===e)return"null";if((0,S.Lm)(e)||(0,S.Kg)(e))return JSON.stringify(e);if((0,S.Et)(e))return e.toString();if(L(e))return ce(e,null,t);if(Y(e))return ce(e,null,t);if((0,S.cy)(e))return ce(e,null,t);if(B(e))return t?JSON.stringify(e.getTime()):JSON.stringify(re(e,""));if(Q(e))return JSON.stringify(e.toString());if(U(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===A)return"null";return"null"}function fe(e,t){return(0,S.Et)(e)?e:null===e||""===e?0:B(e)||U(e)||Q(e)?NaN:(0,S.Lm)(e)?e?1:0:(0,S.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,S.Kg)(e)?(t=_(t,"‰",""),t=_(t,"¤",""),(0,c.qg)(e,{pattern:t})):e===A?0:Number(e)}function de(e,t){if(B(e))return e;if((0,S.Kg)(e)){const r=function(e,t){const r=/ (\d\d)/,i=(0,n.mT)(t);let s=v.c9.fromISO(e,{zone:i});return s.isValid||r.test(e)&&(e=e.replace(r,"T$1"),s=v.c9.fromISO(e,{zone:t}),s.isValid)?s:null}(e,t);if(r)return n.lY.dateTimeToArcadeDate(r)}return null}function he(e){return(0,S.Lm)(e)?e:(0,S.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,S.Et)(e)&&0!==e&&!isNaN(e)}function ye(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function ge(e){if(null==e)return null;if("point"===e.type)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if("polygon"===e.type){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if("polyline"===e.type){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return"multipoint"===e.type?0===e.points.length?null:e:"extent"===e.type?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function me(e,t){if(!e)return t;if(!e.domain)return t;let r=null,n=null;if(B(t))r=t.toNumber();else if(U(t))r=t.toString();else if(Q(t))r=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)r=le(t);else{if(null==t)return null;if(""===t)return t;r=fe(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===r&&(n=i)}return null===n?le(t):n.name}function be(e,t){if(!e)return t;if(!e.domain)return t;let r=null;const n=le(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===n&&(r=i)}return null===r?t:r.code}function we(e,t,r=null,n=null){if(!t)return null;if(!t.fields)return null;let i,o,a=null;for(let r=0;r<t.fields.length;r++){const n=t.fields[r];n.name.toLowerCase()===e.toString().toLowerCase()&&(a=n)}if(null===a)throw new s.D$("FieldNotFound",null,{key:e});let l=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(l=t.subtypeField,u="code",c=t.subtypes??[]),null===n&&r&&l)n=r.hasField(l)?r.field(l):null;else if(l&&null!==n){let e=!1;for(const t of c||[])if(n===t[u]){e=!0;break}if(!e)for(const t of c||[])if(n===t.name){n=t[u],e=!0;break}e||(n=null,r&&l&&(n=r.hasField(l)?r.field(l):null))}return null!=n&&c.some(e=>e[u]===n&&(i=e.domains?.[a.name],i&&"inherited"===i.type&&(i=Se(a.name,t),o=!0),!0)),o||i||(i=Se(e,t)),{field:a,domain:i}}function Se(e,t){let r;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(r=t.domain),!!r)),r}function ve(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(i=t.cmp,function(e){return function(t,r){const n={key:t,value:e[t]},s={key:r,value:e[r]};return i(n,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(n?.(t));for(o="",i=0;i<l.length;i++){const r=l[i],n=e(t[r]);n&&(o&&(o+=","),o+=JSON.stringify(r)+":"+n)}return s.splice(a,1),"{"+o+"}"}(e)}function Te(e){const t=[];for(const r of e)R(r)?t.push(r.geometry()):t.push(r);return t}function Ce(e,t){if(!I(t))throw new s.D$("InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function Ne(e,t){if((0,S.cy)(e)||Y(e)){let r=!1,n=!1,i=[],o=t;if((0,S.cy)(e)){for(const t of e)Ce(i,t);i.length>0&&(o=e[0].spatialReference,r=e[0].hasZ,n=e[0].hasM)}else if(e instanceof l.A)i=e._elements,i.length>0&&(r=e.hasZ(),n=e.hasM(),o=e.get(0).spatialReference);else{if(!Y(e))throw new s.D$("InvalidParameter",null);for(const t of e.toArray())Ce(i,t);i.length>0&&(o=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:((0,b.$3)(i)||(i=i.slice().reverse()),new g.A({rings:[i],spatialReference:o,hasZ:r,hasM:n}))}return e}function Ae(e,t){if((0,S.cy)(e)||Y(e)){let r=!1,n=!1,i=[],s=t;if((0,S.cy)(e)){for(const t of e)Ce(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof l.A)i=e._elements,i.length>0&&(r=e.hasZ(),n=e.hasM(),s=e.get(0).spatialReference);else if(Y(e)){for(const t of e.toArray())Ce(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new m.A({paths:[i],spatialReference:s,hasZ:r,hasM:n})}return e}function xe(e,t){if((0,S.cy)(e)||Y(e)){let r=!1,n=!1,i=[],s=t;if((0,S.cy)(e)){for(const t of e)Ce(i,t);i.length>0&&(s=e[0].spatialReference,r=!0===e[0].hasZ,n=!0===e[0].hasM)}else if(e instanceof l.A)i=e._elements,i.length>0&&(r=e.hasZ(),n=e.hasM(),s=e.get(0).spatialReference);else if(Y(e)){for(const t of e.toArray())Ce(i,t);i.length>0&&(s=e.get(0).spatialReference,r=!0===e.get(0).hasZ,n=!0===e.get(0).hasM)}return 0===i.length?null:new h.A({points:i,spatialReference:s,hasZ:r,hasM:n})}return e}function Fe(e,t=!0){if(null==e)return[];if((0,S.cy)(e)){const r=[];for(const n of e){const e=le(n);(t||""!==e)&&r.push(e)}return r}if(Y(e)){const r=[];for(let n=0;n<e.length();n++){const i=le(e.get(n));(t||""!==i)&&r.push(i)}return r}if(M(e)){const r=le(e);if(t||""!==r)return[r]}return[]}let _e=0;function Ze(){return _e++,_e%100==0?(_e=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function Oe(e,t,r){switch(r){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Me(e){return null==e?null:(0,S.Lm)(e)||(0,S.Et)(e)||(0,S.Kg)(e)?e:L(e)?e.toJSON():Y(e)?e.toArray().map(e=>Me(e)):Array.isArray(e)?e.map(e=>Me(e)):(0,S.$P)(e)?e:B(e)?e.toJSDate():Q(e)?e.toString():U(e)?e.toJSDate():"castAsJson"in e?e.castAsJson():null}async function ke(e,t=null){if(Y(e)&&(e=e.toArray()),null==e)return null;if(M(e)||L(e)||(0,S.$P)(e)||B(e))return Me(e);if(Array.isArray(e)){const r=[],n=[];for(const i of e)if(null===i||M(i)||L(i)||(0,S.$P)(i)||B(i))n.push(Me(i));else{const e=n.push(null)-1;r.push(ke(i,t).then(t=>{n[e]=t}))}return r.length>0&&await Promise.all(r),n}return"castAsJsonAsync"in e?e.castAsJsonAsync(t):null}function De(e){return Pe(e)?e.parent:e}function Pe(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Le(e,t,r){const n=De(e.fullSchema());return null===n?null:n.fields?we(t,n,e,r):null}function Ie(e){const t=De(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function Re(e,t,r,n){const i=De(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=we(t,i,e,n);if(void 0===r)try{r=e.field(t)}catch(e){return null}return me(s,r)}function Je(e,t,r,n){const i=De(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===r){try{r=e.field(t)}catch(e){return null}return r}return be(we(t,i,e,n),r)}function je(e){return e?.timeZone??"system"}function Ge(e){const t=De(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const r=[];for(const e of t.fields)r.push((0,u.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===u.yT[t.geometryType]?"":u.yT[t.geometryType],fields:r}}const Ee=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:N,ReturnResult:C,absRound:ee,arcadeVersion:"1.36",autoCastArrayOfPointsToMultiPoint:xe,autoCastArrayOfPointsToPolygon:Ne,autoCastArrayOfPointsToPolyline:Ae,autoCastFeatureToGeometry:Te,binaryOperator:Oe,breakResult:x,castAsJson:Me,castAsJsonAsync:ke,castRecordToText:ae,continueResult:F,defaultTimeZone:je,defaultUndefined:k,equalityTest:oe,featureDomainCodeLookup:Je,featureDomainValueLookup:Re,featureFullDomain:Le,featureSchema:Ge,featureSubtypes:Ie,fixNullGeometry:ge,fixSpatialReference:ye,getDomain:we,getDomainCode:be,getDomainValue:me,getType:D,greaterThanLessThan:se,isArray:S.cy,isAttachment:q,isBoolean:S.Lm,isDate:B,isDateOnly:U,isDictionary:E,isDictionaryLike:V,isEmpty:W,isFeature:R,isFeatureSet:G,isFeatureSetCollection:z,isFunctionParameter:Z,isGeometry:L,isGraphic:T.D,isImmutableArray:Y,isInteger:S.Fq,isJsDate:S.$P,isKnowledgeGraph:K,isModule:O,isNumber:S.Et,isPixel:j,isPortal:$,isSimpleType:M,isString:S.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Pe,isTime:Q,isVoid:P,isVoxel:J,multiReplace:_,pcCheck:H,standardiseDateFormat:ne,tick:Ze,toBoolean:he,toDate:de,toNumber:fe,toNumberArray:ue,toString:le,toStringArray:Fe,toStringExplicit:ce,voidOperation:A},Symbol.toStringTag,{value:"Module"}));r.d(t,["C",0,x,"D",0,F,"s",0,Ee,"x",0,A])},14607(e,t,r){r.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var n=r(799),i=r(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const r=e.split("-");r.length>1&&r[0]in s&&(e=r[0],t=!0),t||(e="en")}const[r,n,o="#,##0.###"]=s[e];return{decimal:r,group:n,pattern:o}}function a(e,t){const r=o((t={...t}).locale);t.customs=r;const n=t.pattern||r.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,r){const n=(r=r||{}).customs.group,i=r.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===r.fractional&&(r.places=0),t.replace(a,function(e,t,r){!0===(r=r||{}).places&&(r.places=0),r.places===1/0&&(r.places=6);const n=t.split("."),i="string"==typeof r.places&&r.places.indexOf(",");let s=r.places;i?s=r.places.slice(i+1):+s>=0||(s=(n[1]||[]).length),r.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(n[1]||r.places){i&&(r.places=r.places.slice(0,Math.max(0,i)));const e=void 0!==r.places?r.places:n[1]&&n[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+s<a.length&&(o[1]=a.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const l=n[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,p,f=n[0].lastIndexOf(",");if(-1!==f){c=n[0].length-f-1;const e=n[0].slice(0,f);f=e.lastIndexOf(","),-1!==f&&(p=e.length-f-1)}const d=[];for(let e=o[0];e;){const t=e.length-c;d.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",p&&(c=p,p=void 0)}return o[0]=d.reverse().join(r.group||","),o.join(r.decimal||".")}(e,u[0],{decimal:i,group:n,places:r.places,round:r.round}))}(e,n,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),r=e.pattern||t.pattern,i=t.group,s=t.decimal;let a=1;if(r.includes("%"))a/=100;else if(r.includes("‰"))a/=1e3;else if(r.includes("¤"))throw new Error("currency notation not supported");const u=r.split(";");1===u.length&&u.push("-"+u[0]);const c=f(u,t=>(t="(?:"+(0,n.Cj)(t,".")+")").replace(l,t=>{const r={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},n=t.split(".");let o=e.places;1===n.length&&1!==a&&(n[1]="###"),1===n.length||0===o?r.fractional=!1:(void 0===o&&(o=e.pattern?n[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(r.fractional=!0),!e.places&&+o<n[1].length&&(o+=","+n[1].length),r.places=o);const l=n[0].split(",");return l.length>1&&(r.groupSize=l.pop().length,l.length>1&&(r.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=p(e),r=f(e.fractional,t=>{let r="";return t&&0!==e.places&&(r="\\"+e.decimal,e.places===1/0?r="(?:"+r+"\\d+)?":r+="\\d{"+e.places+"}"),r},!0);let n=t+r;return r&&(n="(?:(?:"+n+")|(?:"+r+"))"),n+f(e.exponent,t=>t?"([eE]"+p({signed:e.eSigned})+")":"")}(r)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:a}}function c(e,t){const r=u(t),n=new RegExp("^"+r.regexp+"$").exec(e);if(!n)return NaN;let i=n[1];if(!n[1]){if(!n[2])return NaN;i=n[2],r.factor*=-1}return i=i.replaceAll(new RegExp("["+r.group+"\\s\\xa0]","g"),"").replace(r.decimal,"."),Number(i)*r.factor}function p(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",f(e.signed,e=>e?"[-+]":"",!0)+f(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,n.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const r=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+r+"})";return r-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(r-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+t+"]\\d{"+r+"})*)"},!0)}const f=(e,t,r)=>{if(!Array.isArray(e))return t(e);const n=[];for(let r=0;r<e.length;r++)n.push(t(e[r]));return d(n.join("|"),Boolean(r))},d=(e,t)=>"("+(t?"?:":"")+e+")"},48526(e,t,r){r.d(t,{A:()=>g});var n,i=r(5482),s=r(4576),o=r(4718),a=r(91429),l=r(5443),u=r(91075),c=r(86738),p=r(16930),f=r(90634),d=r(47610),h=r(56993),y=r(43937);let g=n=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=p.A.WGS84,{...e,hasM:r,hasZ:n,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,f.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:r,hasZ:i}=this;return new n({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,r=e.spatialReference;return null!=t==(null!=r)&&!(null!=t&&null!=r&&!t.equals(r))&&(0,s.aI)(this.points,e.points,d.v6)}addPoint(e){return(0,h.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference};let n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new c.A(r)}removePoint(e){if(!this._validateInputs(e))return null;const t=new c.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,h.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,i.Cg)([(0,y.K)("points")],g.prototype,"writePoints",null),g=n=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(4718),o=r(91429),a=r(5443),l=r(91075),u=r(86738),c=r(16930),p=r(90634),f=r(56993),d=r(43937);let h=n=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=c.A.WGS84,{...e,hasM:r,hasZ:n,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){const e=(0,p.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const n=[];for(let t=0,r=e.length;t<r;t++)n[t]=e[t].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new n;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const r=this.paths[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;const r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const n=this.paths[e];if(r&&(t<0||t>n.length))return!1;if(!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],h.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],h.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],h.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],h.prototype,"writePaths",null),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],h),h.prototype.toJSON.isDefaultToJSON=!0},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>g,QC:()=>p,lR:()=>c,oQ:()=>h});var n=r(36563);let i;r(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===i&&(i=a()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(e=l()){return f(e)?.language}function p(e=l()){const t=f(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function f(e=l()){return u.exec(e)?.groups}const d=[];function h(e){return d.push(e),(0,n.hA)(()=>{d.splice(d.indexOf(e),1)})}new Map;const y=[];function g(e){return y.push(e),(0,n.hA)(()=>y.splice(y.indexOf(e),1))}function m(){const e=a();i!==e&&([...y].forEach(t=>t(e)),i=e,[...d].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",m),o&&new MutationObserver(()=>{m()}).observe(o,{attributeFilter:["lang"]})},39357(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),s=r(25482),o=r(91429);let a=n=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let c=class extends l.A{static{n=this}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 n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=n=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},76357(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},20437(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(66552),o=r(25482),a=r(91429),l=r(56507),u=r(8631),c=r(98453),p=r(36005),f=r(93223);const d=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let h=class extends o.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?d.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"description",void 0),(0,i.Cg)([(0,p.w)("description")],h.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],h.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,i.Cg)([(0,f.e)(c.m)],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"valueType",void 0),(0,i.Cg)([(0,p.w)("valueType",["description"])],h.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],h)},41628(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{n=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new n({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>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]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,r){r.d(t,{r:()=>f,g:()=>p});var n,i=r(53177),s=r(76357),o=r(5482),a=r(91429),l=r(93223);let u=class extends s.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=r(41628);const p={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function f(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,n])},67090(e,t,r){r.d(t,{k:()=>a});var n=r(5482),i=r(25482),s=r(10107),o=r(64108);let a=class extends i.o{constructor(e){super(e)}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateContent")],a)},62791(e,t,r){r.d(t,{F:()=>l});var n=r(5482),i=r(25482),s=r(10107),o=r(64108),a=r(67090);let l=class extends i.o{constructor(e){super(e),this.outputCultures=null,this.input=null,this.portalUrl="https://www.arcgis.com",this.provider="default",this.inputCulture=null,this.requestSource=null}};(0,n.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],l.prototype,"outputCultures",void 0),(0,n.Cg)([(0,s.MZ)({type:[a.k],json:{write:!0}})],l.prototype,"input",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],l.prototype,"portalUrl",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0,default:"default"}})],l.prototype,"provider",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"inputCulture",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],l.prototype,"requestSource",void 0),l=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateParameters")],l)},14942(e,t,r){r.d(t,{s:()=>l});var n=r(5482),i=r(25482),s=r(10107),o=r(64108);let a=class extends i.o{};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"to",void 0),a=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateResult.Translation")],a);let l=class extends i.o{constructor(e){super(e),this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"key",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],l.prototype,"detectedLanguage",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],l.prototype,"detectedLanguageScore",void 0),(0,n.Cg)([(0,s.MZ)({type:[a],json:{write:!0}})],l.prototype,"translations",void 0),l=(0,n.Cg)([(0,o.$)("esri.rest.support.TranslateResult")],l)},45475(e,t,r){r.d(t,{T:()=>o});var n=r(11254),i=r(2272),s=r(14942);async function o(e,t,r){const o=JSON.stringify(t.toJSON()),a={};"https://www.arcgis.com"!==t.portalUrl&&(a.portal=t.portalUrl),null!=t.requestSource&&(a.request_source=t.requestSource),a.token=await(0,i.gf)(t.portalUrl,null,{signal:r?.signal,prompt:"no-prompt"!==r?.authMode});const l=(0,i.Dl)(e),u=(0,i.jV)(l.query,{...r,query:a,body:o,method:"post",authMode:"anonymous"});return(await(0,n.A)(l.path,u)).data.results.map(e=>s.s.fromJSON(e))}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>l,lF:()=>c});var n=r(92602),i=r(70333),s=r(4718),o=r(84952),a=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,r){const n={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?s:JSON.stringify(s);else n[i]=s}return n}async function p(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&n.A.request.useIdentity&&await Promise.all([r.e(7632),r.e(5683),r.e(148)]).then(r.bind(r,50148));const l=await i.id.getCredential(e,s);return l?.token}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1277,7561],{21277(t,e,r){r.r(e),r.d(e,{executeForTopIds:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.KW)(n,s.default.from(e),{...r})).data.objectIds}},24645(t,e,r){r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(11254),o=r(84952),s=r(60408),n=r(52039),l=r(21325),u=r(10536),p=(r(5076),r(58501));const a="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(a);if(e.hasOwnProperty("count"))throw new Error(a);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}async function g(t,e,r,s={},l={}){const p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];s.responseType="json";const[y]=await(0,n.el)(a,s);null!=y&&((e=e.clone()).geometry=y);const c=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...c,...s.query}})}},57561(t,e,r){r.d(e,{default:()=>j});var i,o=r(5482),s=r(66552),n=r(25482),l=r(4718),u=r(91429),p=r(56507),a=r(16930),d=r(65864),y=r(50498);let c=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),c=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFilter")],c);const h=c;var m,g=r(79677),w=r(43937);const F=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),v=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let j=class extends n.o{static{m=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new m((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:!!t})}}})],j.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],j.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],j.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],j.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],j.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],j.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],j.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:a.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],j.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],j.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],j.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],j.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],j.prototype,"start",void 0),(0,o.Cg)([(0,w.K)("start"),(0,w.K)("num")],j.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:F.read},write:{target:"spatialRel",writer:F.write}}})],j.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:g.A,json:{write:!0}})],j.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:h,json:{write:!0}})],j.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:v.read,write:{writer:v.write,overridePolicy(t){return{enabled:null!=t&&!!this.distance}}}}})],j.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"where",void 0),j=m=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],j),j.from=(0,p.dp)(j)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1086],{80200(e,t,r){r.d(t,{d:()=>c});const i={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,r,i,n,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,o)),n),r)}function o(e,t,r,i,s,o,a){return n(t&r|~t&i,e,t,s,o,a)}function a(e,t,r,i,s,o,a){return n(t&i|r&~i,e,t,s,o,a)}function l(e,t,r,i,s,o,a){return n(t^r^i,e,t,s,o,a)}function u(e,t,r,i,s,o,a){return n(r^(t|~i),e,t,s,o,a)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const c=r,p=i,h=n,y=d;r=o(r,i,n,d,e[t],7,-680876936),d=o(d,r,i,n,e[t+1],12,-389564586),n=o(n,d,r,i,e[t+2],17,606105819),i=o(i,n,d,r,e[t+3],22,-1044525330),r=o(r,i,n,d,e[t+4],7,-176418897),d=o(d,r,i,n,e[t+5],12,1200080426),n=o(n,d,r,i,e[t+6],17,-1473231341),i=o(i,n,d,r,e[t+7],22,-45705983),r=o(r,i,n,d,e[t+8],7,1770035416),d=o(d,r,i,n,e[t+9],12,-1958414417),n=o(n,d,r,i,e[t+10],17,-42063),i=o(i,n,d,r,e[t+11],22,-1990404162),r=o(r,i,n,d,e[t+12],7,1804603682),d=o(d,r,i,n,e[t+13],12,-40341101),n=o(n,d,r,i,e[t+14],17,-1502002290),i=o(i,n,d,r,e[t+15],22,1236535329),r=a(r,i,n,d,e[t+1],5,-165796510),d=a(d,r,i,n,e[t+6],9,-1069501632),n=a(n,d,r,i,e[t+11],14,643717713),i=a(i,n,d,r,e[t],20,-373897302),r=a(r,i,n,d,e[t+5],5,-701558691),d=a(d,r,i,n,e[t+10],9,38016083),n=a(n,d,r,i,e[t+15],14,-660478335),i=a(i,n,d,r,e[t+4],20,-405537848),r=a(r,i,n,d,e[t+9],5,568446438),d=a(d,r,i,n,e[t+14],9,-1019803690),n=a(n,d,r,i,e[t+3],14,-187363961),i=a(i,n,d,r,e[t+8],20,1163531501),r=a(r,i,n,d,e[t+13],5,-1444681467),d=a(d,r,i,n,e[t+2],9,-51403784),n=a(n,d,r,i,e[t+7],14,1735328473),i=a(i,n,d,r,e[t+12],20,-1926607734),r=l(r,i,n,d,e[t+5],4,-378558),d=l(d,r,i,n,e[t+8],11,-2022574463),n=l(n,d,r,i,e[t+11],16,1839030562),i=l(i,n,d,r,e[t+14],23,-35309556),r=l(r,i,n,d,e[t+1],4,-1530992060),d=l(d,r,i,n,e[t+4],11,1272893353),n=l(n,d,r,i,e[t+7],16,-155497632),i=l(i,n,d,r,e[t+10],23,-1094730640),r=l(r,i,n,d,e[t+13],4,681279174),d=l(d,r,i,n,e[t],11,-358537222),n=l(n,d,r,i,e[t+3],16,-722521979),i=l(i,n,d,r,e[t+6],23,76029189),r=l(r,i,n,d,e[t+9],4,-640364487),d=l(d,r,i,n,e[t+12],11,-421815835),n=l(n,d,r,i,e[t+15],16,530742520),i=l(i,n,d,r,e[t+2],23,-995338651),r=u(r,i,n,d,e[t],6,-198630844),d=u(d,r,i,n,e[t+7],10,1126891415),n=u(n,d,r,i,e[t+14],15,-1416354905),i=u(i,n,d,r,e[t+5],21,-57434055),r=u(r,i,n,d,e[t+12],6,1700485571),d=u(d,r,i,n,e[t+3],10,-1894986606),n=u(n,d,r,i,e[t+10],15,-1051523),i=u(i,n,d,r,e[t+1],21,-2054922799),r=u(r,i,n,d,e[t+8],6,1873313359),d=u(d,r,i,n,e[t+15],10,-30611744),n=u(n,d,r,i,e[t+6],15,-1560198380),i=u(i,n,d,r,e[t+13],21,1309151649),r=u(r,i,n,d,e[t+4],6,-145523070),d=u(d,r,i,n,e[t+11],10,-1120210379),n=u(n,d,r,i,e[t+2],15,718787259),i=u(i,n,d,r,e[t+9],21,-343485551),r=s(r,c),i=s(i,p),n=s(n,h),d=s(d,y)}return[r,i,n,d]}function c(e,t=i.Hex){const r=t||i.Base64,s=d(function(e){const t=[];for(let r=0,i=8*e.length;r<i;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case i.Raw:return s;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(s);case i.String:return function(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(s);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(s)}}r.d(t,["T",0,i])},87024(e,t,r){r.d(t,{P:()=>h});var i=r(49186),s=r(80200),n=r(76553),o=r(84952),a=r(13069),l=r(96156),u=r(35666),d=r(10107),c=r(85648),p=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const s=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const s=(0,p.r)(e,t,r);return i.type===String?s:"function"==typeof i.type?new i.type({url:s}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,s,a,l){if(!l?.resources)return"string"==typeof t?void(s[a]=(0,p.t)(t,l)):void(s[a]=t.write({},l));const d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,p.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=i.type!==String&&(!(0,n.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:s,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.oP)(h)?m&&e?.contentAddressed?y(v):m?function(e){const{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=g(s,r,t),d=(0,c.n)(u),p=(0,o.Zo)(l.path),h=i?.compress??!1;d===p?(t.resources&&f({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),n[a]=r):y(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==h||null!=(0,p.i)(h)||(0,o.w8)(h)||m)?y(v):s[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,d.rM)(r,e,i);for(const e in s)t[e]=s[e]}}}function y(e){const{targetUrl:t,params:r,value:n,context:l,dest:u,targetPropertyName:d}=e;if(!l.portalItem)return;const h=(0,p.p)(t),y=g(n,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const m=r?.contentAddressed&&"json"===y.type?(0,s.d)(y.jsonString):h?.filename??(0,a.lk)(),v=(0,o.fj)(r?.prefix??h?.prefix,m),w=`${v}.${(0,c.n)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===w)??l.resources.toAdd.find(({resource:e})=>e.path===w);if(e)return void(u[d]=e.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(w);(0,o.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.tk)(t).then(e=>{b.path=`${v}.${(0,c.n)({type:"blob",blob:e})}`,u[d]=b.itemRelativeUrl}).catch(()=>{}));const M=r?.compress??!1;l.resources&&f({...e,resource:b,content:y,compress:M,updates:l.resources.toAdd}),u[d]=b.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},58083(e,t,r){r.d(t,{$0:()=>m,$h:()=>x,B8:()=>d,C:()=>n,D_:()=>a,N9:()=>w,O7:()=>F,Qw:()=>u,Tl:()=>p,X_:()=>A,e$:()=>y,eL:()=>f,hM:()=>v,hZ:()=>o,hs:()=>h,kN:()=>g,l:()=>S,lw:()=>c,mg:()=>l,o1:()=>C,sC:()=>I,t2:()=>j,t5:()=>T,tZ:()=>P,ut:()=>O,v3:()=>L});var i=r(51850),s=r(34304);function n(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function o(e,t,r,i,s,n,o,a,l,u,d,c,p,h,y,f,g){return e[0]=t,e[1]=r,e[2]=i,e[3]=s,e[4]=n,e[5]=o,e[6]=a,e[7]=l,e[8]=u,e[9]=d,e[10]=c,e[11]=p,e[12]=h,e[13]=y,e[14]=f,e[15]=g,e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){const r=t[1],i=t[2],s=t[3],n=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=n,e[11]=t[14],e[12]=s,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return d(e,t)||a(e),e}function d(e,t){const r=t[0],i=t[1],s=t[2],n=t[3],o=t[4],a=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],g=t[14],m=t[15],v=r*a-i*o,w=r*l-s*o,b=r*u-n*o,M=i*l-s*a,I=i*u-n*a,A=s*u-n*l,S=d*f-c*y,C=d*g-p*y,F=d*m-h*y,x=c*g-p*f,L=c*m-h*f,T=p*m-h*g;let E=v*T-w*L+b*x+M*F-I*C+A*S;return E?(E=1/E,e[0]=(a*T-l*L+u*x)*E,e[1]=(s*L-i*T-n*x)*E,e[2]=(f*A-g*I+m*M)*E,e[3]=(p*I-c*A-h*M)*E,e[4]=(l*F-o*T-u*C)*E,e[5]=(r*T-s*F+n*C)*E,e[6]=(g*b-y*A-m*w)*E,e[7]=(d*A-p*b+h*w)*E,e[8]=(o*L-a*F+u*S)*E,e[9]=(i*F-r*L-n*S)*E,e[10]=(y*I-f*b+m*v)*E,e[11]=(c*b-d*I-h*v)*E,e[12]=(a*C-o*x-l*S)*E,e[13]=(r*x-i*C+s*S)*E,e[14]=(f*w-y*M-g*v)*E,e[15]=(d*M-c*w+p*v)*E,e):null}function c(e,t,r){const i=t[0],s=t[1],n=t[2],o=t[3],a=t[4],l=t[5],u=t[6],d=t[7],c=t[8],p=t[9],h=t[10],y=t[11],f=t[12],g=t[13],m=t[14],v=t[15];let w=r[0],b=r[1],M=r[2],I=r[3];return e[0]=w*i+b*a+M*c+I*f,e[1]=w*s+b*l+M*p+I*g,e[2]=w*n+b*u+M*h+I*m,e[3]=w*o+b*d+M*y+I*v,w=r[4],b=r[5],M=r[6],I=r[7],e[4]=w*i+b*a+M*c+I*f,e[5]=w*s+b*l+M*p+I*g,e[6]=w*n+b*u+M*h+I*m,e[7]=w*o+b*d+M*y+I*v,w=r[8],b=r[9],M=r[10],I=r[11],e[8]=w*i+b*a+M*c+I*f,e[9]=w*s+b*l+M*p+I*g,e[10]=w*n+b*u+M*h+I*m,e[11]=w*o+b*d+M*y+I*v,w=r[12],b=r[13],M=r[14],I=r[15],e[12]=w*i+b*a+M*c+I*f,e[13]=w*s+b*l+M*p+I*g,e[14]=w*n+b*u+M*h+I*m,e[15]=w*o+b*d+M*y+I*v,e}function p(e,t,r){const i=r[0],s=r[1],n=r[2];if(t===e)e[12]=t[0]*i+t[4]*s+t[8]*n+t[12],e[13]=t[1]*i+t[5]*s+t[9]*n+t[13],e[14]=t[2]*i+t[6]*s+t[10]*n+t[14],e[15]=t[3]*i+t[7]*s+t[11]*n+t[15];else{const r=t[0],o=t[1],a=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7],h=t[8],y=t[9],f=t[10],g=t[11];e[0]=r,e[1]=o,e[2]=a,e[3]=l,e[4]=u,e[5]=d,e[6]=c,e[7]=p,e[8]=h,e[9]=y,e[10]=f,e[11]=g,e[12]=r*i+u*s+h*n+t[12],e[13]=o*i+d*s+y*n+t[13],e[14]=a*i+c*s+f*n+t[14],e[15]=l*i+p*s+g*n+t[15]}return e}function h(e,t,r){const i=r[0],s=r[1],n=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function y(e,t,r,i){let o=i[0],a=i[1],l=i[2],u=Math.sqrt(o*o+a*a+l*l);if(u<=(0,s.FD)())return void n(e,t);u=1/u,o*=u,a*=u,l*=u;const d=Math.sin(r),c=Math.cos(r),p=1-c,h=t[0],y=t[1],f=t[2],g=t[3],m=t[4],v=t[5],w=t[6],b=t[7],M=t[8],I=t[9],A=t[10],S=t[11],C=o*o*p+c,F=a*o*p+l*d,x=l*o*p-a*d,L=o*a*p-l*d,T=a*a*p+c,E=l*a*p+o*d,j=o*l*p+a*d,O=a*l*p-o*d,P=l*l*p+c;e[0]=h*C+m*F+M*x,e[1]=y*C+v*F+I*x,e[2]=f*C+w*F+A*x,e[3]=g*C+b*F+S*x,e[4]=h*L+m*T+M*E,e[5]=y*L+v*T+I*E,e[6]=f*L+w*T+A*E,e[7]=g*L+b*T+S*E,e[8]=h*j+m*O+M*P,e[9]=y*j+v*O+I*P,e[10]=f*j+w*O+A*P,e[11]=g*j+b*O+S*P,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function f(e,t,r){const i=Math.sin(r),s=Math.cos(r),n=t[4],o=t[5],a=t[6],l=t[7],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=n*s+u*i,e[5]=o*s+d*i,e[6]=a*s+c*i,e[7]=l*s+p*i,e[8]=u*s-n*i,e[9]=d*s-o*i,e[10]=c*s-a*i,e[11]=p*s-l*i,e}function g(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function m(e,t,r){if(0===t)return a(e);let i=r[0],n=r[1],o=r[2],l=Math.sqrt(i*i+n*n+o*o);if(l<=(0,s.FD)())return null;l=1/l,i*=l,n*=l,o*=l;const u=Math.sin(t),d=Math.cos(t),c=1-d;return e[0]=i*i*c+d,e[1]=n*i*c+o*u,e[2]=o*i*c-n*u,e[3]=0,e[4]=i*n*c-o*u,e[5]=n*n*c+d,e[6]=o*n*c+i*u,e[7]=0,e[8]=i*o*c+n*u,e[9]=n*o*c-i*u,e[10]=o*o*c+d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function w(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t,r){const i=t[0],s=t[1],n=t[2],o=t[3],a=i+i,l=s+s,u=n+n,d=i*a,c=i*l,p=i*u,h=s*l,y=s*u,f=n*u,g=o*a,m=o*l,v=o*u;return e[0]=1-(h+f),e[1]=c+v,e[2]=p-m,e[3]=0,e[4]=c-v,e[5]=1-(d+f),e[6]=y+g,e[7]=0,e[8]=p+m,e[9]=y-g,e[10]=1-(d+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const M=(0,i.vt)();function I(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function A(e,t){const r=t[0],i=t[1],s=t[2],n=t[4],o=t[5],a=t[6],l=t[8],u=t[9],d=t[10];return e[0]=Math.sqrt(r*r+i*i+s*s),e[1]=Math.sqrt(n*n+o*o+a*a),e[2]=Math.sqrt(l*l+u*u+d*d),e}function S(e,t){const r=t[0]+t[5]+t[10];let i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e}function C(e,t,r,i){const s=t[0],n=t[1],o=t[2],a=t[3],l=s+s,u=n+n,d=o+o,c=s*l,p=s*u,h=s*d,y=n*u,f=n*d,g=o*d,m=a*l,v=a*u,w=a*d,b=i[0],M=i[1],I=i[2];return e[0]=(1-(y+g))*b,e[1]=(p+w)*b,e[2]=(h-v)*b,e[3]=0,e[4]=(p-w)*M,e[5]=(1-(c+g))*M,e[6]=(f+m)*M,e[7]=0,e[8]=(h+v)*I,e[9]=(f-m)*I,e[10]=(1-(c+y))*I,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function F(e,t,r,i,s){const n=t[0],o=t[1],a=t[2],l=t[3],u=n+n,d=o+o,c=a+a,p=n*u,h=n*d,y=n*c,f=o*d,g=o*c,m=a*c,v=l*u,w=l*d,b=l*c,M=i[0],I=i[1],A=i[2],S=s[0],C=s[1],F=s[2],x=(1-(f+m))*M,L=(h+b)*M,T=(y-w)*M,E=(h-b)*I,j=(1-(p+m))*I,O=(g+v)*I,P=(y+w)*A,_=(g-v)*A,R=(1-(p+f))*A;return e[0]=x,e[1]=L,e[2]=T,e[3]=0,e[4]=E,e[5]=j,e[6]=O,e[7]=0,e[8]=P,e[9]=_,e[10]=R,e[11]=0,e[12]=r[0]+S-(x*S+E*C+P*F),e[13]=r[1]+C-(L*S+j*C+_*F),e[14]=r[2]+F-(T*S+O*C+R*F),e[15]=1,e}function x(e,t,r,i,s,n,o){const a=1/(r-t),l=1/(s-i),u=1/(n-o);return e[0]=2*n*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*n*l,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(s+i)*l,e[10]=(o+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*n*2*u,e[15]=0,e}function L(e,t,r,i,s,n,o){const a=1/(t-r),l=1/(i-s),u=1/(n-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(s+i)*l,e[14]=(o+n)*u,e[15]=1,e}function T(e,t,r,i){const n=t[0],o=t[1],l=t[2];let u=n-r[0],d=o-r[1],c=l-r[2];const p=(0,s.FD)();if(Math.abs(u)<p&&Math.abs(d)<p&&Math.abs(c)<p)return void a(e);let h=1/Math.sqrt(u*u+d*d+c*c);u*=h,d*=h,c*=h;const y=i[0],f=i[1],g=i[2];let m=f*c-g*d,v=g*u-y*c,w=y*d-f*u;h=Math.sqrt(m*m+v*v+w*w),h?(h=1/h,m*=h,v*=h,w*=h):(m=0,v=0,w=0);let b=d*w-c*v,M=c*m-u*w,I=u*v-d*m;h=Math.sqrt(b*b+M*M+I*I),h?(h=1/h,b*=h,M*=h,I*=h):(b=0,M=0,I=0),e[0]=m,e[1]=b,e[2]=u,e[3]=0,e[4]=v,e[5]=M,e[6]=d,e[7]=0,e[8]=w,e[9]=I,e[10]=c,e[11]=0,e[12]=-(m*n+v*o+w*l),e[13]=-(b*n+M*o+I*l),e[14]=-(u*n+d*o+c*l),e[15]=1}function E(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function j(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function O(e){const t=(0,s.FD)(),r=e[0],i=e[1],n=e[2],o=e[4],a=e[5],l=e[6],u=e[8],d=e[9],c=e[10];return Math.abs(1-(r*r+o*o+u*u))<=t&&Math.abs(1-(i*i+a*a+d*d))<=t&&Math.abs(1-(n*n+l*l+c*c))<=t}function P(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const _=c,R=E;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],i=t[1],s=t[2],n=t[3],o=t[4],a=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],g=t[14],m=t[15];return e[0]=a*(p*m-h*g)-c*(l*m-u*g)+f*(l*h-u*p),e[1]=-(i*(p*m-h*g)-c*(s*m-n*g)+f*(s*h-n*p)),e[2]=i*(l*m-u*g)-a*(s*m-n*g)+f*(s*u-n*l),e[3]=-(i*(l*h-u*p)-a*(s*h-n*p)+c*(s*u-n*l)),e[4]=-(o*(p*m-h*g)-d*(l*m-u*g)+y*(l*h-u*p)),e[5]=r*(p*m-h*g)-d*(s*m-n*g)+y*(s*h-n*p),e[6]=-(r*(l*m-u*g)-o*(s*m-n*g)+y*(s*u-n*l)),e[7]=r*(l*h-u*p)-o*(s*h-n*p)+d*(s*u-n*l),e[8]=o*(c*m-h*f)-d*(a*m-u*f)+y*(a*h-u*c),e[9]=-(r*(c*m-h*f)-d*(i*m-n*f)+y*(i*h-n*c)),e[10]=r*(a*m-u*f)-o*(i*m-n*f)+y*(i*u-n*a),e[11]=-(r*(a*h-u*c)-o*(i*h-n*c)+d*(i*u-n*a)),e[12]=-(o*(c*g-p*f)-d*(a*g-l*f)+y*(a*p-l*c)),e[13]=r*(c*g-p*f)-d*(i*g-s*f)+y*(i*p-s*c),e[14]=-(r*(a*g-l*f)-o*(i*g-s*f)+y*(i*l-s*a)),e[15]=r*(a*p-l*c)-o*(i*p-s*c)+d*(i*l-s*a),e},copy:n,determinant:function(e){const t=e[0],r=e[1],i=e[2],s=e[3],n=e[4],o=e[5],a=e[6],l=e[7],u=e[8],d=e[9],c=e[10],p=e[11],h=e[12],y=e[13],f=e[14],g=e[15];return(t*o-r*n)*(c*g-p*f)-(t*a-i*n)*(d*g-p*y)+(t*l-s*n)*(d*f-c*y)+(r*a-i*o)*(u*g-p*h)-(r*l-s*o)*(u*f-c*h)+(i*l-s*a)*(u*y-d*h)},equals:function(e,t){if(e===t)return!0;const r=e[0],i=e[1],n=e[2],o=e[3],a=e[4],l=e[5],u=e[6],d=e[7],c=e[8],p=e[9],h=e[10],y=e[11],f=e[12],g=e[13],m=e[14],v=e[15],w=t[0],b=t[1],M=t[2],I=t[3],A=t[4],S=t[5],C=t[6],F=t[7],x=t[8],L=t[9],T=t[10],E=t[11],j=t[12],O=t[13],P=t[14],_=t[15],R=(0,s.FD)();return Math.abs(r-w)<=R*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-b)<=R*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(n-M)<=R*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(o-I)<=R*Math.max(1,Math.abs(o),Math.abs(I))&&Math.abs(a-A)<=R*Math.max(1,Math.abs(a),Math.abs(A))&&Math.abs(l-S)<=R*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-C)<=R*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(d-F)<=R*Math.max(1,Math.abs(d),Math.abs(F))&&Math.abs(c-x)<=R*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(p-L)<=R*Math.max(1,Math.abs(p),Math.abs(L))&&Math.abs(h-T)<=R*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(y-E)<=R*Math.max(1,Math.abs(y),Math.abs(E))&&Math.abs(f-j)<=R*Math.max(1,Math.abs(f),Math.abs(j))&&Math.abs(g-O)<=R*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(m-P)<=R*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(v-_)<=R*Math.max(1,Math.abs(v),Math.abs(_))},exactEquals:j,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],i=t[1],s=t[2],n=t[3],o=r+r,a=i+i,l=s+s,u=r*o,d=i*o,c=i*a,p=s*o,h=s*a,y=s*l,f=n*o,g=n*a,m=n*l;return e[0]=1-c-y,e[1]=d+m,e[2]=p-g,e[3]=0,e[4]=d-m,e[5]=1-u-y,e[6]=h+f,e[7]=0,e[8]=p+g,e[9]=h-f,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=M,i=-t[0],s=-t[1],n=-t[2],o=t[3],a=t[4],l=t[5],u=t[6],d=t[7],c=i*i+s*s+n*n+o*o;return c>0?(r[0]=2*(a*o+d*i+l*n-u*s)/c,r[1]=2*(l*o+d*s+u*i-a*n)/c,r[2]=2*(u*o+d*n+a*s-l*i)/c):(r[0]=2*(a*o+d*i+l*n-u*s),r[1]=2*(l*o+d*s+u*i-a*n),r[2]=2*(u*o+d*n+a*s-l*i)),b(e,t,r),e},fromRotation:m,fromRotationTranslation:b,fromRotationTranslationScale:C,fromRotationTranslationScaleOrigin:F,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:g,fromXRotation:v,fromYRotation:function(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:w,frustum:x,getRotation:S,getScale:A,getTranslation:I,hasIdentityRotation:P,identity:a,invert:d,invertOrIdentity:u,isOrthoNormal:O,lookAt:T,mul:_,multiply:c,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},ortho:L,perspective:function(e,t,r,i,s){const n=1/Math.tan(t/2);let o;return e[0]=n/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(o=1/(i-s),e[10]=(s+i)*o,e[14]=2*s*i*o):(e[10]=-1,e[14]=-2*i),e},perspectiveFromFieldOfView:function(e,t,r,i){const s=Math.tan(t.upDegrees*Math.PI/180),n=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+a),u=2/(s+n);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(o-a)*l*.5,e[9]=(s-n)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},rotate:y,rotateX:f,rotateY:function(e,t,r){const i=Math.sin(r),s=Math.cos(r),n=t[0],o=t[1],a=t[2],l=t[3],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*s-u*i,e[1]=o*s-d*i,e[2]=a*s-c*i,e[3]=l*s-p*i,e[8]=n*i+u*s,e[9]=o*i+d*s,e[10]=a*i+c*s,e[11]=l*i+p*s,e},rotateZ:function(e,t,r){const i=Math.sin(r),s=Math.cos(r),n=t[0],o=t[1],a=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*s+u*i,e[1]=o*s+d*i,e[2]=a*s+c*i,e[3]=l*s+p*i,e[4]=u*s-n*i,e[5]=d*s-o*i,e[6]=c*s-a*i,e[7]=p*s-l*i,e},scale:h,set:o,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:R,subtract:E,targetTo:function(e,t,r,i){const s=t[0],n=t[1],o=t[2],a=i[0],l=i[1],u=i[2];let d=s-r[0],c=n-r[1],p=o-r[2],h=d*d+c*c+p*p;h>0&&(h=1/Math.sqrt(h),d*=h,c*=h,p*=h);let y=l*p-u*c,f=u*d-a*p,g=a*c-l*d;return h=y*y+f*f+g*g,h>0&&(h=1/Math.sqrt(h),y*=h,f*=h,g*=h),e[0]=y,e[1]=f,e[2]=g,e[3]=0,e[4]=c*g-p*f,e[5]=p*y-d*g,e[6]=d*f-c*y,e[7]=0,e[8]=d,e[9]=c,e[10]=p,e[11]=0,e[12]=s,e[13]=n,e[14]=o,e[15]=1,e},translate:p,transpose:l},Symbol.toStringTag,{value:"Module"}))},54239(e,t,r){r.d(t,{A:()=>m});var i,s=r(5482),n=r(4576),o=r(66552),a=r(25482),l=r(86211),u=r(67076),d=r(91429),c=r(97348),p=r(43937),h=r(36005);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=y.jsonValues.slice();(0,n.Xy)(f,"orthometric");const g=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;const s=(null!=t?c.B.get(t):null)??c.B.get(r);return s?new i({heightModel:0===s.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(s.unit.name),vertCRS:s.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,d.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,s.Cg)([(0,p.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s.Cg)([(0,h.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s.Cg)([(0,d.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s.Cg)([(0,h.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s.Cg)([(0,h.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s.Cg)([(0,h.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,s.Cg)([(0,d.$K)("esri.geometry.HeightModelInfo")],m)},73836(e,t,r){r.d(t,{A:()=>h});var i=r(5482),s=r(69540),n=r(25482),o=r(91429),a=r(58083),l=r(9093),u=r(67026),d=r(82534),c=r(51850),p=r(24770);let h=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(p.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,p.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,p.yo)(e)),this.rotationAngle=(0,p.g7)(e)}get localMatrix(){const e=(0,l.vt)();return(0,u.x8)(y,(0,p.yo)(this.rotation),(0,p.$I)(this.rotation)),(0,a.o1)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,a.B8)((0,l.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,a.t2)(this.localMatrix,e.localMatrix)}};(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,i.Cg)([(0,o.MZ)()],h.prototype,"rotation",null),(0,i.Cg)([(0,o.MZ)()],h.prototype,"localMatrix",null),(0,i.Cg)([(0,o.MZ)()],h.prototype,"localMatrixInverse",null),h=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTransform")],h);const y=(0,d.vt)()},24770(e,t,r){r.d(t,{$I:()=>m,AU:()=>y,Cr:()=>c,g7:()=>g,i4:()=>d,ui:()=>p,vt:()=>u,yo:()=>f});var i=r(34727),s=r(58083),n=r(67026),o=r(82534),a=r(35522),l=r(51850);function u(e=w){return[e[0],e[1],e[2],e[3]]}function d(e,t,r=u()){return(0,a.C)(r,e),r[3]=t,r}function c(e,t,r){return(0,a.$A)(r,e,t),(0,a.S8)(r,r),r[3]=-(0,a.g7)(e,t),r}function p(e,t=u()){const r=(0,s.l)(b,e);return v(t,(0,i.KJ)((0,n.Xd)(t,r))),t}function h(e,t,r=u()){return(0,n.x8)(b,e,m(e)),(0,n.x8)(M,t,m(t)),(0,n.lw)(b,M,b),v(r,(0,i.KJ)((0,n.Xd)(r,b)))}function y(e,t,r,i=u()){return d(l.Cw,e,I),d(l.JP,t,A),d(l.Cb,r,S),h(I,A,I),h(I,S,i),i}function f(e){return e}function g(e){return e[3]}function m(e){return(0,i.kU)(e[3])}function v(e,t){return e[3]=t,e}const w=[0,0,1,0],b=(0,o.vt)(),M=(0,o.vt)(),I=(u(),u()),A=u(),S=u();r.d(t,["up",0,w])},2e4(e,t,r){r.r(t),r.d(t,{default:()=>Re});var i=r(5482),s=r(52106),n=r(37838),o=r(69540),a=r(7762),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(25728),h=r(17676),y=r(36708),f=r(91429),g=r(88620),m=r(86738),v=r(91218),w=r(55156),b=r(60950),M=r(89808),I=r(99959);const A=Symbol("isSceneGraphicOrigin");var S;class C extends I.A{get[(S=A,b.ym)](){return this.layer}get[w.e](){return this.layer}get[M.Q](){return this.layer}constructor(e){super(),this[S]=!0,this.type="scene",this.layer=e}get id(){return this.layer.id}}var F=r(4146),x=r(55726),L=r(52136),T=r(18768),E=r(69208),j=r(47685),O=r(34287),P=r(8303),_=r(25036),R=r(58947),Z=r(82935),U=r(60694),D=r(92009),N=r(4071),$=r(10873),q=r(15426),k=r(67202),H=r(17036),G=r(95466),K=r(30524),V=r(50805),Q=r(20557),B=r(46499),J=r(39383),z=r(37352),W=r(2976),Y=r(86390),X=r(25482);let ee=class extends X.o{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"name",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"field",void 0),(0,i.Cg)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"currentRangeExtent",void 0),(0,i.Cg)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"fullRangeExtent",void 0),(0,i.Cg)([(0,f.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,i.Cg)([(0,f.$K)("esri.layers.support.RangeInfo")],ee);var te,re=r(11254),ie=r(4718),se=r(87024),ne=r(67076),oe=r(39829);let ae=te=class extends((0,X.T)(a.A.ofType(oe.A))){constructor(e){super(e)}clone(){return new te(this.items.map(e=>e.clone()))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map(r=>{if(!t.equals(r.spatialReference)){if(!(0,v.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new ne.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new oe.A;(0,v.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i}).filter(e=>null!=e):this.toArray().map(t=>t.toJSON(e))}static fromJSON(e,t){const r=new te;return e.forEach(e=>r.add(oe.A.fromJSON(e,t))),r}};ae=te=(0,i.Cg)([(0,f.$K)("esri.layers.support.PolygonCollection")],ae);const le=ae;var ue,de=r(97159),ce=r(36005);let pe=ue=class extends X.o{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new le,this._geometriesSource=null}initialize(){this.addHandles((0,y.on)(()=>this.geometries,"after-changes",()=>this.geometries=this.geometries,y.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=le.fromJSON(e,r):"web-scene"!==r.origin&&"portal-item"!==r.origin||(this._geometriesSource={url:(0,de.f)(e,r),context:r})}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,s=await(0,re.A)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),o=s.data.map(e=>({...e,spatialReference:n}));this.geometries=le.fromJSON(o,i),this._geometriesSource=null}clone(){const e=new ue({geometries:(0,ie.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i.Cg)([(0,f.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],pe.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,f.MZ)({type:le,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,se.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],pe.prototype,"geometries",void 0),(0,i.Cg)([(0,ce.w)(["web-scene","portal-item","service"],"geometries")],pe.prototype,"readGeometries",null),pe=ue=(0,i.Cg)([(0,f.$K)("esri.layers.support.SceneFilter")],pe);const he=pe;function ye({associatedLayer:e,serviceUpdateTimeStamp:t}){const r=e?.editingInfo?.lastEditDate,i=e?.serverGens,s=null!=r,n=null!=t,o=s&&n&&t.lastUpdate!==r.getTime();return s&&(o||!n&&i?.minServerGen!==i?.serverGen)}var fe=r(84952);let ge=class extends X.o{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i.Cg)([(0,f.MZ)({type:String})],ge.prototype,"endTimeField",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],ge.prototype,"startTimeField",void 0),ge=(0,i.Cg)([(0,f.$K)("esri.layers.support.SceneServiceTimeInfo")],ge);var me=r(96184),ve=r(8947),we=r(41214),be=r(97552),Me=r(24212),Ie=r(30291);async function Ae(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(Se(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function Se(e){const{BlobReader:t,ZipReader:i,BlobWriter:s}=await Promise.all([r.e(8825),r.e(9588)]).then(r.bind(r,9588)),n=[],o=new i(new t(e));return(await o.getEntries()).forEach(e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new s;n.push(e.getData(t).then(t=>new File([t],e.filename)))}),Promise.all(n)}var Ce=r(79677),Fe=r(10184),xe=r(5682),Le=r(45671),Te=r(78553);const Ee=new Set(["3DObject","Point"]),je=(0,H.p)();let Oe=class extends((0,j.w6)((0,R.w6)((0,T.b)((0,O.q)((0,P.A)((0,_.j)((0,p.M)((0,E.d)((0,L.p)((0,o.OU)(F.A))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new C(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new a.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=(0,c.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,q.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new G.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:V.W4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,q.C$)(this.associatedLayer)}get geometryType(){return _e[this.profile]||"mesh"}set renderer(e){(0,K.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:N.P;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:n,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:a},data:{supportsZ:l,supportsM:u,isVersioned:d,supportsAttachment:c},operations:{supportsEditing:p,supportsAdd:h,supportsUpdate:y,supportsDelete:f,supportsQuery:g,supportsQueryAttachments:m,supportsAsyncConvert3D:v},attachment:w}=e,b=e.operations.supportsChangeTracking,M=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:a,supportsRollbackOnFailure:s,supportsGeometryUpdate:M&&o,supportsUploadWithItemId:n},data:{supportsAttachment:c,supportsZ:l,supportsM:u,isVersioned:d,queryFormats:e.data.queryFormats,sourceFormats:e.data.sourceFormats},operations:{supportsQuery:g,supportsQueryAttachments:m,supportsEditing:p&&b,supportsAdd:M&&h&&b,supportsDelete:M&&f&&b,supportsUpdate:y&&b,supportsAsyncConvert3D:v},attachment:w}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Pe[r]?Pe[r]:(d.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return(0,K.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,K.sv)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,ve.L)(this,{origin:"service"},t),(0,K.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){d.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new be.A;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryModels(e,t){const[i,{queryModels:s}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(r.bind(r,41653))]);return s(this,i,e,t)}async queryModel(e,t){const[i,{queryModel:s}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(r.bind(r,41653))]);return s(this,i,e,t)}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,K.hL)(this.fieldsIndex,await(0,Le.TO)(this,(0,Le.D8)(this)));return(0,xe.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new l.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new s.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i.origin=this.graphicOrigin,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(d.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,Ie.tn)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(6247).then(r.bind(r,78628));let s=t;await this.load();const n=this.associatedLayer;if(!n)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();const{globalIdField:o}=n,a=!!n.infoFor3D,u=s?.globalIdUsed??!0;if(a&&null==o)throw new l.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(a&&!u)throw new l.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,U.Wo)(n.url)&&a&&null!=e.deleteFeatures&&null!=o&&(s={...s,globalIdToObjectId:await(0,q.GA)(n,e.deleteFeatures,o)}),i(this,n.source,e,s)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const i=e=>{throw d.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||i(new l.A("invalid:layer","SceneLayer has no capability for mesh conversion"));const s=await this.extractAndFilterFiles(e);(0,h.Te)(t);const n=s.reduce((e,t)=>(0,Q.oF)(this.infoFor3D,t)?e+1:e,0);0===n&&i(new x.VP),n>1&&i(new x.XQ);const o=this.spatialReference,a=t.origin,u=await(0,v.projectAsync)(a??t.defaultOrigin??new m.A({x:0,y:0,z:0,spatialReference:o}),o,t),c=o.isGeographic?"local":"georeferenced",{createWithExternalSource:p}=await Promise.all([r.e(1843),r.e(5530),r.e(7869),r.e(118),r.e(237)]).then(r.bind(r,40118));(0,h.Te)(t);const y=p(u,{type:"client",files:s},{vertexSpace:c,transform:(0,Y.Z)(o),unitConversionDisabled:!0}),[f]=await this.uploadAssets([y],{...t,useAssetOrigin:!a});return f}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await Ae(e)).filter(e=>(0,Q.fu)(t,e)):e}validateLayer(e){if(e.layerType&&!Ee.has(e.layerType))throw new l.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new l.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new l.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=(0,g.oY)(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);s<n&&(2===n||3===n)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,U.Wo)(this.associatedLayer?.url)&&ye(this)&&(0,g.oY)(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,D.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await W.U.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,apiKey:this.apiKey,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,h.zf)(e)||this._logWarningOnPopupEnabled().catch(()=>{})}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,u.rE)(e));try{await(0,y.C_)(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(e){return void(0,h.jH)(e)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?d.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):d.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,Me.XF)(d.A.getLogger(this),(0,Me.$7)("Mesh scene layers","relative-to-scene",e)),(0,Me.XF)(d.A.getLogger(this),(0,Me.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:s,customParameters:n,apiKey:o,signal:a}){if(null==t)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");const u=i.get(e);if(null==u)throw new l.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);const d=t.find(e=>e.name===u.name);if(null==d)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");const c=(0,fe.fj)(s,d.href),{data:p}=await(0,re.A)(c,{query:{f:"json",...n,token:o},responseType:"json",signal:a});return p}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(ye({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const s=async t=>{let i=null;try{const r=await this.fetchStatistics(t,e);i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:s,min:n,maxTimeStr:o,max:a}=i,l=t===r?s??n:o??a;return null!=l?new Date(l):null},[n,o]=await Promise.all([s(r),s(i)]);if(null!=r&&null==n||null!=i&&null==o)return;const a=new Ce.A({start:n,end:o});this.setAtOrigin("timeInfo",new me.A({endField:i,startField:r,fullTimeExtent:a}),"service")}};(0,i.Cg)([(0,f.MZ)({types:{key:"type",base:null,typeMap:{selection:k.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],Oe.prototype,"featureReduction",void 0),(0,i.Cg)([(0,f.MZ)({type:[ee],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Oe.prototype,"rangeInfos",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],Oe.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"]})],Oe.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:["ArcGISSceneServiceLayer"]})],Oe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1},readOnly:!0})],Oe.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({...je.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Oe.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)()],Oe.prototype,"types",null),(0,i.Cg)([(0,f.MZ)()],Oe.prototype,"typeIdField",null),(0,i.Cg)([(0,f.MZ)()],Oe.prototype,"templates",null),(0,i.Cg)([(0,f.MZ)()],Oe.prototype,"formTemplate",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],Oe.prototype,"fieldsIndex",null),(0,i.Cg)([(0,f.MZ)({type:z.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Oe.prototype,"floorInfo",void 0),(0,i.Cg)([(0,f.MZ)(je.outFields)],Oe.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)({type:V.W4,readOnly:!0,json:{read:!1},clonable:!1})],Oe.prototype,"nodePages",void 0),(0,i.Cg)([(0,ce.w)("service","nodePages",["nodePages","pointNodePages"])],Oe.prototype,"readNodePages",null),(0,i.Cg)([(0,f.MZ)({type:[V.uV],readOnly:!0,clonable:!1})],Oe.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({type:[V.Ot],readOnly:!0,clonable:!1})],Oe.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({type:[V.L0],readOnly:!0,clonable:!1})],Oe.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,f.MZ)({type:a.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Oe.prototype,"excludeObjectIds",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Oe.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,f.MZ)({type:he,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Oe.prototype,"filter",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Oe.prototype,"path",void 0),(0,i.Cg)([(0,f.MZ)($.Yj)],Oe.prototype,"elevationInfo",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Oe.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Oe.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,f.MZ)({type:String})],Oe.prototype,"geometryType",null),(0,i.Cg)([(0,f.MZ)($.kF)],Oe.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[B.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:J.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:J.w},write:!0}})],Oe.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)($.fV)],Oe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,Te.D)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Oe.prototype,"opacity",void 0),(0,i.Cg)([(0,f.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Oe.prototype,"priority",void 0),(0,i.Cg)([(0,f.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Oe.prototype,"semantic",void 0),(0,i.Cg)([(0,f.MZ)({types:we.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Oe.prototype,"renderer",null),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],Oe.prototype,"cachedDrawingInfo",void 0),(0,i.Cg)([(0,ce.w)("service","cachedDrawingInfo")],Oe.prototype,"readCachedDrawingInfo",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Oe.prototype,"capabilities",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{read:!1}})],Oe.prototype,"editingEnabled",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Oe.prototype,"infoFor3D",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Oe.prototype,"relationships",null),(0,i.Cg)([(0,f.MZ)($.M6)],Oe.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],Oe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Oe.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)($.zQ)],Oe.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!1}})],Oe.prototype,"objectIdField",void 0),(0,i.Cg)([(0,ce.w)("service","objectIdField",["objectIdField","fields"])],Oe.prototype,"readObjectIdField",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!1}})],Oe.prototype,"globalIdField",void 0),(0,i.Cg)([(0,ce.w)("service","globalIdField",["globalIdField","fields"])],Oe.prototype,"readGlobalIdField",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,type:String,json:{read:!1}})],Oe.prototype,"displayField",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{read:!1}})],Oe.prototype,"profile",void 0),(0,i.Cg)([(0,ce.w)("service","profile",["store.profile"])],Oe.prototype,"readProfile",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Oe.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,f.MZ)($.PY)],Oe.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],Oe.prototype,"serviceItemId",void 0),(0,i.Cg)([(0,f.MZ)(Z.B)],Oe.prototype,"useViewTime",null),(0,i.Cg)([(0,f.MZ)({type:me.A,json:{read:!1,write:!1}})],Oe.prototype,"timeInfo",null),(0,i.Cg)([(0,f.MZ)({type:Ce.A,json:{read:!1,write:!1}})],Oe.prototype,"timeExtent",null),(0,i.Cg)([(0,f.MZ)({type:Fe.A,json:{read:!1,write:!1}})],Oe.prototype,"timeOffset",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],Oe.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,f.MZ)({type:ge,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],Oe.prototype,"serviceTimeInfo",void 0),Oe=(0,i.Cg)([(0,f.$K)("esri.layers.SceneLayer")],Oe);const Pe={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},_e={"mesh-pyramids":"mesh",points:"point"},Re=Oe},55726(e,t,r){r.d(t,{$1:()=>u,H2:()=>h,MT:()=>y,VP:()=>f,WF:()=>d,Wt:()=>o,XQ:()=>g,hK:()=>p,nS:()=>c,uh:()=>a,xY:()=>l});var i=r(49186);const s="upload-assets",n=()=>new Error;class o extends i.A{constructor(){super(`${s}:unsupported`,"Layer does not support asset uploads.",n())}}class a extends i.A{constructor(){super(`${s}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.A{constructor(){super(`${s}:no-supported-source`,"No supported external source found",n())}}class u extends i.A{constructor(){super(`${s}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class d extends i.A{constructor(){super(`${s}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class c extends i.A{constructor(e,t){super(`${s}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class p extends i.A{constructor(e,t){super(`${s}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class h extends i.A{constructor(e){super(`${s}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class y extends i.A{constructor(){super(`${s}:convert3D-failed`,"convert3D failed.")}}class f extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class g extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},18768(e,t,r){var i=r(5482),s=r(53966),n=r(91429),o=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(5482),s=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},47685(e,t,r){r.d(t,{Mk:()=>h,Zk:()=>c});var i=r(5482),s=r(65529),n=r(4718),o=r(91429),a=r(20816);const l=new s.bk;function u(e){return l.on("apply-edits",new WeakRef(e))}function d(e){return l.on("update-moment",new WeakRef(e))}function c(e,t,r=null,i=!1){const s=Promise.withResolvers();return i=null==t||i,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const p=Symbol();function h(e){return null!=e&&"object"==typeof e&&p in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,r){const i=new URL(e).host,s=a.Z3.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}r.d(t,["w6",0,e=>{var t;const r=e;let s=class extends r{static{t=p}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),d=y(this),c=y(this)&&f(t,i,this.gdbVersion);if(!a||d&&!c||!l&&!u&&!s)return;const p=o.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){const{adds:t,updates:i,deletes:s}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",o),o}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));p.catch(()=>{}),this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=y(this),o=y(this)&&f(t,r,this.gdbVersion),a=y(this)&&!f(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,a.w5)(e,t)}};return(0,i.Cg)([(0,o.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},8303(e,t,r){var i=r(5482),s=r(92602),n=r(70333),o=r(11254),a=r(60999),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(17676),h=r(84952),y=r(91429),f=r(77548),g=r(20655),m=r(80812),v=r(41318),w=r(10407),b=r(36005),M=r(43937);const I={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let A=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),i=new AbortController,s=(0,u.rE)(i);return this.addHandles(s,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:i.signal})}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!n.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let o,a;if(s)o=r.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,h.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,d=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:d}};try{if(s?await r.reload():(r=new m.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:d}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,h.S8)(s.restUrl)===(0,h.S8)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,d=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return d.ok?v.A.fromJSON(d.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return r&&i&&!(0,h.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,y.MZ)({type:m.default})],A.prototype,"portalItem",null),(0,i.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,i.Cg)([(0,M.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],A),A}])},25036(e,t,r){var i=r(5482),s=r(91429);r.d(t,["j",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},82935(e,t,r){var i=r(5482),s=r(91429),n=r(89317),o=r(30524),a=r(96184),l=r(73133),u=r(79677),d=r(10184),c=r(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:n.K}}};r.d(t,["B",0,p,"e",0,e=>{const t=e;let r=class extends t{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=l.j.fromJSON(r.timeOffsetUnits);return i&&s?new d.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:d.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(p)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},67202(e,t,r){r.d(t,{A:()=>a});var i,s=r(5482),n=r(25482),o=r(91429);let a=i=class extends n.o{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s.Cg)([(0,o.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],a.prototype,"type",void 0),a=i=(0,s.Cg)([(0,o.$K)("esri.layers.support.FeatureReductionSelection")],a)},96184(e,t,r){r.d(t,{A:()=>h});var i=r(5482),s=r(69540),n=r(25482),o=r(91429),a=r(79677),l=r(10184),u=r(56400),d=r(36005),c=r(43937);function p(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?p(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?p(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,d.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,c.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,c.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],h)},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),s=r(53966),n=r(20437),o=r(95466),a=r(30524);function l(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},20557(e,t,r){r.d(t,{Fm:()=>l,Hz:()=>g,JQ:()=>f,JZ:()=>C,ND:()=>v,R_:()=>o,U9:()=>y,_h:()=>b,be:()=>c,fE:()=>h,fu:()=>s,nr:()=>m,oF:()=>n,qv:()=>S,rP:()=>p,rq:()=>u,z$:()=>d});const i=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=M(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const r=u(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function o(e,t){return I(function(e,t){const r=e.toLowerCase();return w(t).find(e=>A(e)===r)}(e,t))}function a(e,t){return I(M(e,t))}function l(e,t){return A(b(e,t))}function u(e,t){return a(e.name,t)??o(e.type,t)}function d(e,t,r){return o(e,r)??a(t,r)}function c(e,t){if(!e||!b(e,t))return;const r=/^3d_(.+)$/iu.exec(e)?.[1]?.toLowerCase();return r||void 0}function p(e,t){return(e??[]).map(e=>c(e,t)).filter(e=>!!e)}function h(e,t){return I(t.find(r=>c(I(r),t)===e))}function y({supportedFormats:e}){return d("model/gltf-binary","glb",e)}function f(e){const t=y(e);return null!=t&&e.editFormats.includes(t)}function g(e){if(!e)return null;const t=y(e),r=function({supportedFormats:e}){return d("model/gltf+json","gltf",e)}(e);let i=null;for(const s of e.queryFormats){if(s===t)return s;s===r&&(i=s)}return i}function m({supportedFormats:e}){return d("application/esri3do-SR_world","wld",e)}function v({supportedFormats:e}){return d("application/esri3do-SR_prj","prj",e)}function w(e){return[...i,...e]}function b(e,t){return w(t).find(t=>I(t)===e)}function M(e,t){const r=e.toLowerCase();return w(t).find(e=>S(e).some(e=>r.endsWith(e)))}function I(e){return e?.[0]}function A(e){return e?.[1].toLowerCase()}function S(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}function C(e){return e.tables?.find(e=>"assetMaps"===e.role)}},86390(e,t,r){r.d(t,{Z:()=>n});var i=r(86211),s=r(73836);function n(e){const t=1/(0,i.GA)(e,1);return 1!==t?new s.A({scale:[t,t,t]}):void 0}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),s=r(53966),n=r(84952),o=r(60694),a=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},n=(0,i.o8)(a.OZ),l=n.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,s){(0,o.LS)(this,e,r,t,s)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const r=(0,o.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},i=(0,n.An)(e.url);return null!=i&&(null!=e.dynamicDataSource?i.path=(0,n.fj)(i.path,"dynamicLayer"):null!=e.layerId&&(i.path=(0,n.fj)(i.path,r??"",e.layerId.toString()))),i}},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>o,OM:()=>u,Sm:()=>d,Y:()=>a,bK:()=>l,sQ:()=>c});var i=r(91218),s=r(16930),n=r(28735);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,p.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function d(e,t,r){r?o(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const r=s.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){const{portal:t,isOrgItem:r,itemControl:i}=e,s=t.user?.privileges;let n=!s||s.includes("features:user:edit"),o=!!r&&!!s?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:a}}}r.d(t,["mm",0,p])},85648(e,t,r){r.d(t,{n:()=>s});var i=r(84952);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const n={},o="text/plain",a=n[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},8947(e,t,r){r.d(t,{L:()=>o});var i=r(60999),s=r(17676),n=r(67076);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.Ke)(o.populateFromStyle());if((0,s.Te)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>l,w5:()=>u});var i=r(11254);const s=(0,r(13069).vD)(),n=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,i=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),a=await t(n,e,new i({sessionId:s,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,s,"Z3",0,n])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3103,6956,7745],{31464(e,t,i){i.d(t,{Cv:()=>m,Nk:()=>d,lK:()=>g});var r=i(4576),n=i(91218),s=i(21325),o=i(28735);const a=[0,0];function l(e,t){if(!t)return null;if("x"in t){const i={x:0,y:0};return[i.x,i.y]=e(t.x,t.y,a),null!=t.z&&(i.z=t.z),null!=t.m&&(i.m=t.m),i}if("xmin"in t){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=e(t.xmin,t.ymin,a),[i.xmax,i.ymax]=e(t.xmax,t.ymax,a),t.hasZ&&(i.zmin=t.zmin,i.zmax=t.zmax,i.hasZ=!0),t.hasM&&(i.mmin=t.mmin,i.mmax=t.mmax,i.hasM=!0),i}return"rings"in t?{rings:u(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:u(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:p(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function u(e,t){const i=[];for(const r of e)i.push(p(r,t));return i}function p(e,t){const i=[];for(const r of e){const e=t(r[0],r[1],[0,0]);i.push(e),r.length>2&&e.push(r[2]),r.length>3&&e.push(r[3])}return i}async function d(e,t){if(!e||!t)return;const i=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(r.Ru):[e];await(0,n.initializeProjection)(i.map(e=>({source:e,dest:t})))}const y=l.bind(null,o.je),c=l.bind(null,o.tD);function m(e,t,i,r){if(!e)return null;if(i||(i=t,t=e.spatialReference),!(0,s.fn)(t)||!(0,s.fn)(i)||(0,s.aI)(t,i))return e;if((0,o.y7)(t,i)){const t=(0,s.K8)(i)?y(e):c(e);return t.spatialReference=i,t}return(0,n.projectMany)([e],t,i,r)[0]}const f=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,i,r){if(!e?.length||!t||!i||(0,s.aI)(t,i))return e;const n={geometries:e,inSpatialReference:t,outSpatialReference:i,options:r,resolve:Promise.withResolvers()};return this._jobs.push(n),this._timer??=setTimeout(this._process,10),n.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:i,outSpatialReference:r,resolve:a,options:l}=e,u=t.filter(e=>null!=e);let p;p=(0,o.y7)(i,r)&&null==l?.extendedParams?(0,s.K8)(r)?u.map(y):u.map(c):(0,n.projectMany)(u,i,r,l);let d=0;const m=t.map(e=>null==e?null:p[d++]);a.resolve(m),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(e,t,i,r){return f.push(e,t,i,r)}},58727(e,t,i){i.d(t,{GC:()=>h,T2:()=>v,dO:()=>S,iJ:()=>g});var r=i(49186),n=i(66552),s=i(86211),o=i(39829),a=i(91218),l=i(90634),u=i(60408),p=i(65864),d=i(52039),y=i(21325),c=i(31464);const m=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),f=Object.freeze({});async function g(e,t,i){const r=e.bin;return r.onField&&(r.onField=r.onField.trim()),r.onExpression?.value&&(r.onExpression.value=r.onExpression.value.trim()),r.splitBy&&(r.splitBy.value&&(r.splitBy.value=r.splitBy.value.trim()),r.splitBy.outAlias&&(r.splitBy.outAlias=r.splitBy.outAlias.trim())),r.stackBy&&(r.stackBy.value&&(r.stackBy.value=r.stackBy.value.trim()),r.stackBy.outAlias&&(r.stackBy.outAlias=r.stackBy.outAlias.trim())),"normalizationField"in r.parameters&&r.parameters.normalizationField&&(r.parameters.normalizationField=r.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),h(e,t,i)}async function h(e,t,i){const{outFields:r,orderByFields:n,groupByFieldsForStatistics:s,outStatistics:o}=e;if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(o)for(let e=0;e<o.length;e++)o[e].onStatisticField&&(o[e].onStatisticField=o[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),v(e,t,i)}async function v(e,t,i){if(!e)return null;let{where:r}=e;if(e.where=r=r?.trim(),(!r||/^1 *= *1$/.test(r)||t&&t===r)&&(e.where=null),!e.geometry)return e;let n=await w(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;n=(0,l.HA)(n),n.spatialReference=t}if(!n)return e;await(0,c.Nk)(n.spatialReference,i);let[s]=await(0,d.el)((0,p.rS)(n));if(null==s)throw f;let m=!1;((0,u.ZC)(s)||(0,u.Bi)(s)||(0,u.Rg)(s))&&(m=!(0,y.aI)(s.spatialReference,i)&&!(0,a.canProjectWithoutEngine)(s.spatialReference,i)),m&&(0,u.ZC)(s)&&(s=o.A.fromExtent(s));const g="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,h=m&&g?{extendedParams:{densificationStep:8*g}}:void 0,v=s.toJSON(),S=(0,c.Cv)(v,v.spatialReference,i,h);if(!S)throw f;return S.spatialReference=i,e.geometry=S,e}async function w(e){const{distance:t,units:n}=e,o=e.geometry;if(!t||"vertexAttributes"in o)return o;const a=o.spatialReference,l=n?m.fromJSON(n):(0,s.Ij)(a),p=a&&((0,y.EA)(a)||(0,y.K8)(a))?o:await(0,c.Nk)(a,y.KK).then(()=>(0,c.Cv)(o,y.KK)),d=await i.e(9159).then(i.bind(i,49159));await d.load();const f=d.execute(p,t||1,{unit:l})??void 0;if(!f||!(0,u.Bi)(f)||0===f.rings.length)throw new r.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return f}function S(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}i.d(t,["VY",0,m,"v8",0,f])},33103(e,t,i){i.r(t),i.d(t,{executeAttributeBinsQuery:()=>c});var r=i(2272),n=i(11254),s=i(84952),o=i(60408),a=i(52039),l=i(21325),u=i(10536);function p(e){const t=e.geometry,i=e.toJSON(),r=i;let n,s,a;if(null!=t&&(s=t.spatialReference,a=(0,l.YX)(s),r.geometryType=(0,o.$B)(t),r.geometry=JSON.stringify(t),r.inSR=a),i.outSR?(r.outSR=(0,l.YX)(i.outSR),n=e.outSpatialReference):t&&(r.outSR=r.inSR,n=s),r.bin&&=JSON.stringify(r.bin),r.quantizationParameters&&=JSON.stringify(r.quantizationParameters),r.outStatistics&&=JSON.stringify(r.outStatistics),r.outTimeReference&&=JSON.stringify(r.outTimeReference),i.timeExtent){const e=i.timeExtent,{start:t,end:n}=e;null==t&&null==n||(r.time=t===n?t:`${t??"null"},${n??"null"}`),delete i.timeExtent}return e.defaultSpatialReference&&(0,l.aI)(s,n)&&(r.defaultSR=r.inSR,delete r.inSR,delete r.outSR),r}var d=i(37745),y=i(14575);async function c(e,t,i){const{data:o}=await async function(e,t,i){return null!=t.timeExtent&&t.timeExtent.isEmpty?{data:{features:[]}}:await async function(e,t,i={}){const r="string"==typeof e?(0,s.An)(e):e,[o]=await(0,a.el)([t.geometry],i);null!=o&&((t=t.clone()).geometry=o);const l=(0,u.z)({...r.query,f:"json",...p(t)});return(0,n.A)((0,s.fj)(r.path,"queryBins"),{...i,query:{...l,...i.query}})}(e,t,i)}((0,r.Dl)(e),y.default.from(t),i);return d.default.fromJSON(o)}},37745(e,t,i){i.r(t),i.d(t,{default:()=>y});var r,n=i(5482),s=i(52106),o=i(4718),a=i(91429);let l=class extends s.A{static{r=this}constructor(e){super(e),this.stackedAttributes=null}cloneShallow(){return new r(Object.assign({stackedAttributes:this.stackedAttributes},super.cloneShallow()))}toJSON(){return{...super.toJSON(),stackedAttributes:(0,o.o8)(this.stackedAttributes)}}};(0,n.Cg)([(0,a.MZ)()],l.prototype,"stackedAttributes",void 0),l=r=(0,n.Cg)([(0,a.$K)("esri.AttributeBinsGraphic")],l);var u=i(69540),p=i(22671),d=i(36005);let y=class extends((0,u.OU)(p.A)){constructor(e){super(e),this.features=[]}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l)}};(0,n.Cg)([(0,a.MZ)({type:[l],json:{write:!0}})],y.prototype,"features",void 0),(0,n.Cg)([(0,d.w)("features")],y.prototype,"readFeatures",null),y=(0,n.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsFeatureSet")],y)},14575(e,t,i){i.d(t,{default:()=>A});var r=i(5482),n=i(69540),s=i(66552),o=i(25482),a=i(53966),l=i(91429),u=i(56507),p=i(16930),d=i(65864),y=i(50498),c=i(58727),m=i(5834),f=i(41266),g=i(59977),h=i(11440),v=i(60909),w=i(58174),S=i(7562),C=i(79677),B=i(56400),x=i(93223);const M=new s.J({asc:"ascending",desc:"descending"}),b={base:f.A,key:"type",typeMap:{"auto-interval":m.A,date:g.A,"fixed-boundaries":h.A,"fixed-interval":v.A}};let A=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,B.wr)(e)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,r.Cg)([(0,l.MZ)({types:b,json:{name:"bin",write:!0}})],A.prototype,"binParameters",void 0),(0,r.Cg)([(0,x.e)(M)],A.prototype,"binOrder",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"cacheHint",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],A.prototype,"datumTransformation",void 0),(0,r.Cg)([(0,l.MZ)({type:p.A,json:{name:"defaultSR",write:!0}})],A.prototype,"defaultSpatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],A.prototype,"distance",void 0),(0,r.Cg)([(0,l.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],A.prototype,"geometry",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"lowerBoundaryAlias",void 0),(0,r.Cg)([(0,l.MZ)({type:p.A,json:{name:"outSR",write:!0}})],A.prototype,"outSpatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:[S.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],A.prototype,"outStatistics",void 0),(0,r.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,i)=>{e&&(t[i]={ianaTimeZone:e})}}}})],A.prototype,"outTimeZone",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy:e=>({enabled:null!=e})}}})],A.prototype,"returnAggregateIds",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"returnDistinctValues",void 0),(0,r.Cg)([(0,x.e)(w.x,{name:"spatialRel"})],A.prototype,"spatialRelationship",void 0),(0,r.Cg)([(0,l.MZ)({type:C.A,json:{write:!0}})],A.prototype,"timeExtent",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"upperBoundaryAlias",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:c.VY.read,write:{writer:c.VY.write,overridePolicy(e){return{enabled:null!=e&&!!this.distance}}}}})],A.prototype,"units",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=(0,r.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],A),A.from=(0,u.dp)(A)},5834(e,t,i){i.d(t,{A:()=>d});var r=i(5482),n=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(41366),u=i(93223);function p(e,t,i){(0,n.sM)(i,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(a.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],d.prototype,"numBins",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],d.prototype,"end",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],d.prototype,"start",void 0),(0,r.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,r.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],d),d.from=(0,o.dp)(d)},41266(e,t,i){i.d(t,{A:()=>f});var r=i(5482),n=i(69540),s=i(66552),o=i(25482),a=i(91429),l=i(56507),u=i(93223);const p=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let d=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],d.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:String})],d.prototype,"responseType",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"value",void 0),(0,r.Cg)([(0,u.e)(p)],d.prototype,"valueType",void 0),d=(0,r.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],d);const y=d;d.from=(0,l.dp)(d);const c=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),m=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let f=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],f.prototype,"expression",void 0),(0,r.Cg)([(0,u.e)(c,{name:"onExpression.valueType"})],f.prototype,"expressionValueType",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],f.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"firstDayOfWeek",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hideUpperBound",void 0),(0,r.Cg)([(0,a.MZ)({type:y,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],f.prototype,"splitBy",void 0),(0,r.Cg)([(0,a.MZ)({type:y,json:{write:{target:{stackBy:{type:y},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>y.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],f.prototype,"stackBy",void 0),(0,r.Cg)([(0,u.e)(m)],f.prototype,"transformation",void 0),f=(0,r.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],f)},59977(e,t,i){i.d(t,{A:()=>g});var r=i(5482),n=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(69540),u=i(25482),p=i(57231),d=i(93223);let y=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],y.prototype,"value",void 0),(0,r.Cg)([(0,d.e)(p.g)],y.prototype,"unit",void 0),y=(0,r.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],y);const c=y;function m(e,t,i){(0,n.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function f(e,t){const i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}y.from=(0,o.dp)(y);let g=class extends a.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,r.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>f(t,"end")},write:{writer:m}}})],g.prototype,"end",void 0),(0,r.Cg)([(0,s.MZ)({type:c,json:{name:"parameters",write:!0}})],g.prototype,"interval",void 0),(0,r.Cg)([(0,s.MZ)({type:c,json:{name:"parameters.offset",write:!0}})],g.prototype,"offset",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],g.prototype,"returnFullIntervalBin",void 0),(0,r.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>f(t,"start")},write:{writer:m}}})],g.prototype,"start",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],g.prototype,"snapToData",void 0),(0,r.Cg)([(0,d.e)({dateBin:"date"},{readOnly:!0})],g.prototype,"type",void 0),g=(0,r.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],g),g.from=(0,o.dp)(g)},57231(e,t,i){const r=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});i.d(t,["g",0,r])},11440(e,t,i){i.d(t,{A:()=>u});var r=i(5482),n=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(93223);let u=class extends a.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,n.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,r.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,o.dp)(u)},60909(e,t,i){i.d(t,{A:()=>d});var r=i(5482),n=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(41366),u=i(93223);function p(e,t,i){(0,n.sM)(i,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(a.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],d.prototype,"end",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],d.prototype,"interval",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],d.prototype,"start",void 0),(0,r.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,r.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],d),d.from=(0,o.dp)(d)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[216],{97835(e,t,n){n.d(t,{guessExtensionFromURI:()=>o});var a=n(11254);const s=/\.(\w+)$/;function o(e){const t=new URL(e).pathname.match(s);return!t||t.length<2?null:t[1].toUpperCase()}n.d(t,["getDatasetFormat",0,async(e,t)=>{const n=await(0,a.A)(e,{...t,method:"head"}),s=n?.getHeader?.("Content-Type");return s?s.split("/")[1]:null}])}}]);