@arcgis/core 4.28.0-next.20230919 → 4.28.0-next.20230921

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 (412) hide show
  1. package/Color.js +1 -1
  2. package/WebScene.js +1 -1
  3. package/arcade/ArcadeDate.js +1 -1
  4. package/arcade/executionError.js +1 -1
  5. package/arcade/featureset/support/errorsupport.js +1 -1
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/06621efb2573fad23b45.js +1 -0
  8. package/assets/esri/core/workers/chunks/072b4e041b8630c513a0.js +1 -0
  9. package/assets/esri/core/workers/chunks/101f776316a85b708927.js +1 -0
  10. package/assets/esri/core/workers/chunks/107546ef77a45d31c7ac.js +1 -0
  11. package/assets/esri/core/workers/chunks/10fd951bd296b2beeeba.js +1 -0
  12. package/assets/esri/core/workers/chunks/114269dda1d296893908.js +1 -0
  13. package/assets/esri/core/workers/chunks/126df6237fc80608344e.js +1 -0
  14. package/assets/esri/core/workers/chunks/134524cf6b1ebf208338.js +1 -0
  15. package/assets/esri/core/workers/chunks/17a36704e63ca1b34c5d.js +1 -0
  16. package/assets/esri/core/workers/chunks/1c83f47d446f2bca1721.js +1 -0
  17. package/assets/esri/core/workers/chunks/{09d395a9786607294689.js → 1c8469fbde39d85ee622.js} +1 -1
  18. package/assets/esri/core/workers/chunks/1cbaba30f55f00f7498b.js +1 -0
  19. package/assets/esri/core/workers/chunks/21a9c8aa2a9e9990df41.js +1 -0
  20. package/assets/esri/core/workers/chunks/{506874f562ce11f8914a.js → 243a4eed107d363dfad8.js} +1 -1
  21. package/assets/esri/core/workers/chunks/24629402c647ef6b5f6b.js +1 -0
  22. package/assets/esri/core/workers/chunks/2a1c1be9c202462cf54d.js +1 -0
  23. package/assets/esri/core/workers/chunks/2bb69d76a13564e8e455.js +1 -0
  24. package/assets/esri/core/workers/chunks/2d0d03cbea83c868edba.js +1 -0
  25. package/assets/esri/core/workers/chunks/2e130cb2f1038055c07b.js +1 -0
  26. package/assets/esri/core/workers/chunks/32ba4eba730e9232d964.js +1 -0
  27. package/assets/esri/core/workers/chunks/{b428fcb53ecc82b49e66.js → 332689bf60d246485993.js} +1 -1
  28. package/assets/esri/core/workers/chunks/3619e04cbb6691549014.js +1 -0
  29. package/assets/esri/core/workers/chunks/37116fb4c68cf3c3890a.js +1 -0
  30. package/assets/esri/core/workers/chunks/{3a7ad0d24264e2bc2e87.js → 3ca759f72d3bb29e9ea9.js} +22 -22
  31. package/assets/esri/core/workers/chunks/3dbfb4f370a874393822.js +1 -0
  32. package/assets/esri/core/workers/chunks/3f4e9b1663ec521bfe00.js +1 -0
  33. package/assets/esri/core/workers/chunks/406db5c90271a3a203d4.js +1 -0
  34. package/assets/esri/core/workers/chunks/4339ce8aaf87fabb80cc.js +1 -0
  35. package/assets/esri/core/workers/chunks/4369a6c1e0a82ab4db6a.js +1 -0
  36. package/assets/esri/core/workers/chunks/43ba2bacd0f7d19915f7.js +1 -0
  37. package/assets/esri/core/workers/chunks/44b8e75593b7df1843e1.js +1 -0
  38. package/assets/esri/core/workers/chunks/467a821d05df8ec0dc1c.js +1 -0
  39. package/assets/esri/core/workers/chunks/47be4c75dd6372b96fe4.js +1 -0
  40. package/assets/esri/core/workers/chunks/53097659f31750c03a6d.js +1 -0
  41. package/assets/esri/core/workers/chunks/{c1141056581af072aee9.js → 580039dd491854ca325c.js} +1 -1
  42. package/assets/esri/core/workers/chunks/59c00d6fba0fd1c03d01.js +1 -0
  43. package/assets/esri/core/workers/chunks/5a5720caa64a46daadf9.js +1 -0
  44. package/assets/esri/core/workers/chunks/5edb99b58549cd66b394.js +1 -0
  45. package/assets/esri/core/workers/chunks/6203ddf6caad3d356327.js +1 -0
  46. package/assets/esri/core/workers/chunks/652749dc847fcb887234.js +1 -0
  47. package/assets/esri/core/workers/chunks/6c495077cc79e1898927.js +1 -0
  48. package/assets/esri/core/workers/chunks/{e5c3beebd507e1dda35f.js → 749fc49246093d693227.js} +1 -1
  49. package/assets/esri/core/workers/chunks/74d3ecb1a06d9f81e2c5.js +1 -0
  50. package/assets/esri/core/workers/chunks/77c15b1c2729c780f75a.js +1 -0
  51. package/assets/esri/core/workers/chunks/7ea33aa455c5143affb1.js +1 -0
  52. package/assets/esri/core/workers/chunks/7ed70c96fbfe00792e7c.js +1 -0
  53. package/assets/esri/core/workers/chunks/8ab832468300cc4feb5a.js +1 -0
  54. package/assets/esri/core/workers/chunks/90771b0de3e520a1df9a.js +1 -0
  55. package/assets/esri/core/workers/chunks/94188fe381239d48a975.js +1 -0
  56. package/assets/esri/core/workers/chunks/a277c980ba8704939688.js +1 -0
  57. package/assets/esri/core/workers/chunks/b1746c022fe6edaeda55.js +1 -0
  58. package/assets/esri/core/workers/chunks/b449d6bd5851187d419f.js +1 -0
  59. package/assets/esri/core/workers/chunks/bbc0dcd316c5598bc9ad.js +1 -0
  60. package/assets/esri/core/workers/chunks/bc1dc6383e60e7e61d50.js +1 -0
  61. package/assets/esri/core/workers/chunks/bc6323bdc98013da6fe5.js +1 -0
  62. package/assets/esri/core/workers/chunks/bde89b2684b6185992ef.js +1 -0
  63. package/assets/esri/core/workers/chunks/c4bb67150ccd01ea6014.js +1 -0
  64. package/assets/esri/core/workers/chunks/{727548fffd4e270617d3.js → c6ea5aac232d1eca04dd.js} +1 -1
  65. package/assets/esri/core/workers/chunks/c8438c2d9ac48afe4033.js +1 -0
  66. package/assets/esri/core/workers/chunks/c9dfb145f0c1d93e0fbd.js +1 -0
  67. package/assets/esri/core/workers/chunks/cad260881653567bc8f9.js +1 -0
  68. package/assets/esri/core/workers/chunks/cec607d0138351a4952e.js +1 -0
  69. package/assets/esri/core/workers/chunks/d24afa6d8fd0061d9f00.js +1 -0
  70. package/assets/esri/core/workers/chunks/{f147269d85adfb4588ed.js → d9061beaa43065316062.js} +1 -1
  71. package/assets/esri/core/workers/chunks/dd7508d4016715371e0c.js +1 -0
  72. package/assets/esri/core/workers/chunks/dff1c3c38dda2bd1a9d6.js +1 -0
  73. package/assets/esri/core/workers/chunks/e55f7fc7eff0074ce0fc.js +1 -0
  74. package/assets/esri/core/workers/chunks/eb01f4cdb9b918cc61e7.js +1 -0
  75. package/assets/esri/core/workers/chunks/ec8258c9dc1491e97fc8.js +1 -0
  76. package/assets/esri/core/workers/chunks/ed1fbc1bc8d50453e2f5.js +1 -0
  77. package/assets/esri/core/workers/chunks/eeac53da496de4cd4182.js +1 -0
  78. package/assets/esri/core/workers/chunks/eef27d305023034084a4.js +1 -0
  79. package/assets/esri/core/workers/chunks/f38c54ada9e7012a2960.js +1 -0
  80. package/assets/esri/core/workers/chunks/f508ccfde6425dabe9ac.js +1 -0
  81. package/assets/esri/core/workers/chunks/f5e0ff5292b9fd18fc92.js +1 -0
  82. package/assets/esri/core/workers/chunks/f5eb8b5021620be7538e.js +1 -0
  83. package/assets/esri/images/portal/onlinemedialayer16.png +0 -0
  84. package/assets/esri/themes/base/widgets/_FeatureForm.scss +2 -1
  85. package/assets/esri/themes/dark/main.css +1 -1
  86. package/assets/esri/themes/light/main.css +1 -1
  87. package/assets/esri/themes/light/view.css +1 -1
  88. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm.json +1 -1
  89. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ar.json +1 -1
  90. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bg.json +1 -1
  91. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bs.json +1 -1
  92. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ca.json +1 -1
  93. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_cs.json +1 -1
  94. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_da.json +1 -1
  95. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_de.json +1 -1
  96. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_el.json +1 -1
  97. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_en.json +1 -1
  98. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_es.json +1 -1
  99. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_et.json +1 -1
  100. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fi.json +1 -1
  101. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fr.json +1 -1
  102. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_he.json +1 -1
  103. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hr.json +1 -1
  104. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hu.json +1 -1
  105. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_id.json +1 -1
  106. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_it.json +1 -1
  107. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ja.json +1 -1
  108. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ko.json +1 -1
  109. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lt.json +1 -1
  110. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lv.json +1 -1
  111. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nb.json +1 -1
  112. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nl.json +1 -1
  113. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pl.json +1 -1
  114. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-BR.json +1 -1
  115. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-PT.json +1 -1
  116. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ro.json +1 -1
  117. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ru.json +1 -1
  118. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sk.json +1 -1
  119. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sl.json +1 -1
  120. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sr.json +1 -1
  121. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sv.json +1 -1
  122. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_th.json +1 -1
  123. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_tr.json +1 -1
  124. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_uk.json +1 -1
  125. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_vi.json +1 -1
  126. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-CN.json +1 -1
  127. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-HK.json +1 -1
  128. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-TW.json +1 -1
  129. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace.json +1 -1
  130. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ar.json +1 -1
  131. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_bg.json +1 -1
  132. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_bs.json +1 -1
  133. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ca.json +1 -1
  134. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_cs.json +1 -1
  135. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_da.json +1 -1
  136. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_de.json +1 -1
  137. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_el.json +1 -1
  138. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_en.json +1 -1
  139. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_es.json +1 -1
  140. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_et.json +1 -1
  141. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_fi.json +1 -1
  142. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_fr.json +1 -1
  143. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_he.json +1 -1
  144. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_hr.json +1 -1
  145. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_hu.json +1 -1
  146. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_id.json +1 -1
  147. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_it.json +1 -1
  148. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ja.json +1 -1
  149. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ko.json +1 -1
  150. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_lt.json +1 -1
  151. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_lv.json +1 -1
  152. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_nb.json +1 -1
  153. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_nl.json +1 -1
  154. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pl.json +1 -1
  155. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pt-BR.json +1 -1
  156. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_pt-PT.json +1 -1
  157. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ro.json +1 -1
  158. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_ru.json +1 -1
  159. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sk.json +1 -1
  160. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sl.json +1 -1
  161. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sr.json +1 -1
  162. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_sv.json +1 -1
  163. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_th.json +1 -1
  164. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_tr.json +1 -1
  165. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_uk.json +1 -1
  166. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_vi.json +1 -1
  167. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-CN.json +1 -1
  168. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-HK.json +1 -1
  169. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_zh-TW.json +1 -1
  170. package/chunks/LaserlinePath.glsl.js +5 -1
  171. package/core/HandleOwner.js +1 -1
  172. package/core/MemCache.js +1 -1
  173. package/core/date.js +5 -0
  174. package/core/sql.js +1 -1
  175. package/core/string.js +1 -1
  176. package/interfaces.d.ts +60 -43
  177. package/intl/date.js +1 -1
  178. package/layers/GeoJSONLayer.js +1 -1
  179. package/layers/ImageryLayer.js +1 -1
  180. package/layers/VoxelWasmPerSceneView.js +1 -1
  181. package/layers/WFSLayer.js +1 -1
  182. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  183. package/layers/graphics/sources/MemorySource.js +1 -1
  184. package/layers/graphics/sources/WFSSource.js +1 -1
  185. package/layers/graphics/sources/WFSSourceWorker.js +1 -1
  186. package/layers/graphics/sources/csv/csv.js +1 -1
  187. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  188. package/layers/graphics/sources/geojson/geojson.js +1 -1
  189. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  190. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  191. package/{views/interactive/tooltip/tooltipInfoUnion.js → layers/graphics/sources/support/QueryEngineBuildLayer.js} +1 -0
  192. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  193. package/layers/mixins/SceneService.js +1 -1
  194. package/layers/ogc/wfsUtils.js +1 -1
  195. package/layers/save/utils.js +1 -1
  196. package/layers/support/editableLayers.js +1 -1
  197. package/layers/support/fieldUtils.js +1 -1
  198. package/layers/support/labelFormatUtils.js +1 -1
  199. package/layers/support/layersCreator.js +1 -1
  200. package/layers/support/rasterFunctionUtils.js +1 -1
  201. package/layers/support/rasterFunctions/creators/createBandIndexFunctions.js +1 -1
  202. package/layers/support/rasterFunctions/creators/createDataManagementFunctions.js +1 -1
  203. package/layers/support/rasterFunctions/creators/createLocalFunctions.js +1 -1
  204. package/networks/support/utils.js +1 -1
  205. package/package.json +1 -1
  206. package/portal/PortalItem.js +1 -1
  207. package/portal/support/layersLoader.js +1 -1
  208. package/rest/geometryService/cut.js +1 -1
  209. package/rest/query/operations/query.js +1 -1
  210. package/rest/versionManagement/deleteVersion.js +1 -1
  211. package/rest/versionManagement/gdbVersion/alterVersion.js +1 -1
  212. package/rest/versionManagement/gdbVersion/post.js +1 -1
  213. package/rest/versionManagement/gdbVersion/reconcile.js +1 -1
  214. package/rest/versionManagement/gdbVersion/serverVersionUtils.js +5 -0
  215. package/support/revision.js +1 -1
  216. package/time/timeZoneUtils.js +1 -1
  217. package/views/2d/engine/Stage.js +1 -1
  218. package/views/2d/engine/webgl/mesh/factories/WGLMeshFactory.js +1 -1
  219. package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
  220. package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
  221. package/views/2d/layers/features/sources/DataTileSource.js +1 -1
  222. package/views/2d/layers/features/sources/StreamSource.js +1 -1
  223. package/views/2d/layers/features/support/whereUtils.js +1 -1
  224. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  225. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  226. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  227. package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
  228. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  229. package/views/3d/environment/LocalAtmosphere.js +1 -1
  230. package/views/3d/externalRenderers/StageRenderer.js +1 -1
  231. package/views/3d/interactive/manipulatorUtils.js +1 -1
  232. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  233. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  234. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  235. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  236. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  237. package/views/3d/layers/MediaLayerView3D.js +1 -1
  238. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  239. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  240. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  241. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  242. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  243. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  244. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  245. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  246. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  247. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  248. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  249. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  250. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  251. package/views/3d/layers/support/overlayImageUtils.js +1 -1
  252. package/views/3d/layers/support/patternUtils.js +1 -1
  253. package/views/3d/support/LaserLineRenderer.js +1 -1
  254. package/views/3d/support/StreamDataLoader.js +1 -1
  255. package/views/3d/support/dito.js +1 -1
  256. package/views/3d/support/engineContent/line.js +1 -1
  257. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  258. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  259. package/views/3d/terrain/OverlayRenderer.js +1 -1
  260. package/views/3d/terrain/TerrainRenderer.js +1 -1
  261. package/views/3d/terrain/TileRenderer.js +1 -1
  262. package/views/3d/webgl-engine/collections/Component/ComponentIntersectionData.js +1 -1
  263. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  264. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  265. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  266. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +6 -6
  267. package/views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js +10 -12
  268. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js +8 -21
  269. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  270. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  271. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  272. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  273. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  274. package/views/3d/webgl-engine/lib/Attribute.js +1 -1
  275. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  276. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  277. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  278. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  279. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  280. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  281. package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
  282. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  283. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  284. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  285. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  286. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  287. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  288. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  289. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  290. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  291. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  292. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  293. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  294. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  295. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  296. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  297. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  298. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  299. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  300. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  301. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  302. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  303. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  304. package/views/View.js +1 -1
  305. package/views/draw/DrawGraphicTool.js +1 -1
  306. package/views/draw/support/HighlightHelper.js +1 -1
  307. package/views/draw/support/Reshape.js +1 -1
  308. package/views/draw/support/layerUtils.js +1 -1
  309. package/views/interactive/SegmentLabels.js +1 -1
  310. package/views/interactive/keybindings.js +1 -1
  311. package/views/interactive/tooltip/SketchTooltipInfo.js +1 -1
  312. package/views/interactive/tooltip/TooltipContentWithHelpMessage.js +1 -1
  313. package/views/interactive/tooltip/TooltipEditableField.js +1 -1
  314. package/views/interactive/tooltip/TranslateTooltipInfos.js +1 -1
  315. package/views/interactive/tooltip/content/Fields.js +5 -0
  316. package/views/interactive/tooltip/content/TooltipContentDrawPoint.js +1 -1
  317. package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
  318. package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
  319. package/views/layers/FeatureLayerView.js +1 -1
  320. package/views/webgl/FramebufferObject.js +1 -1
  321. package/webdoc/saveAPIKeyUtils.js +5 -0
  322. package/webdoc/webdocSaveUtils.js +1 -1
  323. package/widgets/BasemapGallery.js +1 -1
  324. package/widgets/BasemapLayerList.js +1 -1
  325. package/widgets/Bookmarks.js +1 -1
  326. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  327. package/widgets/Editor/EditorViewModel.js +1 -1
  328. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  329. package/widgets/Editor/UpdateWorkflow.js +1 -1
  330. package/widgets/Expand.js +1 -1
  331. package/widgets/Feature/FeatureRelationship.js +1 -1
  332. package/widgets/Feature/support/featureUtils.js +1 -1
  333. package/widgets/FeatureForm/EditableInput.js +1 -1
  334. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  335. package/widgets/FeatureForm/RelationshipInput.js +1 -1
  336. package/widgets/FeatureForm.js +1 -1
  337. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  338. package/widgets/Fullscreen.js +1 -1
  339. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  340. package/widgets/Search.js +1 -1
  341. package/widgets/Swipe.js +1 -1
  342. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  343. package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
  344. package/widgets/UtilityNetworkTrace/support/UtilityHelper.js +1 -1
  345. package/widgets/UtilityNetworkTrace.js +1 -1
  346. package/widgets/support/SketchTooltipControls.js +1 -1
  347. package/widgets/support/globalCss.js +1 -1
  348. package/assets/esri/core/workers/chunks/0274b84548cb048562e4.js +0 -1
  349. package/assets/esri/core/workers/chunks/034accc7cab6c88a3b31.js +0 -1
  350. package/assets/esri/core/workers/chunks/0839b45999fcb556e460.js +0 -1
  351. package/assets/esri/core/workers/chunks/09589852b129bfb5624f.js +0 -1
  352. package/assets/esri/core/workers/chunks/132e9e6147304ffd128d.js +0 -1
  353. package/assets/esri/core/workers/chunks/1790ca4193d730f5f206.js +0 -1
  354. package/assets/esri/core/workers/chunks/1a449168d30a688e6128.js +0 -1
  355. package/assets/esri/core/workers/chunks/1c94624fd001c803a814.js +0 -1
  356. package/assets/esri/core/workers/chunks/25ab3bec45de900be36e.js +0 -1
  357. package/assets/esri/core/workers/chunks/273167b2dd46e58b8739.js +0 -1
  358. package/assets/esri/core/workers/chunks/2c5eb8aaad696fa16744.js +0 -1
  359. package/assets/esri/core/workers/chunks/353bad8530710a284592.js +0 -1
  360. package/assets/esri/core/workers/chunks/357d452b8522185cc433.js +0 -1
  361. package/assets/esri/core/workers/chunks/3c2be3d204e6bf87266a.js +0 -1
  362. package/assets/esri/core/workers/chunks/3c2c64832fb498bbaa83.js +0 -1
  363. package/assets/esri/core/workers/chunks/3c4d59018ce8502c65e7.js +0 -1
  364. package/assets/esri/core/workers/chunks/43eff89599f36d83924b.js +0 -1
  365. package/assets/esri/core/workers/chunks/4632ada4af99cab70a61.js +0 -1
  366. package/assets/esri/core/workers/chunks/481eab7879ed5d8a1f67.js +0 -1
  367. package/assets/esri/core/workers/chunks/4b3a5cc435435c81e6a5.js +0 -1
  368. package/assets/esri/core/workers/chunks/4f34fd8c2bb769541e9c.js +0 -1
  369. package/assets/esri/core/workers/chunks/4f5a0bc7411c0db33662.js +0 -1
  370. package/assets/esri/core/workers/chunks/56a4cea67cc579bf7547.js +0 -1
  371. package/assets/esri/core/workers/chunks/56afd89d08c874f620a1.js +0 -1
  372. package/assets/esri/core/workers/chunks/5b08d578521562b166e3.js +0 -1
  373. package/assets/esri/core/workers/chunks/5f938d6da9fd3f3edc74.js +0 -1
  374. package/assets/esri/core/workers/chunks/6108d72faf48a592c8ba.js +0 -1
  375. package/assets/esri/core/workers/chunks/656a8be4ce1bec721366.js +0 -1
  376. package/assets/esri/core/workers/chunks/7531ebc60e9ae61220e0.js +0 -1
  377. package/assets/esri/core/workers/chunks/77923afde29ae1ff10ca.js +0 -1
  378. package/assets/esri/core/workers/chunks/79683324be49aab79dd8.js +0 -1
  379. package/assets/esri/core/workers/chunks/7cdb4416afd5922cf5f3.js +0 -1
  380. package/assets/esri/core/workers/chunks/7e87bc83a0a2715e3016.js +0 -1
  381. package/assets/esri/core/workers/chunks/7f680cf24dd97d61bcd2.js +0 -1
  382. package/assets/esri/core/workers/chunks/7f797fed73cf7b48a686.js +0 -1
  383. package/assets/esri/core/workers/chunks/861609ebd3a77b787b0f.js +0 -1
  384. package/assets/esri/core/workers/chunks/869c3927f1e246cd1e42.js +0 -1
  385. package/assets/esri/core/workers/chunks/95371c0f5464f5daae9f.js +0 -1
  386. package/assets/esri/core/workers/chunks/962b99fd273709c726d3.js +0 -1
  387. package/assets/esri/core/workers/chunks/98fbcbb2115376d7ff62.js +0 -1
  388. package/assets/esri/core/workers/chunks/9abcd1d11bfd92f872ab.js +0 -1
  389. package/assets/esri/core/workers/chunks/9b54b5bdb6367c36f6e9.js +0 -1
  390. package/assets/esri/core/workers/chunks/9dab9f6c07ececa7f851.js +0 -1
  391. package/assets/esri/core/workers/chunks/9ff6ce486898713af7e2.js +0 -1
  392. package/assets/esri/core/workers/chunks/a98a435d4dbea73f7517.js +0 -1
  393. package/assets/esri/core/workers/chunks/b05bb6e784e5453696be.js +0 -1
  394. package/assets/esri/core/workers/chunks/b51d0ec283f61f638a48.js +0 -1
  395. package/assets/esri/core/workers/chunks/b5ee6c0c07fa50410370.js +0 -1
  396. package/assets/esri/core/workers/chunks/b9cf8f02974aeb3ce208.js +0 -1
  397. package/assets/esri/core/workers/chunks/bdf13091bd0e1ab0db7e.js +0 -1
  398. package/assets/esri/core/workers/chunks/bef1a1218a94ab6e2b51.js +0 -1
  399. package/assets/esri/core/workers/chunks/c22c2b15fe5f2c97a2ae.js +0 -1
  400. package/assets/esri/core/workers/chunks/c880d2f0ff06b3bf731f.js +0 -1
  401. package/assets/esri/core/workers/chunks/c88869d2a647c22dc3e6.js +0 -1
  402. package/assets/esri/core/workers/chunks/cc96be71fee49f07dcd4.js +0 -1
  403. package/assets/esri/core/workers/chunks/e4237360eef474d1f0ac.js +0 -1
  404. package/assets/esri/core/workers/chunks/e54ae2a4281dd58e0707.js +0 -1
  405. package/assets/esri/core/workers/chunks/e977e721f6f50e3c5f13.js +0 -1
  406. package/assets/esri/core/workers/chunks/ed31cf6688c0f7dac1f9.js +0 -1
  407. package/assets/esri/core/workers/chunks/f07a0ea10428adecea1a.js +0 -1
  408. package/assets/esri/core/workers/chunks/f1eab5c67ed808c18f86.js +0 -1
  409. package/assets/esri/core/workers/chunks/f2e7142a8db164940544.js +0 -1
  410. package/assets/esri/core/workers/chunks/f939b4166f76975f5da0.js +0 -1
  411. package/assets/esri/core/workers/chunks/ff4f4107a866e4a68386.js +0 -1
  412. package/layers/ogc/dateUtils.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3597,6030],{90578:(e,t,r)=>{r.d(t,{p:()=>l});var s=r(75215),n=r(7628);const i=Object.prototype.toString;function o(e){const t="__accessorMetadata__"in e?(0,s.se)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,s){(0,n.Oe)(e,t).cast=s}function l(...e){if(3!==e.length||"string"!=typeof e[1])return 1===e.length&&"[object Function]"===i.call(e[0])?o(e[0]):1===e.length&&"string"==typeof e[0]?function(e){return(t,r)=>{(0,n.Oe)(t,e).cast=t[r]}}(e[0]):void 0}},36030:(e,t,r)=>{r.d(t,{J:()=>i});var s=r(35454),n=r(5600);function i(e,t={}){const r=e instanceof s.X?e:new s.X(e,t),i={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(i.readOnly=!!t.readOnly),void 0!==t?.default&&(i.json.default=t.default),void 0!==t?.name&&(i.json.name=t.name),void 0!==t?.nonNullable&&(i.nonNullable=t.nonNullable),(0,n.Cb)(i)}},71715:(e,t,r)=>{r.d(t,{r:()=>n});var s=r(5600);function n(e,t,r){let n,i;return void 0===t||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(e,t)=>{const o=e.constructor.prototype;n.forEach((n=>{const a=(0,s.CJ)(e,n,i);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=o[t],r&&(a.read.source=(a.read.source||[]).concat(r))}))}}},74085:(e,t,r)=>{function s(e){}r.d(t,{Bg:()=>s}),r(80442)},45091:(e,t,r)=>{r.d(t,{Z:()=>c});var s,n,i=r(80442),o=r(71143);(n=s||(s={}))[n.varint=0]="varint",n[n.fixed64=1]="fixed64",n[n.delimited=2]="delimited",n[n.fixed32=5]="fixed32",n[n.unknown=99]="unknown";const a=4294967296,l=new TextDecoder("utf-8"),u=(0,i.Z)("safari")||(0,i.Z)("ios")?6:(0,i.Z)("ff")?12:32;class c{constructor(e,t,r=0,n=(e?e.byteLength:0)){this._tag=0,this._dataType=s.unknown,this._init(e,t,r,n)}_init(e,t,r,s){this._data=e,this._dataView=t,this._pos=r,this._end=s}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();if(void 0!==e)return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,s){const n=this.getMessage(),i=e(n,t,r,s);return n.release(),i}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case s.varint:this._decodeVarint();break;case s.fixed64:this._skip(8);break;case s.delimited:this._skip(this._getLength());break;case s.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,s=0;if(this._end-t>=10)do{if(s=e[t++],r|=127&s,0==(128&s))break;if(s=e[t++],r|=(127&s)<<7,0==(128&s))break;if(s=e[t++],r|=(127&s)<<14,0==(128&s))break;if(s=e[t++],r|=(127&s)<<21,0==(128&s))break;if(s=e[t++],r+=268435456*(127&s),0==(128&s))break;if(s=e[t++],r+=34359738368*(127&s),0==(128&s))break;if(s=e[t++],r+=4398046511104*(127&s),0==(128&s))break;if(s=e[t++],r+=562949953421312*(127&s),0==(128&s))break;if(s=e[t++],r+=72057594037927940*(127&s),0==(128&s))break;if(s=e[t++],r+=0x8000000000000000*(127&s),0==(128&s))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(s=e[t],0!=(128&s));)++t,r+=(127&s)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=s*n}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t=this._pos,r=0,s=0;const n=1&e[t];if(this._end-t>=10)do{if(s=e[t++],r|=127&s,0==(128&s))break;if(s=e[t++],r|=(127&s)<<7,0==(128&s))break;if(s=e[t++],r|=(127&s)<<14,0==(128&s))break;if(s=e[t++],r|=(127&s)<<21,0==(128&s))break;if(s=e[t++],r+=268435456*(127&s),0==(128&s))break;if(s=e[t++],r+=34359738368*(127&s),0==(128&s))break;if(s=e[t++],r+=4398046511104*(127&s),0==(128&s))break;if(s=e[t++],r+=562949953421312*(127&s),0==(128&s))break;if(s=e[t++],r+=72057594037927940*(127&s),0==(128&s))break;if(s=e[t++],r+=0x8000000000000000*(127&s),0==(128&s))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(s=e[t],0!=(128&s));)++t,r+=(127&s)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=s*n}return this._pos=t,n?-(r+1)/2:r/2}_getLength(){if(this._dataType!==s.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>u){const s=e.subarray(t,r);return l.decode(s)}let s="",n="";for(let i=t;i<r;++i){const t=e[i];128&t?n+="%"+t.toString(16):(s+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(s+=decodeURIComponent(n)),s}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}c.pool=new o.Z(c,void 0,(e=>{e._data=null,e._dataView=null}))},9361:(e,t,r)=>{r.d(t,{Z:()=>c});var s=r(43697),n=r(96674),i=r(5600),o=(r(75215),r(67676),r(80442),r(71715)),a=r(52011),l=r(82971);let u=class extends n.wq{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=l.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof l.Z)return e;if(null!=e){const r=new l.Z;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,s._)([(0,i.Cb)()],u.prototype,"type",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,s._)([(0,i.Cb)({readOnly:!0})],u.prototype,"extent",null),(0,s._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,s._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,s._)([(0,i.Cb)({type:l.Z,json:{write:!0},value:l.Z.WGS84})],u.prototype,"spatialReference",void 0),(0,s._)([(0,o.r)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,s._)([(0,a.j)("esri.geometry.Geometry")],u);const c=u},94139:(e,t,r)=>{r.d(t,{Z:()=>b});var s,n=r(43697),i=r(92604),o=r(5600),a=r(90578),l=(r(67676),r(80442),r(71715)),u=r(52011),c=r(30556),h=r(75215),d=r(9361),p=r(82971),y=r(8744),f=r(40488);const g=[0,0];function m(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let _=s=class extends d.Z{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const r=e._get("spatialReference");t._set("spatialReference",Object.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,s,n){let o;if(Array.isArray(e))o=e,n=t,e=o[0],t=o[1],r=o[2],s=o[3];else if(e&&"object"==typeof e){if(o=e,e=null!=o.x?o.x:o.longitude,t=null!=o.y?o.y:o.latitude,r=o.z,s=o.m,(n=o.spatialReference)&&"esri.geometry.SpatialReference"!==n.declaredClass&&(n=new p.Z(n)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)i.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)i.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&n&&n.isWebMercator){const r=(0,f.hG)(o.longitude,o.latitude,g);e=r[0],t=r[1]}}else m(r)?(n=r,r=null):m(s)&&(n=s,s=null);const a={x:e,y:t};return null==a.x&&null!=a.y?i.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&i.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=n&&(a.spatialReference=n),null!=r&&(a.z=r),null!=s&&(a.m=s),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){const{spatialReference:e,x:t,y:r}=this;if(e){if(e.isWebMercator)return(0,f.R6)(t,r,g)[1];if(e.isGeographic)return r}return null}set latitude(e){const{spatialReference:t,x:r}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,f.hG)(r,e,g)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){const{x:e,y:t,spatialReference:r}=this;if(r){if(r.isWebMercator)return(0,f.R6)(e,t,g)[0];if(r.isGeographic)return e}return null}set longitude(e){const{y:t,spatialReference:r}=this;null!=e&&r&&(r.isWebMercator?this._set("x",(0,f.hG)(e,t,g)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new s;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return s.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:r,z:s,m:n,spatialReference:i}=this,{z:o,m:a}=e;let{x:l,y:u,spatialReference:c}=e;if(!i.equals(c))if(i.isWebMercator&&c.isWGS84)[l,u]=(0,f.hG)(l,u),c=i;else{if(!i.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,f.R6)(l,u),c=i}return t===l&&r===u&&s===o&&n===a&&i.wkid===c.wkid}offset(e,t,r){return this.x+=e,this.y+=t,null!=r&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;const e=(0,y.C5)(this.spatialReference);if(!e)return this;let t=this.x;const[r,s]=e.valid,n=2*s;let i;return t>s?(i=Math.ceil(Math.abs(t-s)/n),t-=i*n):t<r&&(i=Math.ceil(Math.abs(t-r)/n),t+=i*n),this._set("x",t),this}distance(e){return function(e,t){const r=e.x-t.x,s=e.y-t.y,n=e.hasZ&&t.hasZ?e.z-t.z:0;return Math.sqrt(r*r+s*s+n*n)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,n._)([(0,o.Cb)({readOnly:!0})],_.prototype,"cache",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],_.prototype,"hasM",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],_.prototype,"hasZ",null),(0,n._)([(0,o.Cb)({type:Number})],_.prototype,"latitude",null),(0,n._)([(0,o.Cb)({type:Number})],_.prototype,"longitude",null),(0,n._)([(0,o.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.p)((e=>isNaN(e)?e:(0,h.q9)(e)))],_.prototype,"x",void 0),(0,n._)([(0,c.c)("x")],_.prototype,"writeX",null),(0,n._)([(0,l.r)("x")],_.prototype,"readX",null),(0,n._)([(0,o.Cb)({type:Number,json:{write:!0}})],_.prototype,"y",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],_.prototype,"z",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],_.prototype,"m",void 0),_=s=(0,n._)([(0,u.j)("esri.geometry.Point")],_),_.prototype.toJSON.isDefaultToJSON=!0;const b=_},62155:(e,t,r)=>{var s;r.d(t,{R:()=>s}),function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"}(s||(s={}))},33955:(e,t,r)=>{r.d(t,{Ji:()=>f,YX:()=>u,aW:()=>c,im:()=>y,l9:()=>d,oU:()=>p,q9:()=>m,wp:()=>h});var s=r(6570),n=r(9361),i=r(65091),o=r(94139),a=r(38913),l=r(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function p(e){return void 0!==e.rings}function y(e){return null==e?null:e instanceof n.Z?e:h(e)?o.Z.fromJSON(e):d(e)?l.Z.fromJSON(e):p(e)?a.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):u(e)?s.Z.fromJSON(e):null}function f(e){return e?h(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":p(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:o.Z,esriGeometryPolyline:l.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:s.Z,esriGeometryMultipoint:i.Z};function m(e){return e&&g[e]||null}},82397:(e,t,r)=>{r.d(t,{G6:()=>f,Ie:()=>y,J9:()=>d,RF:()=>h,U1:()=>p,vY:()=>o}),r(33955);const s=(e,t,r)=>[t,r],n=(e,t,r)=>[t,r,e[2]],i=(e,t,r)=>[t,r,e[2],e[3]];function o(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function l({scale:e,translate:t},r){return t[1]-r*e[1]}function u(e,t,r){const s=new Array(r.length);if(!r.length)return s;const[n,i]=e.scale;let o=a(e,r[0][0]),u=l(e,r[0][1]);s[0]=t(r[0],o,u);for(let e=1;e<r.length;e++){const a=r[e];o+=a[0]*n,u-=a[1]*i,s[e]=t(a,o,u)}return s}function c(e,t,r){const s=new Array(r.length);for(let n=0;n<r.length;n++)s[n]=u(e,t,r[n]);return s}function h(e,t,r,s,n){return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(e,r.x),t.y=function({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}(e,r.y),t!==r&&(s&&(t.z=r.z),n&&(t.m=r.m)),t}function d(e,t,r,o,a){return null!=r&&(t.points=function(e,t,r,o){return u(e,r?o?i:n:o?n:s,t)}(e,r.points,o,a)),t}function p(e,t,r,s,n){return null==r||(t.x=a(e,r.x),t.y=l(e,r.y),t!==r&&(s&&(t.z=r.z),n&&(t.m=r.m))),t}function y(e,t,r,o,a){return null!=r&&(t.rings=function(e,t,r,o){return c(e,r?o?i:n:o?n:s,t)}(e,r.rings,o,a)),t}function f(e,t,r,o,a){return null!=r&&(t.paths=function(e,t,r,o){return c(e,r?o?i:n:o?n:s,t)}(e,r.paths,o,a)),t}},86973:(e,t,r)=>{r.d(t,{M:()=>n,P:()=>i});var s=r(35454);const n=(0,s.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,s.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40488:(e,t,r)=>{r.d(t,{$:()=>b,Q8:()=>f,R6:()=>_,Sx:()=>w,hG:()=>m,iV:()=>g,mZ:()=>h});var s=r(22974),n=r(82971),i=r(68441),o=r(8744);const a=57.29577951308232,l=.017453292519943;function u(e){return e*a}function c(e){return e*l}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/i.sv.radius))}function d(e){return null!=e.wkid||null!=e.wkt}const p=[0,0];function y(e,t,r,s,n){const i=e,o=n;if(o.spatialReference=r,"x"in i&&"x"in o)[o.x,o.y]=t(i.x,i.y,p,s);else if("xmin"in i&&"xmin"in o)[o.xmin,o.ymin]=t(i.xmin,i.ymin,p,s),[o.xmax,o.ymax]=t(i.xmax,i.ymax,p,s);else if("paths"in i&&"paths"in o||"rings"in i&&"rings"in o){const e="paths"in i?i.paths:i.rings,r=[];let n;for(let i=0;i<e.length;i++){const o=e[i];n=[],r.push(n);for(let e=0;e<o.length;e++)n.push(t(o[e][0],o[e][1],[0,0],s)),o[e].length>2&&n[e].push(o[e][2]),o[e].length>3&&n[e].push(o[e][3])}"paths"in o?o.paths=r:o.rings=r}else if("points"in i&&"points"in o){const e=i.points,r=[];for(let n=0;n<e.length;n++)r[n]=t(e[n][0],e[n][1],[0,0],s),e[n].length>2&&r[n].push(e[n][2]),e[n].length>3&&r[n].push(e[n][3]);o.points=r}return n}function f(e,t){const r=e&&(d(e)?e:e.spatialReference),s=t&&(d(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!r||!s)&&(!!(0,o.fS)(s,r)||(0,o.sS)(s)&&(0,o.oR)(r)||(0,o.sS)(r)&&(0,o.oR)(s))}function g(e,t){if(null==e)return null;const r=e.spatialReference,i=t&&(d(t)?t:t.spatialReference);return f(r,i)?(0,o.fS)(r,i)?(0,s.d9)(e):(0,o.sS)(i)?y(e,m,n.Z.WebMercator,!1,(0,s.d9)(e)):(0,o.oR)(i)?y(e,_,n.Z.WGS84,!1,(0,s.d9)(e)):null:null}function m(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const s=c(t);return r[0]=c(e)*i.sv.radius,r[1]=i.sv.halfSemiMajorAxis*Math.log((1+Math.sin(s))/(1-Math.sin(s))),r}function _(e,t,r=[0,0],s=!1){const n=u(e/i.sv.radius);return r[0]=s?n:n-360*Math.floor((n+180)/360),r[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/i.sv.radius))),r}function b(e,t=!1,r=(0,s.d9)(e)){return y(e,m,n.Z.WebMercator,t,r)}function w(e,t=!1,r=(0,s.d9)(e)){return y(e,_,n.Z.WGS84,t,r)}},69285:(e,t,r)=>{r.d(t,{k:()=>o});var s=r(67900),n=r(2109),i=r(8744);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,i.fS)(t,r)||(0,n.oe)(t)||(0,n.oe)(r))return null;const o=(0,s._R)(t)/(0,s._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},70272:(e,t,r)=>{r.d(t,{S6:()=>n,nd:()=>i,u_:()=>s});class s{constructor(e=null,t={},r,s){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=s,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new s(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function n(e){return!(null==e.geometry||!e.geometry.coords||!e.geometry.coords.length)}class i extends s{}},5428:(e,t,r)=>{r.d(t,{Z:()=>s});class s{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,n,i]=e,o=n-t,a=i-r;return new s([5],[t,r,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];for(let r=0;r<s;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=s}}clone(e){return e?(e.set(this.coords),new s(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new s(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},1231:(e,t,r)=>{r.d(t,{Z:()=>g});var s,n=r(43697),i=r(35454),o=r(96674),a=r(5600),l=r(75215),u=(r(67676),r(80442),r(36030)),c=r(71715),h=r(52011),d=r(72729),p=r(86719);const y=new i.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=s=class extends o.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let 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?y.fromJSON(r.fieldValueType):null}clone(){return new s({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,n._)([(0,a.Cb)()],f.prototype,"description",void 0),(0,n._)([(0,c.r)("description")],f.prototype,"readDescription",null),(0,n._)([(0,a.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],f.prototype,"domain",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,n._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],f.prototype,"length",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,n._)([(0,u.J)(p.v)],f.prototype,"type",void 0),(0,n._)([(0,a.Cb)()],f.prototype,"valueType",void 0),(0,n._)([(0,c.r)("valueType",["description"])],f.prototype,"readValueType",null),(0,n._)([(0,a.Cb)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=s=(0,n._)([(0,h.j)("esri.layers.support.Field")],f);const g=f},72729:(e,t,r)=>{r.d(t,{im:()=>T,V5:()=>x}),r(80442);var s,n=r(43697),i=r(22974),o=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(96674);r(67676);let c=s=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=s=(0,n._)([(0,l.j)("esri.layers.support.CodedValue")],c);const h=new(r(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,a.J)(h)],d.prototype,"type",void 0),d=(0,n._)([(0,l.j)("esri.layers.support.Domain")],d);const p=d;var y;let f=y=class extends p{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 y({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,n._)([(0,o.Cb)({type:[c],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,n._)([(0,a.J)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=y=(0,n._)([(0,l.j)("esri.layers.support.CodedValueDomain")],f);const g=f;var m;r(92604),r(20102);let _=m=class extends p{constructor(e){super(e),this.type="inherited"}clone(){return new m}};(0,n._)([(0,a.J)({inherited:"inherited"})],_.prototype,"type",void 0),_=m=(0,n._)([(0,l.j)("esri.layers.support.InheritedDomain")],_);const b=_;var w;let k=w=class extends p{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],k.prototype,"maxValue",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],k.prototype,"minValue",void 0),(0,n._)([(0,a.J)({range:"range"})],k.prototype,"type",void 0),k=w=(0,n._)([(0,l.j)("esri.layers.support.RangeDomain")],k);const v=k,x={key:"type",base:p,typeMap:{range:k,"coded-value":g,inherited:b}};function T(e){if(!e||!e.type)return null;switch(e.type){case"range":return v.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},86719:(e,t,r)=>{r.d(t,{v:()=>s});const s=new(r(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},77863:(e,t,r)=>{r.d(t,{G$:()=>x,K9:()=>G,wn:()=>_});var s=r(20102),n=r(45091),i=r(5428),o=r(78760);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function c(e){return e>=a.length?null:a[e]}function h(e){return e>=l.length?null:l[e]}function d(e){return e>=u.length?null:u[e]}function p(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function y(e,t,r){const s=e.asUnsafe(),n=t.createPointGeometry(r);for(;s.next();)switch(s.tag()){case 3:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addCoordinatePoint(n,s.getSInt64(),i++);break}default:s.skip()}return n}function f(e,t,r){const s=e.asUnsafe(),n=t.createGeometry(r),i=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;s.next();)switch(s.tag()){case 2:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addLength(n,s.getUInt32(),i++);break}case 3:{const e=s.getUInt32(),r=s.pos()+e;let o=0;for(t.allocateCoordinates(n);s.pos()<r;)t.addCoordinate(n,s.getSInt64(),o),o++,o===i&&(o=0);break}default:s.skip()}return n}function g(e){const t=e.asUnsafe(),r=new i.Z;let s="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.coords.push(t.getSInt64());break}case 1:s=o.S[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:s}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:c(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=c(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,s){const n=t.createFeature(r);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=s[i++].name;n.attributes[t]=e.processMessage(m);break}case 2:n.geometry=e.processMessageWithArgs(f,t,r);break;case 4:n.centroid=e.processMessageWithArgs(y,t,r);break;default:e.skip()}return n}function k(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function v(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function x(e){const t={originPosition:d(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=d(r.getEnum());break;case 2:t.scale=r.processMessage(k);break;case 3:t.translate=r.processMessage(v);break;default:r.skip()}return t}function T(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function S(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function C(e,t){const r=t.createFeatureResult(),s=e.asUnsafe();r.geometryType=p(t,0);let n=!1;for(;s.next();)switch(s.tag()){case 1:r.objectIdFieldName=s.getString();break;case 3:r.globalIdFieldName=s.getString();break;case 4:r.geohashFieldName=s.getString();break;case 5:r.geometryProperties=s.processMessage(T);break;case 7:r.geometryType=p(t,s.getEnum());break;case 8:r.spatialReference=s.processMessageWithArgs(S,t);break;case 10:r.hasZ=s.getBool();break;case 11:r.hasM=s.getBool();break;case 12:r.transform=s.processMessage(x);break;case 9:r.exceededTransferLimit=s.getBool();break;case 13:t.addField(r,s.processMessage(_));break;case 15:n||(t.prepareFeatures(r),n=!0),t.addFeature(r,s.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=s.processMessage(b);break;default:s.skip()}return t.finishFeatureResult(r),r}function R(e,t){const r={};let s=null;for(;e.next();)switch(e.tag()){case 4:s=e.processMessageWithArgs(g);break;case 1:r.featureResult=e.processMessageWithArgs(C,t);break;default:e.skip()}return null!=s&&r.featureResult&&t.addQueryGeometry(r,s),r}function G(e,t){try{const r=2,s=new n.Z(new Uint8Array(e),new DataView(e)),i={};for(;s.next();)s.tag()===r?i.queryResult=s.processMessageWithArgs(R,t):s.skip();return i}catch(e){throw new s.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,r)=>{r.d(t,{J:()=>u,S:()=>l});var s=r(67900),n=r(8744),i=r(70272),o=r(44876),a=r(5428);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,n.fS)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,s._R)(this._options.sourceSpatialReference)/(0,s._R)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,i.S6)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.u_}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.Z}}},45178:(e,t,r)=>{r.d(t,{C:()=>n});var s=r(77863);function n(e,t){const r=(0,s.K9)(e,t),n=r.queryResult.featureResult,i=r.queryResult.queryGeometry,o=r.queryResult.queryGeometryType;if(n&&n.features&&n.features.length&&n.objectIdFieldName){const e=n.objectIdFieldName;for(const t of n.features)t.attributes&&(t.objectId=t.attributes[e])}return n&&(n.queryGeometry=i,n.queryGeometryType=o),n}},61916:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var s=r(74085),n=r(99001),i=r(82971),o=r(69285),a=(r(80442),r(1533),r(60437),r(24470),r(82397),r(86973),r(1231));r(8744);class l{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class u{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}var c=r(98732);function h(e,t){return t}function d(e,t,r,s){switch(r){case 0:return g(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?g(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function p(e,t,r,s){return 2===r?g(e,t,2):d(e,t,r,s)}function y(e,t,r,s){return 2===r?g(e,t,3):d(e,t,r,s)}function f(e,t,r,s){return 3===r?g(e,t,3):p(e,t,r,s)}function g({translate:e,scale:t},r,s){return e[s]+r*t[s]}class m{constructor(e){this._options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=h,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return new u}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,o.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return new i.Z}addField(e,t){e.fields.push(a.Z.fromJSON(t));const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){const r=this._options.maxStringAttributeLength??0;if(r>0)for(const e in t.attributes){const s=t.attributes[e];"string"==typeof s&&s.length>r&&(t.attributes[e]="")}e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,n=(0,c.$g)(r.clone(),r,!1,!1,this._transform),i=(0,c.di)(n,s,!1,!1);let o=null;switch(s){case"esriGeometryPoint":o="point";break;case"esriGeometryPolygon":o="polygon";break;case"esriGeometryPolyline":o="polyline";break;case"esriGeometryMultipoint":o="multipoint"}i.type=o,e.queryGeometryType=s,e.queryGeometry=i}prepareFeatures(e){switch(this._transform=e.transform??null,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,s.Bg)(e.geometryType)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,new l((0,n.D)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this._lengths.reduce(((e,t)=>e+t),0);this._coordinateBuffer=new Float64Array(e*this._vertexDimension),this._coordinateBufferPtr=0}addLength(e,t){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const s=this._transform?this._applyTransform(this._transform,t,r,0):t;if(null!=s)switch(r){case 0:e.x=s;break;case 1:e.y=s;break;case 2:e.hasZ?e.z=s:e.m=s;break;case 3:e.m=s}}_transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e),this._transform?this._applyTransform(this._transform,e,t,r):e}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const s=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(s)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const s=this._transformPathLikeValue(t,r),n=e[e.length-1],i=this._coordinateBuffer;if(i){if(0===r){const e=this._coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT;n.push(new Float64Array(i.buffer,e,this._vertexDimension))}i[this._coordinateBufferPtr++]=s}}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?f:t?p:r?y:d}}var _=r(45178);class b{_parseFeatureQuery(e){const t=(0,_.C)(e.buffer,new m(e.options)),r={...t,spatialReference:t.spatialReference?.toJSON(),fields:t.fields?t.fields.map((e=>e.toJSON())):void 0};return Promise.resolve(r)}}function w(){return new b}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5481],{92835:(t,e,r)=>{r.d(e,{Z:()=>y});var s,i=r(43697),o=r(96674),n=r(35463),l=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),h=r(30556);let c=s=class extends o.wq{static get allTime(){return p}static get empty(){return d}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new s({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,s=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===s&&r===i}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,n.JE)(r,t,e));let i=this.end;if(i){const r=(0,n.JE)(i,t,e);i=i.getTime()===r.getTime()?r:(0,n.Nm)(r,1,t,e)}return new s({start:r,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return s.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let n,l;if(i>=e&&i<=r?n=i:e>=i&&e<=o&&(n=e),r>=i&&r<=o?l=r:o>=e&&o<=r&&(l=o),null!=n&&null!=l&&!isNaN(n)&&!isNaN(l)){const t=new s;return t.start=n===-1/0?null:new Date(n),t.end=l===1/0?null:new Date(l),t}return s.empty}offset(t,e,r="system"){if(this.isEmpty||this.isAllTime)return this.clone();const i=new s,{start:o,end:l}=this;return null!=o&&(i.start=(0,n.Nm)(o,t,e,r)),null!=l&&(i.end=(0,n.Nm)(l,t,e,r)),i}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return p.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new s({start:e,end:r})}};(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,i._)([(0,a.r)("end")],c.prototype,"readEnd",null),(0,i._)([(0,h.c)("end")],c.prototype,"writeEnd",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,i._)([(0,a.r)("start")],c.prototype,"readStart",null),(0,i._)([(0,h.c)("start")],c.prototype,"writeStart",null),c=s=(0,i._)([(0,u.j)("esri.TimeExtent")],c);const p=new c,d=new c({start:void 0,end:void 0}),y=c},10699:(t,e,r)=>{r.d(e,{IG:()=>n,iv:()=>l});var s=r(43697),i=r(52011);let o=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,s._)([(0,i.j)("esri.core.Identifiable")],e),e},l=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,s._)([(0,i.j)("esri.core.NumericIdentifiable")],e),e};let a=class extends(n(class{})){};a=(0,s._)([(0,i.j)("esri.core.Identifiable")],a)},13867:(t,e,r)=>{r.d(e,{z:()=>i});var s=r(69801);class i{constructor(t,e){this._storage=new s.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,r=1){this._storage.put(this,t,e,r,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69801:(t,e,r)=>{r.d(e,{WJ:()=>l,Xq:()=>n});var s,i,o=r(44553);(i=s||(s={}))[i.ALL=0]="ALL",i[i.SOME=1]="SOME";class n{constructor(t,e,r){this.name=t,this._storage=e,this.id=a+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),r&&(this._storage.registerRemoveFunc(this.id,r),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(t,e,r,s=0){this._storage.put(this,t,e,r,s)}get(t){const e=this._storage.get(this,t);return void 0===e?++this._miss:++this._hit,e}peek(t){return this._storage.peek(this,t)}pop(t){const e=this._storage.pop(this,t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,r){this._storage.updateSize(this,t,e,r)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class l{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new o.Z,this._users=new o.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimits()}put(t,e,r,i,o){e=t.id+e;const n=this._db.get(e);if(n&&(this._size-=n.size,t.size-=n.size,this._db.delete(e),n.entry!==r&&this._notifyRemove(e,n.entry,s.ALL)),i>this._maxSize)return void this._notifyRemove(e,r,s.ALL);if(void 0===r)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return void console.warn(`Refusing to cache entry with size ${i} for key ${e}`);const l=1+Math.max(o,-3)- -3;this._db.set(e,{entry:r,size:i,lifetime:l,lives:l}),this._size+=i,t.size+=i,this._checkSizeLimits()}updateSize(t,e,r,i){e=t.id+e;const o=this._db.get(e);if(o&&o.entry===r){for(this._size-=o.size,t.size-=o.size;i>this._maxSize;){const t=this._notifyRemove(e,r,s.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);i=t}o.size=i,this._size+=i,t.size+=i,this._checkSizeLimits()}}pop(t,e){e=t.id+e;const r=this._db.get(e);if(r)return this._size-=r.size,t.size-=r.size,this._db.delete(e),++this._hit,r.entry;++this._miss}get(t,e){e=t.id+e;const r=this._db.get(e);if(void 0!==r)return this._db.delete(e),r.lives=r.lifetime,this._db.set(e,r),++this._hit,r.entry;++this._miss}peek(t,e){const r=this._db.get(t.id+e);return r?++this._hit:++this._miss,r?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},r=new Array;this._db.forEach(((t,s)=>{const i=t.lifetime;r[i]=(r[i]||0)+t.size,this._users.forAll((r=>{const{id:i,name:o}=r;if(s.startsWith(i)){const r=e[o]||0;e[o]=r+t.size}}))}));const s={};this._users.forAll((t=>{const r=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const i=e[r]||0;e[r]=i,s[r]=Math.round(100*t.hitRate)+"%"}else s[r]="0%"}));const i=Object.keys(e);i.sort(((t,r)=>e[r]-e[t])),i.forEach((r=>t[r]=Math.round(e[r]/2**20)+"MB / "+s[r]));for(let e=r.length-1;e>=0;--e){const s=r[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,r)=>{r.startsWith(e)&&(this._size-=t.size,this._db.delete(r),this._notifyRemove(r,t.entry,s.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,s.ALL))),this._users.forEach((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,r){let s;return this._removeFuncs.some((i=>{if(t.startsWith(i[0])){const t=i[1](e,r);return"number"==typeof t&&(s=t),!0}return!1})),s}_checkSizeLimits(){if(this._size>this._maxSize)for(const[t,e]of this._db)if(this._purgeItem(t,e),this._size<=.9*this.maxSize)return;this._users.forEach((t=>{if(t.maxSize>0&&t.size>t.maxSize)for(const[e,r]of this._db)if(e.startsWith(t.id)&&(this._purgeItem(e,r,t),t.size<=.9*t.maxSize))return}))}_purgeItem(t,e,r=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,r&&(r.size-=e.size);const i=this._notifyRemove(t,e.entry,s.SOME);null!=i&&i>0&&(this._size+=i,r&&(r.size+=i),e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}let a=0},17445:(t,e,r)=>{r.d(e,{N1:()=>p,YP:()=>a,Z_:()=>m,gx:()=>u,nn:()=>f,on:()=>c,tX:()=>g}),r(66643),r(46791);var s=r(91460),i=r(50758),o=r(70586),n=r(95330),l=r(26258);function a(t,e,r={}){return h(t,e,r,d)}function u(t,e,r={}){return h(t,e,r,y)}function h(t,e,r={},s){let i=null;const n=r.once?(t,r)=>{s(t)&&((0,o.hw)(i),e(t,r))}:(t,r)=>{s(t)&&e(t,r)};if(i=(0,l.aQ)(t,n,r.sync,r.equals),r.initial){const e=t();n(e,e)}return i}function c(t,e,r,n={}){let l=null,u=null,h=null;function c(){l&&u&&(u.remove(),n.onListenerRemove?.(l),l=null,u=null)}function p(t){n.once&&n.once&&(0,o.hw)(h),r(t)}const d=a(t,((t,r)=>{c(),(0,s.vT)(t)&&(l=t,u=(0,s.on)(t,e,p),n.onListenerAdd?.(t))}),{sync:n.sync,initial:!0});return h=(0,i.kB)((()=>{d.remove(),c()})),h}function p(t,e){return function(t,e,r){if((0,n.Hc)(r))return Promise.reject((0,n.zE)());const s=t();if(e?.(s))return Promise.resolve(s);let l=null;function a(){l=(0,o.hw)(l)}return new Promise(((s,o)=>{l=(0,i.AL)([(0,n.fu)(r,(()=>{a(),o((0,n.zE)())})),h(t,(t=>{a(),s(t)}),{sync:!1,once:!0},e??d)])}))}(t,y,e)}function d(t){return!0}function y(t){return!!t}r(87538);const m={sync:!0},f={initial:!0},g={sync:!0,initial:!0}},35463:(t,e,r)=>{r.d(e,{JE:()=>l,Nm:()=>n,rJ:()=>a});var s=r(90344),i=r(17126);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function n(t,e,r,o="system"){const n=new i.vF((0,s.f1)(o)),l=i.ou.fromJSDate(t,{zone:n}),a="decades"===r||"centuries"===r?"year":u(r);return"decades"===r&&(e*=10),"centuries"===r&&(e*=100),l.plus({[a]:e}).toJSDate()}function l(t,e,r="system"){const o=new i.vF((0,s.f1)(r)),n=i.ou.fromJSDate(t,{zone:o});if("decades"===e||"centuries"===e){const t=n.startOf("year"),{year:r}=t,s=r-r%("decades"===e?10:100);return t.set({year:s}).toJSDate()}const l=u(e);return n.startOf(l).toJSDate()}function a(t,e,r){return 0===t?0:t*o[e]/o[r]}function u(t){switch(t){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},90344:(t,e,r)=>{r.d(e,{Xr:()=>y,Ze:()=>_,f1:()=>w,p6:()=>v});var s=r(35454),i=r(70171),o=r(15512);r(17126);const n=Intl.DateTimeFormat().resolvedOptions().timeZone,l=(o.pt,{year:"numeric",month:"numeric",day:"numeric"}),a={year:"numeric",month:"long",day:"numeric"},u={year:"numeric",month:"short",day:"numeric"},h={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},p={...c,second:"numeric"},d={"short-date":l,"short-date-short-time":{...l,...c},"short-date-short-time-24":{...l,...c,hour12:!1},"short-date-long-time":{...l,...p},"short-date-long-time-24":{...l,...p,hour12:!1},"short-date-le":l,"short-date-le-short-time":{...l,...c},"short-date-le-short-time-24":{...l,...c,hour12:!1},"short-date-le-long-time":{...l,...p},"short-date-le-long-time-24":{...l,...p,hour12:!1},"long-month-day-year":a,"long-month-day-year-short-time":{...a,...c},"long-month-day-year-short-time-24":{...a,...c,hour12:!1},"long-month-day-year-long-time":{...a,...p},"long-month-day-year-long-time-24":{...a,...p,hour12:!1},"day-short-month-year":u,"day-short-month-year-short-time":{...u,...c},"day-short-month-year-short-time-24":{...u,...c,hour12:!1},"day-short-month-year-long-time":{...u,...p},"day-short-month-year-long-time-24":{...u,...p,hour12:!1},"long-date":h,"long-date-short-time":{...h,...c},"long-date-short-time-24":{...h,...c,hour12:!1},"long-date-long-time":{...h,...p},"long-date-long-time-24":{...h,...p,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":p},y=(0,s.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),m={ar:"ar-u-nu-latn-ca-gregory"};let f=new WeakMap;const g=d["short-date-short-time"];function _(t){return d[t]}function v(t,e=g){return function(t){let e=f.get(t);if(!e){const r=(0,i.Kd)(),s=m[r]||r,n=w(t.timeZone??o.By),l={...t,timeZone:n};e=new Intl.DateTimeFormat(s,l),f.set(t,e)}return e}(e).format(t)}function w(t){switch(t){case o.By:return n;case o._4:return o.pt;default:return t}}(0,i.Ze)((()=>{f=new WeakMap}))},87085:(t,e,r)=>{r.d(e,{Z:()=>v});var s=r(43697),i=(r(66577),r(3172)),o=r(20102),n=r(32448),l=r(10699),a=r(83379),u=r(92604),h=r(95330),c=r(17452),p=r(5600),d=(r(75215),r(67676),r(80442),r(52011)),y=r(68773),m=r(6570),f=r(82971);let g=0,_=class extends(n.Z.EventedMixin((0,l.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:s}=await r.e(8008).then(r.bind(r,28008));try{return await s(e)}catch(t){const r=e&&e.portalItem,s=r&&r.id||"unset",i=r&&r.portal&&r.portal.url||y.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+s+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,h.D_)(t)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,p.Cb)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,s._)([(0,p.Cb)({type:m.Z})],_.prototype,"fullExtent",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,s._)([(0,p.Cb)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,s._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,s._)([(0,p.Cb)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,s._)([(0,p.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,s._)([(0,p.Cb)({clonable:!1})],_.prototype,"parent",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,s._)([(0,p.Cb)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,s._)([(0,p.Cb)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,s._)([(0,p.Cb)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,s._)([(0,p.Cb)({type:f.Z})],_.prototype,"spatialReference",void 0),(0,s._)([(0,p.Cb)({type:String})],_.prototype,"title",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,s._)([(0,p.Cb)()],_.prototype,"url",void 0),(0,s._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,s._)([(0,d.j)("esri.layers.Layer")],_);const v=_},94756:(t,e,r)=>{r.r(e),r.d(e,{default:()=>ft});var s=r(43697),i=r(22303),o=r(3172),n=r(66643),l=r(20102),a=r(22974),u=r(16453),h=r(95330),c=r(17452),p=r(5600),d=(r(75215),r(71715)),y=r(52011),m=r(30556),f=r(65617),g=r(6570),_=r(82971),v=r(87085),w=r(54295),S=r(46486),b=r(17287),A=r(71612),x=r(17017),E=r(38009),I=r(16859),T=r(72965);let L=null;var R=r(92604),C=r(1533);class P{constructor(t,e){this._spriteSource=t,this._maxTextureSize=e,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===t.type&&t.spriteFormat&&(this._spriteImageFormat=t.spriteFormat),t.pixelRatio&&(this.devicePixelRatio=t.pixelRatio),this.baseURL=t.spriteUrl}get spriteNames(){const t=[];for(const e in this._spritesData)t.push(e);return t.sort(),t}getSpriteInfo(t){return this._spritesData?this._spritesData[t]:null}async load(t){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(t),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(t){this._isRetina=this.devicePixelRatio>1.15;const{width:e,height:r,data:s,json:i}=await this._getSpriteData(this._spriteSource,t),o=Object.keys(i);if(!o||0===o.length||!s)return this._spritesData=this.image=null,void(this.width=this.height=0);this._spritesData=i,this.width=e,this.height=r;const n=Math.max(this._maxTextureSize,4096);if(e>n||r>n){const t=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${n} pixels}`;throw R.Z.getLogger("esri.layers.support.SpriteSource").error(t),new l.Z("SpriteSource",t)}let a;for(let t=0;t<s.length;t+=4)a=s[t+3]/255,s[t]=s[t]*a,s[t+1]=s[t+1]*a,s[t+2]=s[t+2]*a;this.image=s}async _getSpriteData(t,e){if("image"===t.type){let e,r;if(this.devicePixelRatio<1.15){if(!t.spriteSource1x)throw new l.Z("SpriteSource","no image data provided for low resolution sprites!");e=t.spriteSource1x.image,r=t.spriteSource1x.json}else{if(!t.spriteSource2x)throw new l.Z("SpriteSource","no image data provided for high resolution sprites!");e=t.spriteSource2x.image,r=t.spriteSource2x.json}return"width"in e&&"height"in e&&"data"in e&&((0,C.eP)(e.data)||(0,C.KZ)(e.data))?{width:e.width,height:e.height,data:new Uint8Array(e.data),json:r}:{...U(e),json:r}}const r=(0,c.mN)(this.baseURL),s=r.query?"?"+(0,c.B7)(r.query):"",i=this._isRetina?"@2x":"",n=`${r.path}${i}.${this._spriteImageFormat}${s}`,a=`${r.path}${i}.json${s}`,[u,h]=await Promise.all([(0,o.Z)(a,e),(0,o.Z)(n,{responseType:"image",...e})]);return{...U(h.data),json:u.data}}}function U(t){const e=document.createElement("canvas"),r=e.getContext("2d");e.width=t.width,e.height=t.height,r.drawImage(t,0,0,t.width,t.height);const s=r.getImageData(0,0,t.width,t.height);return{width:t.width,height:t.height,data:new Uint8Array(s.data)}}var z=r(11145),D=r(28589),O=r(8744),M=r(40488),B=r(55415);class F{constructor(t){this.url=t}destroy(){this._tileIndexPromise=null}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,o.Z)(this.url).then((t=>t.data.index))),this._tileIndexPromise}async dataKey(t,e){const r=await this.fetchTileIndex();return(0,h.k_)(e),this._getIndexedDataKey(r,t)}_getIndexedDataKey(t,e){const r=[e];if(e.level<0||e.row<0||e.col<0||e.row>>e.level>0||e.col>>e.level>0)return null;let s=e;for(;0!==s.level;)s=new B.Z(s.level-1,s.row>>1,s.col>>1,s.world),r.push(s);let i,o,n=t,l=r.pop();if(1===n)return l;for(;r.length;)if(i=r.pop(),o=(1&i.col)+((1&i.row)<<1),n){if(0===n[o]){l=null;break}if(1===n[o]){l=i;break}l=i,n=n[o]}return l}}var Z=r(70586);class j{constructor(t,e){this._tilemap=t,this._tileIndexUrl=e}destroy(){this._tilemap=(0,Z.SC)(this._tilemap),this._tileIndexPromise=null}async fetchTileIndex(t){return this._tileIndexPromise||(this._tileIndexPromise=(0,o.Z)(this._tileIndexUrl,{query:{...t?.query}}).then((t=>t.data.index))),this._tileIndexPromise}dataKey(t,e){const{level:r,row:s,col:i}=t,o=new B.Z(t);return this._tilemap.fetchAvailabilityUpsample(r,s,i,o,e).then((()=>(o.world=t.world,o))).catch((t=>{if((0,h.D_)(t))throw t;return null}))}}var k=r(30175);class N{constructor(t){this._tileUrl=t,this._promise=null,this._abortController=null,this._abortOptions=[]}getData(t){null===this._promise&&(this._abortController=new AbortController,this._promise=this._makeRequest(this._tileUrl,this._abortController.signal));const e=this._abortOptions;return e.push(t),(0,h.fu)(t,(()=>{e.every((t=>(0,h.Hc)(t)))&&this._abortController.abort()})),this._promise.then((t=>(0,a.d9)(t)))}async _makeRequest(t,e){const{data:r}=await(0,o.Z)(t,{responseType:"array-buffer",signal:e});return r}}const W=new Map;function G(t,e){return(0,k.s1)(W,t,(()=>new N(t))).getData(e).then((e=>(W.delete(t),e))).catch((e=>{throw W.delete(t),e}))}class ${constructor(t,e,r){this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.initialExtent=null,this.name=t,this.sourceUrl=e;const s=(0,c.mN)(this.sourceUrl),i=(0,a.d9)(r),o=i.tiles;if(s)for(let t=0;t<o.length;t++){const e=(0,c.mN)(o[t]);e&&((0,c.YP)(e.path)||(e.path=(0,c.v_)(s.path,e.path)),o[t]=(0,c.fl)(e.path,{...s.query,...e.query}))}this.tileServers=o;const n=r.capabilities&&r.capabilities.split(",").map((t=>t.toLowerCase().trim())),l=!0===r?.exportTilesAllowed,u=!0===n?.includes("tilemap"),h=l&&r.hasOwnProperty("maxExportTilesCount")?r.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:l,supportsTileMap:u},exportTiles:l?{maxExportTilesCount:+h}:null},this.tileInfo=z.Z.fromJSON(i.tileInfo);const p=r.tileMap?(0,c.fl)((0,c.v_)(s.path,r.tileMap),s.query??{}):null;u?(this.type="vector-tile",this.tilemap=new j(new D.y({layer:{parsedUrl:s,tileInfo:this.tileInfo},minLOD:i.minLOD??this.tileInfo.lods[0].level,maxLOD:i.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}),p)):p&&(this.tilemap=new F(p)),this.fullExtent=g.Z.fromJSON(r.fullExtent),this.initialExtent=g.Z.fromJSON(r.initialExtent)}destroy(){this.tilemap?.destroy()}async getRefKey(t,e){return await(this.tilemap?.dataKey(t,e))??t}requestTile(t,e,r,s){return function(t,e,r,s,i){const o=(0,c.mN)(t),n=o.query;if(n)for(const[t,i]of Object.entries(n))switch(i){case"{x}":n[t]=s.toString();break;case"{y}":n[t]=r.toString();break;case"{z}":n[t]=e.toString()}const l=o.path;return G((0,c.fl)(l.replaceAll(/\{z\}/gi,e.toString()).replaceAll(/\{y\}/gi,r.toString()).replaceAll(/\{x\}/gi,s.toString()),{...o.query}),i)}(this.tileServers[e%this.tileServers.length],t,e,r,s)}isCompatibleWith(t){const e=this.tileInfo,r=t.tileInfo;if(!e.spatialReference.equals(r.spatialReference))return!1;if(!e.origin.equals(r.origin))return!1;if(Math.round(e.dpi)!==Math.round(r.dpi))return!1;const s=e.lods,i=r.lods,o=Math.min(s.length,i.length);for(let t=0;t<o;t++){const e=s[t],r=i[t];if(e.level!==r.level||Math.round(e.scale)!==Math.round(r.scale))return!1}return!0}}function H(...t){let e;for(const r of t)if(null!=r)if((0,c.oC)(r)){if(e){const t=e.split("://")[0];e=t+":"+r.trim()}}else e=(0,c.YP)(r)?r:(0,c.v_)(e,r);return e?(0,c.Qj)(e):void 0}async function q(t,e,r,s,i){let n,l,a;if((0,h.k_)(i),"string"==typeof r){const t=(0,c.Fv)(r);a=await(0,o.Z)(t,{...i,responseType:"json",query:{f:"json",...i?.query}}),a.ssl&&(n&&(n=n.replace(/^http:/i,"https:")),l&&(l=l.replace(/^http:/i,"https:"))),n=t,l=t}else null!=r&&(a={data:r},n=r.jsonUrl||null,l=s);const u=a?.data;if(V(u))return t.styleUrl=n||null,async function(t,e,r,s){const i=r?(0,c.Yd)(r):(0,c.L)();t.styleBase=i,t.style=e,e["sprite-format"]&&"webp"===e["sprite-format"].toLowerCase()&&(t.spriteFormat="webp");const o=[];if(e.sources&&e.sources.esri){const r=e.sources.esri;r.url?await q(t,"esri",H(i,r.url),void 0,s):o.push(q(t,"esri",r,i,s))}for(const r of Object.keys(e.sources))"esri"!==r&&"vector"===e.sources[r].type&&(e.sources[r].url?o.push(q(t,r,H(i,e.sources[r].url),void 0,s)):e.sources[r].tiles&&o.push(q(t,r,e.sources[r],i,s)));await Promise.all(o)}(t,u,l,i);if(!V(u))return t.sourceUrl?J(t,u,l,!1,e,i):(t.sourceUrl=n||null,J(t,u,l,!0,e,i));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function K(t){return"object"==typeof t&&!!t&&"tilejson"in t&&null!=t.tilejson}function V(t){return!!t&&"sources"in t&&!!t.sources}async function J(t,e,r,s,i,o){const n=r?(0,c.Qj)(r)+"/":(0,c.L)(),l=function(t){if(t.hasOwnProperty("tileInfo"))return t;const e={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100}};let r=null;if(K(t)){const{bounds:e}=t;if(e){const t=(0,M.$)({x:e[0],y:e[1],spatialReference:(0,a.d9)(O.Zn)}),s=(0,M.$)({x:e[2],y:e[3],spatialReference:(0,a.d9)(O.Zn)});r={xmin:t.x,ymin:t.y,xmax:s.x,ymax:s.y,spatialReference:(0,a.d9)(O.R_)}}}null===r&&(r=e);let s=78271.51696400007,i=295828763.7957775;const o=[],n=t.hasOwnProperty("minzoom")?+t.minzoom:0,l=t.hasOwnProperty("maxzoom")?+t.maxzoom:22;for(let t=0;t<=l;t++)t>=n&&o.push({level:t,scale:i,resolution:s}),s/=2,i/=2;return{capabilities:"TilesOnly",initialExtent:r,fullExtent:e,minScale:0,maxScale:0,tiles:t.tiles,tileInfo:{rows:512,cols:512,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:o,spatialReference:(0,a.d9)(O.R_)}}}(e),u=new $(i,(0,c.fl)(n,o?.query??{}),l);if(!s&&t.primarySourceName in t.sourceNameToSource){const e=t.sourceNameToSource[t.primarySourceName];if(!e.isCompatibleWith(u))return;null!=u.fullExtent&&(null!=e.fullExtent?e.fullExtent.union(u.fullExtent):e.fullExtent=u.fullExtent.clone()),e.tileInfo&&u.tileInfo&&e.tileInfo.lods.length<u.tileInfo.lods.length&&(e.tileInfo=u.tileInfo)}if(s&&(t.sourceBase=n,t.source=e,t.validatedSource=l,t.primarySourceName=i),t.sourceNameToSource[i]=u,!K(t)&&"defaultStyles"in e&&!t.style){if(null==e.defaultStyles)throw new Error;return"string"==typeof e.defaultStyles?q(t,"",H(n,e.defaultStyles,"root.json"),void 0,o):q(t,"",e.defaultStyles,H(n,"root.json"),o)}}var Q=r(33516),Y=r(19745),X=r(25929),tt=r(94139),et=r(39450);const rt=1e-6;function st(t,e){if(t===e)return!0;if(null==t&&null!=e)return!1;if(null!=t&&null==e)return!1;if(null==t||null==e)return!1;if(!t.spatialReference.equals(e.spatialReference)||t.dpi!==e.dpi)return!1;const r=t.origin,s=e.origin;if(Math.abs(r.x-s.x)>=rt||Math.abs(r.y-s.y)>=rt)return!1;let i,o;t.lods[0].scale>e.lods[0].scale?(i=t,o=e):(o=t,i=e);for(let t=i.lods[0].scale;t>=o.lods[o.lods.length-1].scale-rt;t/=2)if(Math.abs(t-o.lods[0].scale)<rt)return!0;return!1}function it(t,e){if(t===e)return t;if(null==t&&null!=e)return e;if(null!=t&&null==e)return t;if(null==t||null==e)return null;const r=t.size[0],s=t.format,i=t.dpi,o=new tt.Z({x:t.origin.x,y:t.origin.y}),n=t.spatialReference,l=t.lods[0].scale>e.lods[0].scale?t.lods[0]:e.lods[0],a=t.lods[t.lods.length-1].scale<=e.lods[e.lods.length-1].scale?t.lods[t.lods.length-1]:e.lods[e.lods.length-1],u=l.scale,h=l.resolution,c=a.scale,p=[];let d=u,y=h,m=0;for(;d>c;)p.push(new et.Z({level:m,resolution:y,scale:d})),m++,d/=2,y/=2;return new z.Z({size:[r,r],dpi:i,format:s||"pbf",origin:o,lods:p,spatialReference:n})}var ot=r(51785),nt=r(7575);let lt,at;function ut(t){const e=(0,nt.Sh)(t);for(;e.length>1;){const t=ht(e.shift());if(t.available)return t}return ht(e.shift())}function ht(t){switch(t){case nt.zO.WEBGL1:return lt||(lt=function(){const t=new pt,e=yt(nt.zO.WEBGL1,t);return null==e||(t.supportsElementIndexUint=null!==e.getExtension("OES_element_index_uint"),t.supportsStandardDerivatives=null!==e.getExtension("OES_standard_derivatives"),t.supportsInstancedArrays=null!==e.getExtension("ANGLE_instanced_arrays"),t.supportsTextureFloat=null!==e.getExtension("OES_texture_float"),t.supportsTextureHalfFloat=null!==e.getExtension("OES_texture_half_float"),t.supportsColorBufferFloat=null!==e.getExtension("WEBGL_color_buffer_float"),t.supportsColorBufferFloatBlend=null!==e.getExtension("EXT_float_blend"),t.supportsColorBufferHalfFloat=null!==e.getExtension("EXT_color_buffer_half_float")),t}()),lt;case nt.zO.WEBGL2:return at||(at=function(){const t=new dt,e=yt(nt.zO.WEBGL2,t);return null==e||(t.supportsColorBufferFloat=null!==e.getExtension("EXT_color_buffer_float"),t.supportsColorBufferFloatBlend=null!==e.getExtension("EXT_float_blend"),t.supportsColorBufferHalfFloat=t.supportsColorBufferFloat||null!==e.getExtension("EXT_color_buffer_half_float")),t}()),at}}class ct{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsElementIndexUint=!1,this.supportsStandardDerivatives=!1,this.supportsInstancedArrays=!1,this.supportsTextureFloat=!1,this.supportsTextureHalfFloat=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1}}class pt extends ct{constructor(){super(...arguments),this.type=nt.zO.WEBGL1}}class dt extends ct{constructor(){super(...arguments),this.type=nt.zO.WEBGL2,this.supportsElementIndexUint=!0,this.supportsStandardDerivatives=!0,this.supportsInstancedArrays=!0,this.supportsTextureFloat=!0,this.supportsTextureHalfFloat=!0}}function yt(t,e){if(t===nt.zO.WEBGL1&&"undefined"==typeof WebGLRenderingContext||t===nt.zO.WEBGL2&&"undefined"==typeof WebGL2RenderingContext)return null;const r=document.createElement("canvas");if(!r)return null;let s=(0,nt.kr)(r,t,{failIfMajorPerformanceCaveat:!0});if(null==s&&(s=(0,nt.kr)(r,t),null!=s&&(e.majorPerformanceCaveat=!0)),null==s)return s;if(t===nt.zO.WEBGL1){const t=s.getParameter(s.VERSION),r=t?.match(/^WebGL\s+([\d.]*)/);if(r){const t=parseFloat(r[1]);e.available=t>=.94}}else e.available=!0;e.maxTextureSize=s.getParameter(s.MAX_TEXTURE_SIZE),e.supportsVertexShaderSamplers=s.getParameter(s.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const i=s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.HIGH_FLOAT);return i&&(e.supportsHighPrecisionFragment=i.precision>0),s}let mt=class extends((0,A.h)((0,T.M)((0,S.Z)((0,b.Y)((0,E.q)((0,I.I)((0,x.N)((0,w.V)((0,u.R)(v.Z)))))))))){constructor(...t){super(...t),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.style=null,this.tilemapCache=null,this.type="vector-tile",this.url=null,this.path=null}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}destroy(){if(this.sourceNameToSource)for(const t of Object.values(this.sourceNameToSource))t?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(t){await this.loadSpriteSource(globalThis.devicePixelRatio||1,t)}load(t){const e=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},t).catch(h.r9).then((async()=>{if(!this.portalItem||!this.portalItem.id)return;const e=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await(0,o.Z)(e,{...t,query:{f:"json",...this.customParameters,token:this.apiKey}})).data&&this.read({url:e},(0,Q.h)(this.portalItem))})).catch(h.r9).then((()=>this._loadStyle(t)));return this.addResolvingPromise(e),Promise.resolve(this)}get attributionDataUrl(){const t=this.currentStyleInfo,e=t&&t.serviceUrl&&(0,c.mN)(t.serviceUrl);if(!e)return null;const r=this._getDefaultAttribution(e.path);return r?(0,c.fl)(r,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const t=this.primarySource;return t?t.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?(0,c.mN)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo&&this.currentStyleInfo.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo&&this.currentStyleInfo.styleUrl||null}writeStyleUrl(t,e){t&&(0,c.oC)(t)&&(t=`https:${t}`);const r=(0,Y.a)(t);e.styleUrl=(0,X.e)(t,r)}get tileInfo(){const t=[];for(const e in this.sourceNameToSource)t.push(this.sourceNameToSource[e]);let e=this.primarySource?.tileInfo||new z.Z;if(t.length>1)for(let r=0;r<t.length;r++)st(e,t[r].tileInfo)&&(e=it(e,t[r].tileInfo));return e}readTilemapCache(t,e){const r=e.capabilities?.includes("Tilemap");return r?new D.y({layer:this}):null}readVersion(t,e){return e.version?parseFloat(e.version):parseFloat(e.currentVersion)}get backgroundColor(){const t=this.getPaintProperties("background")?.["background-color"];if("string"==typeof t){const e=i.Z.toUnitRGBA(i.Z.fromHex(t));if(e)return(0,f.f)(e[0]||0,e[1]||0,e[2]||0)}else if("object"==typeof t&&t.stops?.length>0)return[t.stops[0][1][0],t.stops[0][1][1],t.stops[0][1][2]];return null}async loadSpriteSource(t=1,e){if(!this._spriteSourceMap.has(t)){const r=ut("2d").maxTextureSize,s=this.currentStyleInfo?.spriteUrl?(0,c.fl)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,i=new P({type:"url",spriteUrl:s,pixelRatio:t,spriteFormat:this.currentStyleInfo?.spriteFormat},r);await i.load(e),this._spriteSourceMap.set(t,i)}return this._spriteSourceMap.get(t)}async setSpriteSource(t,e){if(!t)return null;const r=ut("2d").maxTextureSize,s=t.spriteUrl,i=s?(0,c.fl)(s,{...this.customParameters,token:this.apiKey}):null;if(!i&&"url"===t.type)return null;const o=new P(t,r);try{await o.load(e);const r=t.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(r,o),i&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=i),this.emit("spriteSource-change",{spriteSource:o}),o}catch(t){(0,h.r9)(t)}return null}async loadStyle(t,e){const r=t||this.style||this.url;return this._loadingTask&&"string"==typeof r&&this.url===r||(this._loadingTask?.abort(),this._loadingTask=(0,n.vr)((t=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(r,{signal:t}))),e)),this._loadingTask.promise}getStyleLayerId(t){return this.styleRepository.getStyleLayerId(t)}getStyleLayerIndex(t){return this.styleRepository.getStyleLayerIndex(t)}getPaintProperties(t){return(0,a.d9)(this.styleRepository?.getPaintProperties(t))}setPaintProperties(t,e){const r=this.styleRepository.isPainterDataDriven(t);this.styleRepository.setPaintProperties(t,e);const s=this.styleRepository.isPainterDataDriven(t);this.emit("paint-change",{layer:t,paint:e,isDataDriven:r||s})}getStyleLayer(t){return(0,a.d9)(this.styleRepository.getStyleLayer(t))}setStyleLayer(t,e){this.styleRepository.setStyleLayer(t,e),this.emit("style-layer-change",{layer:t,index:e})}deleteStyleLayer(t){this.styleRepository.deleteStyleLayer(t),this.emit("delete-style-layer",{layer:t})}getLayoutProperties(t){return(0,a.d9)(this.styleRepository.getLayoutProperties(t))}setLayoutProperties(t,e){this.styleRepository.setLayoutProperties(t,e),this.emit("layout-change",{layer:t,layout:e})}setStyleLayerVisibility(t,e){this.styleRepository.setStyleLayerVisibility(t,e),this.emit("style-layer-visibility-change",{layer:t,visibility:e})}getStyleLayerVisibility(t){return this.styleRepository.getStyleLayerVisibility(t)}write(t,e){return e?.origin&&!this.styleUrl?(e.messages&&e.messages.push(new l.Z("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(t,e)}getTileUrl(t,e,r){return null}async _getSourceAndStyle(t,e){if(!t)throw new Error("invalid style!");const r=await async function(t,e){const r={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[s,i]="string"==typeof t?[t,null]:[null,t.jsonUrl];return await q(r,"esri",t,i,e),{layerDefinition:r.validatedSource,url:s,serviceUrl:r.sourceUrl,style:r.style,styleUrl:r.styleUrl,spriteUrl:r.style.sprite&&H(r.styleBase,r.style.sprite),spriteFormat:r.spriteFormat,glyphsUrl:r.style.glyphs&&H(r.styleBase,r.style.glyphs),sourceNameToSource:r.sourceNameToSource,primarySourceName:r.primarySourceName}}(t,{...e,query:{...this.customParameters,token:this.apiKey}});"webp"===r.spriteFormat&&(await function(t){if(L)return L;const e={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return L=new Promise((t=>{const r=new Image;r.onload=()=>{r.onload=r.onerror=null,t(r.width>0&&r.height>0)},r.onerror=()=>{r.onload=r.onerror=null,t(!1)},r.src="data:image/webp;base64,"+e.lossy})),L}()||(r.spriteFormat="png")),this._set("currentStyleInfo",{...r}),"string"==typeof t?(this.url=t,this.style=null):(this.url=null,this.style=t),this._set("sourceNameToSource",r.sourceNameToSource),this._set("primarySource",r.sourceNameToSource[r.primarySourceName]),this._set("styleRepository",new ot.Z(r.style)),this.read(r.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(t){const e=t.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^\/]+)?\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/vectortileserver/i),r=["OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2"];if(!e)return;const s=e[2]&&e[2].toLowerCase();if(!s)return;const i=e[1]||"";for(const t of r)if(t.toLowerCase().includes(s))return(0,c.Fv)(`//static.arcgis.com/attribution/Vector${i}/${t}`)}async _loadStyle(t){return this._loadingTask?.promise??this.loadStyle(null,t)}};(0,s._)([(0,p.Cb)({readOnly:!0})],mt.prototype,"attributionDataUrl",null),(0,s._)([(0,p.Cb)({type:["show","hide"]})],mt.prototype,"listMode",void 0),(0,s._)([(0,p.Cb)({json:{read:!0,write:!0}})],mt.prototype,"blendMode",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1}})],mt.prototype,"capabilities",null),(0,s._)([(0,p.Cb)({readOnly:!0})],mt.prototype,"currentStyleInfo",void 0),(0,s._)([(0,p.Cb)({json:{read:!1},readOnly:!0,type:g.Z})],mt.prototype,"fullExtent",null),(0,s._)([(0,p.Cb)({json:{read:!1},readOnly:!0,type:g.Z})],mt.prototype,"initialExtent",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],mt.prototype,"isReference",void 0),(0,s._)([(0,p.Cb)({type:["VectorTileLayer"]})],mt.prototype,"operationalLayerType",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],mt.prototype,"parsedUrl",null),(0,s._)([(0,p.Cb)()],mt.prototype,"style",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],mt.prototype,"serviceUrl",null),(0,s._)([(0,p.Cb)({type:_.Z,readOnly:!0})],mt.prototype,"spatialReference",null),(0,s._)([(0,p.Cb)({readOnly:!0})],mt.prototype,"styleRepository",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],mt.prototype,"sourceNameToSource",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],mt.prototype,"primarySource",void 0),(0,s._)([(0,p.Cb)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],mt.prototype,"styleUrl",null),(0,s._)([(0,m.c)(["portal-item","web-document"],"styleUrl")],mt.prototype,"writeStyleUrl",null),(0,s._)([(0,p.Cb)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:z.Z})],mt.prototype,"tileInfo",null),(0,s._)([(0,p.Cb)()],mt.prototype,"tilemapCache",void 0),(0,s._)([(0,d.r)("service","tilemapCache",["capabilities","tileInfo"])],mt.prototype,"readTilemapCache",null),(0,s._)([(0,p.Cb)({json:{read:!1},readOnly:!0,value:"vector-tile"})],mt.prototype,"type",void 0),(0,s._)([(0,p.Cb)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],mt.prototype,"url",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],mt.prototype,"version",void 0),(0,s._)([(0,d.r)("version",["version","currentVersion"])],mt.prototype,"readVersion",null),(0,s._)([(0,p.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],mt.prototype,"path",void 0),(0,s._)([(0,p.Cb)()],mt.prototype,"backgroundColor",null),mt=(0,s._)([(0,y.j)("esri.layers.VectorTileLayer")],mt);const ft=mt},54295:(t,e,r)=>{r.d(e,{V:()=>n});var s=r(43697),i=r(5600),o=(r(75215),r(67676),r(80442),r(52011));const n=t=>{let e=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s._)([(0,i.Cb)({type:String})],e.prototype,"apiKey",null),e=(0,s._)([(0,o.j)("esri.layers.mixins.APIKeyMixin")],e),e}},17017:(t,e,r)=>{r.d(e,{N:()=>n});var s=r(43697),i=r(5600),o=(r(75215),r(67676),r(80442),r(52011));const n=t=>{let e=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,s._)([(0,i.Cb)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],e.prototype,"customParameters",void 0),e=(0,s._)([(0,o.j)("esri.layers.mixins.CustomParametersMixin")],e),e}},16859:(t,e,r)=>{r.d(e,{I:()=>b});var s=r(43697),i=r(68773),o=r(40330),n=r(3172),l=r(66643),a=r(20102),u=r(92604),h=r(70586),c=r(95330),p=r(17452),d=r(5600),y=(r(75215),r(67676),r(80442),r(71715)),m=r(52011),f=r(30556),g=r(84230),_=r(48522),v=r(15235),w=r(86082),S=r(14661);const b=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new v.default({id:e.itemId,portal:r&&r.portal})}writePortalItem(t,e){t&&t.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem&&this.portalItem.id)try{const{load:s}=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(e),await s({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap},e)}catch(t){throw(0,c.D_)(t)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch((t=>((0,c.r9)(t),!0))))}async setUserPrivileges(t,e){if(!i.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,c.r9)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const s=t===r.id;if(s&&r.portal.user)return(0,S.Ss)(r);let i,n;if(s)i=r.portal.url;else try{i=await(0,g.oP)(this.url,e)}catch(t){(0,c.r9)(t)}if(!i||!(0,p.Zo)(i,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;n=await(o.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,c.r9)(t)}if(!n)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(s?await r.reload():(r=new v.default({id:t,portal:{url:i}}),await r.load(e)),r.portal.user)return(0,S.Ss)(r)}catch(t){(0,c.r9)(t)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,c.r9)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const r=A.credential===e?A.user:await this._fetchEditingUser(t);return A.credential=e,A.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=o.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,i=_.Z.getDefault();if(i&&i.loaded&&(0,p.Fv)(i.restUrl)===(0,p.Fv)(s))return i.user;const a=`${s}/community/self`,u=null!=t?t.signal:null,h=await(0,l.q6)((0,n.Z)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?w.Z.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e&&e.portal,s=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||_.Z.getDefault());return r&&s&&!(0,p.tm)(s.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,s._)([(0,d.Cb)({type:v.default})],e.prototype,"portalItem",null),(0,s._)([(0,y.r)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,s._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,s._)([(0,d.Cb)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,s._)([(0,d.Cb)({type:Boolean,readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),(0,s._)([(0,d.Cb)({type:Boolean,readOnly:!0})],e.prototype,"userHasFullEditingPrivileges",void 0),(0,s._)([(0,d.Cb)({type:Boolean,readOnly:!0})],e.prototype,"userHasUpdateItemPrivileges",void 0),e=(0,s._)([(0,m.j)("esri.layers.mixins.PortalLayer")],e),e},A={credential:null,user:null}},33516:(t,e,r)=>{r.d(e,{Y:()=>n,h:()=>o});var s=r(17452),i=r(48522);function o(t){return{origin:"portal-item",url:(0,s.mN)(t.itemUrl),portal:t.portal||i.Z.getDefault(),portalItem:t,readResourcePaths:[]}}function n(t){return{origin:"portal-item",messages:[],writtenProperties:[],url:t.itemUrl?(0,s.mN)(t.itemUrl):null,portal:t.portal||i.Z.getDefault(),portalItem:t}}},15512:(t,e,r)=>{r.d(e,{By:()=>s,_4:()=>i,pt:()=>o});const s="system",i="unknown",o="UTC"},55415:(t,e,r)=>{r.d(e,{Z:()=>i});var s=r(71143);class i{static getId(t,e,r,s){return"object"==typeof t?`${t.level}/${t.row}/${t.col}/${t.world}`:`${t}/${e}/${r}/${s}`}constructor(t,e,r,s){this.set(t,e,r,s)}get key(){return this}get id(){return this.toString()}set id(t){this.set(t)}get hash(){const t=4095&this.row,e=4095&this.col,r=63&this.level;return(3&this.world)<<30|e<<22|t<<8|r}acquire(t,e,r,s){this.set(t,e,r,s)}contains(t){const e=t.level-this.level;return e>=0&&this.row===t.row>>e&&this.col===t.col>>e&&this.world===t.world}equals(t){return this.level===t.level&&this.row===t.row&&this.col===t.col&&this.world===t.world}clone(){return new i(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(t,e,r,s){if(null==t)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof t)this.level=t.level||0,this.row=t.row||0,this.col=t.col||0,this.world=t.world||0;else if("string"==typeof t){const[e,r,s,i]=t.split("/");this.level=parseFloat(e),this.row=parseFloat(r),this.col=parseFloat(s),this.world=parseFloat(i)}else this.level=+t,this.row=+e,this.col=+r,this.world=+s||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new i(this.level-1,this.row>>1,this.col>>1,this.world)}getChildKeys(){const t=this.level+1,e=this.row<<1,r=this.col<<1,s=this.world;return[new i(t,e,r,s),new i(t,e,r+1,s),new i(t,e+1,r,s),new i(t,e+1,r+1,s)]}compareRowMajor(t){return this.row<t.row?-1:this.row>t.row?1:this.col<t.col?-1:this.col>t.col?1:0}}i.pool=new s.Z(i,null,null,25,50)},7575:(t,e,r)=>{r.d(e,{Sh:()=>n,kr:()=>o,zO:()=>s});var s,i=r(80442);function o(t,e,r={}){const i=e===s.WEBGL1?["webgl","experimental-webgl","webkit-3d","moz-webgl"]:["webgl2"];for(const e of i){const s=t.getContext(e,r);if(s)return s}return null}function n(t){if("3d"===t)return[s.WEBGL2];const e=(0,i.Z)("esri-force-webgl");return e===s.WEBGL1||e===s.WEBGL2?[e]:(0,i.Z)("mac")&&(0,i.Z)("chrome")?[s.WEBGL1,s.WEBGL2]:[s.WEBGL2,s.WEBGL1]}!function(t){t[t.WEBGL1=1]="WEBGL1",t[t.WEBGL2=2]="WEBGL2"}(s||(s={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5851,6030,7360],{22303:(t,e,n)=>{n.d(e,{Z:()=>A});var r,o,i=n(35270),a=n(22021),l=n(75215);function u(t){return(0,a.uZ)((0,l.vU)(t),0,255)}function s(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}function c(t,e){const n=t.toString(16).padStart(2,"0");return e?n.substring(0,1):n}class f{static blendColors(t,e,n,r=new f){return r.r=Math.round(t.r+(e.r-t.r)*n),r.g=Math.round(t.g+(e.g-t.g)*n),r.b=Math.round(t.b+(e.b-t.b)*n),r.a=t.a+(e.a-t.a)*n,r._sanitize()}static fromRgb(t,e){const n=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),r=n[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){const n=t[0];if("%"===n.charAt(n.length-1)){const n=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(n[3]=parseFloat(t[3])),f.fromArray(n,e)}return f.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return f.fromArray((0,i.B7)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new f){if("#"!==t[0]||isNaN(Number(`0x${t.substring(1)}`)))return null;switch(t.length){case 4:case 5:{const n=parseInt(t.substring(1,2),16),r=parseInt(t.substring(2,3),16),o=parseInt(t.substring(3,4),16),i=5===t.length?15:parseInt(t.substring(4),16);return f.fromArray([n+16*n,r+16*r,o+16*o,(i+16*i)/255],e)}case 7:case 9:{const n=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16),o=parseInt(t.substring(5,7),16),i=7===t.length?255:parseInt(t.substring(7),16);return f.fromArray([n,r,o,i/255],e)}default:return null}}static fromArray(t,e=new f){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const n=(0,i.St)(t)?(0,i.h$)(t):null;return n&&f.fromArray(n,e)||f.fromRgb(t,e)||f.fromHex(t,e)}static fromJSON(t){return null!=t?new f([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?f.fromString(t,this):Array.isArray(t)?f.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof f||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,n=t?.digits??6,r=3===n||4===n,o=4===n||8===n,i=`#${c(this.r,r)}${c(this.g,r)}${c(this.b,r)}${o?c(Math.round(255*this.a),r):""}`;return e?i.toUpperCase():i}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=f.AlphaMode.ALWAYS){const e=u(this.r),n=u(this.g),r=u(this.b);return t===f.AlphaMode.ALWAYS||1!==this.a?[e,n,r,u(255*this.a)]:[e,n,r]}clone(){return new f(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(s(this.r,0,255)),this.g=Math.round(s(this.g,0,255)),this.b=Math.round(s(this.b,0,255)),this.a=s(this.a,0,1),this}_set(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}f.prototype.declaredClass="esri.Color",(o=(r=f||(f={})).AlphaMode||(r.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const A=f},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,a,l,u){return[t,e,n,r,o,i,a,l,u]}function i(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>i,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:i,fromValues:o},Symbol.toStringTag,{value:"Module"}))},51305:(t,e,n)=>{n.d(e,{a:()=>C,c:()=>S,g:()=>c,j:()=>I,k:()=>E,m:()=>f,s:()=>s});var r=n(46521),o=n(94961),i=n(65617),a=n(46851),l=n(17896),u=n(98766);function s(t,e,n){n*=.5;const r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function c(t,e){const n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>(0,a.g)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function f(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],l=n[0],u=n[1],s=n[2],c=n[3];return t[0]=r*c+a*l+o*s-i*u,t[1]=o*c+a*u+i*l-r*s,t[2]=i*c+a*s+r*u-o*l,t[3]=a*c-r*l-o*u-i*s,t}function A(t,e,n,r){const o=e[0],i=e[1],l=e[2],u=e[3];let s,c,f,A,C,d=n[0],E=n[1],S=n[2],h=n[3];return c=o*d+i*E+l*S+u*h,c<0&&(c=-c,d=-d,E=-E,S=-S,h=-h),1-c>(0,a.g)()?(s=Math.acos(c),f=Math.sin(s),A=Math.sin((1-r)*s)/f,C=Math.sin(r*s)/f):(A=1-r,C=r),t[0]=A*o+C*d,t[1]=A*i+C*E,t[2]=A*l+C*S,t[3]=A*u+C*h,t}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function d(t,e){const n=e[0]+e[4]+e[8];let r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);const o=(n+1)%3,i=(n+2)%3;r=Math.sqrt(e[3*n+n]-e[3*o+o]-e[3*i+i]+1),t[n]=.5*r,r=.5/r,t[3]=(e[3*o+i]-e[3*i+o])*r,t[o]=(e[3*o+n]+e[3*n+o])*r,t[i]=(e[3*i+n]+e[3*n+i])*r}return t}function E(t,e,n,r){const o=.5*Math.PI/180;e*=o,n*=o,r*=o;const i=Math.sin(e),a=Math.cos(e),l=Math.sin(n),u=Math.cos(n),s=Math.sin(r),c=Math.cos(r);return t[0]=i*u*c-a*l*s,t[1]=a*l*c+i*u*s,t[2]=a*u*s-i*l*c,t[3]=a*u*c+i*l*s,t}const S=u.c,h=u.s,O=u.a,R=f,M=u.b,_=u.d,b=u.l,p=u.f,L=p,N=u.g,g=N,P=u.n,I=u.h,y=u.e,T=(0,i.c)(),m=(0,i.f)(1,0,0),w=(0,i.f)(0,1,0),F=(0,o.a)(),U=(0,o.a)(),G=(0,r.a)();Object.freeze(Object.defineProperty({__proto__:null,add:O,calculateW:function(t,e){const n=e[0],r=e[1],o=e[2];return t[0]=n,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),t},conjugate:C,copy:S,dot:_,equals:y,exactEquals:I,fromEuler:E,fromMat3:d,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=n*n+r*r+o*o+i*i,l=a?1/a:0;return t[0]=-n*l,t[1]=-r*l,t[2]=-o*l,t[3]=i*l,t},len:L,length:p,lerp:b,mul:R,multiply:f,normalize:P,random:function(t){const e=a.R,n=e(),r=e(),o=e(),i=Math.sqrt(1-n),l=Math.sqrt(n);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=l*Math.sin(2*Math.PI*o),t[3]=l*Math.cos(2*Math.PI*o),t},rotateX:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],l=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*l,t[1]=o*u+i*l,t[2]=i*u-o*l,t[3]=a*u-r*l,t},rotateY:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],l=Math.sin(n),u=Math.cos(n);return t[0]=r*u-i*l,t[1]=o*u+a*l,t[2]=i*u+r*l,t[3]=a*u-o*l,t},rotateZ:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],l=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*l,t[1]=o*u-r*l,t[2]=i*u+a*l,t[3]=a*u-i*l,t},rotationTo:function(t,e,n){const r=(0,l.j)(e,n);return r<-.999999?((0,l.b)(T,m,e),(0,l.k)(T)<1e-6&&(0,l.b)(T,w,e),(0,l.n)(T,T),s(t,T,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,l.b)(T,e,n),t[0]=T[0],t[1]=T[1],t[2]=T[2],t[3]=1+r,P(t,t))},scale:M,set:h,setAxes:function(t,e,n,r){const o=G;return o[0]=n[0],o[3]=n[1],o[6]=n[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-e[0],o[5]=-e[1],o[8]=-e[2],P(t,d(t,o))},setAxisAngle:s,slerp:A,sqlerp:function(t,e,n,r,o,i){return A(F,e,o,i),A(U,n,r,i),A(t,F,U,2*i*(1-i)),t},sqrLen:g,squaredLength:N,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function i(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>a,a:()=>r,b:()=>o,c:()=>i});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:i,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},36030:(t,e,n)=>{n.d(e,{J:()=>i});var r=n(35454),o=n(5600);function i(t,e={}){const n=t instanceof r.X?t:new r.X(t,e),i={type:e?.ignoreUnknown??1?n.apiValues:String,json:{type:n.jsonValues,read:!e?.readOnly&&{reader:n.read},write:{writer:n.write}}};return void 0!==e?.readOnly&&(i.readOnly=!!e.readOnly),void 0!==e?.default&&(i.json.default=e.default),void 0!==e?.name&&(i.json.name=e.name),void 0!==e?.nonNullable&&(i.nonNullable=e.nonNullable),(0,o.Cb)(i)}},87360:(t,e,n)=>{n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(29166);function o(t,e,n,o,i,a,l=1){const u=(0,r.R8)(e,i,r._U);if(null==u)return!1;if(u===r.iq){if(t===o&&n===a)return!0;const e=n+3*l;for(let r=n,i=a;r<e;r++,i++)o[i]=t[r];return!0}const s=n+3*l;for(let e=n,r=a;e<s;e+=3,r+=3)u(t,e,o,r);return!0}},29166:(t,e,n)=>{n.d(e,{Ej:()=>c,eT:()=>S,iq:()=>h,sp:()=>v,R8:()=>E,zl:()=>d,rf:()=>C,_U:()=>W,Jz:()=>G});var r=n(22021),o=n(67900),i=n(2109),a=n(68441);Math.PI;const l=a.sv.radius,u=a.sv.eccentricitySquared,s={a1:l*u,a2:l*u*l*u,a3:l*u*u/2,a4:l*u*l*u*2.5,a5:l*u+l*u*u/2,a6:1-u};a.sv.radius,a.sv.flattening,a.Z1.radius,a.Z1.flattening,a.yr.radius,a.yr.flattening,a.yr.radius;var c,f=n(8744),A=n(56726);!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",t[t.WGS84=2]="WGS84",t[t.WEB_MERCATOR=3]="WEB_MERCATOR",t[t.WGS84_ECEF=4]="WGS84_ECEF",t[t.CGCS2000=5]="CGCS2000",t[t.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",t[t.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",t[t.GCSMARS2000=8]="GCSMARS2000",t[t.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",t[t.GCSMOON2000=10]="GCSMOON2000",t[t.LON_LAT=11]="LON_LAT",t[t.PLATE_CARREE=12]="PLATE_CARREE"}(c||(c={}));const C={[c.WGS84]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:h,[c.WGS84_COMPARABLE_LON_LAT]:h,[c.SPHERICAL_ECEF]:P,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:R,[c.PLATE_CARREE]:b,[c.WGS84]:h,[c.WGS84_ECEF]:w},[c.CGCS2000]:{[c.CGCS2000]:h,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:h,[c.WGS84_COMPARABLE_LON_LAT]:h,[c.SPHERICAL_ECEF]:P,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:b,[c.WGS84]:null,[c.WGS84_ECEF]:w},[c.GCSMARS2000]:{[c.CGCS2000]:null,[c.GCSMARS2000]:h,[c.GCSMOON2000]:null,[c.LON_LAT]:h,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:g,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.GCSMOON2000]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:h,[c.LON_LAT]:h,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:N,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.WEB_MERCATOR]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:O,[c.WGS84_COMPARABLE_LON_LAT]:O,[c.SPHERICAL_ECEF]:function(t,e,n,r){O(t,e,n,r),P(n,r,n,r)},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:h,[c.PLATE_CARREE]:function(t,e,n,r){O(t,e,n,r),b(n,r,n,r)},[c.WGS84]:O,[c.WGS84_ECEF]:function(t,e,n,r){O(t,e,n,r),w(n,r,n,r)}},[c.WGS84_ECEF]:{[c.CGCS2000]:F,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:F,[c.WGS84_COMPARABLE_LON_LAT]:F,[c.SPHERICAL_ECEF]:function(t,e,n,r){F(t,e,n,r),P(n,r,n,r)},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(t,e,n,r){F(t,e,n,r),R(n,r,n,r)},[c.PLATE_CARREE]:function(t,e,n,r){F(t,e,n,r),b(n,r,n,r)},[c.WGS84]:F,[c.WGS84_ECEF]:h},[c.SPHERICAL_ECEF]:{[c.CGCS2000]:m,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:m,[c.WGS84_COMPARABLE_LON_LAT]:m,[c.SPHERICAL_ECEF]:h,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(t,e,n,r){m(t,e,n,r),R(n,r,n,r)},[c.PLATE_CARREE]:function(t,e,n,r){m(t,e,n,r),b(n,r,n,r)},[c.WGS84]:m,[c.WGS84_ECEF]:function(t,e,n,r){m(t,e,n,r),w(n,r,n,r)}},[c.SPHERICAL_MARS_PCPF]:{[c.CGCS2000]:null,[c.GCSMARS2000]:T,[c.GCSMOON2000]:null,[c.LON_LAT]:T,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:h,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.SPHERICAL_MOON_PCPF]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:y,[c.LON_LAT]:y,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:h,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.UNKNOWN]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:null,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:h,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.LON_LAT]:{[c.CGCS2000]:h,[c.GCSMARS2000]:h,[c.GCSMOON2000]:h,[c.LON_LAT]:h,[c.WGS84_COMPARABLE_LON_LAT]:h,[c.SPHERICAL_ECEF]:P,[c.SPHERICAL_MARS_PCPF]:g,[c.SPHERICAL_MOON_PCPF]:N,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:R,[c.PLATE_CARREE]:b,[c.WGS84]:h,[c.WGS84_ECEF]:w},[c.WGS84_COMPARABLE_LON_LAT]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:h,[c.WGS84_COMPARABLE_LON_LAT]:h,[c.SPHERICAL_ECEF]:P,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:b,[c.WGS84]:h,[c.WGS84_ECEF]:w},[c.PLATE_CARREE]:{[c.CGCS2000]:p,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:p,[c.WGS84_COMPARABLE_LON_LAT]:p,[c.SPHERICAL_ECEF]:function(t,e,n,r){p(t,e,n,r),P(n,r,n,r)},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(t,e,n,r){p(t,e,n,r),R(n,r,n,r)},[c.PLATE_CARREE]:h,[c.WGS84]:p,[c.WGS84_ECEF]:function(t,e,n,r){p(t,e,n,r),w(n,r,n,r)}}};function d(t){const e=S(t,G);return C[e][c.WGS84_COMPARABLE_LON_LAT]}function E(t,e,n=U()){return null==t||null==e?null:function(t,e,n){if(null==t||null==e||n.source.spatialReference===t&&n.dest.spatialReference===e)return n;const r=S(t,n.source),o=S(e,n.dest);return r===c.UNKNOWN&&o===c.UNKNOWN?(0,f.fS)(t,e)?n.projector=h:n.projector=null:n.projector=C[r][o],n}(t,e,n).projector}function S(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.c9)(t,1)),(0,i.fY)(t)?e.spatialReferenceId=c.SPHERICAL_ECEF:(0,f.oR)(t)?e.spatialReferenceId=c.WGS84:(0,f.sS)(t)?e.spatialReferenceId=c.WEB_MERCATOR:(0,f.QM)(t)?e.spatialReferenceId=c.PLATE_CARREE:t.wkt===i.pn.wkt?e.spatialReferenceId=c.WGS84_ECEF:t.wkid===A.W.CGCS2000?e.spatialReferenceId=c.CGCS2000:t.wkt===i.JL.wkt?e.spatialReferenceId=c.SPHERICAL_MARS_PCPF:t.wkt===i.mM.wkt?e.spatialReferenceId=c.SPHERICAL_MOON_PCPF:(0,f.BZ)(t)?e.spatialReferenceId=c.GCSMARS2000:(0,f.V2)(t)?e.spatialReferenceId=c.GCSMOON2000:e.spatialReferenceId=c.UNKNOWN):c.UNKNOWN}function h(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e])}function O(t,e,n,r){n[r++]=H*(t[e++]/a.sv.radius),n[r++]=H*(Math.PI/2-2*Math.atan(Math.exp(-t[e++]/a.sv.radius))),n[r]=t[e]}function R(t,e,n,o){!function(t,e,n,o,i){const a=.4999999*Math.PI,l=(0,r.uZ)(B*t[e+1],-a,a),u=Math.sin(l);n[o++]=B*t[e]*i.radius,n[o++]=i.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[o]=t[e+2]}(t,e,n,o,a.sv)}const M=a.sv.radius*Math.PI/180,_=180/(a.sv.radius*Math.PI);function b(t,e,n,r){n[r]=t[e]*M,n[r+1]=t[e+1]*M,n[r+2]=t[e+2]}function p(t,e,n,r){n[r]=t[e]*_,n[r+1]=t[e+1]*_,n[r+2]=t[e+2]}function L(t,e,n,r,o){const i=o+t[e+2],a=B*t[e+1],l=B*t[e],u=Math.cos(a);n[r++]=Math.cos(l)*u*i,n[r++]=Math.sin(l)*u*i,n[r]=Math.sin(a)*i}function N(t,e,n,r){L(t,e,n,r,a.Z1.radius)}function g(t,e,n,r){L(t,e,n,r,a.yr.radius)}function P(t,e,n,r){L(t,e,n,r,a.sv.radius)}function I(t,e,n,o,i){const a=t[e],l=t[e+1],u=t[e+2],s=Math.sqrt(a*a+l*l+u*u),c=(0,r.Kt)(u/(0===s?1:s)),f=Math.atan2(l,a);n[o++]=H*f,n[o++]=H*c,n[o]=s-i}function y(t,e,n,r){I(t,e,n,r,a.Z1.radius)}function T(t,e,n,r){I(t,e,n,r,a.yr.radius)}function m(t,e,n,r){I(t,e,n,r,a.sv.radius)}function w(t,e,n,r){!function(t,e,n,r,o){const i=B*t[e],a=B*t[e+1],l=t[e+2],u=Math.sin(a),s=Math.cos(a),c=o.radius/Math.sqrt(1-o.eccentricitySquared*u*u);n[r++]=(c+l)*s*Math.cos(i),n[r++]=(c+l)*s*Math.sin(i),n[r++]=(c*(1-o.eccentricitySquared)+l)*u}(t,e,n,r,a.sv)}function F(t,e,n,r){const o=s,i=t[e],l=t[e+1],u=t[e+2];let c,f,A,C,d,E,S,h,O,R,M,_,b,p,L,N,g,P,I,y,T;c=Math.abs(u),f=i*i+l*l,A=Math.sqrt(f),C=f+u*u,d=Math.sqrt(C),y=Math.atan2(l,i),E=u*u/C,S=f/C,p=o.a2/d,L=o.a3-o.a4/d,S>.3?(h=c/d*(1+S*(o.a1+p+E*L)/d),I=Math.asin(h),R=h*h,O=Math.sqrt(1-R)):(O=A/d*(1-E*(o.a5-p-S*L)/d),I=Math.acos(O),R=1-O*O,h=Math.sqrt(R)),M=1-a.sv.eccentricitySquared*R,_=a.sv.radius/Math.sqrt(M),b=o.a6*_,p=A-_*O,L=c-b*h,g=O*p+h*L,N=O*L-h*p,P=N/(b/M+g),I+=P,T=g+N*P/2,u<0&&(I=-I),n[r++]=H*y,n[r++]=H*I,n[r]=T}function U(){return{source:{spatialReference:null,spatialReferenceId:c.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:c.UNKNOWN,metersPerUnit:1},projector:h}}const G={spatialReference:null,spatialReferenceId:c.UNKNOWN},v={spatialReference:null,spatialReferenceId:c.UNKNOWN},W=U(),B=(0,r.Vl)(1),H=(0,r.BV)(1)},91700:(t,e,n)=>{n.r(e),n.d(e,{default:()=>F});var r=n(67676),o=n(1533),i=n(51305),a=n(94961),l=n(17896);function u(){return new Float32Array(3)}function s(t,e,n){const r=new Float32Array(3);return r[0]=t,r[1]=e,r[2]=n,r}function c(){return u()}function f(){return s(1,1,1)}function A(){return s(1,0,0)}function C(){return s(0,1,0)}function d(){return s(0,0,1)}const E=c(),S=f(),h=A(),O=C(),R=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:S,UNIT_X:h,UNIT_Y:O,UNIT_Z:R,ZEROS:E,clone:function(t){const e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},create:u,createView:function(t,e){return new Float32Array(t,e,3)},fromValues:s,ones:f,unitX:A,unitY:C,unitZ:d,zeros:c},Symbol.toStringTag,{value:"Module"}));var M=n(82971),_=n(87360),b=(n(80442),n(23030)),p=n(14008),L=n(46329),N=n(91891),g=n(25683);function P(t,e,n){return null!=t&&t.attributeInfo.useElevation?e?function(t,e){const n=new Float64Array(e);for(let r=0;r<e;r++)n[r]=t[3*r+2];return n}(e,n):null:null!=t&&t.attributeInfo.storageInfo?(0,N.qM)(t.attributeInfo.storageInfo,t.buffer,n):null}function I(t,e,n,r,o){const i=t.length/3;let a=0;for(let l=0;l<i;l++){let i=!0;for(let t=0;t<r.length&&i;t++){const{filterJSON:e}=r[t],n=o[t].values[l];switch(e.type){case"pointCloudValueFilter":{const t="exclude"===e.mode;e.values.includes(n)===t&&(i=!1);break}case"pointCloudBitfieldFilter":{const t=T(e.requiredSetBits),r=T(e.requiredClearBits);(n&t)===t&&0==(n&r)||(i=!1);break}case"pointCloudReturnFilter":{const t=15&n,r=n>>>4&15,o=r>1,a=1===t,l=t===r;let u=!1;for(const t of e.includedReturns)if("last"===t&&l||"firstOfMany"===t&&a&&o||"lastOfMany"===t&&l&&o||"single"===t&&!o){u=!0;break}u||(i=!1);break}}}i&&(n[a]=l,t[3*a]=t[3*l],t[3*a+1]=t[3*l+1],t[3*a+2]=t[3*l+2],e[3*a]=e[3*l],e[3*a+1]=e[3*l+1],e[3*a+2]=e[3*l+2],a++)}return a}function y(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function T(t){let e=0;for(const n of t||[])e|=1<<n;return e}class m{transform(t){const e=this._transform(t),n=[e.points.buffer,e.rgb.buffer];null!=e.pointIdFilterMap&&n.push(e.pointIdFilterMap.buffer);for(const t of e.attributes)"buffer"in t.values&&(0,o.eP)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&n.push(t.values.buffer);return Promise.resolve({result:e,transferList:n})}_transform(t){const e=function(t,e){if(null==t.encoding||""===t.encoding){const n=(0,N.W7)(e,t);if(null==n.vertexAttributes.position)return;const r=(0,N.I_)(e,n.vertexAttributes.position),o=n.header.fields,i=[o.offsetX,o.offsetY,o.offsetZ],a=[o.scaleX,o.scaleY,o.scaleZ],l=r.length/3,u=new Float64Array(3*l);for(let t=0;t<l;t++)u[3*t]=r[3*t]*a[0]+i[0],u[3*t+1]=r[3*t+1]*a[1]+i[1],u[3*t+2]=r[3*t+2]*a[2]+i[2];return u}if("lepcc-xyz"===t.encoding)return(0,g.Gi)(e).result}(t.schema,t.geometryBuffer);let n=e.length/3,o=null;const i=new Array,a=P(t.primaryAttributeData,e,n);null!=t.primaryAttributeData&&a&&i.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:a});const l=P(t.modulationAttributeData,e,n);null!=t.modulationAttributeData&&l&&i.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:l});let u=function(t,e,n,r){const{rendererJSON:o,isRGBRenderer:i}=t;let a=null,l=null;if(e&&i)a=e;else if(e&&"pointCloudUniqueValueRenderer"===o?.type){l=L.Z.fromJSON(o);const t=l.colorUniqueValueInfos;a=new Uint8Array(3*r);const n=y(l.fieldTransformType);for(let o=0;o<r;o++){const r=(n?n(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.includes(r)){a[3*o]=t[e].color.r,a[3*o+1]=t[e].color.g,a[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o?.type){l=p.Z.fromJSON(o);const t=l.stops;a=new Uint8Array(3*r);const n=y(l.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(e[o]):e[o],i=t.length-1;if(r<t[0].value)a[3*o]=t[0].color.r,a[3*o+1]=t[0].color.g,a[3*o+2]=t[0].color.b;else if(r>=t[i].value)a[3*o]=t[i].color.r,a[3*o+1]=t[i].color.g,a[3*o+2]=t[i].color.b;else for(let e=1;e<t.length;e++)if(r<t[e].value){const n=(r-t[e-1].value)/(t[e].value-t[e-1].value);a[3*o]=t[e].color.r*n+t[e-1].color.r*(1-n),a[3*o+1]=t[e].color.g*n+t[e-1].color.g*(1-n),a[3*o+2]=t[e].color.b*n+t[e-1].color.b*(1-n);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o?.type){l=b.Z.fromJSON(o);const t=l.colorClassBreakInfos;a=new Uint8Array(3*r);const n=y(l.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(e[o]):e[o];for(let e=0;e<t.length;e++)if(r>=t[e].minValue&&r<=t[e].maxValue){a[3*o]=t[e].color.r,a[3*o+1]=t[e].color.g,a[3*o+2]=t[e].color.b;break}}}else a=new Uint8Array(3*r).fill(255);if(n&&l&&l.colorModulation){const t=l.colorModulation.minValue,e=l.colorModulation.maxValue,o=.3;for(let i=0;i<r;i++){const r=n[i],l=r>=e?1:r<=t?o:o+(1-o)*(r-t)/(e-t);a[3*i]=l*a[3*i],a[3*i+1]=l*a[3*i+1],a[3*i+2]=l*a[3*i+2]}}return a}(t.rendererInfo,a,l,n);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const a=t.filterAttributesData.filter(r.pC).map((t=>{const r=P(t,e,n),o={attributeInfo:t.attributeInfo,values:r};return i.push(o),o}));o=new Uint32Array(n),n=I(e,u,o,t.filterInfo,a)}for(const r of t.userAttributesData){const t=P(r,e,n);i.push({attributeInfo:r.attributeInfo,values:t})}3*n<u.length&&(u=new Uint8Array(u.buffer.slice(0,3*n))),this._applyElevationOffsetInPlace(e,n,t.elevationOffset);const s=this._transformCoordinates(e,n,t.obb,M.Z.fromJSON(t.inSR),M.Z.fromJSON(t.outSR));return{obb:t.obb,points:s,rgb:u,attributes:i,pointIdFilterMap:o}}_transformCoordinates(t,e,n,r,o){if(!(0,_.projectBuffer)(t,r,0,t,o,0,e))throw new Error("Can't reproject");const a=s(n.center[0],n.center[1],n.center[2]),c=u(),f=u();(0,i.a)(w,n.quaternion);const A=new Float32Array(3*e);for(let r=0;r<e;r++)c[0]=t[3*r]-a[0],c[1]=t[3*r+1]-a[1],c[2]=t[3*r+2]-a[2],(0,l.v)(f,c,w),n.halfSize[0]=Math.max(n.halfSize[0],Math.abs(f[0])),n.halfSize[1]=Math.max(n.halfSize[1],Math.abs(f[1])),n.halfSize[2]=Math.max(n.halfSize[2],Math.abs(f[2])),A[3*r]=c[0],A[3*r+1]=c[1],A[3*r+2]=c[2];return A}_applyElevationOffsetInPlace(t,e,n){if(0!==n)for(let r=0;r<e;r++)t[3*r+2]+=n}}const w=(0,a.a)();function F(){return new m}},91891:(t,e,n)=>{n.d(e,{I_:()=>A,W7:()=>E,qM:()=>h});var r=n(20102),o=n(22974),i=n(92604),a=n(25683),l=n(35065);const u=i.Z.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function s(t,e,n){let o="",i=0;for(;i<n;){const a=t[e+i];if(a<128)o+=String.fromCharCode(a),i++;else if(a>=192&&a<224){if(i+1>=n)throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const l=(31&a)<<6|63&t[e+i+1];o+=String.fromCharCode(l),i+=2}else if(a>=224&&a<240){if(i+2>=n)throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const l=(15&a)<<12|(63&t[e+i+1])<<6|63&t[e+i+2];o+=String.fromCharCode(l),i+=3}else{if(!(a>=240&&a<248))throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const l=(7&a)<<18|(63&t[e+i+1])<<12|(63&t[e+i+2])<<6|63&t[e+i+3];if(l>=65536){const t=55296+(l-65536>>10),e=56320+(1023&l);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(l);i+=4}}}return o}function c(t,e){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<e.length;o++){const i=e[o],a=i.valueType||i.type,l=R[a];n.fields[i.property]=l(t,r),r+=O[a].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){const o=[];let i,a,l=0;for(a=0;a<t;a+=1){if(i=e[a],i>0){if(o.push(s(n,l,i-1)),0!==n[l+i-1])throw new r.Z("string-array-error","Invalid string array: missing null termination.")}else o.push(null);l+=i}return o}function A(t,e){return new(0,O[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function C(t,e,n){const i=null!=e.header?c(t,e.header):{byteOffset:0,byteCount:0,fields:{count:n}},a={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let l=i.byteCount;for(let t=0;t<e.ordering.length;t++){const n=e.ordering[t],u=(0,o.d9)(e[n]);if(u.count=i.fields.count??0,"String"===u.valueType){if(u.byteOffset=l,u.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==u.encoding)throw new r.Z("unsupported-encoding","Unsupported String encoding.",{encoding:u.encoding});if(u.timeEncoding&&"ECMA_ISO8601"!==u.timeEncoding)throw new r.Z("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:u.timeEncoding})}else{if(!M(u.valueType))throw new r.Z("unsupported-value-type","Unsupported binary valueType",{valueType:u.valueType});{const t=_(u.valueType);l+=l%t!=0?t-l%t:0,u.byteOffset=l,u.byteCount=t*u.valuesPerElement*u.count}}l+=u.byteCount??0,a.entries[n]=u}return a.byteCount=l-a.byteOffset,a}function d(t,e,n){if(e!==t&&u.error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.Z("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function E(t,e){const n=c(t,e&&e.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,a=null!=i.vertexCount?i.vertexCount:i.count;for(const t of e.ordering){if(!e.vertexAttributes[t])continue;const n={...e.vertexAttributes[t],byteOffset:r,count:a},i=S[t]||"_"+t;o.vertexAttributes[i]=n,r+=_(n.valueType)*n.valuesPerElement*a}const l=i.faceCount;if(e.faces&&l){o.faces={};for(const t of e.ordering){if(!e.faces[t])continue;const n={...e.faces[t],byteOffset:r,count:l};o.faces[t]=n,r+=_(n.valueType)*n.valuesPerElement*l}}const u=i.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&u){o.featureAttributes={};for(const t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;const n={...e.featureAttributes[t],byteOffset:r,count:u};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:_(n.valueType))*n.valuesPerElement*u}}return d(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const S={position:l.T.POSITION,normal:l.T.NORMAL,color:l.T.COLOR,uv0:l.T.UV0,region:l.T.UVREGION};function h(t,e,n){if("lepcc-rgb"===t.encoding)return(0,a.IT)(e);if("lepcc-intensity"===t.encoding)return(0,a.ti)(e);if(null!=t.encoding&&""!==t.encoding)throw new r.Z("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(u.warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(u.warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const o=C(e,t,n);d(o.byteOffset+o.byteCount,e.byteLength,"attribute");const i=o.entries.attributeValues||o.entries.objectIds;if(i){if("String"===i.valueType){const t=o.entries.attributeByteCounts,n=A(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,i);return i.timeEncoding?function(t,e,n){return f(t,e,n).map((t=>{const e=t?Date.parse(t):null;return e&&!Number.isNaN(e)?e:null}))}(t.count,n,r):f(t.count,n,r)}return A(e,i)}throw new r.Z("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const O={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},R={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function M(t){return O.hasOwnProperty(t)}function _(t){return M(t)?O[t].BYTES_PER_ELEMENT:0}},25683:(t,e,n)=>{n.d(e,{Gi:()=>s,IT:()=>d,ti:()=>h});var r=n(20102);const o=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function a(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+i.identifierOffset,i.identifierLength)),version:e.getUint16(n+i.versionOffset,o),checksum:e.getUint32(n+i.checksumOffset,o)}}const l={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function u(t,e){return{sizeLo:t.getUint32(e+l.sizeLo,o),sizeHi:t.getUint32(e+l.sizeHi,o),minX:t.getFloat64(e+l.minX,o),minY:t.getFloat64(e+l.minY,o),minZ:t.getFloat64(e+l.minZ,o),maxX:t.getFloat64(e+l.maxX,o),maxY:t.getFloat64(e+l.maxY,o),maxZ:t.getFloat64(e+l.maxZ,o),errorX:t.getFloat64(e+l.errorX,o),errorY:t.getFloat64(e+l.errorY,o),errorZ:t.getFloat64(e+l.errorZ,o),count:t.getUint32(e+l.count,o),reserved:t.getUint32(e+l.reserved,o)}}function s(t){const e=new DataView(t,0);let n=0;const{identifier:o,version:s}=a(t,e,n);if(n+=i.byteCount,"LEPCC "!==o)throw new r.Z("lepcc-decode-error","Bad identifier");if(s>1)throw new r.Z("lepcc-decode-error","Unknown version");const f=u(e,n);if(n+=l.byteCount,f.sizeHi*2**32+f.sizeLo!==t.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const A=new Float64Array(3*f.count),C=[],d=[],E=[],S=[];if(n=c(t,n,C),n=c(t,n,d),n=c(t,n,E),n=c(t,n,S),n!==t.byteLength)throw new r.Z("lepcc-decode-error","Bad length");let h=0,O=0;for(let t=0;t<C.length;t++){O+=C[t];let e=0;for(let n=0;n<d[t];n++){e+=E[h];const t=S[h];A[3*h]=Math.min(f.maxX,f.minX+2*f.errorX*e),A[3*h+1]=Math.min(f.maxY,f.minY+2*f.errorY*O),A[3*h+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*t),h++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:A}}function c(t,e,n){const r=[];e=f(t,e,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,e=f(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[i])}return e}function f(t,e,n){const i=new DataView(t,e),a=i.getUint8(0),l=31&a,u=!!(32&a),s=(192&a)>>6;let c=0;if(0===s)c=i.getUint32(1,o),e+=5;else if(1===s)c=i.getUint16(1,o),e+=3;else{if(2!==s)throw new r.Z("lepcc-decode-error","Bad count type");c=i.getUint8(1),e+=2}if(u)throw new r.Z("lepcc-decode-error","LUT not implemented");const f=Math.ceil(c*l/8),A=new Uint8Array(t,e,f);let C=0,d=0,E=0;const S=-1>>>32-l;for(let t=0;t<c;t++){for(;d<l;)C|=A[E]<<d,d+=8,E+=1;n[t]=C&S,C>>>=l,d-=l,d+l>32&&(C|=A[E-1]>>8-d)}return e+E}const A={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function C(t,e){return{sizeLo:t.getUint32(e+A.sizeLo,o),sizeHi:t.getUint32(e+A.sizeHi,o),count:t.getUint32(e+A.count,o),colorMapCount:t.getUint16(e+A.colorMapCount,o),lookupMethod:t.getUint8(e+A.lookupMethod),compressionMethod:t.getUint8(e+A.compressionMethod)}}function d(t){const e=new DataView(t,0);let n=0;const{identifier:o,version:l}=a(t,e,n);if(n+=i.byteCount,"ClusterRGB"!==o)throw new r.Z("lepcc-decode-error","Bad identifier");if(l>1)throw new r.Z("lepcc-decode-error","Unknown version");const u=C(e,n);if(n+=A.byteCount,u.sizeHi*2**32+u.sizeLo!==t.byteLength)throw new r.Z("lepcc-decode-error","Bad size");if((2===u.lookupMethod||1===u.lookupMethod)&&0===u.compressionMethod){if(3*u.colorMapCount+u.count+n!==t.byteLength||u.colorMapCount>256)throw new r.Z("lepcc-decode-error","Bad count");const e=new Uint8Array(t,n,3*u.colorMapCount),o=new Uint8Array(t,n+3*u.colorMapCount,u.count),i=new Uint8Array(3*u.count);for(let t=0;t<u.count;t++){const n=o[t];i[3*t]=e[3*n],i[3*t+1]=e[3*n+1],i[3*t+2]=e[3*n+2]}return i}if(0===u.lookupMethod&&0===u.compressionMethod){if(3*u.count+n!==t.byteLength||0!==u.colorMapCount)throw new r.Z("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(u.lookupMethod<=2&&1===u.compressionMethod){if(n+3!==t.byteLength||1!==u.colorMapCount)throw new r.Z("lepcc-decode-error","Bad count");const o=e.getUint8(n),i=e.getUint8(n+1),a=e.getUint8(n+2),l=new Uint8Array(3*u.count);for(let t=0;t<u.count;t++)l[3*t]=o,l[3*t+1]=i,l[3*t+2]=a;return l}throw new r.Z("lepcc-decode-error","Bad method "+u.lookupMethod+","+u.compressionMethod)}const E={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function S(t,e){return{sizeLo:t.getUint32(e+E.sizeLo,o),sizeHi:t.getUint32(e+E.sizeHi,o),count:t.getUint32(e+E.count,o),scaleFactor:t.getUint16(e+E.scaleFactor,o),bitsPerPoint:t.getUint8(e+E.bitsPerPoint),reserved:t.getUint8(e+E.reserved)}}function h(t){const e=new DataView(t,0);let n=0;const{identifier:o,version:l}=a(t,e,n);if(n+=i.byteCount,"Intensity "!==o)throw new r.Z("lepcc-decode-error","Bad identifier");if(l>1)throw new r.Z("lepcc-decode-error","Unknown version");const u=S(e,n);if(n+=E.byteCount,u.sizeHi*2**32+u.sizeLo!==t.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const s=new Uint16Array(u.count);if(8===u.bitsPerPoint){if(u.count+n!==t.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const e=new Uint8Array(t,n,u.count);for(let t=0;t<u.count;t++)s[t]=e[t]*u.scaleFactor}else if(16===u.bitsPerPoint){if(2*u.count+n!==t.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const e=new Uint16Array(t,n,u.count);for(let t=0;t<u.count;t++)s[t]=e[t]*u.scaleFactor}else{const e=[];if(f(t,n,e)!==t.byteLength)throw new r.Z("lepcc-decode-error","Bad size");for(let t=0;t<u.count;t++)s[t]=e[t]*u.scaleFactor}return s}},35065:(t,e,n)=>{var r;n.d(e,{T:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.AUXPOS1="auxpos1",t.AUXPOS2="auxpos2",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMALA="normalA",t.NORMALB="normalB",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.U8PADDING="u8padding",t.U16PADDING="u16padding",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8732],{60437:(e,t,n)=>{n.d(t,{G_:()=>I,HH:()=>u,JR:()=>m,TC:()=>i,Tn:()=>f,Ue:()=>o,al:()=>s,bZ:()=>y,cS:()=>d,dp:()=>c,fS:()=>p,is:()=>g,op:()=>a,pp:()=>l,t8:()=>h});var r=n(6570);function o(e=b){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,n,r,s,u,i=o()){return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i[4]=s,i[5]=u,i}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.Z(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function i(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function c(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function a(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function f(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function d(e){return e?h(e,I):o(I)}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function y(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=o,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function p(e,t,n){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(24470);const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];o()},44876:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},98732:(e,t,n)=>{n.d(t,{$:()=>ne,$g:()=>re,EI:()=>A,GH:()=>O,IN:()=>M,Iv:()=>R,J6:()=>z,Jd:()=>N,Nh:()=>D,RZ:()=>B,Uy:()=>C,XA:()=>V,Yn:()=>$,cn:()=>Q,dd:()=>E,di:()=>H,eG:()=>L,fQ:()=>Z,hY:()=>oe,h_:()=>W,lM:()=>X,lz:()=>ue,zj:()=>K});var r=n(20102),o=n(92604),s=n(70586),u=n(60437),i=n(24470),l=n(33955),c=n(70272),a=n(44876),f=n(5428);function h(e,t){return e?t?4:3:t?3:2}const d=o.Z.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},y=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s},g=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s,e[n+2]=t[r+2]},p=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s,e[n+2]=t[r+3]},I=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s,e[n+2]=t[r+2],e[n+3]=t[r+3]};function b(e,t,n,r){if(e){if(n)return t&&r?I:g;if(t&&r)return p}else if(t&&r)return g;return y}function N({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function M({scale:e,translate:t},n){return Math.round((t[1]-n)/e[1])}function T({scale:e,translate:t},n,r){return n*e[r]+t[r]}function Z(e,t,n){return e?t?n?_(e):F(e):n?P(e):w(e):null}function w(e){const t=e.coords;return{x:t[0],y:t[1]}}function G(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function F(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function x(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function P(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function v(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function _(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function k(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function q(e,t){return e&&t?k:e?x:t?v:G}function E(e,t,n=q(null!=t.z,null!=t.m)){return n(e,t)}function R(e,t,n){if(null==e)return null;const r=h(t,n),o=[];for(let t=0;t<e.coords.length;t+=r){const n=[];for(let o=0;o<r;o++)n.push(e.coords[t+o]);o.push(n)}return t?n?{points:o,hasZ:t,hasM:n}:{points:o,hasZ:t}:n?{points:o,hasM:n}:{points:o}}function j(e,t,n=h(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const r=e.coords;let o=0;for(const e of t.points)for(let t=0;t<n;t++)r[o++]=e[t];return e}function z(e,t,n){if(!e)return null;const r=h(t,n),{coords:o,lengths:s}=e,u=[];let i=0;for(const e of s){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(o[i++]);t.push(e)}u.push(t)}return t?n?{paths:u,hasZ:t,hasM:n}:{paths:u,hasZ:t}:n?{paths:u,hasM:n}:{paths:u}}function Y(e,t,n=h(t.hasZ,t.hasM)){const{lengths:r,coords:o}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<n;e++)o[s++]=t[e];r.push(e.length)}return e}function L(e,t,n){if(!e)return null;const r=h(t,n),{coords:o,lengths:s}=e,u=[];let i=0;for(const e of s){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(o[i++]);t.push(e)}u.push(t)}return t?n?{rings:u,hasZ:t,hasM:n}:{rings:u,hasZ:t}:n?{rings:u,hasM:n}:{rings:u}}function C(e,t,n=t.hasZ,r=t.hasM){return function(e,t,n,r){const o=h(n,r),{lengths:s,coords:u}=e;let i=0;ie(e);for(const e of t){for(const t of e)for(let e=0;e<o;e++)u[i++]=t[e];s.push(e.length)}return e}(e,t.rings,n,r)}const S=[],U=[];function V(e,t,n,r,o){S[0]=e;const[s]=$(U,S,t,n,r,o);return le(S),le(U),s}function $(e,t,n,o,s,u){if(le(e),!n){for(const n of t){const t=u?n.attributes[u]:void 0;e.push(new c.u_(null,n.attributes,null,t))}return e}switch(n){case"esriGeometryPoint":return function(e,t,n,r,o){const s=q(n,r);for(const{geometry:n,attributes:r}of t){const t=null!=n?s(new f.Z,n):null;e.push(new c.u_(t,r,null,o?r[o]:void 0))}return e}(e,t,o,s,u);case"esriGeometryMultipoint":return function(e,t,n,r,o){const s=h(n,r);for(const{geometry:n,attributes:r}of t){const t=null!=n?j(new f.Z,n,s):null;e.push(new c.u_(t,r,null,o?r[o]:void 0))}return e}(e,t,o,s,u);case"esriGeometryPolyline":return function(e,t,n,r,o){const s=h(n,r);for(const{geometry:n,attributes:r}of t){const t=null!=n?Y(new f.Z,n,s):null;e.push(new c.u_(t,r,null,o?r[o]:void 0))}return e}(e,t,o,s,u);case"esriGeometryPolygon":return function(e,t,n,r,o){for(const{geometry:s,centroid:u,attributes:i}of t){const t=null!=s?C(new f.Z,s,n,r):null,l=o?i[o]:void 0;null!=u?e.push(new c.u_(t,i,G(new f.Z,u),l)):e.push(new c.u_(t,i,null,l))}return e}(e,t,o,s,u);default:d.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`)),le(e)}return e}function A(e,t,n,r){U[0]=e,J(S,U,t,n,r);const o=S[0];return le(S),le(U),o}function O(e,t,n){if(null==e)return null;const o=new f.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==n&&(n=e.hasM),(0,l.wp)(e)?q(null!=t?t:null!=e.z,null!=n?n:null!=e.m)(o,e):(0,l.oU)(e)?C(o,e,t,n):(0,l.l9)(e)?Y(o,e,h(t,n)):(0,l.aW)(e)?j(o,e,h(t,n)):void d.error("convertFromGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${e}'`))}function H(e,t,n,o){const s=e&&("coords"in e?e:e.geometry);if(null==s)return null;switch(t){case"esriGeometryPoint":{let e=w;return n&&o?e=_:n?e=F:o&&(e=P),e(s)}case"esriGeometryMultipoint":return R(s,n,o);case"esriGeometryPolyline":return z(s,n,o);case"esriGeometryPolygon":return L(s,n,o);default:return d.error("convertToGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${t}'`)),null}}function J(e,t,n,o,s){if(le(e),null==n)return function(e,t){for(const n of t)e.push({attributes:n.attributes});return e}(e,t);switch(n){case"esriGeometryPoint":return function(e,t,n,r){let o=w;n&&r?o=_:n?o=F:r&&(o=P);for(const n of t){const{geometry:t,attributes:r}=n,s=null!=t?o(t):null;e.push({attributes:r,geometry:s})}return e}(e,t,o,s);case"esriGeometryMultipoint":return function(e,t,n,r){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?R(o,n,r):null});return e}(e,t,o,s);case"esriGeometryPolyline":return function(e,t,n,r){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?z(o,n,r):null});return e}(e,t,o,s);case"esriGeometryPolygon":return function(e,t,n,r){for(const{geometry:o,attributes:s,centroid:u}of t){const t=null!=o?L(o,n,r):null;if(null!=u){const n=w(u);e.push({attributes:s,centroid:n,geometry:t})}else e.push({attributes:s,geometry:t})}return e}(e,t,o,s);default:d.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`))}return e}function Q(e){const{objectIdFieldName:t,spatialReference:n,transform:r,fields:o,hasM:s,hasZ:u,features:i,geometryType:l,exceededTransferLimit:c,uniqueIdField:a,queryGeometry:f,queryGeometryType:h}=e,d={features:J([],i,l,u,s),fields:o,geometryType:l,objectIdFieldName:t,spatialReference:n,uniqueIdField:a,queryGeometry:H(f,h,!1,!1)};return r&&(d.transform=r),c&&(d.exceededTransferLimit=c),s&&(d.hasM=s),u&&(d.hasZ=u),d}function W(e,t){const n=new a.Z,{hasM:o,hasZ:s,features:u,objectIdFieldName:i,spatialReference:l,geometryType:c,exceededTransferLimit:f,transform:h,fields:m}=e;return m&&(n.fields=m),n.geometryType=c??null,n.objectIdFieldName=i??t??null,n.spatialReference=l??null,n.objectIdFieldName?(u&&$(n.features,u,c,s,o,n.objectIdFieldName),f&&(n.exceededTransferLimit=f),o&&(n.hasM=o),s&&(n.hasZ=s),h&&(n.transform=h),n):(d.error(new r.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),n)}function X(e){const{transform:t,features:n,hasM:r,hasZ:o}=e;if(!t)return e;for(const e of n)null!=e.geometry&&re(e.geometry,e.geometry,r,o,t),null!=e.centroid&&re(e.centroid,e.centroid,r,o,t);return e.transform=null,e}function B(e,t){const{geometryType:n,features:r,hasM:o,hasZ:s}=t;if(!e)return t;for(let t=0;t<r.length;t++){const u=r[t],i=u.weakClone();i.geometry=new f.Z,D(i.geometry,u.geometry,o,s,n,e),u.centroid&&(i.centroid=new f.Z,D(i.centroid,u.centroid,o,s,"esriGeometryPoint",e)),r[t]=i}return t.transform=e,t}function D(e,t,n,r,o,s,u=n,i=r){if(ie(e),null==t||!t.coords.length)return null;const l=m[o],{coords:c,lengths:a}=t,f=h(n,r),d=h(n&&u,r&&i),y=b(n,r,u,i);if(!a.length)return y(e.coords,c,0,0,N(s,c[0]),M(s,c[1])),ie(e,f,0),e;let g,p,I,T,Z=0,w=0,G=w;for(const t of a){if(t<l)continue;let n=0;w=G,I=g=N(s,c[Z]),T=p=M(s,c[Z+1]),y(e.coords,c,w,Z,I,T),n++,Z+=f,w+=d;for(let r=1;r<t;r++,Z+=f)I=N(s,c[Z]),T=M(s,c[Z+1]),I===g&&T===p||(y(e.coords,c,w,Z,I-g,T-p),w+=d,n++,g=I,p=T);n>=l&&(e.lengths.push(n),G=w)}return le(e.coords,G),e.coords.length?e:null}function K(e,t,n,r,o,s,u=n,i=r){if(ie(e),!t||!t.coords.length)return null;const l=m[o],{coords:c,lengths:a}=t,f=h(n,r),d=h(n&&u,r&&i),y=b(n,r,u,i);if(!a.length)return y(e.coords,c,0,0,c[0],c[1]),ie(e,f,0),e;let g=0;const p=s*s;for(const t of a){if(t<l){g+=t*f;continue}const n=e.coords.length/d,r=g,o=g+(t-1)*f;y(e.coords,c,e.coords.length,r,c[r],c[r+1]),te(e.coords,c,f,p,y,r,o),y(e.coords,c,e.coords.length,o,c[o],c[o+1]);const s=e.coords.length/d-n;s>=l?e.lengths.push(s):le(e.coords,n*d),g+=t*f}return e.coords.length?e:null}function ee(e,t,n,r){const o=e[t],s=e[t+1],u=e[n],i=e[n+1],l=e[r],c=e[r+1];let a=u,f=i,h=l-a,d=c-f;if(0!==h||0!==d){const e=((o-a)*h+(s-f)*d)/(h*h+d*d);e>1?(a=l,f=c):e>0&&(a+=h*e,f+=d*e)}return h=o-a,d=s-f,h*h+d*d}function te(e,t,n,r,o,s,u){let i,l=r,c=0;for(let e=s+n;e<u;e+=n)i=ee(t,e,s,u),i>l&&(c=e,l=i);l>r&&(c-s>n&&te(e,t,n,r,o,s,c),o(e,t,e.length,c,t[c],t[c+1]),u-c>n&&te(e,t,n,r,o,c,u))}function ne(e,t,n,r){if(null==t||!t.coords||!t.coords.length)return null;const o=h(n,r);let s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,a=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=o){const n=e[t],r=e[t+1];s=Math.min(s,n),c=Math.max(c,n),l=Math.min(l,r),a=Math.max(a,r)}}return(0,u.is)(e)?(0,u.bZ)(e,s,l,c,a):(0,i.al)(s,l,c,a,e),e}function re(e,t,n,r,o){const{coords:u,lengths:i}=t,l=h(n,r);if(!u.length)return e!==t&&ie(e),e;(0,s.O3)(o);const{originPosition:c,scale:a,translate:f}=o,d=ce;d.originPosition=c;const m=d.scale;m[0]=a[0]??1,m[1]=-(a[1]??1),m[2]=a[2]??1,m[3]=a[3]??1;const y=d.translate;if(y[0]=f[0]??0,y[1]=f[1]??0,y[2]=f[2]??0,y[3]=f[3]??0,!i.length){for(let t=0;t<l;++t)e.coords[t]=T(d,u[t],t);return e!==t&&ie(e,l,0),e}let g=0;for(let t=0;t<i.length;t++){const n=i[t];e.lengths[t]=n;for(let t=0;t<l;++t)e.coords[g+t]=T(d,u[g+t],t);let r=e.coords[g],o=e.coords[g+1];g+=l;for(let t=1;t<n;t++,g+=l){r+=u[g]*m[0],o+=u[g+1]*m[1],e.coords[g]=r,e.coords[g+1]=o;for(let t=2;t<l;++t)e.coords[g+t]=T(d,u[g+t],t)}}return e!==t&&ie(e,u.length,i.length),e}function oe(e,t,n,r,o,s){if(ie(e),e.lengths.push(...t.lengths),n===o&&r===s)for(let n=0;n<t.coords.length;n++)e.coords.push(t.coords[n]);else{const u=h(n,r),i=b(n,r,o,s),l=t.coords;for(let t=0;t<l.length;t+=u)i(e.coords,l,e.coords.length,t,l[t],l[t+1])}return e}function se(e,t,n,r){let o=0,s=e[r*t],u=e[r*(t+1)];for(let i=1;i<n;i++){const n=s+e[r*(t+i)],l=u+e[r*(t+i)+1],c=(n-s)*(l+u);s=n,u=l,o+=c}return.5*o}function ue(e,t){const{coords:n,lengths:r}=e;let o=0,s=0;for(let e=0;e<r.length;e++){const u=r[e];s+=se(n,o,u,t),o+=u}return Math.abs(s)}function ie(e,t=0,n=0){le(e.lengths,n),le(e.coords,t)}function le(e,t=0){e.length!==t&&(e.length=t)}const ce={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6753,5732,247,2596],{5732:(e,n,t)=>{t.d(n,{c:()=>r,g:()=>i});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},20178:(e,n,t)=>{t.d(n,{A:()=>z,B:()=>C,C:()=>V,D:()=>j,E:()=>E,F:()=>H,G:()=>I,H:()=>k,I:()=>_,J:()=>q,K:()=>B,L:()=>P,M:()=>M,N:()=>O,a:()=>u,b:()=>f,c:()=>c,d:()=>l,e:()=>o,f:()=>a,g:()=>F,h:()=>s,i:()=>d,j:()=>g,k:()=>y,l:()=>w,m:()=>b,n:()=>x,o:()=>N,p:()=>D,q:()=>S,r:()=>h,s:()=>m,t:()=>p,u:()=>R,v:()=>v,w:()=>G,x:()=>T,y:()=>A,z:()=>L});var r=t(45837),i=t(37455);function o(e){return r.G.extendedSpatialReferenceInfo(e)}function c(e,n,t){return r.G.clip(i.N,e,n,t)}function u(e,n,t){return r.G.cut(i.N,e,n,t)}function f(e,n,t){return r.G.contains(i.N,e,n,t)}function l(e,n,t){return r.G.crosses(i.N,e,n,t)}function a(e,n,t,o){return r.G.distance(i.N,e,n,t,o)}function s(e,n,t){return r.G.equals(i.N,e,n,t)}function d(e,n,t){return r.G.intersects(i.N,e,n,t)}function p(e,n,t){return r.G.touches(i.N,e,n,t)}function G(e,n,t){return r.G.within(i.N,e,n,t)}function g(e,n,t){return r.G.disjoint(i.N,e,n,t)}function N(e,n,t){return r.G.overlaps(i.N,e,n,t)}function h(e,n,t,o){return r.G.relate(i.N,e,n,t,o)}function y(e,n){return r.G.isSimple(i.N,e,n)}function m(e,n){return r.G.simplify(i.N,e,n)}function w(e,n,t=!1){return r.G.convexHull(i.N,e,n,t)}function b(e,n,t){return r.G.difference(i.N,e,n,t)}function x(e,n,t){return r.G.symmetricDifference(i.N,e,n,t)}function D(e,n,t){return r.G.intersect(i.N,e,n,t)}function R(e,n,t=null){return r.G.union(i.N,e,n,t)}function S(e,n,t,o,c,u,f){return r.G.offset(i.N,e,n,t,o,c,u,f)}function v(e,n,t,o,c=!1){return r.G.buffer(i.N,e,n,t,o,c)}function T(e,n,t,o,c,u,f){return r.G.geodesicBuffer(i.N,e,n,t,o,c,u,f)}function A(e,n,t,o=!0){return r.G.nearestCoordinate(i.N,e,n,t,o)}function L(e,n,t){return r.G.nearestVertex(i.N,e,n,t)}function z(e,n,t,o,c){return r.G.nearestVertices(i.N,e,n,t,o,c)}function C(e,n,t,i){if(null==n||null==i)throw new Error("Illegal Argument Exception");const o=r.G.rotate(n,t,i);return o.spatialReference=e,o}function V(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const i=r.G.flipHorizontal(n,t);return i.spatialReference=e,i}function j(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const i=r.G.flipVertical(n,t);return i.spatialReference=e,i}function E(e,n,t,o,c){return r.G.generalize(i.N,e,n,t,o,c)}function H(e,n,t,o){return r.G.densify(i.N,e,n,t,o)}function I(e,n,t,o,c=0){return r.G.geodesicDensify(i.N,e,n,t,o,c)}function k(e,n,t){return r.G.planarArea(i.N,e,n,t)}function _(e,n,t){return r.G.planarLength(i.N,e,n,t)}function q(e,n,t,o){return r.G.geodesicArea(i.N,e,n,t,o)}function B(e,n,t,o){return r.G.geodesicLength(i.N,e,n,t,o)}function P(e,n,t){return null==n||null==t?[]:r.G.intersectLinesToPoints(i.N,e,n,t)}function M(e,n){r.G.changeDefaultSpatialReferenceTolerance(e,n)}function O(e){r.G.clearDefaultSpatialReferenceTolerance(e)}const F=Object.freeze(Object.defineProperty({__proto__:null,buffer:v,changeDefaultSpatialReferenceTolerance:M,clearDefaultSpatialReferenceTolerance:O,clip:c,contains:f,convexHull:w,crosses:l,cut:u,densify:H,difference:b,disjoint:g,distance:a,equals:s,extendedSpatialReferenceInfo:o,flipHorizontal:V,flipVertical:j,generalize:E,geodesicArea:q,geodesicBuffer:T,geodesicDensify:I,geodesicLength:B,intersect:D,intersectLinesToPoints:P,intersects:d,isSimple:y,nearestCoordinate:A,nearestVertex:L,nearestVertices:z,offset:S,overlaps:N,planarArea:k,planarLength:_,relate:h,rotate:C,simplify:m,symmetricDifference:x,touches:p,union:R,within:G},Symbol.toStringTag,{value:"Module"}))},30247:(e,n,t)=>{t.r(n),t.d(n,{buffer:()=>r.v,changeDefaultSpatialReferenceTolerance:()=>r.M,clearDefaultSpatialReferenceTolerance:()=>r.N,clip:()=>r.c,contains:()=>r.b,convexHull:()=>r.l,crosses:()=>r.d,cut:()=>r.a,densify:()=>r.F,difference:()=>r.m,disjoint:()=>r.j,distance:()=>r.f,equals:()=>r.h,extendedSpatialReferenceInfo:()=>r.e,flipHorizontal:()=>r.C,flipVertical:()=>r.D,generalize:()=>r.E,geodesicArea:()=>r.J,geodesicBuffer:()=>r.x,geodesicDensify:()=>r.G,geodesicLength:()=>r.K,intersect:()=>r.p,intersectLinesToPoints:()=>r.L,intersects:()=>r.i,isSimple:()=>r.k,nearestCoordinate:()=>r.y,nearestVertex:()=>r.z,nearestVertices:()=>r.A,offset:()=>r.q,overlaps:()=>r.o,planarArea:()=>r.H,planarLength:()=>r.I,relate:()=>r.r,rotate:()=>r.B,simplify:()=>r.s,symmetricDifference:()=>r.n,touches:()=>r.t,union:()=>r.u,within:()=>r.w}),t(45837),t(37455);var r=t(20178)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3547],{92835:(t,e,s)=>{s.d(e,{Z:()=>y});var i,r=s(43697),n=s(96674),o=s(35463),a=s(5600),h=(s(75215),s(67676),s(80442),s(71715)),l=s(52011),u=s(30556);let m=i=class extends n.wq{static get allTime(){return c}static get empty(){return d}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,s=this.end?.getTime()??this.end,i=t.start?.getTime()??t.start,r=t.end?.getTime()??t.end;return e===i&&s===r}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let s=this.start;s&&(s=(0,o.JE)(s,t,e));let r=this.end;if(r){const s=(0,o.JE)(r,t,e);r=r.getTime()===s.getTime()?s:(0,o.Nm)(s,1,t,e)}return new i({start:s,end:r})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,r=t.start?.getTime()??-1/0,n=t.end?.getTime()??1/0;let o,a;if(r>=e&&r<=s?o=r:e>=r&&e<=n&&(o=e),s>=r&&s<=n?a=s:n>=e&&n<=s&&(a=n),null!=o&&null!=a&&!isNaN(o)&&!isNaN(a)){const t=new i;return t.start=o===-1/0?null:new Date(o),t.end=a===1/0?null:new Date(a),t}return i.empty}offset(t,e,s="system"){if(this.isEmpty||this.isAllTime)return this.clone();const r=new i,{start:n,end:a}=this;return null!=n&&(r.start=(0,o.Nm)(n,t,e,s)),null!=a&&(r.end=(0,o.Nm)(a,t,e,s)),r}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return c.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,s=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:s})}};(0,r._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,r._)([(0,h.r)("end")],m.prototype,"readEnd",null),(0,r._)([(0,u.c)("end")],m.prototype,"writeEnd",null),(0,r._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,r._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,r._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,r._)([(0,h.r)("start")],m.prototype,"readStart",null),(0,r._)([(0,u.c)("start")],m.prototype,"writeStart",null),m=i=(0,r._)([(0,l.j)("esri.TimeExtent")],m);const c=new m,d=new m({start:void 0,end:void 0}),y=m},13867:(t,e,s)=>{s.d(e,{z:()=>r});var i=s(69801);class r{constructor(t,e){this._storage=new i.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69801:(t,e,s)=>{s.d(e,{WJ:()=>a,Xq:()=>o});var i,r,n=s(44553);(r=i||(i={}))[r.ALL=0]="ALL",r[r.SOME=1]="SOME";class o{constructor(t,e,s){this.name=t,this._storage=e,this.id=h+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(t,e,s,i=0){this._storage.put(this,t,e,s,i)}get(t){const e=this._storage.get(this,t);return void 0===e?++this._miss:++this._hit,e}peek(t){return this._storage.peek(this,t)}pop(t){const e=this._storage.pop(this,t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,s){this._storage.updateSize(this,t,e,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class a{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new n.Z,this._users=new n.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimits()}put(t,e,s,r,n){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==s&&this._notifyRemove(e,o.entry,i.ALL)),r>this._maxSize)return void this._notifyRemove(e,s,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return void console.warn(`Refusing to cache entry with size ${r} for key ${e}`);const a=1+Math.max(n,-3)- -3;this._db.set(e,{entry:s,size:r,lifetime:a,lives:a}),this._size+=r,t.size+=r,this._checkSizeLimits()}updateSize(t,e,s,r){e=t.id+e;const n=this._db.get(e);if(n&&n.entry===s){for(this._size-=n.size,t.size-=n.size;r>this._maxSize;){const t=this._notifyRemove(e,s,i.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);r=t}n.size=r,this._size+=r,t.size+=r,this._checkSizeLimits()}}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const r=t.lifetime;s[r]=(s[r]||0)+t.size,this._users.forAll((s=>{const{id:r,name:n}=s;if(i.startsWith(r)){const s=e[n]||0;e[n]=s+t.size}}))}));const i={};this._users.forAll((t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const r=e[s]||0;e[s]=r,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const r=Object.keys(e);r.sort(((t,s)=>e[s]-e[t])),r.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,i.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,i.ALL))),this._users.forEach((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s){let i;return this._removeFuncs.some((r=>{if(t.startsWith(r[0])){const t=r[1](e,s);return"number"==typeof t&&(i=t),!0}return!1})),i}_checkSizeLimits(){if(this._size>this._maxSize)for(const[t,e]of this._db)if(this._purgeItem(t,e),this._size<=.9*this.maxSize)return;this._users.forEach((t=>{if(t.maxSize>0&&t.size>t.maxSize)for(const[e,s]of this._db)if(e.startsWith(t.id)&&(this._purgeItem(e,s,t),t.size<=.9*t.maxSize))return}))}_purgeItem(t,e,s=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const r=this._notifyRemove(t,e.entry,i.SOME);null!=r&&r>0&&(this._size+=r,s&&(s.size+=r),e.lives=e.lifetime,e.size=r,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}let h=0},22862:(t,e,s)=>{s.d(e,{Hg:()=>y,V7:()=>d,uD:()=>c});var i=s(92036),r=s(46791),n=s(1153);const o=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];function a(t){return t instanceof i.Z}function h(t){return t instanceof r.Z?Object.keys(t.items):a(t)?(0,n.vw)(t).keys():t?Object.keys(t):[]}function l(t,e){return t instanceof r.Z?t.items[e]:t[e]}function u(t){return t?t.declaredClass:null}function m(t,e){const s=t.diff;if(s&&"function"==typeof s)return s(t,e);const i=h(t),r=h(e);if(0===i.length&&0===r.length)return;if(!i.length||!r.length||function(t,e){return!(!Array.isArray(t)||!Array.isArray(e))&&t.length!==e.length}(t,e))return{type:"complete",oldValue:t,newValue:e};const n=r.filter((t=>!i.includes(t))),c=i.filter((t=>!r.includes(t))),d=i.filter((s=>r.includes(s)&&l(t,s)!==l(e,s))).concat(n,c).sort(),y=u(t);if(y&&o.includes(y)&&d.length)return{type:"complete",oldValue:t,newValue:e};let g;const f=a(t)&&a(e);for(const i of d){const r=l(t,i),n=l(e,i);let o;if((f||"function"!=typeof r&&"function"!=typeof n)&&r!==n&&(null!=r||null!=n)){if(s&&s[i]&&"function"==typeof s[i])o=s[i]?.(r,n);else if(r instanceof Date&&n instanceof Date){if(r.getTime()===n.getTime())continue;o={type:"complete",oldValue:r,newValue:n}}else o="object"==typeof r&&"object"==typeof n&&u(r)===u(n)?m(r,n):{type:"complete",oldValue:r,newValue:n};null!=o&&(null!=g?g.diff[i]=o:g={type:"partial",diff:{[i]:o}})}}return g}function c(t,e){if(null==t)return!1;const s=e.split(".");let i=t;for(const t of s){if("complete"===i.type)return!0;if("partial"!==i.type)return!1;{const e=i.diff[t];if(!e)return!1;i=e}}return!0}function d(t,e){for(const s of e)if(c(t,s))return!0;return!1}function y(t,e){if("function"!=typeof t&&"function"!=typeof e&&(null!=t||null!=e))return null==t||null==e||"object"==typeof t&&"object"==typeof e&&u(t)!==u(e)?{type:"complete",oldValue:t,newValue:e}:m(t,e)}},17445:(t,e,s)=>{s.d(e,{N1:()=>c,YP:()=>h,Z_:()=>g,gx:()=>l,nn:()=>f,on:()=>m,tX:()=>_}),s(66643),s(46791);var i=s(91460),r=s(50758),n=s(70586),o=s(95330),a=s(26258);function h(t,e,s={}){return u(t,e,s,d)}function l(t,e,s={}){return u(t,e,s,y)}function u(t,e,s={},i){let r=null;const o=s.once?(t,s)=>{i(t)&&((0,n.hw)(r),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(r=(0,a.aQ)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return r}function m(t,e,s,o={}){let a=null,l=null,u=null;function m(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function c(t){o.once&&o.once&&(0,n.hw)(u),s(t)}const d=h(t,((t,s)=>{m(),(0,i.vT)(t)&&(a=t,l=(0,i.on)(t,e,c),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return u=(0,r.kB)((()=>{d.remove(),m()})),u}function c(t,e){return function(t,e,s){if((0,o.Hc)(s))return Promise.reject((0,o.zE)());const i=t();if(e?.(i))return Promise.resolve(i);let a=null;function h(){a=(0,n.hw)(a)}return new Promise(((i,n)=>{a=(0,r.AL)([(0,o.fu)(s,(()=>{h(),n((0,o.zE)())})),u(t,(t=>{h(),i(t)}),{sync:!1,once:!0},e??d)])}))}(t,y,e)}function d(t){return!0}function y(t){return!!t}s(87538);const g={sync:!0},f={initial:!0},_={sync:!0,initial:!0}},35463:(t,e,s)=>{s.d(e,{JE:()=>a,Nm:()=>o,rJ:()=>h});var i=s(90344),r=s(17126);const n={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function o(t,e,s,n="system"){const o=new r.vF((0,i.f1)(n)),a=r.ou.fromJSDate(t,{zone:o}),h="decades"===s||"centuries"===s?"year":l(s);return"decades"===s&&(e*=10),"centuries"===s&&(e*=100),a.plus({[h]:e}).toJSDate()}function a(t,e,s="system"){const n=new r.vF((0,i.f1)(s)),o=r.ou.fromJSDate(t,{zone:n});if("decades"===e||"centuries"===e){const t=o.startOf("year"),{year:s}=t,i=s-s%("decades"===e?10:100);return t.set({year:i}).toJSDate()}const a=l(e);return o.startOf(a).toJSDate()}function h(t,e,s){return 0===t?0:t*n[e]/n[s]}function l(t){switch(t){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},90344:(t,e,s)=>{s.d(e,{Xr:()=>y,Ze:()=>p,f1:()=>S,p6:()=>z});var i=s(35454),r=s(70171),n=s(15512);s(17126);const o=Intl.DateTimeFormat().resolvedOptions().timeZone,a=(n.pt,{year:"numeric",month:"numeric",day:"numeric"}),h={year:"numeric",month:"long",day:"numeric"},l={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},c={...m,second:"numeric"},d={"short-date":a,"short-date-short-time":{...a,...m},"short-date-short-time-24":{...a,...m,hour12:!1},"short-date-long-time":{...a,...c},"short-date-long-time-24":{...a,...c,hour12:!1},"short-date-le":a,"short-date-le-short-time":{...a,...m},"short-date-le-short-time-24":{...a,...m,hour12:!1},"short-date-le-long-time":{...a,...c},"short-date-le-long-time-24":{...a,...c,hour12:!1},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...m},"long-month-day-year-short-time-24":{...h,...m,hour12:!1},"long-month-day-year-long-time":{...h,...c},"long-month-day-year-long-time-24":{...h,...c,hour12:!1},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...m},"day-short-month-year-short-time-24":{...l,...m,hour12:!1},"day-short-month-year-long-time":{...l,...c},"day-short-month-year-long-time-24":{...l,...c,hour12:!1},"long-date":u,"long-date-short-time":{...u,...m},"long-date-short-time-24":{...u,...m,hour12:!1},"long-date-long-time":{...u,...c},"long-date-long-time-24":{...u,...c,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":c},y=(0,i.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),g={ar:"ar-u-nu-latn-ca-gregory"};let f=new WeakMap;const _=d["short-date-short-time"];function p(t){return d[t]}function z(t,e=_){return function(t){let e=f.get(t);if(!e){const s=(0,r.Kd)(),i=g[s]||s,o=S(t.timeZone??n.By),a={...t,timeZone:o};e=new Intl.DateTimeFormat(i,a),f.set(t,e)}return e}(e).format(t)}function S(t){switch(t){case n.By:return o;case n._4:return n.pt;default:return t}}(0,r.Ze)((()=>{f=new WeakMap}))},15512:(t,e,s)=>{s.d(e,{By:()=>i,_4:()=>r,pt:()=>n});const i="system",r="unknown",n="UTC"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9717],{22303:(t,e,n)=>{n.d(e,{Z:()=>c});var r,i,o=n(35270),s=n(22021),a=n(75215);function l(t){return(0,s.uZ)((0,a.vU)(t),0,255)}function u(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}function h(t,e){const n=t.toString(16).padStart(2,"0");return e?n.substring(0,1):n}class d{static blendColors(t,e,n,r=new d){return r.r=Math.round(t.r+(e.r-t.r)*n),r.g=Math.round(t.g+(e.g-t.g)*n),r.b=Math.round(t.b+(e.b-t.b)*n),r.a=t.a+(e.a-t.a)*n,r._sanitize()}static fromRgb(t,e){const n=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),r=n[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){const n=t[0];if("%"===n.charAt(n.length-1)){const n=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(n[3]=parseFloat(t[3])),d.fromArray(n,e)}return d.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return d.fromArray((0,o.B7)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new d){if("#"!==t[0]||isNaN(Number(`0x${t.substring(1)}`)))return null;switch(t.length){case 4:case 5:{const n=parseInt(t.substring(1,2),16),r=parseInt(t.substring(2,3),16),i=parseInt(t.substring(3,4),16),o=5===t.length?15:parseInt(t.substring(4),16);return d.fromArray([n+16*n,r+16*r,i+16*i,(o+16*o)/255],e)}case 7:case 9:{const n=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16),o=7===t.length?255:parseInt(t.substring(7),16);return d.fromArray([n,r,i,o/255],e)}default:return null}}static fromArray(t,e=new d){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const n=(0,o.St)(t)?(0,o.h$)(t):null;return n&&d.fromArray(n,e)||d.fromRgb(t,e)||d.fromHex(t,e)}static fromJSON(t){return null!=t?new d([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?d.fromString(t,this):Array.isArray(t)?d.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof d||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,n=t?.digits??6,r=3===n||4===n,i=4===n||8===n,o=`#${h(this.r,r)}${h(this.g,r)}${h(this.b,r)}${i?h(Math.round(255*this.a),r):""}`;return e?o.toUpperCase():o}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=d.AlphaMode.ALWAYS){const e=l(this.r),n=l(this.g),r=l(this.b);return t===d.AlphaMode.ALWAYS||1!==this.a?[e,n,r,l(255*this.a)]:[e,n,r]}clone(){return new d(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}d.prototype.declaredClass="esri.Color",(i=(r=d||(d={})).AlphaMode||(r.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=d},92835:(t,e,n)=>{n.d(e,{Z:()=>y});var r,i=n(43697),o=n(96674),s=n(35463),a=n(5600),l=(n(75215),n(67676),n(80442),n(71715)),u=n(52011),h=n(30556);let d=r=class extends o.wq{static get allTime(){return c}static get empty(){return m}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===r&&n===i}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.JE)(n,t,e));let i=this.end;if(i){const n=(0,s.JE)(i,t,e);i=i.getTime()===n.getTime()?n:(0,s.Nm)(n,1,t,e)}return new r({start:n,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let s,a;if(i>=e&&i<=n?s=i:e>=i&&e<=o&&(s=e),n>=i&&n<=o?a=n:o>=e&&o<=n&&(a=o),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const t=new r;return t.start=s===-1/0?null:new Date(s),t.end=a===1/0?null:new Date(a),t}return r.empty}offset(t,e,n="system"){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:o,end:a}=this;return null!=o&&(i.start=(0,s.Nm)(o,t,e,n)),null!=a&&(i.end=(0,s.Nm)(a,t,e,n)),i}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return c.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i._)([(0,l.r)("end")],d.prototype,"readEnd",null),(0,i._)([(0,h.c)("end")],d.prototype,"writeEnd",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i._)([(0,l.r)("start")],d.prototype,"readStart",null),(0,i._)([(0,h.c)("start")],d.prototype,"writeStart",null),d=r=(0,i._)([(0,u.j)("esri.TimeExtent")],d);const c=new d,m=new d({start:void 0,end:void 0}),y=d},4757:(t,e,n)=>{n.d(e,{Z:()=>m});var r=n(43697),i=n(92036),o=n(67676),s=n(2368),a=n(10699),l=n(96674),u=n(5600),h=(n(75215),n(80442),n(52011));let d=0,c=class extends((0,l.eC)((0,s.J)((0,a.IG)(i.Z)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${d++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(o.pC)}};(0,r._)([(0,u.Cb)({type:String,constructOnly:!0,clonable:!1})],c.prototype,"id",void 0),(0,r._)([(0,u.Cb)({type:String})],c.prototype,"title",void 0),(0,r._)([(0,u.Cb)({constructOnly:!0})],c.prototype,"type",void 0),(0,r._)([(0,u.Cb)({clonable:!1,value:null})],c.prototype,"parent",null),(0,r._)([(0,u.Cb)({readOnly:!0})],c.prototype,"isEditable",null),(0,r._)([(0,u.Cb)({readOnly:!0})],c.prototype,"requiredPropertiesForEditing",void 0),c=(0,r._)([(0,h.j)("esri.analysis.Analysis")],c);const m=c},35270:(t,e,n)=>{n.d(e,{B7:()=>l,St:()=>i,VL:()=>s,h$:()=>o,rW:()=>u});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(t){return!!r[t]||!!r[t.toLowerCase()]}function o(t){return r[t]??r[t.toLowerCase()]}function s(t){return[...o(t)]}function a(t,e,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?t+(e-t)*r:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function l(t,e,n,r=1){const i=(t%360+360)%360/360,o=n<=.5?n*(e+1):n+e-n*e,s=2*n-o;return[Math.round(255*a(s,o,i+1/3)),Math.round(255*a(s,o,i)),Math.round(255*a(s,o,i-1/3)),r]}function u(t){const e=t.length>5,n=e?8:4,r=(1<<n)-1,i=e?1:17,o=e?9===t.length:5===t.length;let s=Number("0x"+t.substr(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return o&&(l=s&r,s>>=n,a[3]=i*l/255),l=s&r,s>>=n,a[2]=i*l,l=s&r,s>>=n,a[1]=i*l,l=s&r,s>>=n,a[0]=i*l,a}},68251:(t,e,n)=>{n.d(e,{BV:()=>s});var r=n(22021);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}ndiff(t,e=0){return Math.ceil((t-e)/this.range)*this.range+e}_normalize(t,e,n,r=0,i=!1){return(n-=r)<t?n+=this.ndiff(t-n):n>e&&(n-=this.ndiff(n-e)),i&&n===e&&(n=t),n+r}normalize(t,e=0,n=!1){return this._normalize(this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.uZ)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+this.ndiff(t-e,n)}minimalMonotonic(t,e,n){return this._normalize(t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t){for(const e in t){const n=t[e];n instanceof Function&&(t[e]=n.bind(t))}return t}o(new i(0,2*Math.PI)),o(new i(-Math.PI,Math.PI));const s=o(new i(0,360))},10699:(t,e,n)=>{n.d(e,{IG:()=>s,iv:()=>a});var r=n(43697),i=n(52011);let o=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,r._)([(0,i.j)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,r._)([(0,i.j)("esri.core.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};l=(0,r._)([(0,i.j)("esri.core.Identifiable")],l)},70921:(t,e,n)=>{n.d(e,{R:()=>o,Z:()=>i});var r=n(46791);function i(t,e,n=r.Z){return e||(e=new n),e===t||(e.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?e.addMany(t):t&&e.add(t)),e;var i}function o(t){return t}},17445:(t,e,n)=>{n.d(e,{N1:()=>c,YP:()=>l,Z_:()=>p,gx:()=>u,nn:()=>g,on:()=>d,tX:()=>b}),n(66643),n(46791);var r=n(91460),i=n(50758),o=n(70586),s=n(95330),a=n(26258);function l(t,e,n={}){return h(t,e,n,m)}function u(t,e,n={}){return h(t,e,n,y)}function h(t,e,n={},r){let i=null;const s=n.once?(t,n)=>{r(t)&&((0,o.hw)(i),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(i=(0,a.aQ)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return i}function d(t,e,n,s={}){let a=null,u=null,h=null;function d(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function c(t){s.once&&s.once&&(0,o.hw)(h),n(t)}const m=l(t,((t,n)=>{d(),(0,r.vT)(t)&&(a=t,u=(0,r.on)(t,e,c),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return h=(0,i.kB)((()=>{m.remove(),d()})),h}function c(t,e){return function(t,e,n){if((0,s.Hc)(n))return Promise.reject((0,s.zE)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,o.hw)(a)}return new Promise(((r,o)=>{a=(0,i.AL)([(0,s.fu)(n,(()=>{l(),o((0,s.zE)())})),h(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??m)])}))}(t,y,e)}function m(t){return!0}function y(t){return!!t}n(87538);const p={sync:!0},g={initial:!0},b={sync:!0,initial:!0}},62357:(t,e,n)=>{n.d(e,{F2:()=>s,Wz:()=>a,t_:()=>l,vW:()=>u});const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",o=96;function s(t){return t?t/72*o:0}function a(t){return t?72*t/o:0}function l(t){if("string"==typeof t){const e=t.match(r);if(e){const n=Number(e[1]),r=e[3]&&e[3].toLowerCase(),i="-"===t.charAt(0),o="px"===r?a(n):n;return i?-o:o}return console.warn(i),null}return t}function u(t=0,e=0){return{x:t,y:e}}},35463:(t,e,n)=>{n.d(e,{JE:()=>a,Nm:()=>s,rJ:()=>l});var r=n(90344),i=n(17126);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(t,e,n,o="system"){const s=new i.vF((0,r.f1)(o)),a=i.ou.fromJSDate(t,{zone:s}),l="decades"===n||"centuries"===n?"year":u(n);return"decades"===n&&(e*=10),"centuries"===n&&(e*=100),a.plus({[l]:e}).toJSDate()}function a(t,e,n="system"){const o=new i.vF((0,r.f1)(n)),s=i.ou.fromJSDate(t,{zone:o});if("decades"===e||"centuries"===e){const t=s.startOf("year"),{year:n}=t,r=n-n%("decades"===e?10:100);return t.set({year:r}).toJSDate()}const a=u(e);return s.startOf(a).toJSDate()}function l(t,e,n){return 0===t?0:t*o[e]/o[n]}function u(t){switch(t){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},90344:(t,e,n)=>{n.d(e,{Xr:()=>y,Ze:()=>f,f1:()=>v,p6:()=>w});var r=n(35454),i=n(70171),o=n(15512);n(17126);const s=Intl.DateTimeFormat().resolvedOptions().timeZone,a=(o.pt,{year:"numeric",month:"numeric",day:"numeric"}),l={year:"numeric",month:"long",day:"numeric"},u={year:"numeric",month:"short",day:"numeric"},h={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},c={...d,second:"numeric"},m={"short-date":a,"short-date-short-time":{...a,...d},"short-date-short-time-24":{...a,...d,hour12:!1},"short-date-long-time":{...a,...c},"short-date-long-time-24":{...a,...c,hour12:!1},"short-date-le":a,"short-date-le-short-time":{...a,...d},"short-date-le-short-time-24":{...a,...d,hour12:!1},"short-date-le-long-time":{...a,...c},"short-date-le-long-time-24":{...a,...c,hour12:!1},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...d},"long-month-day-year-short-time-24":{...l,...d,hour12:!1},"long-month-day-year-long-time":{...l,...c},"long-month-day-year-long-time-24":{...l,...c,hour12:!1},"day-short-month-year":u,"day-short-month-year-short-time":{...u,...d},"day-short-month-year-short-time-24":{...u,...d,hour12:!1},"day-short-month-year-long-time":{...u,...c},"day-short-month-year-long-time-24":{...u,...c,hour12:!1},"long-date":h,"long-date-short-time":{...h,...d},"long-date-short-time-24":{...h,...d,hour12:!1},"long-date-long-time":{...h,...c},"long-date-long-time-24":{...h,...c,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":c},y=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),p={ar:"ar-u-nu-latn-ca-gregory"};let g=new WeakMap;const b=m["short-date-short-time"];function f(t){return m[t]}function w(t,e=b){return function(t){let e=g.get(t);if(!e){const n=(0,i.Kd)(),r=p[n]||n,s=v(t.timeZone??o.By),a={...t,timeZone:s};e=new Intl.DateTimeFormat(r,a),g.set(t,e)}return e}(e).format(t)}function v(t){switch(t){case o.By:return s;case o._4:return o.pt;default:return t}}(0,i.Ze)((()=>{g=new WeakMap}))},40081:(t,e,n)=>{n.r(e),n.d(e,{default:()=>P});var r=n(43697),i=n(4757),o=n(22303),s=n(2368),a=n(96674),l=n(62357),u=n(5600),h=n(75215),d=(n(67676),n(80442),n(52011));let c=class extends((0,a.eC)(s.j)){constructor(t){super(t),this.type="simple",this.color=new o.Z("black"),this.lineSize=2,this.fontSize=10,this.textColor=new o.Z("black"),this.textBackgroundColor=new o.Z([255,255,255,.6])}};(0,r._)([(0,u.Cb)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:o.Z,nonNullable:!0,json:{type:[h.z8],write:{isRequired:!0}}})],c.prototype,"color",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:l.t_,nonNullable:!0,range:{min:(0,l.Wz)(1)},json:{write:{isRequired:!0}}})],c.prototype,"lineSize",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:l.t_,nonNullable:!0,json:{write:{isRequired:!0}}})],c.prototype,"fontSize",void 0),(0,r._)([(0,u.Cb)({type:o.Z,nonNullable:!0,json:{type:[h.z8],write:{isRequired:!0}}})],c.prototype,"textColor",void 0),(0,r._)([(0,u.Cb)({type:o.Z,nonNullable:!0,json:{type:[h.z8],write:{isRequired:!0}}})],c.prototype,"textBackgroundColor",void 0),c=(0,r._)([(0,d.j)("esri.analysis.DimensionSimpleStyle")],c);const m=c;var y;n(66577),function(t){t.Horizontal="horizontal",t.Vertical="vertical",t.Direct="direct"}(y||(y={}));const p=[y.Horizontal,y.Vertical,y.Direct];var g=n(68251),b=n(90578),f=n(94139);let w=class extends((0,a.eC)(s.j)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType=y.Direct,this.offset=0,this.orientation=0}};(0,r._)([(0,u.Cb)({type:["length"],json:{write:{isRequired:!0}}})],w.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:f.Z,json:{write:!0}})],w.prototype,"startPoint",void 0),(0,r._)([(0,u.Cb)({type:f.Z,json:{write:!0}})],w.prototype,"endPoint",void 0),(0,r._)([(0,u.Cb)({type:p,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"measureType",void 0),(0,r._)([(0,u.Cb)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"offset",void 0),(0,r._)([(0,u.Cb)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,b.p)((t=>g.BV.normalize((0,h.q9)(t),0,!0)))],w.prototype,"orientation",void 0),w=(0,r._)([(0,d.j)("esri.analysis.LengthDimension")],w);const v=w;var _=n(46791),C=n(70921),S=n(17445),D=n(6570),T=n(73615);const A=_.Z.ofType(v);let N=class extends i.Z{constructor(t){super(t),this.type="dimension",this.style=new m,this.extent=null}initialize(){this.addHandles((0,S.YP)((()=>this._computeExtent()),(t=>{null!=t&&null!=t.pending||this._set("extent",null!=t?t.extent:null)}),S.tX))}get dimensions(){return this._get("dimensions")||new A}set dimensions(t){this._set("dimensions",(0,C.Z)(t,this.dimensions,A))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get requiredPropertiesForEditing(){return this.dimensions.reduce(((t,e)=>(t.push(e.startPoint,e.endPoint),t)),[])}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const n=(0,T.projectOrLoadMany)(e,t);if(null!=n.pending)return{pending:n.pending,extent:null};let r=null;return null!=n.geometries&&(r=n.geometries.reduce(((t,e)=>null==t?null!=e?D.Z.fromPoint(e):null:null!=e?t.union(D.Z.fromPoint(e)):t),null)),{pending:null,extent:r}}clear(){this.dimensions.removeAll()}};(0,r._)([(0,u.Cb)({type:["dimension"]})],N.prototype,"type",void 0),(0,r._)([(0,u.Cb)({cast:C.R,type:A,nonNullable:!0})],N.prototype,"dimensions",null),(0,r._)([(0,u.Cb)({readOnly:!0})],N.prototype,"spatialReference",null),(0,r._)([(0,u.Cb)({types:{key:"type",base:null,typeMap:{simple:m}},nonNullable:!0})],N.prototype,"style",void 0),(0,r._)([(0,u.Cb)({value:null,readOnly:!0})],N.prototype,"extent",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],N.prototype,"requiredPropertiesForEditing",null),N=(0,r._)([(0,d.j)("esri.analysis.DimensionAnalysis")],N);const k=N;var E=n(16453),M=n(30556),x=n(87085),L=n(38009);let j=class extends((0,L.q)((0,E.R)(x.Z))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new k,this.opacity=1,t){const{source:e,style:n}=t;e&&n&&(e.style=n)}}initialize(){this.addHandles([(0,S.YP)((()=>this.source),((t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)}),S.tX)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new k)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,n,r){e.dimensions=t.filter((({startPoint:t,endPoint:e})=>null!=t&&null!=e)).map((t=>t.toJSON(r))).toJSON()}};(0,r._)([(0,u.Cb)({json:{read:!1},readOnly:!0})],j.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:["ArcGISDimensionLayer"]})],j.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.Cb)({nonNullable:!0})],j.prototype,"source",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],j.prototype,"spatialReference",null),(0,r._)([(0,u.Cb)({types:{key:"type",base:null,typeMap:{simple:m}},json:{write:{ignoreOrigin:!0}}})],j.prototype,"style",null),(0,r._)([(0,u.Cb)({readOnly:!0})],j.prototype,"fullExtent",null),(0,r._)([(0,u.Cb)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],j.prototype,"opacity",void 0),(0,r._)([(0,u.Cb)({type:["show","hide"]})],j.prototype,"listMode",void 0),(0,r._)([(0,u.Cb)({type:_.Z.ofType(v),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],j.prototype,"dimensions",null),(0,r._)([(0,M.c)("web-scene","dimensions")],j.prototype,"writeDimensions",null),j=(0,r._)([(0,d.j)("esri.layers.DimensionLayer")],j);const P=j},87085:(t,e,n)=>{n.d(e,{Z:()=>w});var r=n(43697),i=(n(66577),n(3172)),o=n(20102),s=n(32448),a=n(10699),l=n(83379),u=n(92604),h=n(95330),d=n(17452),c=n(5600),m=(n(75215),n(67676),n(80442),n(52011)),y=n(68773),p=n(6570),g=n(82971);let b=0,f=class extends(s.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.Z(-180,-90,180,90,g.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(3529).then(n.bind(n,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(8008).then(n.bind(n,28008));try{return await r(e)}catch(t){const n=e&&e.portalItem,r=n&&n.id||"unset",i=n&&n.portal&&n.portal.url||y.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,h.D_)(t)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,c.Cb)({type:String})],f.prototype,"attributionDataUrl",void 0),(0,r._)([(0,c.Cb)({type:p.Z})],f.prototype,"fullExtent",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],f.prototype,"hasAttributionData",null),(0,r._)([(0,c.Cb)({type:String,clonable:!1})],f.prototype,"id",void 0),(0,r._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],f.prototype,"legendEnabled",void 0),(0,r._)([(0,c.Cb)({type:["show","hide","hide-children"]})],f.prototype,"listMode",void 0),(0,r._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],f.prototype,"opacity",void 0),(0,r._)([(0,c.Cb)({clonable:!1})],f.prototype,"parent",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],f.prototype,"parsedUrl",null),(0,r._)([(0,c.Cb)({type:Boolean,readOnly:!0})],f.prototype,"persistenceEnabled",void 0),(0,r._)([(0,c.Cb)({type:Boolean})],f.prototype,"popupEnabled",void 0),(0,r._)([(0,c.Cb)({type:Boolean})],f.prototype,"attributionVisible",void 0),(0,r._)([(0,c.Cb)({type:g.Z})],f.prototype,"spatialReference",void 0),(0,r._)([(0,c.Cb)({type:String})],f.prototype,"title",void 0),(0,r._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],f.prototype,"type",void 0),(0,r._)([(0,c.Cb)()],f.prototype,"url",void 0),(0,r._)([(0,c.Cb)({type:Boolean,nonNullable:!0})],f.prototype,"visible",void 0),f=(0,r._)([(0,m.j)("esri.layers.Layer")],f);const w=f},15512:(t,e,n)=>{n.d(e,{By:()=>r,_4:()=>i,pt:()=>o});const r="system",i="unknown",o="UTC"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6841,6030],{88669:(e,n,t)=>{function a(){return[0,0,0,0]}function i(e,n,t,a){return[e,n,t,a]}function l(e,n){return new Float64Array(e,n,4)}function r(){return i(1,1,1,1)}function o(){return i(1,0,0,0)}function s(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}t.d(n,{a:()=>l,c:()=>a,f:()=>i});const f=r(),m=o(),d=s(),p=u(),h=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:h,UNIT_X:m,UNIT_Y:d,UNIT_Z:p,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:a,createView:l,fromArray:function(e,n=[0,0,0,0]){const t=Math.min(4,e.length);for(let a=0;a<t;++a)n[a]=e[a];return n},fromValues:i,ones:r,unitW:c,unitX:o,unitY:s,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},36030:(e,n,t)=>{t.d(n,{J:()=>l});var a=t(35454),i=t(5600);function l(e,n={}){const t=e instanceof a.X?e:new a.X(e,n),l={type:n?.ignoreUnknown??1?t.apiValues:String,json:{type:t.jsonValues,read:!n?.readOnly&&{reader:t.read},write:{writer:t.write}}};return void 0!==n?.readOnly&&(l.readOnly=!!n.readOnly),void 0!==n?.default&&(l.json.default=n.default),void 0!==n?.name&&(l.json.name=n.name),void 0!==n?.nonNullable&&(l.nonNullable=n.nonNullable),(0,i.Cb)(l)}},62357:(e,n,t)=>{t.d(n,{F2:()=>r,Wz:()=>o,t_:()=>s,vW:()=>u});const a=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",l=96;function r(e){return e?e/72*l:0}function o(e){return e?72*e/l:0}function s(e){if("string"==typeof e){const n=e.match(a);if(n){const t=Number(n[1]),a=n[3]&&n[3].toLowerCase(),i="-"===e.charAt(0),l="px"===a?o(t):t;return i?-l:l}return console.warn(i),null}return e}function u(e=0,n=0){return{x:e,y:n}}},82397:(e,n,t)=>{t.d(n,{G6:()=>h,Ie:()=>p,J9:()=>m,RF:()=>f,U1:()=>d,vY:()=>r}),t(33955);const a=(e,n,t)=>[n,t],i=(e,n,t)=>[n,t,e[2]],l=(e,n,t)=>[n,t,e[2],e[3]];function r(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function o({scale:e,translate:n},t){return t*e[0]+n[0]}function s({scale:e,translate:n},t){return n[1]-t*e[1]}function u(e,n,t){const a=new Array(t.length);if(!t.length)return a;const[i,l]=e.scale;let r=o(e,t[0][0]),u=s(e,t[0][1]);a[0]=n(t[0],r,u);for(let e=1;e<t.length;e++){const o=t[e];r+=o[0]*i,u-=o[1]*l,a[e]=n(o,r,u)}return a}function c(e,n,t){const a=new Array(t.length);for(let i=0;i<t.length;i++)a[i]=u(e,n,t[i]);return a}function f(e,n,t,a,i){return n.x=function({scale:e,translate:n},t){return Math.round((t-n[0])/e[0])}(e,t.x),n.y=function({scale:e,translate:n},t){return Math.round((n[1]-t)/e[1])}(e,t.y),n!==t&&(a&&(n.z=t.z),i&&(n.m=t.m)),n}function m(e,n,t,r,o){return null!=t&&(n.points=function(e,n,t,r){return u(e,t?r?l:i:r?i:a,n)}(e,t.points,r,o)),n}function d(e,n,t,a,i){return null==t||(n.x=o(e,t.x),n.y=s(e,t.y),n!==t&&(a&&(n.z=t.z),i&&(n.m=t.m))),n}function p(e,n,t,r,o){return null!=t&&(n.rings=function(e,n,t,r){return c(e,t?r?l:i:r?i:a,n)}(e,t.rings,r,o)),n}function h(e,n,t,r,o){return null!=t&&(n.paths=function(e,n,t,r){return c(e,t?r?l:i:r?i:a,n)}(e,t.paths,r,o)),n}},73572:(e,n,t)=>{t.d(n,{AJ:()=>r,If:()=>s,QM:()=>o,k0:()=>l,ul:()=>i,wx:()=>u}),t(22021);var a=t(62357);t(98766),t(88669);const i=2.4;function l(e){return(0,a.Wz)(e*i)}function r(e){return(0,a.F2)(e)/i}function o(e,n,t,i){const{radius:l,fieldOffset:r,field:o}=n,u=Math.round((0,a.F2)(l)),c=new Float64Array(t*i);let f,m=Number.NEGATIVE_INFINITY;const d=function(e,n){return null!=e?"string"==typeof n?n=>-1*+n.readAttribute(e):t=>+t.readAttribute(e)+n:e=>1}(o,r),p=new Set;for(const n of e){const e=n.getCursor();for(;e.next();){const n=e.getObjectId();if(p.has(n))continue;p.add(n);const a=e.readLegacyPointGeometry(),l=128;if(a.x<-l||a.x>=t+l||a.y<-l||a.y>i+l)continue;const r=+d(e),o=Math.max(0,Math.round(a.x)-u),h=Math.max(0,Math.round(a.y)-u),v=Math.min(i,Math.round(a.y)+u),y=Math.min(t,Math.round(a.x)+u);for(let e=h;e<v;e++)for(let n=o;n<y;n++){const i=e*t+n,l=s(a.x-n,a.y-e,u);f=c[i]+=l*r,f>m&&(m=f)}}}return{matrix:c.buffer,max:m}}function s(e,n,t){const a=Math.sqrt(e**2+n**2)/t;return a>1?0:3/(Math.PI*t**2)*(1-a**2)**2}function u(e,n){return"function"==typeof e?e:e?"string"==typeof n?n=>-1*+n[e]:t=>+t[e]+n:()=>1}},10278:(e,n,t)=>{t.d(n,{Z:()=>m});var a=t(43697),i=t(35454),l=t(96674),r=t(5600),o=(t(75215),t(67676),t(80442),t(36030)),s=t(52011);const u=new i.X({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),c=new i.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let f=class extends l.wq{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,a._)([(0,o.J)({classBreaksDef:"class-breaks-definition"})],f.prototype,"type",void 0),(0,a._)([(0,r.Cb)({json:{write:!0}})],f.prototype,"breakCount",void 0),(0,a._)([(0,r.Cb)({json:{write:!0}})],f.prototype,"classificationField",void 0),(0,a._)([(0,r.Cb)({type:String,json:{read:u.read,write:u.write}})],f.prototype,"classificationMethod",void 0),(0,a._)([(0,r.Cb)({json:{write:!0}})],f.prototype,"normalizationField",void 0),(0,a._)([(0,r.Cb)({json:{read:c.read,write:c.write}})],f.prototype,"normalizationType",void 0),(0,a._)([(0,r.Cb)({value:null,json:{write:!0}})],f.prototype,"standardDeviationInterval",null),(0,a._)([(0,r.Cb)({value:null,json:{write:!0}})],f.prototype,"definedInterval",null),f=(0,a._)([(0,s.j)("esri.rest.support.ClassBreaksDefinition")],f);const m=f},622:(e,n,t)=>{t.d(n,{k:()=>l});const a=t(92604).Z.getLogger("esri.rest.support.generateRendererUtils");function i(e,n){return Number(e.toFixed(n))}function l(e){const{normalizationTotal:n}=e;return{classBreaks:r(e),normalizationTotal:n}}function r(e){const n=e.definition,{classificationMethod:t,normalizationType:a,definedInterval:l}=n,r=n.breakCount??1,u=[];let c=e.values;if(0===c.length)return[];c=c.sort(((e,n)=>e-n));const f=c[0],m=c[c.length-1];if("equal-interval"===t)if(c.length>=r){const e=(m-f)/r;let n=f;for(let t=1;t<r;t++){const l=i(f+t*e,6);u.push({minValue:n,maxValue:l,label:o(n,l,a)}),n=l}u.push({minValue:n,maxValue:m,label:o(n,m,a)})}else c.forEach((e=>{u.push({minValue:e,maxValue:e,label:o(e,e,a)})}));else if("natural-breaks"===t){const n=function(e){const n=[],t=[];let a=Number.MIN_VALUE,i=1,l=-1;for(let r=0;r<e.length;r++){const o=e[r];o===a?(i++,t[l]=i):null!==o&&(n.push(o),a=o,i=1,t.push(i),l++)}return{uniqueValues:n,valueFrequency:t}}(c),t=e.valueFrequency||n.valueFrequency,l=s(n.uniqueValues,t,r);let d=f;for(let e=1;e<r;e++)if(n.uniqueValues.length>e){const t=i(n.uniqueValues[l[e]],6);u.push({minValue:d,maxValue:t,label:o(d,t,a)}),d=t}u.push({minValue:d,maxValue:m,label:o(d,m,a)})}else if("quantile"===t)if(c.length>=r&&f!==m){let e=f,n=Math.ceil(c.length/r),t=0;for(let i=1;i<r;i++){let l=n+t-1;l>c.length&&(l=c.length-1),l<0&&(l=0),u.push({minValue:e,maxValue:c[l],label:o(e,c[l],a)}),e=c[l],t+=n,n=Math.ceil((c.length-t)/(r-i))}u.push({minValue:e,maxValue:m,label:o(e,m,a)})}else{let e=-1;for(let n=0;n<c.length;n++){const t=c[n];t!==e&&(e=t,u.push({minValue:e,maxValue:t,label:o(e,t,a)}),e=t)}}else if("standard-deviation"===t){const e=function(e){let n=0;for(let t=0;t<e.length;t++)n+=e[t];return n/=e.length,n}(c),n=function(e,n){let t=0;for(let a=0;a<e.length;a++){const i=e[a];t+=(i-n)*(i-n)}return t/=e.length,Math.sqrt(t)}(c,e);if(0===n)u.push({minValue:c[0],maxValue:c[0],label:o(c[0],c[0],a)});else{const t=function(e,n,t,a,i){let l=Math.max(a-e,n-a)/i/t;return l=l>=1?1:l>=.5?.5:.25,l}(f,m,r,e,n)*n;let l=0,s=f;for(let n=r;n>=1;n--){const r=i(e-(n-.5)*t,6);u.push({minValue:s,maxValue:r,label:o(s,r,a)}),s=r,l++}let c=i(e+.5*t,6);u.push({minValue:s,maxValue:c,label:o(s,c,a)}),s=c,l++;for(let n=1;n<=r;n++)c=l===2*r?m:i(e+(n+.5)*t,6),u.push({minValue:s,maxValue:c,label:o(s,c,a)}),s=c,l++}}else if("defined-interval"===t){if(!l)return u;const e=c[0],n=c[c.length-1],t=Math.ceil((n-e)/l);let r=e;for(let n=1;n<t;n++){const t=i(e+n*l,6);u.push({minValue:r,maxValue:t,label:o(r,t,a)}),r=t}u.push({minValue:r,maxValue:n,label:o(r,n,a)})}return u}function o(e,n,t){let a=null;return a=e===n?t&&"percent-of-total"===t?e+"%":e.toString():t&&"percent-of-total"===t?e+"% - "+n+"%":e+" - "+n,a}function s(e,n,t){const a=e.length,i=[];t>a&&(t=a);for(let e=0;e<t;e++)i.push(Math.round(e*a/t-1));i.push(a-1);let l=u(i,e,n,t);return function(e,n,t,a,i,l){let r=0,o=0,s=0,u=0,f=!0;for(let m=0;m<2&&f;m++){0===m&&(f=!1);for(let m=0;m<l-1;m++)for(;t[m+1]+1!==t[m+2];){t[m+1]=t[m+1]+1;const l=c(m,t,a,i);s=l.sbMean,r=l.sbSdcm;const d=c(m+1,t,a,i);if(u=d.sbMean,o=d.sbSdcm,!(r+o<n[m]+n[m+1])){t[m+1]=t[m+1]-1;break}n[m]=r,n[m+1]=o,e[m]=s,e[m+1]=u,f=!0}for(let m=l-1;m>0;m--)for(;t[m]!==t[m-1]+1;){t[m]=t[m]-1;const l=c(m-1,t,a,i);s=l.sbMean,r=l.sbSdcm;const d=c(m,t,a,i);if(u=d.sbMean,o=d.sbSdcm,!(r+o<n[m-1]+n[m])){t[m]=t[m]+1;break}n[m-1]=r,n[m]=o,e[m-1]=s,e[m]=u,f=!0}}return f}(l.mean,l.sdcm,i,e,n,t)&&(l=u(i,e,n,t)),i}function u(e,n,t,a){let i=[],l=[],r=[],o=0;const s=[],u=[];for(let i=0;i<a;i++){const a=c(i,e,n,t);s.push(a.sbMean),u.push(a.sbSdcm),o+=u[i]}let f,m=o,d=!0;for(;d||o<m;){d=!1,i=[];for(let n=0;n<a;n++)i.push(e[n]);for(let t=0;t<a;t++)for(let i=e[t]+1;i<=e[t+1];i++)if(f=n[i],t>0&&i!==e[t+1]&&Math.abs(f-s[t])>Math.abs(f-s[t-1]))e[t]=i;else if(t<a-1&&e[t]!==i-1&&Math.abs(f-s[t])>Math.abs(f-s[t+1])){e[t+1]=i-1;break}m=o,o=0,l=[],r=[];for(let i=0;i<a;i++){l.push(s[i]),r.push(u[i]);const a=c(i,e,n,t);s[i]=a.sbMean,u[i]=a.sbSdcm,o+=u[i]}}if(o>m){for(let n=0;n<a;n++)e[n]=i[n],s[n]=l[n],u[n]=r[n];o=m}return{mean:s,sdcm:u}}function c(e,n,t,i){let l=0,r=0;for(let a=n[e]+1;a<=n[e+1];a++){const e=i[a];l+=t[a]*e,r+=e}r<=0&&a.warn("Exception in Natural Breaks calculation");const o=l/r;let s=0;for(let a=n[e]+1;a<=n[e+1];a++)s+=i[a]*(t[a]-o)**2;return{sbMean:o,sbSdcm:s}}},36841:(e,n,t)=>{t.r(n),t.d(n,{classBreaks:()=>v,heatmapStatistics:()=>b,histogram:()=>y,summaryStatistics:()=>p,uniqueValues:()=>h}),t(66577),t(20102);var a=t(62357),i=t(82971),l=t(82397),r=t(8744),o=t(35671),s=t(73572),u=t(24452),c=t(59266),f=t(94139);let m=null;async function d(e,n){if(!n)return[];const{field:t,field2:a,field3:l,fieldDelimiter:r,fieldInfos:s}=e,f=t&&s?.find((e=>e.name.toLowerCase()===t.toLowerCase())),d=!!f&&(0,o.y2)(f),p=e.valueExpression,h=e.normalizationType,v=e.normalizationField,y=e.normalizationTotal,b=[],x=e.viewInfoParams;let V=null,g=null;if(p){if(!m){const{arcadeUtils:e}=await(0,c.LC)();m=e}m.hasGeometryOperations(p)&&await m.enableGeometryOperations(),V=m.createFunction(p),g=x&&m.getViewInfo({viewingMode:x.viewingMode,scale:x.scale,spatialReference:new i.Z(x.spatialReference)})}const T=e.fieldInfos,I=n[0]&&"declaredClass"in n[0]&&"esri.Graphic"===n[0].declaredClass||!T?null:{fields:T};return n.forEach((e=>{const n=e.attributes;let i;if(p){const n=I?{...e,layer:I}:e,t=m.createExecContext(n,g);i=m.executeFunction(V,t)}else n&&(i=n[t],a?(i=`${(0,u.wk)(i)}${r}${(0,u.wk)(n[a])}`,l&&(i=`${i}${r}${(0,u.wk)(n[l])}`)):d&&"string"==typeof i&&(i=i?new Date(i).getTime():null));if(h&&"number"==typeof i&&isFinite(i)){const e=n&&parseFloat(n[v]);i=(0,u.fk)(i,h,e,y)}b.push(i)})),b}async function p(e){const{attribute:n,features:t}=e,{normalizationType:a,normalizationField:i,minValue:l,maxValue:r,fieldType:o}=n,s=await d({field:n.field,valueExpression:n.valueExpression,normalizationType:a,normalizationField:i,normalizationTotal:n.normalizationTotal,viewInfoParams:n.viewInfoParams,fieldInfos:n.fieldInfos},t),c=(0,u.S5)({normalizationType:a,normalizationField:i,minValue:l,maxValue:r}),f={value:.5,fieldType:o},m="esriFieldTypeString"===o?(0,u.H0)({values:s,supportsNullCount:c,percentileParams:f}):(0,u.i5)({values:s,minValue:l,maxValue:r,useSampleStdDev:!a,supportsNullCount:c,percentileParams:f});return(0,u.F_)(m,"esriFieldTypeDate"===o)}async function h(e){const{attribute:n,features:t}=e,a=await d({field:n.field,field2:n.field2,field3:n.field3,fieldDelimiter:n.fieldDelimiter,valueExpression:n.valueExpression,viewInfoParams:n.viewInfoParams,fieldInfos:n.fieldInfos},t),i=(0,u.eT)(a);return(0,u.Qm)(i,n.domains,n.returnAllCodedValues,n.fieldDelimiter)}async function v(e){const{attribute:n,features:t}=e,{field:a,normalizationType:i,normalizationField:l,normalizationTotal:r,classificationMethod:o}=n,s=await d({field:a,valueExpression:n.valueExpression,normalizationType:i,normalizationField:l,normalizationTotal:r,viewInfoParams:n.viewInfoParams,fieldInfos:n.fieldInfos},t),c=(0,u.G2)(s,{field:a,normalizationType:i,normalizationField:l,normalizationTotal:r,classificationMethod:o,standardDeviationInterval:n.standardDeviationInterval,numClasses:n.numClasses,minValue:n.minValue,maxValue:n.maxValue});return(0,u.DL)(c,o)}async function y(e){const{attribute:n,features:t}=e,{field:a,normalizationType:i,normalizationField:l,normalizationTotal:r,classificationMethod:o}=n,s=await d({field:a,valueExpression:n.valueExpression,normalizationType:i,normalizationField:l,normalizationTotal:r,viewInfoParams:n.viewInfoParams,fieldInfos:n.fieldInfos},t);return(0,u.oF)(s,{field:a,normalizationType:i,normalizationField:l,normalizationTotal:r,classificationMethod:o,standardDeviationInterval:n.standardDeviationInterval,numBins:n.numBins,minValue:n.minValue,maxValue:n.maxValue})}async function b(e){const{attribute:n,features:t}=e,{field:i,radius:o,fieldOffset:u,transform:c,spatialReference:m}=n,d=n.size??[0,0],p=function(e,n,t,a){const i=(0,r.MP)(t)?(0,r.C5)(t):null,o=i?Math.round((i.valid[1]-i.valid[0])/n.scale[0]):null;return e.map((e=>{const t=new f.Z(e.geometry);return(0,l.RF)(n,t,t,t.hasZ,t.hasM),e.geometry=i?function(e,n,t){return e.x<0?e.x+=n:e.x>t&&(e.x-=n),e}(t,o??0,a[0]):t,e}))}(t??[],c,m,d),{count:h,min:v,max:y,mean:b,stdDev:x}=function(e,n=18,t,i,l,r){const o=new Float64Array(l*r);n=Math.round((0,a.F2)(n));let u=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,f=0,m=0,d=0,p=0;const h=(0,s.wx)(i,t);for(const{geometry:t,attributes:a}of e){const{x:e,y:i}=t,v=Math.max(0,e-n),y=Math.max(0,i-n),b=Math.min(r,i+n),x=Math.min(l,e+n),V=+h(a);for(let t=y;t<b;t++)for(let a=v;a<x;a++){const r=t*l+a,h=(0,s.If)(a-e,t-i,n),v=o[r];f=o[r]+=h*V;const y=f-v;m+=y,d+=y*y,f<u&&(u=f),f>c&&(c=f),p++}}if(!p)return{mean:0,stddev:0,min:0,max:0,mid:0,count:0};const v=(c-u)/2;return{mean:m/p,stdDev:Math.sqrt((d-m*m/p)/p),min:u,max:c,mid:v,count:p}}(p,o??void 0,u,i,d[0],d[1]);return{count:h,min:v,max:y,avg:b,stddev:x}}},24452:(e,n,t)=>{t.d(n,{DL:()=>C,F_:()=>T,G2:()=>w,H0:()=>h,Lq:()=>b,Qm:()=>F,S5:()=>p,XL:()=>y,eT:()=>I,fk:()=>M,i5:()=>v,oF:()=>D,wk:()=>d});var a=t(10278),i=t(622);const l="<Null>",r="equal-interval",o=1,s=5,u=10,c=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,f=new Set(["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]),m=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function d(e){return null==e||"string"==typeof e&&!e?l:e}function p(e){const n=null!=e.normalizationField||null!=e.normalizationType,t=null!=e.minValue||null!=e.maxValue,a=!!e.sqlExpression&&e.supportsSQLExpression;return!n&&!t&&!a}function h(e){const n=e.returnDistinct?[...new Set(e.values)]:e.values,t=n.filter((e=>null!=e)).sort(),a=t.length,i={count:a,min:t[0],max:t[a-1]};return e.supportsNullCount&&(i.nullcount=n.length-a),e.percentileParams&&(i.median=y(n,e.percentileParams)),i}function v(e){const{values:n,useSampleStdDev:t,supportsNullCount:a}=e;let i=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,r=null,o=null,s=null,u=null,c=0;const f=null==e.minValue?-1/0:e.minValue,m=null==e.maxValue?1/0:e.maxValue;for(const e of n)Number.isFinite(e)?e>=f&&e<=m&&(r=null===r?e:r+e,i=Math.min(i,e),l=Math.max(l,e),c++):"string"==typeof e&&c++;if(c&&null!=r){o=r/c;let e=0;for(const t of n)Number.isFinite(t)&&t>=f&&t<=m&&(e+=(t-o)**2);u=t?c>1?e/(c-1):0:c>0?e/c:0,s=Math.sqrt(u)}else i=null,l=null;const d={avg:o,count:c,max:l,min:i,stddev:s,sum:r,variance:u};return a&&(d.nullcount=n.length-c),e.percentileParams&&(d.median=y(n,e.percentileParams)),d}function y(e,n){const{fieldType:t,value:a,orderBy:i,isDiscrete:l}=n,r=b(t,"desc"===i);if(0===(e=[...e].filter((e=>null!=e)).sort(((e,n)=>r(e,n)))).length)return null;if(a<=0)return e[0];if(a>=1)return e[e.length-1];const o=(e.length-1)*a,s=Math.floor(o),u=s+1,c=o%1,f=e[s],m=e[u];return u>=e.length||l||"string"==typeof f||"string"==typeof m?f:f*(1-c)+m*c}function b(e,n){const t=n?1:-1,a=function(e){return e?(e,n)=>{const t=x(e,n,!0);return null!=t?t:n-e}:(e,n)=>{const t=x(e,n,!1);return null!=t?t:e-n}}(n),i=V(n);if(!e||!["esriFieldTypeDate","esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...f].includes(e))return(e,n)=>"number"==typeof e&&"number"==typeof n?a(e,n):"string"==typeof e&&"string"==typeof n?i(e,n):t;if("esriFieldTypeDate"===e)return(e,n)=>{const i=new Date(e).getTime(),l=new Date(n).getTime();return isNaN(i)||isNaN(l)?t:a(i,l)};if(f.has(e))return(e,n)=>a(e,n);if("esriFieldTypeString"===e)return(e,n)=>i(e,n);if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e){const e=V(n);return(n,t)=>e(g(n),g(t))}return n?(e,n)=>1:(e,n)=>-1}function x(e,n,t){if(t){if(null==e)return null==n?0:1;if(null==n)return-1}else{if(null==e)return null==n?0:-1;if(null==n)return 1}return null}function V(e){return e?(e,n)=>{const t=x(e,n,!0);return null!=t?t:(e=e.toUpperCase())>(n=n.toUpperCase())?-1:e<n?1:0}:(e,n)=>{const t=x(e,n,!1);return null!=t?t:(e=e.toUpperCase())<(n=n.toUpperCase())?-1:e>n?1:0}}function g(e){return e.substr(24,12)+e.substr(19,4)+e.substr(16,2)+e.substr(14,2)+e.substr(11,2)+e.substr(9,2)+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)+e.substr(0,2)}function T(e,n){let t;for(t in e)m.includes(t)&&(Number.isFinite(e[t])||(e[t]=null));return n?(["avg","stddev","variance"].forEach((n=>{null!=e[n]&&(e[n]=Math.ceil(e[n]??0))})),e):e}function I(e){const n={};for(let t of e)(null==t||"string"==typeof t&&""===t.trim())&&(t=null),null==n[t]?n[t]={count:1,data:t}:n[t].count++;return{count:n}}function z(e){return"coded-value"!==e?.type?[]:e.codedValues.map((e=>e.code))}function F(e,n,t,a){const i=e.count,l=[];if(t&&n){const e=[],t=z(n[0]);for(const i of t)if(n[1]){const t=z(n[1]);for(const l of t)if(n[2]){const t=z(n[2]);for(const n of t)e.push(`${d(i)}${a}${d(l)}${a}${d(n)}`)}else e.push(`${d(i)}${a}${d(l)}`)}else e.push(i);for(const n of e)i.hasOwnProperty(n)||(i[n]={data:n,count:0})}for(const e in i){const n=i[e];l.push({value:n.data,count:n.count,label:n.label})}return{uniqueValueInfos:l}}function M(e,n,t,a){let i=null;switch(n){case"log":0!==e&&(i=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(a)&&0!==a&&(i=e/a*100);break;case"field":Number.isFinite(t)&&0!==t&&(i=e/t);break;case"natural-log":e>0&&(i=Math.log(e));break;case"square-root":e>0&&(i=e**.5)}return i}function w(e,n){const t=N({field:n.field,normalizationType:n.normalizationType,normalizationField:n.normalizationField,classificationMethod:n.classificationMethod,standardDeviationInterval:n.standardDeviationInterval,breakCount:n.numClasses||s});return e=function(e,n,t){const a=n??-1/0,i=t??1/0;return e.filter((e=>Number.isFinite(e)&&e>=a&&e<=i))}(e,n.minValue,n.maxValue),(0,i.k)({definition:t,values:e,normalizationTotal:n.normalizationTotal})}function N(e){const{breakCount:n,field:t,normalizationField:i,normalizationType:l}=e,s=e.classificationMethod||r,u="standard-deviation"===s?e.standardDeviationInterval||o:void 0;return new a.Z({breakCount:n,classificationField:t,classificationMethod:s,normalizationField:"field"===l?i:void 0,normalizationType:l,standardDeviationInterval:u})}function C(e,n){let t=e.classBreaks;const a=t.length,i=t[0]?.minValue,l=t[a-1]?.maxValue,r="standard-deviation"===n,o=c;return t=t.map((e=>{const n=e.label,t={minValue:e.minValue,maxValue:e.maxValue,label:n};if(r&&n){const e=n.match(o),a=e?.map((e=>+e.trim()))??[];2===a.length?(t.minStdDev=a[0],t.maxStdDev=a[1],a[0]<0&&a[1]>0&&(t.hasAvg=!0)):1===a.length&&(n.includes("<")?(t.minStdDev=null,t.maxStdDev=a[0]):n.includes(">")&&(t.minStdDev=a[0],t.maxStdDev=null))}return t})),{minValue:i,maxValue:l,classBreakInfos:t,normalizationTotal:e.normalizationTotal}}function D(e,n){const t=S(e,n);if(null==t.min&&null==t.max)return{bins:[],minValue:t.min,maxValue:t.max,normalizationTotal:n.normalizationTotal};const a=t.intervals,i=t.min??0,l=t.max??0,r=a.map(((e,n)=>({minValue:a[n][0],maxValue:a[n][1],count:0})));for(const n of e)if(null!=n&&n>=i&&n<=l){const e=k(a,n);e>-1&&r[e].count++}return{bins:r,minValue:i,maxValue:l,normalizationTotal:n.normalizationTotal}}function S(e,n){const{field:t,classificationMethod:a,standardDeviationInterval:i,normalizationType:l,normalizationField:r,normalizationTotal:o,minValue:s,maxValue:c}=n,f=n.numBins||u;let m=null,d=null,h=null;if(a&&"equal-interval"!==a||l){const{classBreaks:n}=w(e,{field:t,normalizationType:l,normalizationField:r,normalizationTotal:o,classificationMethod:a,standardDeviationInterval:i,minValue:s,maxValue:c,numClasses:f});m=n[0].minValue,d=n[n.length-1].maxValue,h=n.map((e=>[e.minValue,e.maxValue]))}else{if(null!=s&&null!=c)m=s,d=c;else{const n=v({values:e,minValue:s,maxValue:c,useSampleStdDev:!l,supportsNullCount:p({normalizationType:l,normalizationField:r,minValue:s,maxValue:c})});m=n.min??null,d=n.max??null}h=function(e,n,t){const a=(n-e)/t,i=[];let l,r=e;for(let e=1;e<=t;e++)l=r+a,l=Number(l.toFixed(16)),i.push([r,e===t?n:l]),r=l;return i}(m??0,d??0,f)}return{min:m,max:d,intervals:h}}function k(e,n){let t=-1;for(let a=e.length-1;a>=0;a--)if(n>=e[a][0]){t=a;break}return t}}}]);