@arcgis/core 4.32.0-next.20250121 → 4.32.0-next.20250122

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 (279) hide show
  1. package/WebLinkChart.js +1 -1
  2. package/arcade/treeAnalysis.js +1 -1
  3. package/assets/esri/core/t9n/Units_ar.json +1 -1
  4. package/assets/esri/core/t9n/Units_bg.json +1 -1
  5. package/assets/esri/core/t9n/Units_bs.json +1 -1
  6. package/assets/esri/core/t9n/Units_ca.json +1 -1
  7. package/assets/esri/core/t9n/Units_cs.json +1 -1
  8. package/assets/esri/core/t9n/Units_da.json +1 -1
  9. package/assets/esri/core/t9n/Units_de.json +1 -1
  10. package/assets/esri/core/t9n/Units_el.json +1 -1
  11. package/assets/esri/core/t9n/Units_es.json +1 -1
  12. package/assets/esri/core/t9n/Units_et.json +1 -1
  13. package/assets/esri/core/t9n/Units_fi.json +1 -1
  14. package/assets/esri/core/t9n/Units_fr.json +1 -1
  15. package/assets/esri/core/t9n/Units_he.json +1 -1
  16. package/assets/esri/core/t9n/Units_hr.json +1 -1
  17. package/assets/esri/core/t9n/Units_hu.json +1 -1
  18. package/assets/esri/core/t9n/Units_id.json +1 -1
  19. package/assets/esri/core/t9n/Units_it.json +1 -1
  20. package/assets/esri/core/t9n/Units_ja.json +1 -1
  21. package/assets/esri/core/t9n/Units_ko.json +1 -1
  22. package/assets/esri/core/t9n/Units_lt.json +1 -1
  23. package/assets/esri/core/t9n/Units_lv.json +1 -1
  24. package/assets/esri/core/t9n/Units_nl.json +1 -1
  25. package/assets/esri/core/t9n/Units_no.json +1 -1
  26. package/assets/esri/core/t9n/Units_pl.json +1 -1
  27. package/assets/esri/core/t9n/Units_pt-BR.json +1 -1
  28. package/assets/esri/core/t9n/Units_pt-PT.json +1 -1
  29. package/assets/esri/core/t9n/Units_ro.json +1 -1
  30. package/assets/esri/core/t9n/Units_ru.json +1 -1
  31. package/assets/esri/core/t9n/Units_sk.json +1 -1
  32. package/assets/esri/core/t9n/Units_sl.json +1 -1
  33. package/assets/esri/core/t9n/Units_sr.json +1 -1
  34. package/assets/esri/core/t9n/Units_sv.json +1 -1
  35. package/assets/esri/core/t9n/Units_th.json +1 -1
  36. package/assets/esri/core/t9n/Units_tr.json +1 -1
  37. package/assets/esri/core/t9n/Units_uk.json +1 -1
  38. package/assets/esri/core/t9n/Units_vi.json +1 -1
  39. package/assets/esri/core/t9n/Units_zh-CN.json +1 -1
  40. package/assets/esri/core/t9n/Units_zh-HK.json +1 -1
  41. package/assets/esri/core/t9n/Units_zh-TW.json +1 -1
  42. package/assets/esri/core/workers/RemoteClient.js +1 -1
  43. package/assets/esri/core/workers/chunks/03b94362ed2a45ee5ea3.js +1 -0
  44. package/assets/esri/core/workers/chunks/0446f2ffad255cd40272.js +1 -0
  45. package/assets/esri/core/workers/chunks/059119f1731c2103c91c.js +1 -0
  46. package/assets/esri/core/workers/chunks/05e58286f8015dba6768.js +1 -0
  47. package/assets/esri/core/workers/chunks/060414956bf316529c48.js +1 -0
  48. package/assets/esri/core/workers/chunks/{f8e188af5608293d5b2b.js → 07bff9e742f3e5877f3f.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{6400f39a965900f66ce7.js → 083c73428945fb3d4558.js} +1 -1
  50. package/assets/esri/core/workers/chunks/0d3154b90bc3fd7e6b4c.js +1 -0
  51. package/assets/esri/core/workers/chunks/0ec2ae595fa22998ffea.js +1 -0
  52. package/assets/esri/core/workers/chunks/{105dcc7b7284b1e965b7.js → 15c5b1dd8f398f641f6e.js} +1 -1
  53. package/assets/esri/core/workers/chunks/163451124c66a7a0bcdc.js +1 -0
  54. package/assets/esri/core/workers/chunks/17cc6638a510da164f58.js +1 -0
  55. package/assets/esri/core/workers/chunks/1e3ab66d0e8a7f160f33.js +1 -0
  56. package/assets/esri/core/workers/chunks/1e9349411af082ec03d0.js +1 -0
  57. package/assets/esri/core/workers/chunks/1eb47cfca815ac432cf5.js +1 -0
  58. package/assets/esri/core/workers/chunks/{82266ca8002554198208.js → 20e7fae0c173807ba9a2.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{af0b0a7eedebcf99d05d.js → 2118e9ffb24178ed7f59.js} +1 -1
  60. package/assets/esri/core/workers/chunks/21c12edc0632eb911e73.js +1 -0
  61. package/assets/esri/core/workers/chunks/21c3882a282a4755e032.js +1 -0
  62. package/assets/esri/core/workers/chunks/{435c037ccba71f1e22d3.js → 2488a0da3be64b0a26f4.js} +1 -1
  63. package/assets/esri/core/workers/chunks/254fbd8055ae7a0bb393.js +1 -0
  64. package/assets/esri/core/workers/chunks/2d55eb8059a532ffcc56.js +1 -0
  65. package/assets/esri/core/workers/chunks/3034df78da56fe1c0535.js +1 -0
  66. package/assets/esri/core/workers/chunks/32a96ef30f4608f377d6.js +1 -0
  67. package/assets/esri/core/workers/chunks/{97d66b0d0ff1132966de.js → 33b2f59c2ec10b2a1034.js} +1 -1
  68. package/assets/esri/core/workers/chunks/402de76b5de05615e111.js +1 -0
  69. package/assets/esri/core/workers/chunks/{17726b0ab1bf66185d66.js → 40efcdf03c5224e6c4f7.js} +1 -1
  70. package/assets/esri/core/workers/chunks/424c7788a708abbf9299.js +1 -0
  71. package/assets/esri/core/workers/chunks/484d99910d110830df76.js +1 -0
  72. package/assets/esri/core/workers/chunks/{9970e0e74cf2877a7ffc.js → 486969dba1dc99402172.js} +2 -2
  73. package/assets/esri/core/workers/chunks/{02b2175132c9720bc756.js → 48f4ba1a5bb692903d06.js} +1 -1
  74. package/assets/esri/core/workers/chunks/4d7bd2bbe9045a2fee7a.js +1 -0
  75. package/assets/esri/core/workers/chunks/{decd316936df1ad3fa65.js → 50b538c93696de5eda97.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{de00150030003de05146.js → 52aea8a4f292a66f5cfa.js} +1 -1
  77. package/assets/esri/core/workers/chunks/56f0eb9802f5cf9ad0d9.js +1 -0
  78. package/assets/esri/core/workers/chunks/57ddd64f0c22274d87e0.js +1 -0
  79. package/assets/esri/core/workers/chunks/5b5be7eb139b153934f5.js +1 -0
  80. package/assets/esri/core/workers/chunks/{4af0674fabfc965f1660.js → 5b876743865ef91b5648.js} +1 -1
  81. package/assets/esri/core/workers/chunks/62b88350892198de5055.js +1 -0
  82. package/assets/esri/core/workers/chunks/{206194cf069ad4bcc3ad.js → 6adf4f3d807f1af1c7c1.js} +1 -1
  83. package/assets/esri/core/workers/chunks/6b1285db2d6695a87553.js +1 -0
  84. package/assets/esri/core/workers/chunks/6c425e1041bdeef32832.js +1 -0
  85. package/assets/esri/core/workers/chunks/6eb829a7959df2269b0e.js +1 -0
  86. package/assets/esri/core/workers/chunks/765b4aefce7c11bbcb1f.js +1 -0
  87. package/assets/esri/core/workers/chunks/{6d17488396583d83d9be.js → 79a265dc21e29d3fd888.js} +1 -1
  88. package/assets/esri/core/workers/chunks/7a9e1696dc6120df15b0.js +1 -0
  89. package/assets/esri/core/workers/chunks/7ae1f26ded268099f429.js +1 -0
  90. package/assets/esri/core/workers/chunks/7bf08823f861628144a1.js +1 -0
  91. package/assets/esri/core/workers/chunks/7e4d72279cc599b7029c.js +1 -0
  92. package/assets/esri/core/workers/chunks/{ee5f43fbe4c2cc199e64.js → 8434cd16effc5efbf1bd.js} +1 -1
  93. package/assets/esri/core/workers/chunks/86149b4a5a148744c7d1.js +1 -0
  94. package/assets/esri/core/workers/chunks/{2779cf112299b612a73a.js → 875cb81f143ff8fe03b5.js} +1 -1
  95. package/assets/esri/core/workers/chunks/885814ef0e34c01a589f.js +1 -0
  96. package/assets/esri/core/workers/chunks/{e610dd938d30f75778bc.js → 8be2d16663a238de9438.js} +1 -1
  97. package/assets/esri/core/workers/chunks/91d5cb094a7051abb6c5.js +1 -0
  98. package/assets/esri/core/workers/chunks/93ba76749746871357e7.js +314 -0
  99. package/assets/esri/core/workers/chunks/991c597f27daa67158c5.js +1 -0
  100. package/assets/esri/core/workers/chunks/9bd22cdf6eb158555906.js +1 -0
  101. package/assets/esri/core/workers/chunks/{33eebe5cb22a03ae90c8.js → 9c88ce9b0020b6f9a37a.js} +1 -1
  102. package/assets/esri/core/workers/chunks/9df7bffadbe0b4aad442.js +1 -0
  103. package/assets/esri/core/workers/chunks/a0a056698f8227210f49.js +1 -0
  104. package/assets/esri/core/workers/chunks/a1cdd09968e11d95c701.js +1 -0
  105. package/assets/esri/core/workers/chunks/a28cb975974b99540432.js +1 -0
  106. package/assets/esri/core/workers/chunks/a29958273958c3e3e932.js +1 -0
  107. package/assets/esri/core/workers/chunks/{98da074899c82f0ded0b.js → af224962edae72b002fa.js} +1 -1
  108. package/assets/esri/core/workers/chunks/af2ed4c8ac238b932d89.js +1 -0
  109. package/assets/esri/core/workers/chunks/af75107f207b2ba01bb4.js +1 -0
  110. package/assets/esri/core/workers/chunks/b1661e6c76ef0800ffd6.js +1 -0
  111. package/assets/esri/core/workers/chunks/b42ecc7c3eb2fd8d1308.js +1 -0
  112. package/assets/esri/core/workers/chunks/b44cf0e4c2f93408cabc.js +1 -0
  113. package/assets/esri/core/workers/chunks/b846052b6f80ad6ada89.js +1 -0
  114. package/assets/esri/core/workers/chunks/{399e67ccb69a5b206354.js → c1fd87af3129873369fd.js} +1 -1
  115. package/assets/esri/core/workers/chunks/c473756f8785ab868ba5.js +1 -0
  116. package/assets/esri/core/workers/chunks/c5368ca97b7f7261967a.js +1 -0
  117. package/assets/esri/core/workers/chunks/c685991c9a30f7435933.js +1 -0
  118. package/assets/esri/core/workers/chunks/ca5bd71bc2c1b1b3f9d9.js +1 -0
  119. package/assets/esri/core/workers/chunks/ce1c89b5a10fb5a7bb49.js +1 -0
  120. package/assets/esri/core/workers/chunks/d45ff061bf71b73e9f26.js +1 -0
  121. package/assets/esri/core/workers/chunks/d4760e583dfac95dc8a1.js +1 -0
  122. package/assets/esri/core/workers/chunks/de2ca2dc1b5d62c0d82e.js +1 -0
  123. package/assets/esri/core/workers/chunks/dfa4be2e07cc4c0938b0.js +1 -0
  124. package/assets/esri/core/workers/chunks/e067cef3b3ac3af49b88.js +1 -0
  125. package/assets/esri/core/workers/chunks/e2775bcceb62fd0df41b.js +1 -0
  126. package/assets/esri/core/workers/chunks/{c81204ae663e58c7b689.js → e63ff8d57fd771413488.js} +1 -1
  127. package/assets/esri/core/workers/chunks/e9993d4f2bfdc434fbcc.js +1 -0
  128. package/assets/esri/core/workers/chunks/{54c149f90bf94b797b36.js → ed30f46236da29c15430.js} +1 -1
  129. package/assets/esri/core/workers/chunks/f016205a8f1fb665d6dd.js +1 -0
  130. package/assets/esri/core/workers/chunks/f02119812ec852edda57.js +1 -0
  131. package/assets/esri/core/workers/chunks/f272070f0878cd3e39a4.js +1 -0
  132. package/assets/esri/core/workers/chunks/f2cf05fbbb51d657d300.js +1 -0
  133. package/assets/esri/core/workers/chunks/{e4f4ad67d778dea5b956.js → f4f6f4933ca58438d7bc.js} +1 -1
  134. package/assets/esri/core/workers/chunks/fdc3d97510c6d43a8882.js +1 -0
  135. package/assets/esri/core/workers/chunks/fef135e55706d84d1947.js +1 -0
  136. package/assets/esri/core/workers/chunks/ff4107b4fd3d3ce24e84.js +1 -0
  137. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  138. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  139. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  140. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  141. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +24 -0
  142. package/assets/esri/themes/base/widgets/_UtilityNetworkTrace.scss +49 -24
  143. package/assets/esri/themes/dark/main.css +1 -1
  144. package/assets/esri/themes/light/main.css +1 -1
  145. package/assets/esri/themes/light/view.css +1 -1
  146. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
  147. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
  148. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace.json +1 -1
  149. package/assets/esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace_en.json +1 -1
  150. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  151. package/chunks/arcgis-knowledge-client-core.js +1 -1
  152. package/chunks/lyr3DMain.js +1 -1
  153. package/chunks/lyr3DWorker.js +1 -1
  154. package/editing/sharedTemplates/SharedTemplate.js +1 -1
  155. package/editing/sharedTemplates/SharedTemplateMetadata.d.ts +4 -0
  156. package/editing/sharedTemplates/SharedTemplateMetadata.js +1 -1
  157. package/editing/templateUtils.js +5 -0
  158. package/geometry/operators/projectOperator.d.ts +4 -0
  159. package/geometry/operators/shapePreservingProjectOperator.d.ts +4 -0
  160. package/geometry/operators/support/GeographicTransformation.d.ts +4 -0
  161. package/geometry/operators/support/GeographicTransformation.js +1 -1
  162. package/geometry/operators/support/GeographicTransformationStep.d.ts +4 -0
  163. package/geometry/operators/support/geographicTransformationUtils.d.ts +4 -0
  164. package/geometry/support/GeographicTransformation.d.ts +2 -2
  165. package/geometry/support/GeographicTransformationStep.d.ts +2 -2
  166. package/interfaces.d.ts +522 -53
  167. package/layers/ILyr3DWasmPerSceneView.js +1 -1
  168. package/layers/LinkChartLayer.js +1 -1
  169. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  170. package/networks/support/utils.js +1 -1
  171. package/package.json +1 -1
  172. package/rest/featureService/FeatureService.js +1 -1
  173. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsConfiguration.d.ts +4 -0
  174. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsConfiguration.js +5 -0
  175. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsEntity.d.ts +4 -0
  176. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsEntity.js +5 -0
  177. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsPathFilter.d.ts +4 -0
  178. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsPathFilter.js +5 -0
  179. package/rest/knowledgeGraph/toolService/findPaths/CIMKGTraversalDirection.d.ts +4 -0
  180. package/rest/knowledgeGraph/toolService/findPaths/CIMKGTraversalDirection.js +5 -0
  181. package/rest/knowledgeGraph/toolService/findPaths/FindPathsToolSettings.d.ts +4 -0
  182. package/rest/knowledgeGraph/toolService/findPaths/FindPathsToolSettings.js +5 -0
  183. package/rest/knowledgeGraphService.js +1 -1
  184. package/support/revision.js +1 -1
  185. package/undoredo/support/Services.js +1 -1
  186. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  187. package/views/3d/layers/Lyr3DWasm.js +1 -1
  188. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  189. package/widgets/Editor/UpdateWorkflow.js +1 -1
  190. package/widgets/Editor/workflowUtils.js +1 -1
  191. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  192. package/widgets/FeatureForm/UtilityNetworkAssociationInput.js +1 -1
  193. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  194. package/widgets/FeatureTemplates/TemplateItem.js +1 -1
  195. package/widgets/FeatureTemplates/featureTemplatesUtils.js +1 -1
  196. package/widgets/FeatureTemplates.js +1 -1
  197. package/widgets/LayerList/LayerListItem.js +1 -1
  198. package/widgets/Locate.js +1 -1
  199. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  200. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
  201. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  202. package/widgets/OrientedImageryViewer/components/ImageAreaMeasurement.js +5 -0
  203. package/widgets/OrientedImageryViewer/components/ImageDistanceMeasurement.js +5 -0
  204. package/widgets/OrientedImageryViewer/components/ImageMeasurement.js +5 -0
  205. package/widgets/OrientedImageryViewer/css.js +1 -1
  206. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  207. package/widgets/OrientedImageryViewer.js +1 -1
  208. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +5 -0
  209. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +5 -0
  210. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  211. package/widgets/UtilityNetworkTrace.js +1 -1
  212. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationList.js +1 -1
  213. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  214. package/assets/esri/core/workers/chunks/0651586dc7bd2e8b34db.js +0 -1
  215. package/assets/esri/core/workers/chunks/077070295499b9bfabb6.js +0 -1
  216. package/assets/esri/core/workers/chunks/090cfc7f088a729afd47.js +0 -1
  217. package/assets/esri/core/workers/chunks/0d387baa64a89f88b1de.js +0 -1
  218. package/assets/esri/core/workers/chunks/134de9fa142129a43b1e.js +0 -1
  219. package/assets/esri/core/workers/chunks/16fa0a5f73ab67a8d3e4.js +0 -1
  220. package/assets/esri/core/workers/chunks/1797f62e9bf8f1ac8d13.js +0 -1
  221. package/assets/esri/core/workers/chunks/182722e2fe0a35c4d8db.js +0 -1
  222. package/assets/esri/core/workers/chunks/1b3215f3290fb2f07ab8.js +0 -1
  223. package/assets/esri/core/workers/chunks/1f4dd96aacf8c40a1120.js +0 -1
  224. package/assets/esri/core/workers/chunks/22748779ca94eda44de5.js +0 -1
  225. package/assets/esri/core/workers/chunks/2427a01678f3d9fbf30b.js +0 -1
  226. package/assets/esri/core/workers/chunks/33a13544b9e5f4f20bce.js +0 -1
  227. package/assets/esri/core/workers/chunks/423329432fbf007c620b.js +0 -1
  228. package/assets/esri/core/workers/chunks/467bd3c0da9518a0058b.js +0 -1
  229. package/assets/esri/core/workers/chunks/4c1d11a91291b28a73be.js +0 -1
  230. package/assets/esri/core/workers/chunks/51fbbd082ca78e4417d9.js +0 -1
  231. package/assets/esri/core/workers/chunks/5c05c899f7e6f764fedd.js +0 -1
  232. package/assets/esri/core/workers/chunks/6c1470dc0bd4389d1a2d.js +0 -1
  233. package/assets/esri/core/workers/chunks/6e804ee2d96d4de85a5f.js +0 -1
  234. package/assets/esri/core/workers/chunks/712f0dd46932c544df68.js +0 -1
  235. package/assets/esri/core/workers/chunks/71e88c90e9f9a9bddcd8.js +0 -1
  236. package/assets/esri/core/workers/chunks/74ba752dfab8ea5b6d2a.js +0 -314
  237. package/assets/esri/core/workers/chunks/79903647d4ed16d9a402.js +0 -1
  238. package/assets/esri/core/workers/chunks/7b4880b2dc6b01d70ccc.js +0 -1
  239. package/assets/esri/core/workers/chunks/7c98e4fcba1dc24eb788.js +0 -1
  240. package/assets/esri/core/workers/chunks/7d0fc25ce1f74adcfeb6.js +0 -1
  241. package/assets/esri/core/workers/chunks/8249351daa45ca82ca0c.js +0 -1
  242. package/assets/esri/core/workers/chunks/87ddc3d5d751d565cd97.js +0 -1
  243. package/assets/esri/core/workers/chunks/88bb55bca76f978c0aa3.js +0 -1
  244. package/assets/esri/core/workers/chunks/89198ca24466d939e4e8.js +0 -1
  245. package/assets/esri/core/workers/chunks/8cda8dbd95f0a78063a8.js +0 -1
  246. package/assets/esri/core/workers/chunks/8e0e5183c88a45fbfd8e.js +0 -1
  247. package/assets/esri/core/workers/chunks/90eea0c2435bb5d10460.js +0 -1
  248. package/assets/esri/core/workers/chunks/93c1541241f92fc07eaa.js +0 -1
  249. package/assets/esri/core/workers/chunks/964f2897794d8d71dcb7.js +0 -1
  250. package/assets/esri/core/workers/chunks/976daa00d35ee7f27a26.js +0 -1
  251. package/assets/esri/core/workers/chunks/99b4f146d0f1661a217c.js +0 -1
  252. package/assets/esri/core/workers/chunks/aa96a05b94ae642c1c9f.js +0 -1
  253. package/assets/esri/core/workers/chunks/b0055e7b2e840d478de8.js +0 -1
  254. package/assets/esri/core/workers/chunks/b1bf8ad629a6b8f4489a.js +0 -1
  255. package/assets/esri/core/workers/chunks/b1e3448ba51557ff6c13.js +0 -1
  256. package/assets/esri/core/workers/chunks/b30046a40bcfbec8abe4.js +0 -1
  257. package/assets/esri/core/workers/chunks/b538d02706a25bbbe2d0.js +0 -1
  258. package/assets/esri/core/workers/chunks/c436a112a3119ceabebf.js +0 -1
  259. package/assets/esri/core/workers/chunks/c690268f48bc84778b23.js +0 -1
  260. package/assets/esri/core/workers/chunks/c8a09db652389f0d254d.js +0 -1
  261. package/assets/esri/core/workers/chunks/c8a645601d041f411060.js +0 -1
  262. package/assets/esri/core/workers/chunks/cb3b7f83b3efb315bd14.js +0 -1
  263. package/assets/esri/core/workers/chunks/cdc5e4cd1214362e752a.js +0 -1
  264. package/assets/esri/core/workers/chunks/da5fc368eb5b3592d05e.js +0 -1
  265. package/assets/esri/core/workers/chunks/dae7e8357936466482fe.js +0 -1
  266. package/assets/esri/core/workers/chunks/dd935b6335c674b6f596.js +0 -1
  267. package/assets/esri/core/workers/chunks/ddd20894b5107b76b815.js +0 -1
  268. package/assets/esri/core/workers/chunks/df4d7f100222ea671730.js +0 -1
  269. package/assets/esri/core/workers/chunks/eb256e8488e341c4a6f2.js +0 -1
  270. package/assets/esri/core/workers/chunks/ebc0094355504ec09fb8.js +0 -1
  271. package/assets/esri/core/workers/chunks/f1b63f092e239f84b849.js +0 -1
  272. package/assets/esri/core/workers/chunks/f2126b79f41dc62cc576.js +0 -1
  273. package/assets/esri/core/workers/chunks/f3e0b0f07a622fcdd6ae.js +0 -1
  274. package/assets/esri/core/workers/chunks/f581aec77accce7411e0.js +0 -1
  275. package/assets/esri/core/workers/chunks/f877bcbd277a28154d82.js +0 -1
  276. package/assets/esri/core/workers/chunks/fa1c68f2ffcdff7986b6.js +0 -1
  277. package/assets/esri/core/workers/chunks/feeb36ffdffb227c4353.js +0 -1
  278. package/widgets/support/templateUtils.js +0 -5
  279. /package/assets/esri/core/workers/chunks/{9970e0e74cf2877a7ffc.js.LICENSE.txt → 486969dba1dc99402172.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7136,8480],{17136:(e,t,i)=>{i.d(t,{O7:()=>v,el:()=>_});var n=i(92602),r=i(49186),s=i(53966),o=i(39829),l=i(82799),a=i(80754),c=i(21325),u=i(28735),h=(i(59456),i(78888)),f=i(65864),d=i(2272),p=i(84952),m=i(92300);const y=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function x(e){return"polyline"===e[0].type}function w(e,t,i){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y().error(e),new r.A(e)}const i=(0,a.r8)(e),n=[];for(const e of i){const i=[];n.push(i),i.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const r=e[n][0],s=e[n][1],o=e[n+1][0],l=e[n+1][1],a=Math.sqrt((o-r)*(o-r)+(l-s)*(l-s)),c=(l-s)/a,u=(o-r)/a,h=a/t;if(h>1){for(let e=1;e<=h-1;e++){const n=e*t,o=u*n+r,l=c*n+s;i.push([o,l])}const e=(a+Math.floor(h-1)*t)/2,n=u*e+r,o=c*e+s;i.push([n,o])}i.push([o,l])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:n,spatialReference:e.spatialReference}):new l.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.ci)(t,!0)}return i&&(e=(0,a.kS)(e,i)),e}function R(e,t,i){if(Array.isArray(e)){const n=e[0];if(n>t){const i=(0,a.kd)(n,t);e[0]=n+i*(-2*t)}else if(n<i){const t=(0,a.kd)(n,i);e[0]=n+t*(-2*i)}}else{const n=e.x;if(n>t){const i=(0,a.kd)(n,t);e=e.clone().offset(i*(-2*t),0)}else if(n<i){const t=(0,a.kd)(n,i);e=e.clone().offset(t*(-2*i),0)}}return e}function b(e,t){let i=-1;for(let n=0;n<t.cutIndexes.length;n++){const r=t.cutIndexes[n],s=t.geometries[n],o=(0,a.r8)(s);for(let e=0;e<o.length;e++){const t=o[e];t.some((i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const n=t[e][0];i=n>i?n:i}i=Number(i.toFixed(9));const n=-360*(0,a.kd)(i,180);for(let i=0;i<t.length;i++){const t=s.getPoint(e,i);s.setPoint(e,i,t.clone().offset(n,0))}return!0}}))}if(r===i){if(g(e))for(const t of(0,a.r8)(s))e[r]=e[r].addRing(t);else if(x(e))for(const t of(0,a.r8)(s))e[r]=e[r].addPath(t)}else i=r,e[r]=s}return e}async function _(e,t,i){if(!Array.isArray(e))return _([e],t);t&&"string"!=typeof t&&y().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let s,g,x,v,I,S,M,A,k=0;const T=[],F=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,g=(0,c.Vp)(s),x=s.isWebMercator,S=x?102100:4326,v=a.j7[S].maxX,I=a.j7[S].minX,M=a.j7[S].plus180Line,A=a.j7[S].minus180Line),g)if("mesh"===t.type)F.push(t);else if("point"===t.type)F.push(R(t.clone(),v,I));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>R(e,v,I))),F.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);F.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,i=(0,a.kd)(e.xmin,I)*(2*v);let n=0===i?t.clone():(0,a.kS)(t.clone(),i);e.offset(i,0);let{xmin:r,xmax:s}=e;r=Number(r.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(M)&&s!==v?(k=s>k?s:k,n=w(n,x),T.push(n),F.push("cut")):e.intersects(A)&&r!==I?(k=s*(2*v)>k?s*(2*v):k,n=w(n,x,360),T.push(n),F.push("cut")):F.push(n)}else F.push(t.clone());else F.push(t);else F.push(t);let z=(0,a.kd)(k,v),J=-90;const P=z,C=new l.A;for(;z>0;){const e=360*z-180;C.addPath([[e,J],[e,-1*J]]),J*=-1,z--}if(T.length>0&&P>0){const t=b(T,await async function(e,t,i,n){const r=(0,d.Dl)(e),s=t[0].spatialReference,o={...n,responseType:"json",query:{...r.query,f:"json",sr:(0,c.YX)(s),target:JSON.stringify({geometryType:(0,f.$B)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},l=await(0,h.A)(r.path+"/cut",o),{cutIndexes:a,geometries:u=[]}=l.data;return{cutIndexes:a,geometries:u.map((e=>{const t=(0,f.rS)(e);return t.spatialReference=s,t}))}}(r,T,C,i)),n=[],s=[];for(let i=0;i<F.length;i++){const r=F[i];if("cut"!==r)s.push(r);else{const r=t.shift(),o=e[i];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(n.push(r),s.push("simplify")):s.push(x?(0,u.Gh)(r):r)}}if(!n.length)return s;const o=await async function(e,t,i){const n="string"==typeof e?(0,p.An)(e):e,r=t[0].spatialReference,s=(0,f.$B)(t[0]),o={...i,query:{...n.query,f:"json",sr:(0,c.YX)(r),geometries:JSON.stringify((0,m.X)(t))}},{data:l}=await(0,h.A)(n.path+"/simplify",o);return(0,m.V)(l.geometries,s,r)}(r,n,i),l=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?l.push(t):l.push(x?(0,u.Gh)(o.shift()):o.shift())}return l}const O=[];for(let e=0;e<F.length;e++){const t=F[e];if("cut"!==t)O.push(t);else{const e=T.shift();O.push(!0===x?(0,u.Gh)(e):e)}}return O}function v(e,t,i){const n=(0,c.Vp)(i);if(null==n)return e;const[r,s]=n.valid,o=2*s;let l=0,a=0;t>s?l=Math.ceil(Math.abs(t-s)/o):t<r&&(l=-Math.ceil(Math.abs(t-r)/o)),e>s?a=Math.ceil(Math.abs(e-s)/o):e<r&&(a=-Math.ceil(Math.abs(e-r)/o));let u=e+(l-a)*o;const h=u-t;return h>s?u-=o:h<r&&(u+=o),u}},80754:(e,t,i)=>{i.d(t,{j7:()=>o,kS:()=>a,kd:()=>l,r8:()=>c});var n=i(82799),r=i(16930),s=i(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const i=c(e);for(const e of i)for(const i of e)i[0]+=t;return e}function c(e){return(0,s.Bi)(e)?e.rings:e.paths}},89015:(e,t,i)=>{i.d(t,{o:()=>O});var n=i(90237),r=(i(59456),i(68729)),s=i(78888),o=i(49186),l=i(53966),a=i(10107),c=i(56507),u=(i(44208),i(87811),i(93223)),h=i(36005),f=i(40608),d=i(21325),p=i(60694),m=i(10873),y=i(45617),g=i(43577),x=i(13868),w=i(22796),R=i(69409),b=i(87045),_=i(84169),v=i(77301),I=i(77359),S=i(6049),M=i(70834),A=i(6952),k=i(14636),T=i(12711),F=i(85676),z=i(22048),J=i(4095),P=i(16930),C=i(86738);const O=e=>{let t=class extends e{constructor(...e){super(...e),this._isConstructedFromFunctionRaster=!1,this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this.bandIds=null,this.copyright=null,this.interpolation=null,this.multidimensionalSubset=null,this.raster=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.spatialReference=null,this.symbolizer=null,this._isConstructedFromFunctionRaster="Function"===e[0]?.raster?.datasetFormat}get fullExtent(){return this.serviceRasterInfo?.extent}set multidimensionalDefinition(e){this._set("multidimensionalDefinition",e),this.updateRenderer()}set rasterFunction(e){"none"===e?.functionName?.toLowerCase()&&(e=void 0),this._set("rasterFunction",e),this.updateRasterFunction()}set url(e){this._set("url",(0,p.Jf)(e,l.A.getLogger(this)))}get renderer(){if("imagery-tile"!==this.type)return this.internalRenderer;const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const i=t?.find((({name:t})=>t===e));return i?.renderer.clone()}return this.internalRenderer}set renderer(e){"imagery-tile"===this.type&&(this.activePresetRendererName=null),this.internalRenderer=e}set internalRenderer(e){null==e&&null==this.rasterFunction?this._configDefaultRenderer("override"):(this._set("internalRenderer",e),this.updateRenderer())}readRenderer(e,t,i){const n=t?.layerDefinition?.drawingInfo?.renderer;return(0,r.LF)(n,i)||void 0}async convertVectorFieldData(e,t){const{serviceRasterInfo:i}=this;if(null==e||!i)return null;const n=this._rasterJobHandler.instance,r=i.dataType;return n?n.convertVectorFieldData({pixelBlock:e,dataType:r},t):(0,k.FI)(e,r)}async computeStatisticsHistograms(e,t){await this.load(t),e=(0,c.PZ)(z.A,e).clone();const{serviceRasterInfo:i}=this;if(null==i)throw new o.A("imagery-tile-mixin:compute-statistics-histograms","serviceRasterInfo must be specified");const{geometry:n}=e;if(null==n)throw new o.A("imagery-tile-mixin:compute-statistics-histograms","geometry must be specified");let r=n;const{spatialReference:s}=i;n.spatialReference.equals(s)||(await(0,M.Hh)(),r="extent"===n.type?(0,M._l)(n,s):(0,M.uk)(n,s));const l=e.pixelSize??new C.A({x:i.pixelSize.x,y:i.pixelSize.y,spatialReference:s}),{extent:a,width:u,height:h}=(0,I.b7)(i,r,l),f=await this.fetchPixels(a,u,h,{...t,interpolation:"nearest"});if(null==f.pixelBlock)throw new o.A("imagery-tile-mixin:compute-statistics-histograms","failed to fetch pixels");const d=await(0,I.$Q)(f.pixelBlock,a,r),p=this._rasterJobHandler.instance;return p?p.computeStatisticsHistograms({pixelBlock:d},t):(0,A.eH)(d)}async createFlowMesh(e,t){const i=this._rasterJobHandler.instance;return i?i.createFlowMesh(e,t):(0,J.CW)(e.meshType,e.simulationSettings,e.flowData,null!=t.signal?t.signal:(new AbortController).signal)}normalizeRasterFetchOptions(e){const{multidimensionalInfo:t}=this.serviceRasterInfo??{};if(null==t)return e;let i=e.multidimensionalDefinition||this.multidimensionalDefinition;i?.length||(i=(0,v.fy)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset}));const n=e.timeExtent||this.timeExtent;if(null!=i&&null!=n&&(null!=n.start||null!=n.end)){i=i.map((e=>e.clone()));const r=t.variables.find((({name:e})=>e===i[0].variableName))?.dimensions?.find((({name:e})=>"StdTime"===e)),s=i.find((({dimensionName:e})=>"StdTime"===e));if(!r||!s)return{...e,multidimensionalDefinition:null};const{start:o,end:l}=n,a=null==o?null:o.getTime(),c=null==l?null:l.getTime(),u=a??c,h=c??a;if(null!=r.values){const e=r.values.filter((e=>{if(Array.isArray(e)){if(u===h)return e[0]<=u&&e[1]>=u;const t=e[0]<=u&&e[1]>u||e[0]<h&&e[1]>=h,i=e[0]>=u&&e[1]<=h||e[0]<u&&e[1]>h;return t||i}return u===h?e===u:e>=u&&e<=h}));if(e.length){const t=e.sort(((e,t)=>{const i=Array.isArray(e)?e[0]:e,n=Array.isArray(e)?e[1]:e,r=Array.isArray(t)?t[0]:t,s=Array.isArray(t)?t[1]:t;return u===h?i-r:Math.abs(n-h)-Math.abs(s-h)}))[0];s.values=[t]}else i=null}else if(r.hasRegularIntervals&&r.extent){const[e,t]=r.extent;u>t||h<e?i=null:s.values=u===h?[u]:[Math.max(e,u),Math.min(t,h)]}}return null!=i&&(0,v.sx)(i,this.multidimensionalSubset)?{...e,multidimensionalDefinition:null}:{...e,multidimensionalDefinition:i}}async updateRasterFunction(){if(!this.loaded||"imagery-tile"!==this.type||!this.rasterFunction&&!this._cachedRasterFunctionJson||JSON.stringify(this.rasterFunction)===JSON.stringify(this._cachedRasterFunctionJson))return;if(this._isConstructedFromFunctionRaster&&"Function"===this.raster.datasetFormat){const e=this.raster.rasterFunction.toJSON();return!this.rasterFunction&&e&&this._set("rasterFunction",w.A.fromJSON(e)),void(this._cachedRasterFunctionJson=this.rasterFunction?.toJSON())}let e,t=this.raster,i=!1;"Function"===t.datasetFormat?(e=t.primaryRasters.rasters,t=e[0],i=!0):e=[t];const{rasterFunction:n}=this;if(n){const i={raster:t};e.length>1&&e.forEach((e=>i[e.url]=e));const r=(0,S.vt)(n.functionDefinition?.toJSON()??n.toJSON(),i),s=new _.A({rasterFunction:r});s.rasterJobHandler=this._rasterJobHandler.instance,await s.open(),this._cachedRasterFunctionJson=this.rasterFunction?.toJSON(),this.raster=s}else this.raster=t,this._cachedRasterFunctionJson=null,await t.open();if(this._cachedRendererJson=null,!i&&!n)return;const{bandIds:r}=this,{bandCount:s}=this.raster.rasterInfo,o=r?.length?r.some((e=>e>=s)):s>=3;r&&(o||this.renderer&&"raster-stretch"!==this.renderer.type)&&this._set("bandIds",null),this._configDefaultRenderer("auto")}async updateRenderer(){const{loaded:e,symbolizer:t}=this;if(!e||!t||!this.renderer)return;const{rasterInfo:i}=this.raster,n=(0,v.ct)(i,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset}),r=n?.name,s=(0,T.$P)({...this.renderer.toJSON(),variableName:r});if(JSON.stringify(this._cachedRendererJson)===JSON.stringify(s))return;const o=this._rasterJobHandler.instance;o&&(t.rasterInfo=(0,T.m7)(i,r),t.rendererJSON=s,t.bind(),await o.updateSymbolizer(t),this._cachedRendererJson=s)}async applyRenderer(e,t){const i=e?.pixelBlock;if(!(null!=i&&i.pixels&&i.pixels.length>0))return null;let n;await this.updateRenderer();const r=this._rasterJobHandler.instance,s=this.bandIds??[];return n=r?await r.symbolize({...e,simpleStretchParams:t,bandIds:s}):this.symbolizer.symbolize({...e,simpleStretchParams:t,bandIds:s}),n}getTileUrl(e,t,i){return"RasterTileServer"===this.raster.datasetFormat?`${this.url}/tile/${e}/${t}/${i}`:""}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;const n=(0,d.Vp)(e);return b.A.create({size:256,spatialReference:e,origin:n?{x:n.origin[0],y:n.origin[1]}:{x:t.xmin,y:t.ymax}})}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}async fetchTile(e,t,n,r={}){if(i(this),r.requestAsImageElement){const i=this.getTileUrl(e,t,n);return(0,s.A)(i,{responseType:"image",query:{...this.refreshParameters,...this.raster.ioConfig.customFetchParameters},signal:r.signal}).then((e=>e.data))}const{serviceRasterInfo:o}=this;if(null!=o.multidimensionalInfo&&null==(r=this.normalizeRasterFetchOptions(r)).multidimensionalDefinition){const i=r.tileInfo||o.storageInfo.tileInfo;return{extent:this.raster.getTileExtentFromTileInfo(e,t,n,i),pixelBlock:null}}return await this._initJobHandler(),await this.updateRasterFunction(),"raster-shaded-relief"===this.renderer?.type&&(r={...r,buffer:{cols:1,rows:1}}),this.raster.fetchTile(e,t,n,r)}async fetchPixels(e,t,i,n={}){return null!=this.serviceRasterInfo.multidimensionalInfo&&null==(n=this.normalizeRasterFetchOptions(n)).multidimensionalDefinition?{extent:e,pixelBlock:null}:(await this._initJobHandler(),await this.updateRasterFunction(),t=Math.round(t),i=Math.round(i),this.raster.fetchPixels(e,t,i,n))}async identify(e,t={}){await this.load();const{raster:i,serviceRasterInfo:n}=this;if(null!=n?.multidimensionalInfo&&!(n.hasMultidimensionalTranspose&&((0,v.DY)(t.multidimensionalDefinition)||t.transposedVariableName||t.timeExtent)||null!=(t=this.normalizeRasterFetchOptions(t)).multidimensionalDefinition))return{location:e,value:null};const r=this.multidimensionalSubset?.areaOfInterest;if(r&&!r.contains(e))throw new o.A("imagery-tile-mixin:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");return i.identify(e,t)}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}hasStandardTime(){const e=this.serviceRasterInfo?.multidimensionalInfo;if(null==e||"standard-time"!==this.serviceRasterInfo?.dataType)return!1;const t=this.multidimensionalDefinition,i=t?.[0]?.variableName;return e.variables.some((e=>e.name===i&&(!t?.[0].dimensionName||e.dimensions.some((e=>"StdTime"===e.name)))))}getStandardTimeValue(e){return new Date(24*(e-25569)*3600*1e3).toString()}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo?.multidimensionalInfo;return(0,v.z2)(this.multidimensionalSubset,t)}_configDefaultSettings(){this._configDefaultInterpolation(),this.multidimensionalDefinition||(this.multidimensionalDefinition=(0,v.fy)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset})),this.rasterFunction&&"Function"===this.raster.datasetFormat&&(this._cachedRasterFunctionJson=this.rasterFunction.toJSON()),this._configDefaultRenderer()}_initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;const e=new R.A;return this._rasterJobHandler.connectionPromise=e.initialize().then((async()=>{i(this),this._rasterJobHandler.instance=e,this.raster.rasterJobHandler=e,"Function"===this.raster.datasetFormat&&this.raster.syncJobHandler(),this.rasterFunction&&await this.updateRasterFunction().catch((()=>{})),this.renderer&&this.updateRenderer()})).catch((()=>{})),this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0,this._cachedRendererJson=null,this.raster&&(this.raster.rasterJobHandler=null)}_configDefaultInterpolation(){if(null==this.interpolation){i(this);const{raster:e}=this,t=(0,T.w6)(e.rasterInfo,e.tileType,this.sourceJSON?.defaultResamplingMethod);this._set("interpolation",t)}}_configDefaultRenderer(e="no"){i(this);const{rasterInfo:t}=this.raster,n=(0,v.ct)(t,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset}),r=n?.name,s=(0,T.I8)({variableName:r,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&t.bandCount>1&&(this.bandIds=s?.bandIds??(0,T.ci)(t)),!this.renderer||"override"===e){const e=(0,T.Mm)(this.raster),i=s?.renderer??(0,T.PD)(t,{bandIds:this.bandIds,variableName:r,rasterFunctionColorRamp:e}),n=t.statistics,o=n&&n.length>0?n[0]:null,l=o?.max??0,a=o?.min??0;"WCSServer"===this.raster.datasetFormat&&"raster-stretch"===i.type&&(l>1e24||a<-1e24)&&(i.dynamicRangeAdjustment=!0,i.customStatistics=null,"none"===i.stretchType&&(i.stretchType="min-max")),this.renderer=i}const o=(0,T.$P)({...this.renderer.toJSON(),variableName:r}),a=(0,T.m7)(t,r);this.symbolizer?(this.symbolizer.rendererJSON=o,this.symbolizer.rasterInfo=a):this.symbolizer=new F.A({rendererJSON:o,rasterInfo:a});const c=this.symbolizer.bind();if(c.success){if("auto"===e){const{colormap:e}=this.raster.rasterInfo,t=this.renderer;if(null!=e&&"raster-colormap"===t.type){const e=(0,T.PD)(this.raster.rasterInfo);JSON.stringify(e)!==JSON.stringify(t)&&this._configDefaultRenderer("override")}else if("raster-stretch"===t.type){const e=this.bandIds?.length,i=t.customStatistics?.length;!t.dynamicRangeAdjustment&&i&&e&&i!==e&&this._configDefaultRenderer("override")}}}else l.A.getLogger(this).warn("imagery-tile-mixin",c.error||"The given renderer is not supported by the layer."),"auto"===e&&this._configDefaultRenderer("override")}};function i(e){if(!e.raster||!e.serviceRasterInfo)throw new o.A("imagery-tile","no raster")}return(0,n._)([(0,a.MZ)({clonable:!1})],t.prototype,"_cachedRendererJson",void 0),(0,n._)([(0,a.MZ)({clonable:!1})],t.prototype,"_cachedRasterFunctionJson",void 0),(0,n._)([(0,a.MZ)({clonable:!1})],t.prototype,"_compatibleFullExtent",void 0),(0,n._)([(0,a.MZ)({clonable:!1})],t.prototype,"_isConstructedFromFunctionRaster",void 0),(0,n._)([(0,a.MZ)({clonable:!1})],t.prototype,"_rasterJobHandler",void 0),(0,n._)([(0,a.MZ)({type:[c.jz],json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"0,1,2"!==this.bandIds?.join(",")}}}}})],t.prototype,"bandIds",void 0),(0,n._)([(0,a.MZ)({json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,n._)([(0,a.MZ)({json:{read:!1}})],t.prototype,"fullExtent",null),(0,n._)([(0,a.MZ)({json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"bilinear"!==this.interpolation}}}}}),(0,u.e)(x.SZ)],t.prototype,"interpolation",void 0),(0,n._)([(0,a.MZ)()],t.prototype,"ioConfig",void 0),(0,n._)([(0,a.MZ)({type:[y.A],json:{write:!0}})],t.prototype,"multidimensionalDefinition",null),(0,n._)([(0,a.MZ)({type:g.A,json:{write:!0}})],t.prototype,"multidimensionalSubset",void 0),(0,n._)([(0,a.MZ)()],t.prototype,"raster",void 0),(0,n._)([(0,a.MZ)({type:w.A})],t.prototype,"rasterFunction",null),(0,n._)([(0,a.MZ)()],t.prototype,"serviceRasterInfo",void 0),(0,n._)([(0,a.MZ)()],t.prototype,"sourceJSON",void 0),(0,n._)([(0,a.MZ)({readOnly:!0,type:P.A,json:{read:!1}})],t.prototype,"spatialReference",void 0),(0,n._)([(0,a.MZ)({type:b.A})],t.prototype,"tileInfo",void 0),(0,n._)([(0,a.MZ)(m.OZ)],t.prototype,"url",null),(0,n._)([(0,a.MZ)()],t.prototype,"renderer",null),(0,n._)([(0,a.MZ)({types:r.uy,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(){const e="raster-stretch"===this.renderer?.type&&"none"===this.renderer.stretchType&&!this.renderer.useGamma;return{enabled:!this.loaded||"Raster"===this.raster.tileType||!e}}},origins:{"web-scene":{types:r.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],t.prototype,"internalRenderer",null),(0,n._)([(0,h.w)("internalRenderer")],t.prototype,"readRenderer",null),(0,n._)([(0,a.MZ)({clonable:!1})],t.prototype,"symbolizer",void 0),t=(0,n._)([(0,f.$)("esri.layers.mixins.ImageryTileMixin")],t),t}},91806:(e,t,i)=>{i.d(t,{A:()=>u});var n,r=i(90237),s=i(25482),o=i(10107),l=i(56507),a=(i(44208),i(87811),i(40608));let c=n=class extends s.A{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new n({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"cols",void 0),(0,r._)([(0,o.MZ)({type:l.jz,json:{write:!0}})],c.prototype,"level",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"levelValue",void 0),(0,r._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"origin",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:!0}})],c.prototype,"resolution",void 0),(0,r._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"rows",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:!0}})],c.prototype,"scale",void 0),c=n=(0,r._)([(0,a.$)("esri.layers.support.LOD")],c);const u=c},87045:(e,t,i)=>{i.d(t,{A:()=>I});var n,r=i(90237),s=i(66552),o=i(25482),l=i(83047),a=i(10107),c=i(56507),u=(i(44208),i(87811),i(36005)),h=i(40608),f=i(43937),d=i(86738),p=i(16930),m=i(19419),y=i(21325),g=i(28735),x=i(91806),w=i(72802);const R=new s.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let b=n=class extends o.A{static create(e={}){const{resolutionFactor:t=1,scales:i,size:r=256,spatialReference:s=p.A.WebMercator,numLODs:o=24}=e;if(!(0,y.fn)(s)){const e=[];if(i)for(let t=0;t<i.length;t++){const n=i[t];e.push(new x.A({level:t,scale:n,resolution:n}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new x.A({level:i,scale:t,resolution:t})),t*=2}return new n({dpi:96,lods:e,origin:new d.A(0,0,s),size:[r,r],spatialReference:s})}const a=(0,y.Vp)(s),c=e.origin?new d.A({x:e.origin.x,y:e.origin.y,spatialReference:s}):new d.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:s}:{x:0,y:0,spatialReference:s}),u=1/(39.37*(0,l.GA)(s)*96),h=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],n=t*u;h.push(new x.A({level:e,scale:t,resolution:n}))}else{let e=(0,y.EA)(s)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(o/t);h.push(new x.A({level:0,scale:e,resolution:e*u}));for(let n=1;n<i;n++){const i=e/2**t,r=i*u;h.push(new x.A({level:n,scale:i,resolution:r})),e=i}}return new n({dpi:96,lods:h,origin:c,size:[r,r],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,y.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return d.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const n=[],r=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach((e=>{n.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,r[e.level]=e}))),this._set("scales",n),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),n=i+1;return t[i]/(t[i]/t[n])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let n=0;for(;n<i;n++){const i=t[n],r=t[n+1];if(i<=e)return n;if(r===e)return n+1;if(i>e&&r<e)return n+Math.log(i/e)/Math.log(i/r)}return n}tileAt(e,t,i,n){const r=this.lodAt(e);if(!r)return null;let s,o;if("number"==typeof t)s=t,o=i;else if((0,y.aI)(t.spatialReference,this.spatialReference))s=t.x,o=t.y,n=i;else{const e=(0,g.Cv)(t,this.spatialReference);if(null==e)return null;s=e.x,o=e.y,n=i}const l=r.resolution*this.size[0],a=r.resolution*this.size[1];return n||(n=new w.U(null,0,0,0,(0,m.vt)())),n.level=e,n.row=Math.floor((this.origin.y-o)/a+.001),n.col=Math.floor((s-this.origin.x)/l+.001),this.updateTileInfo(n),n}updateTileInfo(e,t=n.ExtrapolateOptions.NONE){let i=this.lodAt(e.level);if(!i&&t===n.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return;const r=e.level-i.level,s=i.resolution*this.size[0]/2**r,o=i.resolution*this.size[1]/2**r;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,m.vt)()),e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:n}=i,r=n*this.size[0],s=n*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+r,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return n.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],r=this.lods.length-t;for(let e=0;e<r;e++){const n=e+t,{scale:r,resolution:s}=n>=0?this.lods[n]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new x.A({level:e,scale:r,resolution:s}))}return new n({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const n=e[i];this._upsampleLevels[n.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/n.resolution:0},t=n}}};var _,v;(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"compressionQuality",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"dpi",void 0),(0,r._)([(0,a.MZ)({type:String,json:{read:R.read,write:R.write,origins:{"web-scene":{read:!1,write:!1}}}})],b.prototype,"format",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],b.prototype,"isWrappable",null),(0,r._)([(0,a.MZ)({type:d.A,json:{write:!0}})],b.prototype,"origin",void 0),(0,r._)([(0,u.w)("origin")],b.prototype,"readOrigin",null),(0,r._)([(0,a.MZ)({type:[x.A],value:null,json:{write:!0}})],b.prototype,"lods",null),(0,r._)([(0,a.MZ)({readOnly:!0})],b.prototype,"scales",void 0),(0,r._)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],b.prototype,"size",void 0),(0,r._)([(0,u.w)("size",["rows","cols"])],b.prototype,"readSize",null),(0,r._)([(0,f.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],b.prototype,"writeSize",null),(0,r._)([(0,a.MZ)({type:p.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),b=n=(0,r._)([(0,h.$)("esri.layers.support.TileInfo")],b),_=b||(b={}),(v=_.ExtrapolateOptions||(_.ExtrapolateOptions={}))[v.NONE=0]="NONE",v[v.POWER_OF_TWO=1]="POWER_OF_TWO";const I=b},72802:(e,t,i)=>{i.d(t,{U:()=>n});class n{constructor(e,t,i,n,r=void 0){this.id=e,this.level=t,this.row=i,this.col=n,this.extent=r}}},4916:(e,t,i)=>{i.d(t,{A:()=>N});var n=i(90237),r=(i(59456),i(78888)),s=i(49186),o=i(25482),l=i(53966),a=i(74887),c=i(10107),u=i(56507),h=(i(44208),i(87811),i(40608)),f=i(60694),d=i(10873),p=i(45617),m=i(91806),y=i(20223),g=i(87045),x=i(77301),w=i(70834),R=i(86738);const b=new Map,_=new class{constructor(e=15e3,t=5e3){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=e,this._interval=Math.min(e,t)}decreaseRefCount(e,t){const i=e+"/"+t,n=this._cachedBlocks;if(n.has(i)){const e=n.get(i);return e.refCount--,e.refCount<=0&&(n.delete(i),e.controller&&e.controller.abort()),e.refCount}return 0}getBlock(e,t){const i=e+"/"+t,n=this._cachedBlocks;if(n.has(i)){const e=n.get(i);return e.ts=Date.now(),e.refCount++,n.delete(i),n.set(i,e),e.block}return null}putBlock(e,t,i,n){const r=this._cachedBlocks,s=e+"/"+t;if(r.has(s)){const e=r.get(s);e.ts=Date.now(),e.refCount++}else r.set(s,{block:i,ts:Date.now(),refCount:1,controller:n});this._trim(),this._updateTimer()}deleteBlock(e,t){const i=this._cachedBlocks,n=e+"/"+t;i.has(n)&&i.delete(n)}updateMaxSize(e){this._size=e,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;const e=this._cachedBlocks;this._timer=setInterval((()=>{const t=Array.from(e),i=Date.now();for(let n=0;n<t.length&&t[n][1].ts<=i-this._duration;n++)e.delete(t[n][0]);0===e.size&&this._clearTimer()}),this._interval)}_trim(){const e=this._cachedBlocks;if(-1===this._size||this._size>=e.size)return;const t=Array.from(e);for(let i=0;i<t.length-this._size;i++)e.delete(t[i][0])}_clearTimer(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)}};function v(e,t){return null==t?e:`${e}?sliceId=${t}`}function I(e,t,i){const n=b.get(e);if(!n)return null==t?_.decreaseRefCount(e,i):0;if(null==t||null==n[t])return _.decreaseRefCount(e,i);const r=n[t]?.cache,s=r?.get(i);if(r&&s){if(s.refCount--,0===s.refCount){r.delete(i);for(let e=0;e<n.length;e++)n[e]?.cache.delete(i);s.controller&&s.controller.abort()}return s.refCount}return 0}function S(e,t,i){const n=b.get(e);if(!n)return null==t?_.getBlock(e,i):null;if(null==t||null==n[t]){for(let e=0;e<n.length;e++){const t=n[e]?.cache.get(i);if(t)return t.refCount++,t.block}return _.getBlock(e,i)}const r=n[t]?.cache.get(i);if(r)return r.refCount++,r.block;for(let e=0;e<n.length;e++){if(e===t||!n[e])continue;const r=n[e]?.cache,s=r?.get(i);if(r&&s)return s.refCount++,r.set(i,s),s.block}return null}function M(e,t,i,n,r=null){const s=b.get(e);if(!s)return void(null==t&&_.putBlock(e,i,n,r));if(null==t||null==s[t])return void _.putBlock(e,i,n,r);const o={refCount:1,block:n,isResolved:!1,isRejected:!1,controller:r};n.then((()=>o.isResolved=!0)).catch((()=>o.isRejected=!0)),s[t]?.cache.set(i,o)}function A(e,t,i){const n=b.get(e);n?null!=t&&null!=n[t]?n[t]?.cache.delete(i):_.deleteBlock(e,i):null==t&&_.deleteBlock(e,i)}var k=i(16019),T=i(51244),F=i(28435),z=i(14636),J=i(89738),P=i(5443),C=i(16930);let O=0,D=class extends o.A{constructor(){super(...arguments),this._tileFetchQueue=new J.e({concurrency:32,process:(e,t)=>this._fetchRawTile(e.pyramidLevel,e.row,e.col,{...e.options,signal:t})}),this.datasetName=null,this.datasetFormat=null,this.hasUniqueSourceStorageInfo=!0,this.rasterInfo=null,this.ioConfig={sampling:"closest"}}normalizeCtorArgs(e){return e?.ioConfig&&(e={...e,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:g.A.create(),...e.ioConfig}}),e}get _isGlobalWrappableSource(){const{rasterInfo:e}=this,t=(0,w.FT)(e.spatialReference);return null!=t&&e.extent.width>=t/2}get _hasNoneOrGCSShiftTransform(){const{transform:e}=this.rasterInfo;return null==e||"gcs-shift"===e.type}set rasterJobHandler(e){this._set("rasterJobHandler",e),"Function"===this.datasetFormat&&this.primaryRasters?.rasters?.forEach((t=>t.rasterJobHandler=e))}get rasterId(){return this.url||"rasterId-"+O++}set url(e){this._set("url",(0,f.Jf)(e,l.A.getLogger(this)))}async open(e){return this._openPromise??=(0,w.Hh)().then((()=>this._open(e))),this._openPromise}async fetchTile(e,t,i,n={}){const r=n.tileInfo||this.rasterInfo.storageInfo.tileInfo,s=this.getTileExtentFromTileInfo(e,t,i,r);return n={noClip:!0,...n},this.fetchPixels(s,r.size[0],r.size[1],n)}async identify(e,t={}){e=(0,u.PZ)(R.A,e).clone().normalize();const{multidimensionalDefinition:i,timeExtent:n}=t,{rasterInfo:r}=this,{hasMultidimensionalTranspose:s,multidimensionalInfo:o}=r;let{transposedVariableName:l}=t;const a=null!=o&&s&&(null!=n||(0,x.DY)(i));a&&!l&&(l=null!=i&&i.length>0?i[0].variableName??void 0:o.variables[0].name,t={...t,transposedVariableName:l}),t=this._getRequestOptionsWithSliceId(t);const{spatialReference:c,extent:h}=r,{datumTransformation:f}=t;let d=(0,w._I)(e,c,f);if(!h.intersects(d))return{location:d,value:null};if(null!=r.transform){const e=r.transform.inverseTransform(d);if(!r.nativeExtent.intersects(e))return{location:e,value:null};d=e}let p=0;const m=null!=l&&null!=o&&r.hasMultidimensionalTranspose;if("Function"===this.datasetFormat){const e=this.primaryRasters.rasters[0];if(m)return e.identify(d,t);const{pixelSize:n}=r,s=3,o=n.x*s/2,l=n.y*s/2,a=new P.A({xmin:d.x-o,xmax:d.x+o,ymin:d.y-l,ymax:d.y+l,spatialReference:c}),u={interpolation:"nearest",multidimensionalDefinition:i,sliceId:t.sliceId},{pixelBlock:h}=await e.fetchPixels(a,s,s,u),{pixelBlock:f}=await this.fetchPixels(a,s,s,u);if(null==h)return{location:d,value:null};const p=Math.floor(s*s*.5),y=!h.mask||h.mask[p]?h.pixels.map((e=>e[p])):null;let g;return null!=f&&(g=!f.mask||f.mask[p]?f.pixels.map((e=>e[p])):void 0),{location:d,value:y,processedValue:g,pyramidLevel:0}}if(!m)if(t.srcResolution)p=(0,w.t$)(t.srcResolution,r,this.ioConfig.sampling).pyramidLevel;else if(p=await this.computeBestPyramidLevelForLocation(e,t),null==p)return{location:d,value:null};const y=this.identifyPixelLocation(d,p,null,m);if(null===y)return{location:d,value:null};const{row:g,col:b,rowOffset:_,colOffset:I,blockWidth:A}=y,k=l??t.sliceId,T=v(this.rasterId,k),F=`${p}/${g}/${b}`;let z=S(T,null,F);null==z&&(z=this.fetchRawTile(p,g,b,t),M(T,null,F,z));const J=await z;if(!J?.pixels?.length)return{location:d,value:null};const C=_*A+I;return this._processIdentifyResult(J,{srcLocation:d,position:C,pyramidLevel:p,useTransposedTile:!!m,requestSomeSlices:a,identifyOptions:t})}async fetchPixels(e,t,i,n={}){e=(0,w.Ps)(e),n=this._getRequestOptionsWithSliceId(n);const{_hasNoneOrGCSShiftTransform:r}=this;if(n.requestRawData&&r)return this._fetchPixels(e,t,i,n);const s=(0,w.FT)(e.spatialReference),o=(0,w.OM)(e);if(null==s||0===o||1===o&&this._isGlobalWrappableSource&&r)return this._fetchPixels(e,t,i,n);if(o>=3)return{extent:e,pixelBlock:null};const l=[],{xmin:a,xmax:c}=e,u=Math.round(s/(c-a)*t),h=u-Math.round((s/2-a)/(c-a)*t);let f=0;const d=[];for(let r=0;r<=o;r++){const p=new P.A({xmin:0===r?a:-s/2,xmax:r===o?c-s*r:s/2,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference}),m=0===r?u-h:r===o?t-f:u;f+=m,d.push(m);const y=n.disableWrapAround&&r>0?null:this._fetchPixels(p,m,i,n);l.push(y)}const p=(await Promise.all(l)).map((e=>e?.pixelBlock));let m=null;const y={width:t,height:i};return m=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:p,srcMosaicSize:y,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:d},n)).pixelBlock:(0,F.z7)(p,y,{blockWidths:d}),{extent:e,srcExtent:(0,w._l)(e,this.rasterInfo.spatialReference,n.datumTransformation),pixelBlock:m}}async fetchRawPixels(e,t,i,n={}){t={x:Math.floor(t.x),y:Math.floor(t.y)};const r=await this._fetchRawTiles(e,t,i,n),{nativeExtent:s,nativePixelSize:o,storageInfo:l}=this.rasterInfo,a=2**e,c=o.x*a,u=o.y*a,h=new P.A({xmin:s.xmin+c*t.x,xmax:s.xmin+c*(t.x+i.width-1),ymin:s.ymax-u*(t.y+i.height-1),ymax:s.ymax-u*t.y,spatialReference:s.spatialReference});if(!r)return{extent:h,srcExtent:h,pixelBlock:null};const{pixelBlocks:f,mosaicSize:d}=r;if(1===f.length&&null!=f[0]&&f[0].width===i.width&&f[0].height===i.height)return{extent:h,srcExtent:h,pixelBlock:r.pixelBlocks[0]};const p=e>0?l.pyramidBlockWidth:l.blockWidth,m=e>0?l.pyramidBlockHeight:l.blockHeight,y={x:t.x%p,y:t.y%m};let g;return g=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:f,srcMosaicSize:d,destDimension:i,clipOffset:y,clipSize:i,coefs:null,sampleSpacing:null,interpolation:n.interpolation,alignmentInfo:null,blockWidths:null},n)).pixelBlock:(0,F.z7)(f,d,{clipOffset:y,clipSize:i}),{extent:h,srcExtent:h,pixelBlock:g}}fetchRawTile(e,t,i,n){throw new s.A("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(e){return(0,w._l)(this.rasterInfo.extent,e)}decodePixelBlock(e,t){return!this.rasterJobHandler||t.useCanvas?(0,T.D)(e,t):this.rasterJobHandler.decode({data:e,options:t})}async request(e,t,i=0){const{customFetchParameters:n}=this.ioConfig,{range:s,query:o,headers:l}=t;i=i??t.retryCount??this.ioConfig.retryCount;const a=s?{Range:`bytes=${s.from}-${s.to}`}:null;try{return await(0,r.A)(e,{...t,query:{...o,...n},headers:{...l,...a}})}catch(n){if(i>0)return i--,this.request(e,t,i);throw n}}getSliceIndex(e){const{multidimensionalInfo:t}=this.rasterInfo;return null==t||null==e||0===e.length?null:(0,x.NG)(e,t)}getTileExtentFromTileInfo(e,t,i,n){const r=n.lodAt(e);return this.getTileExtent({x:r.resolution,y:r.resolution},t,i,n.origin,n.spatialReference,n.size)}updateTileInfo(){const{storageInfo:e,spatialReference:t,extent:i,pixelSize:n}=this.rasterInfo,{pyramidResolutions:r}=e;if(!e.tileInfo){const s=[],o=e.maximumPyramidLevel||0;let l=(n.x+n.y)/2,a=1/.0254*96*l;for(let e=0;e<=o&&(s.unshift(new m.A({level:o-e,resolution:l,scale:a})),e!==o);e++)if(r){const t=(r[e].x+r[e].y)/2;a*=t/l,l=t}else l*=2,a*=2;const c=new R.A({x:i.xmin,y:i.ymax,spatialReference:t});e.tileInfo=new g.A({origin:c,size:[e.blockWidth,e.blockHeight],spatialReference:t,lods:s}),e.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(e,t=512,i=512,n){const{width:r,height:s,nativeExtent:o,pixelSize:l,spatialReference:a}=e,c=new R.A({x:o.xmin,y:o.ymax,spatialReference:a});null==n&&(n=Math.max(0,Math.round(Math.log(Math.max(r,s))/Math.LN2-8)));const u=this.computeBlockBoundary(o,512,512,{x:o.xmin,y:o.ymax},[l],n);e.storageInfo=new y.A({blockWidth:t,blockHeight:i,pyramidBlockWidth:t,pyramidBlockHeight:i,origin:c,firstPyramidLevel:1,maximumPyramidLevel:n,blockBoundary:u})}async computeBestPyramidLevelForLocation(e,t={}){return 0}computeBlockBoundary(e,t,i,n,r,s=0,o=2){if(1===r.length&&s>0){r=[...r];let{x:e,y:t}=r[0];for(let i=0;i<s;i++)e*=o,t*=o,r.push({x:e,y:t})}const l=[],{x:a,y:c}=n;for(let n=0;n<r.length;n++){const{x:s,y:o}=r[n];l.push({minCol:Math.floor((e.xmin-a+.1*s)/t/s),maxCol:Math.floor((e.xmax-a-.1*s)/t/s),minRow:Math.floor((c-e.ymax+.1*o)/i/o),maxRow:Math.floor((c-e.ymin-.1*o)/i/o)})}return l}getPyramidPixelSize(e){const{nativePixelSize:t}=this.rasterInfo,{pyramidResolutions:i,pyramidScalingFactor:n}=this.rasterInfo.storageInfo;if(0===e)return t;if(null!=i&&i.length)return i[e-1];const r=n**e;return{x:t.x*r,y:t.y*r}}identifyPixelLocation(e,t,i,n){const{spatialReference:r,nativeExtent:s,storageInfo:o}=this.rasterInfo,{maximumPyramidLevel:l,origin:a,transposeInfo:c}=o,u=n&&null!=c?c.tileSize[0]:o.blockWidth,h=n&&null!=c?c.tileSize[1]:o.blockHeight,f=(0,w._I)(e,r,i);if(!s.intersects(f))return null;if(t<0||t>l)return null;const d=this.getPyramidPixelSize(t),{x:p,y:m}=d,y=(a.y-f.y)/m/h,g=(f.x-a.x)/p/u,x=Math.min(h-1,Math.floor((y-Math.floor(y))*h)),R=Math.min(u-1,Math.floor((g-Math.floor(g))*u));return{pyramidLevel:t,row:Math.floor(y),col:Math.floor(g),rowOffset:x,colOffset:R,blockWidth:u,srcLocation:f}}getTileExtent(e,t,i,n,r,s){const[o,l]=s,a=n.x+i*o*e.x,c=a+o*e.x,u=n.y-t*l*e.y,h=u-l*e.y;return new P.A({xmin:a,xmax:c,ymin:h,ymax:u,spatialReference:r})}getBlockWidthHeight(e){return{blockWidth:e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(e,t,i){const n=this.rasterInfo.storageInfo.blockBoundary[e];return!n||n.maxRow<t||n.maxCol<i||n.minRow>t||n.minCol>i}updateImageSpaceRasterInfo(e){const{pixelSize:t}=e,{width:i,height:n}=e,r=C.A.WebMercator;e.spatialReference=r,e.extent=e.nativeExtent=new P.A({xmin:-.5,ymax:.5,xmax:i-.5,ymin:.5-n,spatialReference:r}),e.isPseudoSpatialReference=!0,e.transform=null,e.pixelSize=new R.A({x:1,y:1,spatialReference:r});const{extent:s,storageInfo:o}=e;if(o){o.origin=new R.A({x:s.xmin,y:s.ymax,spatialReference:r});const{pyramidResolutions:i,tileInfo:n}=o;if(i&&i.forEach((e=>{e.x/=t.x,e.y/=t.y})),n){n.origin=o.origin;const t=(e.nativePixelSize.x+e.nativePixelSize.y)/2;n.lods.forEach(((e,i)=>{e.resolution=t*2**i,e.scale=96*e.resolution/.0254}))}}}async _fetchPixels(e,t,i,n={}){let r=(0,w.OM)(e);if(r>=2)return{extent:e,pixelBlock:null};const s=this._getSourceDataInfo(e,t,i,n),{pyramidLevel:o,srcResolution:l,srcExtent:a,srcWidth:c,srcHeight:u,ul:h}=s;if(0===c||0===u)return{extent:e,srcExtent:a,pixelBlock:null};const{rasterInfo:f}=this,d=f.transform,p="gcs-shift"===d?.type,m=null!=(0,w.FT)(e.spatialReference);!p&&m||(r=(0,w.OM)(s.srcExtent,p));const y=await this._fetchRawTiles(o,h,{width:c,height:u,wrapCount:r},n);if(!y)return{extent:e,srcExtent:a,pixelBlock:null};const g=f.storageInfo,x=o>0?g.pyramidBlockWidth:g.blockWidth,b=o>0?g.pyramidBlockHeight:g.blockHeight;let{x:_,y:v}=f.pixelSize;if(o>0){const{pyramidResolutions:e,pyramidScalingFactor:t}=g;if(null!=e&&e[o-1])({x:_,y:v}=e[o-1]);else{const e=t**o;_*=e,v*=e}}const I=f.spatialReference,S=new R.A({x:_,y:v,spatialReference:I}),M=x===c&&b===u&&h.x%x==0&&h.y%b==0,A=new R.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),k=!e.spatialReference.equals(I),T=I.isGeographic?1e-9:1e-4,{datumTransformation:J}=n;if(!k&&M&&1===y.pixelBlocks.length&&x===t&&b===i&&function(e,t,i){return Math.abs(e.x-t.x)<i&&Math.abs(e.y-t.y)<i}(l,A,T))return{extent:e,srcExtent:a,srcTilePixelSize:S,pixelBlock:y.pixelBlocks[0]};const P=m&&null!=(0,w.FT)(a.spatialReference)&&this._hasNoneOrGCSShiftTransform,C=n.requestProjectedLocalDirections&&this.rasterInfo.dataType.startsWith("vector");C&&!this.rasterJobHandler&&await(0,w.Hh)();const O=this.rasterJobHandler?await this.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:e,srcBufferExtent:y.extent,pixelSize:A.toJSON(),datumTransformation:J,rasterTransform:d,hasWrapAround:r>0||P,isAdaptive:!1!==this.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:C},n):(0,w.l0)({projectedExtent:e,srcBufferExtent:y.extent,pixelSize:A,datumTransformation:J,rasterTransform:d,hasWrapAround:r>0||P,isAdaptive:!1,includeGCSGrid:C});let D;const N=!n.requestRawData,B={rows:O.spacing[0],cols:O.spacing[1]},H=this._hasNoneOrGCSShiftTransform?this._getRasterTileAlignmentInfo(o,y.extent.xmin):void 0,{pixelBlocks:E,mosaicSize:W,isPartiallyFilled:L}=y;let Z=null;if(this.rasterJobHandler){const e=await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:E,srcMosaicSize:W,destDimension:N?{width:t,height:i}:null,coefs:N?O.coefficients:null,sampleSpacing:N?B:null,projectDirections:C,gcsGrid:C?O.gcsGrid:null,isUV:"vector-uv"===this.rasterInfo.dataType,interpolation:n.interpolation,alignmentInfo:H,blockWidths:null},n);({pixelBlock:D,localNorthDirections:Z}=e)}else{const e=(0,F.z7)(E,W,{alignmentInfo:H});D=N?(0,F.$i)(e,{width:t,height:i},O.coefficients,B,n.interpolation):e,C&&O.gcsGrid&&(Z=(0,F.QF)({width:t,height:i},O.gcsGrid),D=(0,z.Y2)(D,this.rasterInfo.dataType,Z))}return n.requestRawData||C?{extent:e,srcExtent:a,srcTilePixelSize:S,pixelBlock:D,transformGrid:O,localNorthDirections:Z,isPartiallyFilled:L}:{extent:e,srcExtent:a,srcTilePixelSize:S,pixelBlock:D}}async _fetchRawTiles(e,t,i,n){const{origin:r,blockBoundary:s}=this.rasterInfo.storageInfo,{blockWidth:o,blockHeight:l}=this.getBlockWidthHeight(e);let{x:a,y:c}=t,{width:u,height:h,wrapCount:f}=i;const d=this._getRasterTileAlignmentInfo(e,0);n.buffer&&(a-=n.buffer.cols,c-=n.buffer.rows,u+=2*n.buffer.cols,h+=2*n.buffer.rows);let p=0,m=0,y=0;f&&null!=d&&(({worldColumnCountFromOrigin:m,originColumnOffset:y,rightPadding:p}=d),m*d.blockWidth-p>=a+u&&(p=0));const g=Math.floor(a/o),x=Math.floor(c/l),w=Math.floor((a+u+p-1)/o),R=Math.floor((c+h+p-1)/l),b=s[e];if(!b)return null;const{minRow:_,minCol:v,maxCol:I,maxRow:S}=b;if(0===f&&(R<_||w<v||x>S||g>I))return null;const M=new Array;let A=!1;const k=null==this.ioConfig.allowPartialFill?n.allowPartialFill:this.ioConfig.allowPartialFill;for(let t=x;t<=R;t++)for(let i=g;i<=w;i++){let r=i;if(!n.disableWrapAround&&f&&null!=d&&m<=i&&(r=i-m-y),t>=_&&r>=v&&S>=t&&I>=r){const i=this._tileFetchQueue.push({pyramidLevel:e,row:t,col:r,options:n},{signal:n.signal});k?M.push(new Promise((e=>{i.then((t=>e(t))).catch((()=>{A=!0,e(null)}))}))):M.push(i)}else M.push(Promise.resolve(null))}if(0===M.length)return null;const T=await Promise.all(M),F={height:(R-x+1)*l,width:(w-g+1)*o},{spatialReference:z}=this.rasterInfo,J=this.getPyramidPixelSize(e),{x:C,y:O}=J;return{extent:new P.A({xmin:r.x+g*o*C,xmax:r.x+(w+1)*o*C,ymin:r.y-(R+1)*l*O,ymax:r.y-x*l*O,spatialReference:z}),pixelBlocks:T,mosaicSize:F,isPartiallyFilled:A}}_fetchRawTile(e,t,i,n){const r=this.rasterInfo.storageInfo.blockBoundary[e];if(!r)return Promise.resolve(null);const{minRow:s,minCol:o,maxCol:l,maxRow:c}=r;if(t<s||i<o||t>c||i>l)return Promise.resolve(null);const u=v(this.rasterId,n.sliceId),h=`${e}/${t}/${i}`;let f=S(u,n.registryId,h);if(null==f){const r=new AbortController;f=this.fetchRawTile(e,t,i,{...n,signal:r.signal}),M(u,n.registryId,h,f,r),f.catch((()=>A(u,n.registryId,h)))}return n.signal&&(0,a.u7)(n,(()=>{I(u,n.registryId,h)})),f}_computeMagDirValues(e){const{bandCount:t,dataType:i}=this.rasterInfo;if((2!==t||"vector-magdir"!==i)&&"vector-uv"!==i||2!==e?.length||!e[0]?.length)return null;const n=e[0].length;if("vector-magdir"===i){const t=e[1].map((e=>(e+360)%360));return[e[0],t]}const[r,s]=e,o=[],l=[];for(let e=0;e<n;e++){const[t,i]=(0,z.Lu)([r[e],s[e]]);o.push(t),l.push(i)}return[o,l]}_getRasterTileAlignmentInfo(e,t){return null==this._rasterTileAlignmentInfo&&(this._rasterTileAlignmentInfo=(0,w.DO)(this.rasterInfo)),null==this._rasterTileAlignmentInfo.pyramidsInfo?null:{startX:t,halfWorldWidth:this._rasterTileAlignmentInfo.halfWorldWidth,hasGCSSShiftTransform:this._rasterTileAlignmentInfo.hasGCSSShiftTransform,...this._rasterTileAlignmentInfo.pyramidsInfo[e]}}_getSourceDataInfo(e,t,i,n={}){const r={datumTransformation:n.datumTransformation,pyramidLevel:0,pyramidResolution:null,srcExtent:null,srcHeight:0,srcResolution:null,srcWidth:0,ul:{x:0,y:0}};n.srcResolution&&(r.srcResolution=n.srcResolution,this._updateSourceDataInfo(e,r));const s=this.rasterInfo.storageInfo.maximumPyramidLevel||0,{srcWidth:o,srcHeight:l,pyramidLevel:a}=r,c=o/t,u=l/i,h=a<s&&c*u>=16,f=a===s&&this._requireTooManySrcTiles(o,l,t,i);if(h||f||0===o||0===l){const o=new R.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference});let l=(0,w.Wo)(o,this.rasterInfo.spatialReference,e,r.datumTransformation);const f=!l||n.srcResolution&&l.x+l.y<n.srcResolution.x+n.srcResolution.y;if(h&&n.srcResolution&&f){const e=Math.round(Math.log(Math.max(c,u))/Math.LN2)-1;if(s-a+3>=e){const t=2**e;l={x:n.srcResolution.x*t,y:n.srcResolution.y*t}}}l&&(r.srcResolution=l,this._updateSourceDataInfo(e,r))}return this._requireTooManySrcTiles(r.srcWidth,r.srcHeight,t,i)&&(r.srcWidth=0,r.srcHeight=0),r}_requireTooManySrcTiles(e,t,i,n){const{tileInfo:r}=this.rasterInfo.storageInfo,s=e/i,o=t/n;return Math.ceil(e/r.size[0])*Math.ceil(t/r.size[1])>=256*Math.max(1,(i+n)/1024)||s>8||o>8}_updateSourceDataInfo(e,t){t.srcWidth=0,t.srcHeight=0;const{rasterInfo:i}=this,n=i.spatialReference,{srcResolution:r,datumTransformation:s}=t,{pyramidLevel:o,pyramidResolution:l,excessiveReading:a}=(0,w.t$)(r,i,this.ioConfig.sampling);if(a)return;let c=t.srcExtent||(0,w._l)(e,n,s);if(null==c)return;const u=i.transform;u&&(c=u.inverseTransform(c)),t.srcExtent=c;const{x:h,y:f}=i.storageInfo.origin,d=Math.floor((c.xmin-h)/l.x+.1),p=Math.floor((f-c.ymax)/l.y+.1),m=Math.floor((c.xmax-h)/l.x-.1),y=Math.floor((f-c.ymin)/l.y-.1),g=c.width<.1*l.x?0:m-d+1,x=c.height<.1*l.y?0:y-p+1;t.pyramidLevel=o,t.pyramidResolution=l,t.srcWidth=g,t.srcHeight=x,t.ul={x:d,y:p}}_getRequestOptionsWithSliceId(e){return null!=this.rasterInfo.multidimensionalInfo&&null==e.sliceId&&(e={...e,sliceId:this.getSliceIndex(e.multidimensionalDefinition)}),e}_processIdentifyResult(e,t){const{srcLocation:i,position:n,pyramidLevel:r,useTransposedTile:s}=t,o=e.pixels[0].length/e.width/e.height;if(e.mask&&!e.mask[n])return{location:i,value:null};const{multidimensionalInfo:l}=this.rasterInfo;if(null==l||!s){const t=e.pixels.map((e=>e[n])),s={location:i,value:t,pyramidLevel:r},o=this._computeMagDirValues(t.map((e=>[e])));return o?.length&&(s.magdirValue=o.map((e=>e[0]))),s}let a=e.pixels.map((e=>e.slice(n*o,n*o+o))),c=this._computeMagDirValues(a);const{requestSomeSlices:u,identifyOptions:h}=t;let f=(0,x.QW)(l,h.transposedVariableName);if(u){const e=(0,x.xx)(f,h.multidimensionalDefinition,h.timeExtent);a=a.map((t=>e.map((e=>t[e])))),c=c?.map((t=>e.map((e=>t[e])))),f=e.map((e=>f[e]))}const d=e.noDataValues||this.rasterInfo.noDataValue,m={pixels:a,pixelType:e.pixelType};let y;return null!=d&&((0,k.Sp)(m,d),y=m.mask),{location:i,value:null,dataSeries:f.map(((e,t)=>{const i={value:0===y?.[t]?null:a.map((e=>e[t])),multidimensionalDefinition:e.multidimensionalDefinition.map((e=>new p.A({...e,isSlice:!0})))};return c?.length&&(i.magdirValue=[c[0][t],c[1][t]]),i})),pyramidLevel:r}}};(0,n._)([(0,c.MZ)()],D.prototype,"_rasterTileAlignmentInfo",void 0),(0,n._)([(0,c.MZ)()],D.prototype,"_tileFetchQueue",void 0),(0,n._)([(0,c.MZ)({readOnly:!0})],D.prototype,"_isGlobalWrappableSource",null),(0,n._)([(0,c.MZ)({readOnly:!0})],D.prototype,"_hasNoneOrGCSShiftTransform",null),(0,n._)([(0,c.MZ)()],D.prototype,"_openPromise",void 0),(0,n._)([(0,c.MZ)()],D.prototype,"rasterJobHandler",null),(0,n._)([(0,c.MZ)({readOnly:!0})],D.prototype,"rasterId",null),(0,n._)([(0,c.MZ)(d.OZ)],D.prototype,"url",null),(0,n._)([(0,c.MZ)({type:String,json:{write:!0}})],D.prototype,"datasetName",void 0),(0,n._)([(0,c.MZ)({type:String,json:{write:!0}})],D.prototype,"datasetFormat",void 0),(0,n._)([(0,c.MZ)()],D.prototype,"hasUniqueSourceStorageInfo",void 0),(0,n._)([(0,c.MZ)()],D.prototype,"rasterInfo",void 0),(0,n._)([(0,c.MZ)()],D.prototype,"ioConfig",void 0),(0,n._)([(0,c.MZ)()],D.prototype,"sourceJSON",void 0),D=(0,n._)([(0,h.$)("esri.layers.support.rasterDatasets.BaseRaster")],D);const N=D},84169:(e,t,i)=>{i.d(t,{A:()=>p});var n=i(90237),r=i(49186),s=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),l=i(39829),a=i(4916),c=i(77359),u=i(28435),h=i(70834),f=i(22671);let d=class extends a.A{constructor(){super(...arguments),this.datasetFormat="Function",this.tileType="Raster",this.rasterFunction=null,this._clippingGeometry=new Map}async fetchPixels(e,t,i,n={}){const{rasters:r,rasterIds:s}=this.primaryRasters;let o=!1;const{interpolation:l}=n,a=this.rasterFunction.flatWebGLFunctionChain?.hasFocalFunction;!n.requestRawData&&a&&(o=1===r.length&&!n.skipRasterFunction,n={...n,interpolation:"bilinear",requestRawData:o});const h=r.map((r=>r.fetchPixels(e,t,i,n))),f=await Promise.all(h),d=f.map((e=>e.pixelBlock)),p=o||n.requestRawData?f.map((e=>e.srcTilePixelSize)):null;if(n.skipRasterFunction||d.every((e=>null==e)))return f[0];const m=f.find((e=>null!=e.pixelBlock))?.extent??e;let y=this.rasterJobHandler?await this.rasterJobHandler.process({extent:m,primaryPixelBlocks:d,primaryPixelSizes:p,primaryRasterIds:s}):this.rasterFunction.process({extent:m,primaryPixelBlocks:d,primaryPixelSizes:p,primaryRasterIds:s});const{transformGrid:g}=f[0];if(!o||null==y||null==g){const e=n.noClip?null:this.getClippingGeometry(m.spatialReference);return n.noClip||n.requestRawData||null==y||!e||(y=await(0,c.$Q)(y,m,e)),{...f[0],pixelBlock:y}}const x={rows:g.spacing[0],cols:g.spacing[1]};let w;w=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:[y],srcMosaicSize:{width:y.width,height:y.height},destDimension:{width:t,height:i},coefs:g.coefficients,sampleSpacing:x,projectDirections:!1,gcsGrid:null,isUV:!1,interpolation:l,alignmentInfo:void 0,blockWidths:null},n)).pixelBlock:(0,u.$i)(y,{width:t,height:i},g.coefficients,x,l);const R=n.noClip?null:this.getClippingGeometry(e.spatialReference);return n.noClip||n.requestRawData||null==w||null==R||(w=await(0,c.$Q)(w,e,R)),{extent:e,srcExtent:f[0].srcExtent,pixelBlock:w}}getClippingGeometry(e){const t=this._clippingGeometry.get("0");if(!e||!t)return t;const i=function(e){return String(e.wkid??e.wkt??e.wkt2)}(e);let n=this._clippingGeometry.get(i);return null!=n||(n=e.equals(t.spatialReference)?t:(0,h.uk)(t,e),this._clippingGeometry.set(i,n)),n}async _open(e){const{rasterFunction:t}=this;this.primaryRasters?.rasters?.length?t.sourceRasters=this.primaryRasters.rasters:(this.primaryRasters=t.getPrimaryRasters(),this.rasterJobHandler&&this.primaryRasters.rasters?.forEach((e=>e.rasterJobHandler=this.rasterJobHandler)));const{rasters:i,rasterIds:n}=this.primaryRasters,s=i.map((t=>t.rasterInfo?void 0:t.open(e)));await Promise.all(s);const o=i.map((({rasterInfo:e})=>e)),l=t.bind({rasterInfos:o,rasterIds:n});if(t.rawSourceRasterInfos=o,!l.success||0===o.length)throw new r.A("raster-function:open",`cannot bind the function: ${l.error??""}`);const a="Table"===t.functionName?t:t.functionArguments?.raster;"Table"===a?.functionName&&(t.rasterInfo.attributeTable=f.A.fromJSON(a.functionArguments.attributeTableAsRecordSet)),await this.syncJobHandler();const c=o[0];this.hasUniqueSourceStorageInfo=1===o.length||o.slice(1).every((e=>function(e,t){const{storageInfo:i,pixelSize:n,spatialReference:r,extent:s}=e,{storageInfo:o,pixelSize:l,spatialReference:a,extent:c}=t;return n.x===l.x&&n.y===l.y&&r.equals(a)&&s.equals(c)&&i.blockHeight===o.blockHeight&&i.blockWidth===o.blockWidth&&i.maximumPyramidLevel===o.maximumPyramidLevel}(e,c))),this.set("sourceJSON",i[0].sourceJSON),this.set("rasterInfo",t.rasterInfo),await this._updateClipGeometry()}async syncJobHandler(){return this.rasterJobHandler?.updateRasterFunction(this.rasterFunction)}async _updateClipGeometry(){const e=this.rasterFunction.getClippingGeometries()[0];let t=e?.clippingGeometry;if(t&&"inside"===e.clippingType){const{extent:e}=this.rasterInfo,{difference:n,densify:r}=await Promise.all([i.e(9930),i.e(3209)]).then(i.bind(i,33209));let s=r(l.A.fromExtent(e),2*(e.width+e.height)/40);s=(0,h.uk)(s,t.spatialReference),t=n(s,t)}this._clippingGeometry.clear(),t&&this._clippingGeometry.set("0",t)}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"datasetFormat",void 0),(0,n._)([(0,s.MZ)()],d.prototype,"tileType",void 0),(0,n._)([(0,s.MZ)()],d.prototype,"rasterFunction",void 0),(0,n._)([(0,s.MZ)()],d.prototype,"primaryRasters",void 0),d=(0,n._)([(0,o.$)("esri.layers.support.rasterDatasets.FunctionRaster")],d);const p=d},50103:(e,t,i)=>{function n(e,t){if(!e||!t)return[];let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const r=[];if(t){const s=n(e,i);for(let e=0;e<s.length;e++)n(s[e],t).forEach((e=>r.push(e)));return r}const s=e.getElementsByTagNameNS("*",i);if(!s||0===s.length)return[];for(let e=0;e<s.length;e++)r.push(s[e]||s.item(e));return r}function r(e,t){if(!e||!t)return null;let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const s=n(e,i);return s.length>0?t?r(s[0],t):s[0]:null}function s(e,t=null){const i=t?r(e,t):e;let n;return i?(n=i.textContent||i.nodeValue,n?n.trim():null):null}function o(e,t){const i=n(e,t),r=[];let s;for(let e=0;e<i.length;e++)s=i[e].textContent||i[e].nodeValue,s&&(s=s.trim(),""!==s&&r.push(s));return r}function l(e,t=null){const i=s(e,t);return i?.split(" ").map((e=>Number(e)))??[]}function a(e,t){return o(e,t).map((e=>Number(e)))}function c(e,t){const i=s(e,t);return Number(i)}function u(e,t){const i=e?.nodeName?.toLowerCase(),n=t.toLowerCase();return i.slice(i.lastIndexOf(":")+1)===n}function h(e){return e.nodeName.slice(e.nodeName.lastIndexOf(":")+1)}i.d(t,{Dy:()=>o,IC:()=>n,Ui:()=>a,V6:()=>r,g7:()=>u,mX:()=>s,pN:()=>l,v7:()=>c,vv:()=>h})},92300:(e,t,i)=>{i.d(t,{V:()=>s,X:()=>r});var n=i(65864);function r(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function s(e,t,i){const r=(0,n.xD)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=i,t}))}},2272:(e,t,i)=>{i.d(t,{Dl:()=>o,jV:()=>s,lF:()=>l}),i(92602),i(70333);var n=i(4718),r=i(84952);function s(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,r.An)(e):(0,n.o8)(e)}function l(e,t,i){const n={};for(const r in e){if("declaredClass"===r)continue;const s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[r]=s.map((e=>l(e)));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(i?.[r]);n[r]=t?e:JSON.stringify(e)}else n[r]=t?s:JSON.stringify(s);else n[r]=s}return n}i(926)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4110,8256],{4902:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(90237),s=r(40608);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,s.$)("esri.core.Identifiable")],t),t};let a=class extends(o(class{})){};var l;a=(0,i._)([(0,s.$)("esri.core.Identifiable")],a),(l=a||(a={})).IdentifiableMixin=o,l.NumericIdentifiableMixin=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,i._)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};const u=a},80200:(e,t,r)=>{r.d(t,{T:()=>i,d:()=>f});const i={Base64:0,Hex:1,String:2,Raw:3},s=8,n=(1<<s)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,i=e.length*s;r<i;r+=s)t[r>>5]|=(e.charCodeAt(r/s)&n)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=s)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function u(e,t,r,i,s,n){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,n)),s),r)}function p(e,t,r,i,s,n,o){return u(t&r|~t&i,e,t,s,n,o)}function d(e,t,r,i,s,n,o){return u(t&i|r&~i,e,t,s,n,o)}function c(e,t,r,i,s,n,o){return u(t^r^i,e,t,s,n,o)}function h(e,t,r,i,s,n,o){return u(r^(t|~i),e,t,s,n,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,s=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,u=s,y=n;r=p(r,i,s,n,e[t],7,-680876936),n=p(n,r,i,s,e[t+1],12,-389564586),s=p(s,n,r,i,e[t+2],17,606105819),i=p(i,s,n,r,e[t+3],22,-1044525330),r=p(r,i,s,n,e[t+4],7,-176418897),n=p(n,r,i,s,e[t+5],12,1200080426),s=p(s,n,r,i,e[t+6],17,-1473231341),i=p(i,s,n,r,e[t+7],22,-45705983),r=p(r,i,s,n,e[t+8],7,1770035416),n=p(n,r,i,s,e[t+9],12,-1958414417),s=p(s,n,r,i,e[t+10],17,-42063),i=p(i,s,n,r,e[t+11],22,-1990404162),r=p(r,i,s,n,e[t+12],7,1804603682),n=p(n,r,i,s,e[t+13],12,-40341101),s=p(s,n,r,i,e[t+14],17,-1502002290),i=p(i,s,n,r,e[t+15],22,1236535329),r=d(r,i,s,n,e[t+1],5,-165796510),n=d(n,r,i,s,e[t+6],9,-1069501632),s=d(s,n,r,i,e[t+11],14,643717713),i=d(i,s,n,r,e[t],20,-373897302),r=d(r,i,s,n,e[t+5],5,-701558691),n=d(n,r,i,s,e[t+10],9,38016083),s=d(s,n,r,i,e[t+15],14,-660478335),i=d(i,s,n,r,e[t+4],20,-405537848),r=d(r,i,s,n,e[t+9],5,568446438),n=d(n,r,i,s,e[t+14],9,-1019803690),s=d(s,n,r,i,e[t+3],14,-187363961),i=d(i,s,n,r,e[t+8],20,1163531501),r=d(r,i,s,n,e[t+13],5,-1444681467),n=d(n,r,i,s,e[t+2],9,-51403784),s=d(s,n,r,i,e[t+7],14,1735328473),i=d(i,s,n,r,e[t+12],20,-1926607734),r=c(r,i,s,n,e[t+5],4,-378558),n=c(n,r,i,s,e[t+8],11,-2022574463),s=c(s,n,r,i,e[t+11],16,1839030562),i=c(i,s,n,r,e[t+14],23,-35309556),r=c(r,i,s,n,e[t+1],4,-1530992060),n=c(n,r,i,s,e[t+4],11,1272893353),s=c(s,n,r,i,e[t+7],16,-155497632),i=c(i,s,n,r,e[t+10],23,-1094730640),r=c(r,i,s,n,e[t+13],4,681279174),n=c(n,r,i,s,e[t],11,-358537222),s=c(s,n,r,i,e[t+3],16,-722521979),i=c(i,s,n,r,e[t+6],23,76029189),r=c(r,i,s,n,e[t+9],4,-640364487),n=c(n,r,i,s,e[t+12],11,-421815835),s=c(s,n,r,i,e[t+15],16,530742520),i=c(i,s,n,r,e[t+2],23,-995338651),r=h(r,i,s,n,e[t],6,-198630844),n=h(n,r,i,s,e[t+7],10,1126891415),s=h(s,n,r,i,e[t+14],15,-1416354905),i=h(i,s,n,r,e[t+5],21,-57434055),r=h(r,i,s,n,e[t+12],6,1700485571),n=h(n,r,i,s,e[t+3],10,-1894986606),s=h(s,n,r,i,e[t+10],15,-1051523),i=h(i,s,n,r,e[t+1],21,-2054922799),r=h(r,i,s,n,e[t+8],6,1873313359),n=h(n,r,i,s,e[t+15],10,-30611744),s=h(s,n,r,i,e[t+6],15,-1560198380),i=h(i,s,n,r,e[t+13],21,1309151649),r=h(r,i,s,n,e[t+4],6,-145523070),n=h(n,r,i,s,e[t+11],10,-1120210379),s=h(s,n,r,i,e[t+2],15,718787259),i=h(i,s,n,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),s=o(s,u),n=o(n,y)}return[r,i,s,n]}function f(e,t=i.Hex){const r=t||i.Base64,n=y(a(e),e.length*s);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return l(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(n)}}},92071:(e,t,r)=>{r.d(t,{P:()=>w,L:()=>b});var i=r(90237),s=r(69622),n=r(76953),o=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,r=this._originStores[a.Gr.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,o.o8)(e),a.Gr.DEFAULTS)}));for(let r=a.Gr.SERVICE;r<a.AU;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,o.o8)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.Gr.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=a.Gr.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r?.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||a.Gr.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(45917),p=r(88620),d=r(40608);const c=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,p.oY)(this),r=t.store,i=new l;t.store=i,(0,n.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,a.aB)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,a.aB)(t),s=(0,p.oY)(this);let n;n="string"==typeof e?"*"===e?r.keys(i):[e]:e,n.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,p.oY)(e).store}let y=class extends(c(s.A)){};y=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var f=r(16649),m=r(49422);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,a.aB)(t))}write(e,t){return(0,m.M)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,p.oY)(this).setAtOrigin(e,t,(0,a.aB)(r))}removeOrigin(e){const t=v(this),r=(0,a.aB)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),a.Gr.USER)}updateOrigin(e,t){const r=v(this),i=(0,a.aB)(t),s=(0,f.Jt)(this,e);for(let t=i+1;t<a.AU;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,p.oY)(e).store}const w=e=>{let t=class extends(g(c(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],t),t};let b=class extends(w(s.A)){};b=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],b)},87024:(e,t,r)=>{r.d(t,{P:()=>h});var i=r(49186),s=r(80200),n=r(76553),o=r(84952),a=r(13069),l=r(96156),u=r(35666),p=r(10107),d=r(85648),c=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const s=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const s=(0,c.r)(e,t,r);return i.type===String?s:"function"==typeof i.type?new i.type({url:s}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,s,a,l){if(!l?.resources)return"string"==typeof t?void(s[a]=(0,c.t)(t,l)):void(s[a]=t.write({},l));const p=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,c.t)(p,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},c.M.NO),g=i.type!==String&&(!(0,n.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:s,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.oP)(h)?g&&e?.contentAddressed?y(v):g?function(e){const{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=m(s,r,t),p=(0,d.n)(u),c=(0,o.Zo)(l.path),h=i?.compress??!1;p===c?(t.resources&&f({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),n[a]=r):y(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==h||null!=(0,c.i)(h)||(0,o.w8)(h)||g)?y(v):s[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=c.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,p.rM)(r,e,i);for(const e in s)t[e]=s[e]}}}function y(e){const{targetUrl:t,params:r,value:n,context:l,dest:u,targetPropertyName:p}=e;if(!l.portalItem)return;const h=(0,c.p)(t),y=m(n,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${p}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const g=r?.contentAddressed&&"json"===y.type?(0,s.d)(y.jsonString):h?.filename??(0,a.lk)(),v=(0,o.fj)(r?.prefix??h?.prefix,g),w=`${v}.${(0,d.n)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find((({resource:e})=>e.path===w))??l.resources.toAdd.find((({resource:e})=>e.path===w));if(e)return void(u[p]=e.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(w);(0,o.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.tk)(t).then((e=>{b.path=`${v}.${(0,d.n)({type:"blob",blob:e})}`,u[p]=b.itemRelativeUrl})).catch((()=>{})));const _=r?.compress??!1;l.resources&&f({...e,resource:b,content:y,compress:_,updates:l.resources.toAdd}),u[p]=b.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function m(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},39516:(e,t,r)=>{async function i(e,t){const{default:i}=await Promise.resolve().then(r.bind(r,88368));return i.create(e,{fieldsIndex:t})}function s(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function n(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}r.d(t,{GP:()=>i,IW:()=>n,mA:()=>s})},54239:(e,t,r)=>{r.d(t,{A:()=>w});var i,s=r(90237),n=r(4576),o=r(66552),a=r(25482),l=r(83047),u=r(67076),p=r(10107),d=(r(44208),r(53966),r(36005)),c=r(40608),h=r(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=y.jsonValues.slice();(0,n.Xy)(f,"orthometric");const m=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends a.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||m.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,p.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,s._)([(0,h.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,s._)([(0,d.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,s._)([(0,p.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,s._)([(0,d.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,s._)([(0,d.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,s._)([(0,p.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,s._)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,s._)([(0,c.$)("esri.geometry.HeightModelInfo")],g);const w=g},73836:(e,t,r)=>{r.d(t,{A:()=>m});var i,s=r(90237),n=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),l=r(58083),u=r(9093),p=r(67026),d=r(82534),c=r(51850),h=r(24770);let y=i=class extends n.A{constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(h.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){const e=(0,u.vt)();return(0,p.x8)(f,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,l.o1)(e,f,this.translation,this.scale),e}get localMatrixInverse(){return(0,l.B8)((0,u.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,l.t2)(this.localMatrix,e.localMatrix)}clone(){const e={translation:(0,c.o8)(this.translation),rotationAxis:(0,c.o8)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,c.o8)(this.scale)};return new i(e)}};(0,s._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"translation",void 0),(0,s._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAxis",void 0),(0,s._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAngle",void 0),(0,s._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"scale",void 0),(0,s._)([(0,o.MZ)()],y.prototype,"rotation",null),(0,s._)([(0,o.MZ)()],y.prototype,"localMatrix",null),(0,s._)([(0,o.MZ)()],y.prototype,"localMatrixInverse",null),y=i=(0,s._)([(0,a.$)("esri.geometry.support.MeshTransform")],y);const f=(0,d.vt)(),m=y},24770:(e,t,r)=>{r.d(t,{$I:()=>m,AU:()=>h,g7:()=>f,i4:()=>p,ui:()=>d,up:()=>v,vt:()=>u,yo:()=>y});var i=r(34727),s=r(58083),n=r(67026),o=r(82534),a=r(38954),l=r(51850);function u(e=v){return[e[0],e[1],e[2],e[3]]}function p(e,t,r=u()){return(0,a.c)(r,e),r[3]=t,r}function d(e,t=u()){const r=(0,s.l)(w,e);return g(t,(0,i.KJ)((0,n.Xd)(t,r))),t}function c(e,t,r=u()){return(0,n.x8)(w,e,m(e)),(0,n.x8)(b,t,m(t)),(0,n.lw)(w,b,w),g(r,(0,i.KJ)((0,n.Xd)(r,w)))}function h(e,t,r,i=u()){return p(l.Cw,e,_),p(l.JP,t,I),p(l.Cb,r,A),c(_,I,_),c(_,A,i),i}function y(e){return e}function f(e){return e[3]}function m(e){return(0,i.kU)(e[3])}function g(e,t){return e[3]=t,e}const v=[0,0,1,0],w=(0,o.vt)(),b=(0,o.vt)(),_=(u(),u()),I=u(),A=u()},4146:(e,t,r)=>{r.d(t,{A:()=>b});var i=r(90237),s=(r(59456),r(78888)),n=r(49186),o=r(65529),a=r(4902),l=r(92474),u=r(53966),p=r(74887),d=r(84952),c=r(10107),h=(r(44208),r(87811),r(40608)),y=r(92602),f=r(79677),m=r(5443),g=r(16930);let v=0,w=class extends(o.A.EventedMixin(a.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0,this.createLayerView=void 0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",s=r?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.An)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.MZ)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],w.prototype,"effectiveVisible",null),(0,i._)([(0,c.MZ)({type:m.A})],w.prototype,"fullExtent",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,i._)([(0,c.MZ)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,i._)([(0,c.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,i._)([(0,c.MZ)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,i._)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,i._)([(0,c.MZ)({clonable:!1})],w.prototype,"parent",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,i._)([(0,c.MZ)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,i._)([(0,c.MZ)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,i._)([(0,c.MZ)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,i._)([(0,c.MZ)({type:g.A})],w.prototype,"spatialReference",void 0),(0,i._)([(0,c.MZ)({type:String})],w.prototype,"title",void 0),(0,i._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,i._)([(0,c.MZ)()],w.prototype,"url",void 0),(0,i._)([(0,c.MZ)({type:f.A})],w.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,c.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,i._)([(0,h.$)("esri.layers.Layer")],w);const b=w},13899:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Te});var i=r(90237),s=r(52106),n=r(13874),o=(r(86162),r(52464),r(65345),r(42980),r(20917),r(92438),r(96576),r(93618),r(65494),r(15036)),a=r(69540),l=r(5503),u=r(49186),p=r(53966),d=r(97768),c=r(92071),h=r(74887),y=r(36708),f=r(10107),m=(r(44208),r(87811),r(88620)),g=r(36005),v=r(40608),w=r(35666),b=r(86738),_=r(4146),I=r(55726),A=r(52136),S=r(18768),M=r(69208),x=r(47685),F=r(16131),E=r(8303),L=r(25036),O=r(58947),T=r(82935),j=r(25482),Z=r(30524);function R({associatedLayer:e,serviceUpdateTimeStamp:t}){const r=e?.editingInfo?.lastEditDate,i=e?.serverGens,s=null!=r,n=null!=t,o=s&&n&&t.lastUpdate!==r.getTime();return s&&(o||!n&&i?.minServerGen!==i?.serverGen)}var U=r(96184),P=r(79677),$=r(10184);const N=e=>{let t=class extends e{constructor(){super(...arguments),this.serviceTimeInfo=null}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return(0,Z.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,Z.sv)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(R({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const s=async t=>{let i=null;try{const r=await(this.fetchStatistics?.(t,e));i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:s,min:n,maxTimeStr:o,max:a}=i,l=t===r?s??n:o??a;return null!=l?new Date(l):null},[n,o]=await Promise.all([s(r),s(i)]);if(null!=r&&null==n||null!=i&&null==o)return;const a=new P.A({start:n,end:o});this.setAtOrigin("timeInfo",new U.A({endField:i,startField:r,fullTimeExtent:a}),"service")}};return(0,i._)([(0,f.MZ)({type:U.A,json:{read:!1,write:!1}})],t.prototype,"timeInfo",null),(0,i._)([(0,f.MZ)({type:P.A,json:{read:!1,write:!1}})],t.prototype,"timeExtent",null),(0,i._)([(0,f.MZ)({type:$.A,json:{read:!1,write:!1}})],t.prototype,"timeOffset",null),(0,i._)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],t.prototype,"datesInUnknownTimezone",null),(0,i._)([(0,f.MZ)({type:D,readOnly:!0,json:{read:{source:"timeInfo"}}})],t.prototype,"serviceTimeInfo",void 0),t=(0,i._)([(0,v.$)("esri.layers.mixins.TemporalSceneLayer")],t),t};let D=class extends j.A{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i._)([(0,f.MZ)({type:String})],D.prototype,"endTimeField",void 0),(0,i._)([(0,f.MZ)({type:String})],D.prototype,"startTimeField",void 0),D=(0,i._)([(0,v.$)("esri.layers.mixins.TemporalSceneLayer.SceneServiceTimeInfo")],D);var C=r(60694),k=r(92009),q=r(4071),H=r(10873),V=r(15426),z=r(40530),B=r(67202),G=r(17036),Q=r(95466),J=r(50805),K=r(20557),W=r(81457),X=r(39383),Y=r(37352),ee=r(4513),te=r(86390);let re=class extends j.A{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i._)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],re.prototype,"name",void 0),(0,i._)([(0,f.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],re.prototype,"field",void 0),(0,i._)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],re.prototype,"currentRangeExtent",void 0),(0,i._)([(0,f.MZ)({type:[Number],json:{read:!0,write:!0}})],re.prototype,"fullRangeExtent",void 0),(0,i._)([(0,f.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],re.prototype,"type",void 0),re=(0,i._)([(0,v.$)("esri.layers.support.RangeInfo")],re);var ie,se=r(78888),ne=r(4718),oe=r(87024),ae=r(67076),le=r(39829),ue=r(57251);let pe=ie=class extends(j.A.JSONSupportMixin(l.A.ofType(le.A))){constructor(e){super(e)}clone(){return new ie(this.items.map((e=>e.clone())))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map((r=>{if(!t.equals(r.spatialReference)){if(!(0,ue.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new ae.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new le.A;(0,ue.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i})).filter((e=>null!=e)):(e?.messages?.push(new ae.A("scenefilter:unsupported","Writing Scene filters without context layer is not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),this.toArray().map((t=>t.toJSON(e))))}static fromJSON(e,t){const r=new ie;return e.forEach((e=>r.add(le.A.fromJSON(e,t)))),r}};pe=ie=(0,i._)([(0,v.$)("esri.layers.support.PolygonCollection")],pe);const de=pe;var ce,he=r(97159);let ye=ce=class extends j.A{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new de,this._geometriesSource=null}initialize(){this.addHandles((0,y.on)((()=>this.geometries),"after-changes",(()=>this.geometries=this.geometries),y.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=de.fromJSON(e,r):this._geometriesSource={url:(0,he.f)(e,r),context:r}}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,s=await(0,se.A)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),o=s.data.map((e=>({...e,spatialReference:n})));this.geometries=de.fromJSON(o,i),this._geometriesSource=null}clone(){const e=new ce({geometries:(0,ne.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i._)([(0,f.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],ye.prototype,"spatialRelationship",void 0),(0,i._)([(0,f.MZ)({type:de,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,oe.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],ye.prototype,"geometries",void 0),(0,i._)([(0,g.w)(["web-scene","portal-item"],"geometries")],ye.prototype,"readGeometries",null),ye=ce=(0,i._)([(0,v.$)("esri.layers.support.SceneFilter")],ye);const fe=ye;var me=r(84952),ge=r(8947),ve=r(61956),we=r(24212),be=r(30291);async function _e(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(Ie(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function Ie(e){const{BlobReader:t,ZipReader:i,BlobWriter:s}=await Promise.all([r.e(8392),r.e(9588)]).then(r.bind(r,9588)),n=[],o=new i(new t(e));return(await o.getEntries()).forEach((e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new s,r=e.getData?.(t).then((t=>new File([t],e.filename)));r&&n.push(r)})),Promise.all(n)}var Ae=r(4654),Se=r(45671),Me=r(78553);const xe=new Set(["3DObject","Point"]),Fe=(0,G.p)();let Ee=class extends(N((0,x.w6)((0,O.w6)((0,S.b)((0,F.q)((0,E.A)((0,L.j)((0,c.P)((0,M.d)((0,A.p)(a.A.ClonableMixin(_.A)))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new l.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=(0,d.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get attributeTableTemplate(){return this.associatedLayer?.attributeTableTemplate??null}get fieldsIndex(){return new Q.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:J.W4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,V.C$)(this.associatedLayer)}get geometryType(){return Oe[this.profile]||"mesh"}set renderer(e){(0,Z.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:q.P;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:n,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:a},data:{supportsZ:l,supportsM:u,isVersioned:p,supportsAttachment:d},operations:{supportsEditing:c,supportsAdd:h,supportsUpdate:y,supportsDelete:f,supportsQuery:m,supportsQueryAttachments:g,supportsAsyncConvert3D:v}}=e,w=e.operations.supportsChangeTracking,b=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:a,supportsRollbackOnFailure:s,supportsGeometryUpdate:b&&o,supportsUploadWithItemId:n},data:{supportsAttachment:d,supportsZ:l,supportsM:u,isVersioned:p},operations:{supportsQuery:m,supportsQueryAttachments:g,supportsEditing:c&&w,supportsAdd:b&&h&&w,supportsDelete:b&&f&&w,supportsUpdate:y&&w,supportsAsyncConvert3D:v}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Le[r]?Le[r]:(p.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=null!=e?e.signal:null;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,ge.L)(this,{origin:"service"},t),(0,Z.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){p.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new ve.A;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new u.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new u.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,Z.hL)(this.fieldsIndex,await(0,Se.TO)(this,(0,Se.D8)(this)));return(0,Ae.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new u.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new s.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(p.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,be.tn)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new u.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new u.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(O.Xh.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(O.Xh.SAVE,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(6247).then(r.bind(r,78628));let s=t;await this.load();const n=this.associatedLayer;if(!n)throw new u.A(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();const{globalIdField:o}=n,a=!!n.infoFor3D,l=s?.globalIdUsed??!0;if(a&&null==o)throw new u.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(a&&!l)throw new u.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,C.Wo)(n.url)&&a&&null!=e.deleteFeatures&&null!=o&&(s={...s,globalIdToObjectId:await(0,V.GA)(n,e.deleteFeatures,o)}),i(this,n.source,e,s)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new u.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}on(e,t){return super.on(e,t)}async convertMesh(e,t){t??={};const i=e=>{throw p.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(),this.infoFor3D||i(new u.A("invalid:layer","SceneLayer has no capability for mesh conversion"));const s=await this.extractAndFilterFiles(e),n=s.reduce(((e,t)=>(0,K.oF)(this.infoFor3D,t)?e+1:e),0);0===n&&i(new I.VP),n>1&&i(new I.XQ);const o=this.spatialReference,a=t.location??new b.A({x:0,y:0,z:0,spatialReference:o}),l=a.spatialReference.isGeographic?"local":"georeferenced",{default:d}=await Promise.all([r.e(3030),r.e(36)]).then(r.bind(r,40036)),c=d.createWithExternalSource(a,s,{vertexSpace:l,transform:(0,te.Z)(a.spatialReference),unitConversionDisabled:!0}),[h]=await this.uploadAssets([c],{...t,useAssetOrigin:!t.location});return h}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await _e(e)).filter((e=>(0,K.fu)(t,e))):e}validateLayer(e){if(e.layerType&&!xe.has(e.layerType))throw new u.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new u.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new u.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new u.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new u.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new u.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some((t=>t.name===e.name)),r=!!this.associatedLayer?.fields?.some((t=>t&&e.name===t.name)),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPopupOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled"],t=(0,m.oY)(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);s<n&&(n===w.Gr.SERVICE||n===w.Gr.PORTAL_ITEM)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,C.Wo)(this.associatedLayer?.url)&&R(this)&&(0,m.oY)(this).setAtOrigin("fullExtent",e.clone(),w.Gr.SERVICE)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,k.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await ee.S.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,h.zf)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){await(0,y.C_)((()=>this.popupEnabled&&null!=this.popupTemplate));const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?p.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):p.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${e}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,we.XF)(p.A.getLogger(this),(0,we.$7)("Mesh scene layers","relative-to-scene",e)),(0,we.XF)(p.A.getLogger(this),(0,we.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:s,customParameters:n,apiKey:o,signal:a}){if(null==t)throw new u.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");const l=i.get(e);if(null==l)throw new u.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);const p=t.find((e=>e.name===l.name));if(null==p)throw new u.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");const d=(0,me.fj)(s,p.href),{data:c}=await(0,se.A)(d,{query:{f:"json",...n,token:o},responseType:"json",signal:a});return c}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}};(0,i._)([(0,f.MZ)({types:{key:"type",base:z.c,typeMap:{selection:B.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],Ee.prototype,"featureReduction",void 0),(0,i._)([(0,f.MZ)({type:[re],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],Ee.prototype,"rangeInfos",void 0),(0,i._)([(0,f.MZ)({json:{read:!1}})],Ee.prototype,"associatedLayer",void 0),(0,i._)([(0,f.MZ)({type:["show","hide"]})],Ee.prototype,"listMode",void 0),(0,i._)([(0,f.MZ)({type:["ArcGISSceneServiceLayer"]})],Ee.prototype,"operationalLayerType",void 0),(0,i._)([(0,f.MZ)({json:{read:!1},readOnly:!0})],Ee.prototype,"type",void 0),(0,i._)([(0,f.MZ)({...Fe.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ee.prototype,"fields",void 0),(0,i._)([(0,f.MZ)()],Ee.prototype,"types",null),(0,i._)([(0,f.MZ)()],Ee.prototype,"typeIdField",null),(0,i._)([(0,f.MZ)()],Ee.prototype,"templates",null),(0,i._)([(0,f.MZ)()],Ee.prototype,"formTemplate",null),(0,i._)([(0,f.MZ)()],Ee.prototype,"attributeTableTemplate",null),(0,i._)([(0,f.MZ)({readOnly:!0,clonable:!1})],Ee.prototype,"fieldsIndex",null),(0,i._)([(0,f.MZ)({type:Y.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Ee.prototype,"floorInfo",void 0),(0,i._)([(0,f.MZ)(Fe.outFields)],Ee.prototype,"outFields",void 0),(0,i._)([(0,f.MZ)({type:J.W4,readOnly:!0,json:{read:!1}})],Ee.prototype,"nodePages",void 0),(0,i._)([(0,g.w)("service","nodePages",["nodePages","pointNodePages"])],Ee.prototype,"readNodePages",null),(0,i._)([(0,f.MZ)({type:[J.uV],readOnly:!0})],Ee.prototype,"materialDefinitions",void 0),(0,i._)([(0,f.MZ)({type:[J.Ot],readOnly:!0})],Ee.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,f.MZ)({type:[J.L0],readOnly:!0})],Ee.prototype,"geometryDefinitions",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"statisticsInfo",void 0),(0,i._)([(0,f.MZ)({type:l.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Ee.prototype,"excludeObjectIds",void 0),(0,i._)([(0,f.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Ee.prototype,"definitionExpression",void 0),(0,i._)([(0,f.MZ)({type:fe,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Ee.prototype,"filter",void 0),(0,i._)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ee.prototype,"path",void 0),(0,i._)([(0,f.MZ)(H.Yj)],Ee.prototype,"elevationInfo",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"effectiveCapabilities",null),(0,i._)([(0,f.MZ)({readOnly:!0})],Ee.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,f.MZ)({type:String})],Ee.prototype,"geometryType",null),(0,i._)([(0,f.MZ)(H.kF)],Ee.prototype,"labelsVisible",void 0),(0,i._)([(0,f.MZ)({type:[W.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:X.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:X.w},write:!0}})],Ee.prototype,"labelingInfo",void 0),(0,i._)([(0,f.MZ)(H.fV)],Ee.prototype,"legendEnabled",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,Me.D)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Ee.prototype,"opacity",void 0),(0,i._)([(0,f.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ee.prototype,"priority",void 0),(0,i._)([(0,f.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ee.prototype,"semantic",void 0),(0,i._)([(0,f.MZ)({types:o.X,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Ee.prototype,"renderer",null),(0,i._)([(0,f.MZ)({json:{read:!1}})],Ee.prototype,"cachedDrawingInfo",void 0),(0,i._)([(0,g.w)("service","cachedDrawingInfo")],Ee.prototype,"readCachedDrawingInfo",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"capabilities",null),(0,i._)([(0,f.MZ)({type:Boolean,json:{read:!1}})],Ee.prototype,"editingEnabled",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Ee.prototype,"infoFor3D",null),(0,i._)([(0,f.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Ee.prototype,"relationships",null),(0,i._)([(0,f.MZ)(H.M6)],Ee.prototype,"popupEnabled",void 0),(0,i._)([(0,f.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],Ee.prototype,"popupTemplate",void 0),(0,i._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Ee.prototype,"defaultPopupTemplate",null),(0,i._)([(0,f.MZ)({type:String,json:{read:!1}})],Ee.prototype,"objectIdField",void 0),(0,i._)([(0,g.w)("service","objectIdField",["objectIdField","fields"])],Ee.prototype,"readObjectIdField",null),(0,i._)([(0,f.MZ)({type:String,json:{read:!1}})],Ee.prototype,"globalIdField",void 0),(0,i._)([(0,g.w)("service","globalIdField",["globalIdField","fields"])],Ee.prototype,"readGlobalIdField",null),(0,i._)([(0,f.MZ)({readOnly:!0,type:String,json:{read:!1}})],Ee.prototype,"displayField",null),(0,i._)([(0,f.MZ)({type:String,json:{read:!1}})],Ee.prototype,"profile",void 0),(0,i._)([(0,g.w)("service","profile",["store.profile"])],Ee.prototype,"readProfile",null),(0,i._)([(0,f.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Ee.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,f.MZ)(H.PY)],Ee.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,f.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],Ee.prototype,"serviceItemId",void 0),(0,i._)([(0,f.MZ)(T.B)],Ee.prototype,"useViewTime",null),Ee=(0,i._)([(0,v.$)("esri.layers.SceneLayer")],Ee);const Le={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Oe={"mesh-pyramids":"mesh",points:"point"},Te=Ee},55726:(e,t,r)=>{r.d(t,{$1:()=>u,H2:()=>h,MT:()=>y,VP:()=>f,WF:()=>p,Wt:()=>o,XQ:()=>m,hK:()=>c,nS:()=>d,uh:()=>a,xY:()=>l});var i=r(49186);const s="upload-assets",n=()=>new Error;class o extends i.A{constructor(){super(`${s}:unsupported`,"Layer does not support asset uploads.",n())}}class a extends i.A{constructor(){super(`${s}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.A{constructor(){super(`${s}:no-supported-source`,"No supported external source found",n())}}class u extends i.A{constructor(){super(`${s}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class p extends i.A{constructor(){super(`${s}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class d extends i.A{constructor(e,t){super(`${s}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class c extends i.A{constructor(e,t){super(`${s}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class h extends i.A{constructor(e){super(`${s}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class y extends i.A{constructor(){super(`${s}:convert3D-failed`,"convert3D failed.")}}class f extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class m extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},52136:(e,t,r)=>{r.d(t,{p:()=>o});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,s.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,n.$)("esri.layers.mixins.APIKeyMixin")],t),t}},18768:(e,t,r)=>{r.d(t,{b:()=>l});var i=r(90237),s=r(53966),n=r(10107),o=(r(44208),r(87811),r(40608)),a=r(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,i._)([(0,n.MZ)()],t.prototype,"title",null),(0,i._)([(0,n.MZ)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},69208:(e,t,r)=>{r.d(t,{d:()=>o});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},47685:(e,t,r)=>{r.d(t,{Mk:()=>h,Zk:()=>d,w6:()=>m});var i=r(90237),s=r(65529),n=r(4718),o=r(74887),a=r(10107),l=(r(44208),r(53966),r(40608)),u=r(20816);const p=new s.A.EventEmitter;function d(e,t,r=null,i=!1){const s=(0,o.Tw)();return i=null==t||i,p.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const c=Symbol();function h(e){return null!=e&&"object"==typeof e&&c in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,r){const i=new URL(e).host,s=u.Z3.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}const m=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,u=y(this),p=y(this)&&f(t,i,this.gdbVersion);if(!a||u&&!p||!l&&!s)return;const d=o.then((e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const r=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(r){const{adds:t,updates:i,deletes:s}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:s?s.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:i?i.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",o),o}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,s.historicMoment)&&this.emit("edits",s),s})).then((e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:d})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=y(this),o=y(this)&&f(t,r,this.gdbVersion),a=y(this)&&!f(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then((()=>{this.addHandles(function(e){return p.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return p.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,u.w5)(e,t)}};return t=c,(0,i._)([(0,a.MZ)()],r.prototype,"lastEditsEventDate",void 0),r=(0,i._)([(0,l.$)("esri.layers.mixins.EditBusLayer")],r),r}},8303:(e,t,r)=>{r.d(t,{A:()=>I});var i=r(90237),s=r(92602),n=r(70333),o=r(78888),a=r(60999),l=r(49186),u=r(53966),p=r(97768),d=r(74887),c=r(84952),h=r(10107),y=(r(44208),r(87811),r(36005)),f=r(40608),m=r(43937),g=r(83531),v=r(20655),w=r(80812),b=r(41318),_=r(10407);const I=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,d.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!n.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let o,a;if(s)o=r.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!o||!(0,c.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(s?await r.reload():(r=new w.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,_.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=A.credential===t?A.user:await this._fetchEditingUser(e);return A.credential=t,A.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=v.A.getDefault();if(s&&s.loaded&&(0,c.S8)(s.restUrl)===(0,c.S8)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?b.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,c.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,h.MZ)({type:w.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,f.$)("esri.layers.mixins.PortalLayer")],t),t},A={credential:null,user:null}},25036:(e,t,r)=>{r.d(t,{j:()=>o});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,s.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},82935:(e,t,r)=>{r.d(t,{B:()=>h,e:()=>y});var i=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(36005)),o=r(40608),a=r(89317),l=r(30524),u=r(96184),p=r(73133),d=r(79677),c=r(10184);const h={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:a.K}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=p.j.fromJSON(r.timeOffsetUnits);return i&&s?new c.A({value:i,unit:s}):null}set timeInfo(e){(0,l.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,s.MZ)({type:d.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,s.MZ)({type:c.A})],t.prototype,"timeOffset",void 0),(0,i._)([(0,n.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,s.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,s.MZ)(h)],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,o.$)("esri.layers.mixins.TemporalLayer")],t),t}},40530:(e,t,r)=>{r.d(t,{c:()=>a});var i=r(90237),s=r(25482),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608));let a=class extends s.A{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,n.MZ)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,o.$)("esri.layers.support.FeatureReduction")],a)},67202:(e,t,r)=>{r.d(t,{A:()=>u});var i,s=r(90237),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),a=r(40530);let l=i=class extends a.c{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s._)([(0,n.MZ)({type:["selection"]})],l.prototype,"type",void 0),l=i=(0,s._)([(0,o.$)("esri.layers.support.FeatureReductionSelection")],l);const u=l},37352:(e,t,r)=>{r.d(t,{A:()=>p});var i,s=r(90237),n=r(5503),o=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(40608));let u=i=class extends o.A{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s._)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"floorField",void 0),(0,s._)([(0,a.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,s._)([(0,a.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=i=(0,s._)([(0,l.$)("esri.layers.support.LayerFloorInfo")],u);const p=u},96184:(e,t,r)=>{r.d(t,{A:()=>f});var i=r(90237),s=r(69540),n=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),u=r(43937),p=r(79677),d=r(10184),c=r(56400);function h(e,t){return d.A.fromJSON({value:e,unit:t})}let y=class extends(s.A.ClonableMixin(n.A)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?p.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,i._)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,i._)([(0,o.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,i._)([(0,a.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,i._)([(0,u.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,i._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,i._)([(0,o.MZ)({type:d.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,i._)([(0,a.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,i._)([(0,u.K)("interval")],y.prototype,"writeInterval",null),(0,i._)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,i._)([(0,o.MZ)((0,c.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,i._)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,i._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,i._)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,i._)([(0,l.$)("esri.layers.support.TimeInfo")],y);const f=y},4071:(e,t,r)=>{r.d(t,{$:()=>i,P:()=>s});const i={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1,supportedStatistics:void 0,supportedNormalizationTypes:void 0},s={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i,query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsCurrentUser:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsTrueCurve:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},17036:(e,t,r)=>{r.d(t,{p:()=>l});var i=r(44208),s=r(53966),n=r(20437),o=r(95466),a=r(30524);function l(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},20557:(e,t,r)=>{r.d(t,{Fm:()=>l,Hz:()=>h,JQ:()=>c,JZ:()=>b,ND:()=>f,R_:()=>o,U9:()=>d,fu:()=>s,nr:()=>y,oF:()=>n,rq:()=>u,z$:()=>p});const i=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=g(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const r=u(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function o(e,t){return v(function(e,t){const r=e.toLowerCase();return m(t).find((e=>w(e)===r))}(e,t))}function a(e,t){return v(g(e,t))}function l(e,t){return w(function(e,t){return m(t).find((t=>v(t)===e))}(e,t))}function u(e,t){return a(e.name,t)??o(e.type,t)}function p(e,t,r){return o(e,r)??a(t,r)}function d({supportedFormats:e}){return p("model/gltf-binary","glb",e)}function c(e){const t=d(e);return null!=t&&e.editFormats.includes(t)}function h(e){if(!e)return null;const t=d(e),r=function({supportedFormats:e}){return p("model/gltf+json","gltf",e)}(e);let i=null;for(const s of e.queryFormats){if(s===t)return s;s===r&&(i=s)}return i}function y({supportedFormats:e}){return p("application/esri3do-SR_world","wld",e)}function f({supportedFormats:e}){return p("application/esri3do-SR_prj","prj",e)}function m(e){return[...i,...e]}function g(e,t){const r=e.toLowerCase();return m(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function v(e){return e?.[0]}function w(e){return e?.[1].toLowerCase()}function b(e){return e.tables?.find((e=>"assetMaps"===e.role))}},32730:(e,t,r)=>{r.d(t,{BI:()=>m,D3:()=>y,XJ:()=>f,lc:()=>h,mX:()=>v,rU:()=>g,tH:()=>A});var i=r(799);const s="__begin__",n="__end__",o=new RegExp(s,"ig"),a=new RegExp(n,"ig"),l=new RegExp("^"+s,"i"),u=new RegExp(n+"$","i"),p='"',d=p+" + ",c=" + "+p;function h(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=h(e.labelExpression),t.type="conventional"),t}function m(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return A(t.expression)}return null}function v(e){let t;return e?(t=(0,i.HC)(e,(e=>s+'$feature["'+e+'"]'+n)),t=l.test(t)?t.replace(l,""):p+t,t=u.test(t)?t.replace(u,""):t+p,t=t.replaceAll(o,d).replaceAll(a,c)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,I=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function A(e){if(!e)return null;let t=b.exec(e)||_.exec(e);return t?t[1]||t[3]:(t=I.exec(e),t?t[2]:null)}},86390:(e,t,r)=>{r.d(t,{Z:()=>n});var i=r(83047),s=r(73836);function n(e){const t=1/(0,i.GA)(e,1);return 1!==t?new s.A({scale:[t,t,t]}):void 0}},85648:(e,t,r)=>{r.d(t,{n:()=>s});var i=r(84952);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const n={},o="text/plain",a=n[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},8947:(e,t,r)=>{r.d(t,{L:()=>o});var i=r(60999),s=r(74887),n=r(67076);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.Ke)(o.populateFromStyle());if((0,s.Te)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},41366:(e,t,r)=>{r.d(t,{K:()=>c,Q:()=>u});var i=r(90237),s=r(66552),n=r(53966),o=r(10107),a=(r(44208),r(87811),r(93223)),l=r(40608);const u=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",d="field",c=e=>{let t=class extends e{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&d||r&&p||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==d&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i._)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],t.prototype,"normalizationField",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],t.prototype,"normalizationMaxValue",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],t.prototype,"normalizationMinValue",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],t.prototype,"normalizationTotal",void 0),(0,i._)([(0,a.e)(u,{name:"parameters.normalizationType"})],t.prototype,"normalizationType",null),t=(0,i._)([(0,l.$)("esri.rest.support.NormalizationBinParametersMixin")],t),t}},10184:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),s=r(69540),n=r(25482),o=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let d=class extends(s.A.ClonableMixin(n.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.e)(p.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,i._)([(0,u.$)("esri.time.TimeInterval")],d);const c=d},20816:(e,t,r)=>{r.d(t,{TA:()=>s,We:()=>a,Z3:()=>n,ZJ:()=>l,w5:()=>u});var i=r(78888);const s=(0,r(13069).vD)(),n=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,i=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),a=await t(n,e,new i({sessionId:s,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map},45671:(e,t,r)=>{r.d(t,{D8:()=>n,TO:()=>s});var i=r(30524);async function s(e,t=e.popupTemplate){if(null==t)return[];const r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:s}=t,{objectIdField:n,typeIdField:o,globalIdField:a,relationships:l}=e;if(r.includes("*"))return["*"];const u=s?(0,i.eX)(e):[],p=(0,i.DB)(e.fieldsIndex,[...r,...u]);return o&&p.push(o),p&&n&&e.fieldsIndex?.has(n)&&!p.includes(n)&&p.push(n),p&&a&&e.fieldsIndex?.has(a)&&!p.includes(a)&&p.push(a),l&&l.forEach((t=>{const{keyField:r}=t;p&&r&&e.fieldsIndex?.has(r)&&!p.includes(r)&&p.push(r)})),p}function n(e,t){return e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&null!=e.defaultPopupTemplate?e.defaultPopupTemplate:null}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5613],{22429:(e,a,t)=>{t.d(a,{v:()=>n});var r=t(24183);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.V)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},92009:(e,a,t)=>{t.d(a,{L:()=>u});var r=t(70333),n=t(78888),s=t(49186),i=t(74887),l=t(60694),c=t(20655),o=t(80812);async function u(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),s=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(t.portal=new c.A({url:s}));try{return await t.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find((e=>"Feature Service"===e.type))||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!f?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,i=a.layerId;if(null==i)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},f=d("anonymous").catch((()=>d("no-prompt"))),[m,w]=await Promise.all([f,c]),h=w?.layers,p=m.data&&m.data.layers;if(!Array.isArray(p))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,p.length);e++)if(h[e].id===i)return{serverUrl:r,layerId:p[e].id}}else if(null!=i&&i<p.length)return{serverUrl:r,layerId:p[i].id};throw new Error("could not find matching associated sublayer")}},23154:(e,a,t)=>{t.d(a,{K:()=>d,Q:()=>s});var r=t(24183);const n=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){const{loadContext:t,...n}=a||{},s=t?await t.fetchServiceMetadata(e,n):await(0,r.V)(e,n);y(s),c(s);const i={serviceJSON:s};if((s.currentVersion??0)<10.5)return i;const l=`${e}/layers`,o=t?await t.fetchServiceMetadata(l,n):await(0,r.V)(l,n);return y(o),c(o),i.layersJSON={layers:o.layers,tables:o.tables},i}function i(e){const{type:a}=e;return!!a&&n.has(a)}function l(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(l)}function o(e){e.type||="Feature Layer"}function u(e){e.type||="Table"}function y(e){e.layers?.forEach(o),e.tables?.forEach(u)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},4513:(e,a,t)=>{t.d(a,{S:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(5178)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(3600),t.e(690),t.e(2944),t.e(9868),t.e(4654),t.e(6298),t.e(4307)]).then(t.bind(t,88303))).default,CSVLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(3600),t.e(1768)]).then(t.bind(t,72256))).default,CatalogLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(4111),t.e(8506),t.e(893),t.e(2593),t.e(5023)]).then(t.bind(t,79003))).default,DimensionLayer:async()=>(await Promise.all([t.e(6131),t.e(1493)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(6131),t.e(9186),t.e(8463)]).then(t.bind(t,68611))).default,FeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(3600),t.e(8430)]).then(t.bind(t,13600))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(8445)]).then(t.bind(t,17625))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(1147),t.e(587),t.e(3201)]).then(t.bind(t,63201))).default,GroupLayer:async()=>(await Promise.all([t.e(6131),t.e(5989),t.e(8256)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(893),t.e(984),t.e(8301),t.e(4541)]).then(t.bind(t,30633))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(984),t.e(6049),t.e(8301),t.e(8480),t.e(5943)]).then(t.bind(t,35943))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(6131),t.e(1528)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(6131),t.e(6298),t.e(8003)]).then(t.bind(t,84453))).default,KMLLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(9465)]).then(t.bind(t,79465))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(7339),t.e(1402),t.e(5448),t.e(4914),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(6131),t.e(690),t.e(4374),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(7339),t.e(1402),t.e(5448),t.e(4914),t.e(1728)]).then(t.bind(t,71728))).default,MapImageLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(4111),t.e(893),t.e(8723),t.e(7656)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(3600),t.e(5448),t.e(4764)]).then(t.bind(t,96953))).default,MediaLayer:async()=>(await Promise.all([t.e(6131),t.e(9647)]).then(t.bind(t,19647))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(377),t.e(4934)]).then(t.bind(t,87152))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(4405),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(3600),t.e(1017)]).then(t.bind(t,97927))).default,PointCloudLayer:async()=>(await Promise.all([t.e(6131),t.e(3874),t.e(7984),t.e(6742)]).then(t.bind(t,76742))).default,RouteLayer:async()=>(await Promise.all([t.e(6131),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(7550)]).then(t.bind(t,97550))).default,SceneLayer:async()=>(await Promise.all([t.e(6131),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(690),t.e(2944),t.e(9868),t.e(4654),t.e(6298),t.e(4110)]).then(t.bind(t,13899))).default,StreamLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(59)]).then(t.bind(t,60683))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(4111),t.e(8506),t.e(1162)]).then(t.bind(t,59929))).default,TileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(4111),t.e(893),t.e(9186),t.e(8723),t.e(1756)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await t.e(146).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await t.e(5165).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(9186),t.e(9949),t.e(5013),t.e(8153)]).then(t.bind(t,48757))).default,VideoLayer:async()=>(await Promise.all([t.e(3930),t.e(3920)]).then(t.bind(t,1689))).default,ViewshedLayer:async()=>(await Promise.all([t.e(6131),t.e(690),t.e(4374),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(6131),t.e(3874),t.e(6183)]).then(t.bind(t,16183))).default,WCSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(984),t.e(6049),t.e(8301),t.e(8480),t.e(9547)]).then(t.bind(t,19547))).default,WFSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4296)]).then(t.bind(t,16350))).default,WMSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(1904)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(4405),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(4405)]).then(t.bind(t,47314))).default}},66964:(e,a,t)=>{t.d(a,{Ju:()=>o,K8:()=>d,XH:()=>u,_r:()=>s,bO:()=>i,iK:()=>y,nu:()=>f,pJ:()=>l,rc:()=>c});var r=t(92009),n=t(23154);function s(e){const a={id:e.id,name:e.name},t=(0,n.K)(e.type);return"FeatureLayer"!==t&&(a.layerType=t),a}async function i(e,a,t){if(null==e?.layers||null==e?.tables){const r=await t.fetchServiceMetadata(a,{customParameters:l(e)?.customParameters});(e=e||{}).layers=e.layers||r?.layers?.map(s),e.tables=e.tables||r?.tables?.map(s)}return e}function l(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.length?a[0]:t?.length?t[0]:null}function c(e,a){return null==a?null:[...e.layers||[],...e.tables||[]].find((e=>e.id===a))}function o(e,a){return[...e.layers||[],...e.tables||[]].filter((({layerType:e})=>e?e===a:"ArcGISFeatureLayer"===a))}function u(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function y(e){switch(e){case"catalog":return"CatalogLayer";case"feature":return"ArcGISFeatureLayer";case"oriented-imagery":return"OrientedImageryLayer";case"subtype-group":return"SubtypeGroupLayer"}return null}function d(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":return"SubtypeGroupLayer"}return"FeatureLayer"}async function f(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(s)}const{serverUrl:n,portalItem:i}=await(0,r.L)(e.url,{sceneLayerItem:e,customParameters:l(a)?.customParameters}).catch((()=>({serverUrl:null,portalItem:null})));if(null==n)return a.tables=[],a;if(!a.tables&&i){const e=await i.fetchData().catch((()=>null));if(e?.tables)a.tables=e.tables.map(s);else{const r=await t.fetchServiceMetadata(n,{customParameters:l(e)?.customParameters}).catch((()=>null));a.tables=r?.tables?.map(s)}}if(a.tables)for(const e of a.tables)e.url=`${n}/${e.id}`;return a}},45613:(e,a,t)=>{t.d(a,{fromItem:()=>d,n:()=>f});var r=t(49186),n=t(92009),s=t(23154),i=t(22429),l=t(83531),c=t(4513),o=t(80812),u=t(66964),y=t(10407);async function d(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new i.v;return async function(e){const a=e.className,t=c.S[a];return{constructor:await t(),properties:e.properties}}(await f(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y.Y)(e,"Map Notes"),t=(0,y.Y)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await m(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),c=s.tileInfo?.format?.toLowerCase()??"",o=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(c);return"map"===i||o||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await m(e,a,(async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}}));if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(l.XX))if(e.typeKeywords.includes(a))return{className:l.XX[a]};const s=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{className:l.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,t){const{url:r,type:n}=e,i="Feature Service"===n;if(!r)return{};if(/\/\d+$/.test(r)){if(i){const t=await a.fetchServiceMetadata(r,{customParameters:await a.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{id:t.id,className:(0,s.K)(t.type),sourceJSON:t}}return{}}await e.load();let l=await a.fetchItemData(e);if(i){const e=await(0,u.bO)(l,r,a),t=w(e);if("object"==typeof t){const a=(0,u.rc)(e,t.id);t.className=(0,u.K8)(a?.layerType)}return t}if("Scene Service"===n&&(l=await(0,u.nu)(e,l,a)),(0,u.XH)(l)>0)return w(l);const c=await a.fetchServiceMetadata(r);return t&&(c.tables=await t()),w(c)}function w(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},24183:(e,a,t)=>{t.d(a,{V:()=>n});var r=t(78888);async function n(e,a){const{data:t}=await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1728],{71728:(e,t,a)=>{a.r(t),a.d(t,{default:()=>R});var i,n,o=a(90237),s=(a(59456),a(67996)),r=a(5503),l=a(49186),h=a(53966),d=a(91869),c=a(92071),u=a(74887),p=a(36708),y=a(10107),g=(a(44208),a(87811),a(40608)),m=a(35666),f=a(4146),L=a(90708),M=a(15375);(n=i||(i={})).MULTIPLIER="multiplier",n.ABSOLUTE="absolute-value";var b=a(80340),w=a(70643),T=a(85342),k=a(69860),C=a(30504),N=a(63074),v=a(16131),x=a(25036),D=a(8460),E=a(71402),I=a(5443),A=a(86738),_=a(82799);let S=class extends((0,v.q)((0,N.dM)((0,x.j)((0,c.P)(f.A))))){constructor(e){if(super(e),this.dataPreloadedInLocalCache=!1,this.initializationLinkChartConfig=null,this.membershipModified=!0,this._currentLinkChartConfig={layoutMode:"radial-root-centric"},this._graphTypeLookup=new Map,this.dataManager=null,this.knowledgeGraph=null,this.layers=new(r.A.ofType(w.A)),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map,this.linkChartExtent=new I.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7}),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="LinkChartLayer",this.sublayerIdsCache=new Map,this.tables=new(r.A.ofType(w.A)),this.type="link-chart",this.chronologicalAuxiliaryGraphics=null,this._originalInclusionList=e?.initializationInclusionModeDefinition,e?.dataPreloadedInLocalCache&&!e?.initializationInclusionModeDefinition)throw new l.A("knowledge-graph:linkchart-layer-constructor","If creating a link chart composite layer and configured that data is already loaded in the cache, you must specify an inclusion list so the Composite Layer knows what records belong to it");this.addHandles((0,p.wB)((()=>this.layers.concat(this.tables)),((e,t)=>this._handleSublayersChange(e,t)),p.OH))}normalizeCtorArgs(e){if(!e)return{};const{url:t,title:a,dataPreloadedInLocalCache:i,initializationLinkChartConfig:n}=e;return{url:t,title:a,dataPreloadedInLocalCache:i,initializationLinkChartConfig:n}}_initializeLayerProperties(e){if(!this.title&&this.url){const e=this.url.split("/");this.title=e[e.length-2]}const t=new Set;let a=[],i=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new l.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.inclusionModeDefinition?.generateAllSublayers?(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((n,o)=>{const s=this._graphTypeLookup.get(o);if(!s)return h.A.getLogger(this).warn(`A named type, ${o}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(o);"relationship"===s.type?t.has(o)||(t.add(o),i.push(s)):"entity"===s.type?t.has(o)||(t.add(o),a.push(s)):(h.A.getLogger(this).warn(`A named type, ${o}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(o))})):(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]);const n=new b.P({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=a,this.memberRelationshipTypes=i,this.dataManager=n}load(e){const t=async()=>{const e=[],t=[];this.loadLayerAssumingLocalCache(),await(0,T.q)(this),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach((e=>{e.useAllData=!1})),await this._initializeDiagram(),this.layers.forEach((a=>{t.push(a.refreshCachedQueryEngine()),e.push(new Promise((e=>{a.on("layerview-create",(()=>{e(null)}))})))})),this.tables.forEach((e=>{t.push(e.refreshCachedQueryEngine())})),await Promise.all(t)};return this.addResolvingPromise(new Promise((a=>{(0,E.fetchKnowledgeGraph)(this.url).then((async i=>{i.dataModel.entityTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),i.dataModel.relationshipTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)}));const n=this.linkChart?.linkChartProperties;if(n?.originIdOf("entitiesUrl")===m.Gr.LINK_CHART&&(this.membershipModified=!1,this._originalInclusionList=await s.XW.fetchAndConvertSerializedLinkChart({entitiesUrl:n?.entitiesUrl,relationshipsUrl:n?.relationshipsUrl}),this._alignLayersDataModelAndInclusionDefinition(i.dataModel),this.initializationLinkChartConfig={layoutSettings:n?.layoutSettings??void 0,layoutMode:(0,C.k5)(n.layoutType)}),this._initializeLayerProperties({knowledgeGraph:i,inclusionModeDefinition:this._originalInclusionList}),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.size||(this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map},this.dataManager.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})})),this.dataManager.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}))),this.dataPreloadedInLocalCache){const e=k.A.getInstance();for(const[t,a]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions??[])for(const i of a.members?.values()??[]){const a=e.readFromStoreById(`${t}__${i.id}`);a&&(0,d.tE)(this.dataManager.sublayerCaches,t,(()=>new Map)).set(i.id,a)}await t()}else{const a="geographic-organic-standard"===this.initializationLinkChartConfig?.layoutMode;this.addResolvingPromise(this.dataManager.refreshCacheContent(void 0,!1,a,!0).then((async()=>{(0,u.Te)(e),await t()})))}a(null)}))}))),Promise.resolve(this)}set initializationInclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("initializationInclusionModeDefinition",e):h.A.getLogger(this).error("#initializationInclusionModeDefinition","initializationInclusionModeDefinition cannot be changed after the layer is loaded.")}get linkChart(){return this.parent}async addRecords(e,t){let a=[];t?.cascadeAddRelationshipEndNodes&&this.dataManager.knowledgeGraph.dataModel&&(a=await(0,C.aq)(e,this.dataManager.knowledgeGraph));const i=e.concat(a).filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)));i.length>0&&(this.membershipModified=!0),await this._handleNewRecords(i,t)}async removeRecords(e,{cascadeRemoveRelationships:t=!0,recalculateLayout:a=!1,overrideMembershipCheck:i=!1}={cascadeRemoveRelationships:!0,recalculateLayout:!1,overrideMembershipCheck:!1}){let n=[];for(const t of e)(i||!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.members?.has(t.id))&&n.push(t);if(t){const e=new Set,t=[];for(const t of n)if(this.dataManager.nodeConnectionsLookup.has(t.id))for(const a of this.dataManager.nodeConnectionsLookup.get(t.id))e.add(a);for(const a of e)if(this.dataManager.memberIdTypeLookup.has(a))for(const e of this.dataManager.memberIdTypeLookup.get(a))this.dataManager.relationshipTypeNames.has(e)&&t.push({id:a,typeName:e});n=n.concat(t)}this.dataManager.removeFromLayer(n);for(const e of n)this.sublayerIdsCache.get(e.typeName)?.delete(e.id),this.dataManager.relationshipTypeNames.has(e.typeName)?this.relationshipLinkChartDiagramLookup.delete(e.id):this.entityLinkChartDiagramLookup.delete(e.id);a&&await this._calculateLayoutWithSublayerTimeInfo(this._currentLinkChartConfig.layoutMode,{layoutSettings:this._currentLinkChartConfig.layoutSettings}),n.length>0&&(this.membershipModified=!0);const o=[];return this.layers.forEach((e=>{o.push(e.refreshCachedQueryEngine())})),await Promise.all(o),this._refreshNamedTypes(),n}async expand(e,t){let a=[];try{const i=await this.dataManager.getConnectedRecordIds(e,t?.relationshipTypeNames,t);a=i.filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id))),await this._handleNewRecords(i,t),i.length>0&&(this.membershipModified=!0),(0,u.Te)(t?.signal)}catch(e){throw(0,u.zf)(e)&&a.length>0&&this.removeRecords(a,{overrideMembershipCheck:!0}),e}return{records:a}}loadLayerAssumingLocalCache(){const e=[...this.memberRelationshipTypes,...this.memberEntityTypes];this.originIdOf("layers")===m.Gr.DEFAULTS?this._createSublayers(e,this.layers,(e=>!!e.geometryType)):this._updateSublayers(e,this.layers),this.originIdOf("tables")===m.Gr.DEFAULTS?this._createSublayers(e,this.tables,(e=>!e.geometryType)):this._updateSublayers(e,this.tables),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{const a=(0,d.tE)(this.sublayerIdsCache,t,(()=>new Set));e.members?.forEach((({id:e,linkChartLocation:i})=>{if(a.add(e),i){const a="coords"in i&&"lengths"in i?i:(0,L.Ux)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e,a):this.entityLinkChartDiagramLookup.set(e,a)}}))}))}async calculateLinkChartLayout(e="radial-root-centric",t){const a=[],i=[],n=[];this.dataManager.sublayerCaches.forEach(((e,t)=>{this.dataManager.entityTypeNames.has(t)?e.forEach((e=>{a.push({typeName:t,feature:e})})):this.dataManager.relationshipTypeNames.has(t)&&e.forEach((e=>{i.push({typeName:t,feature:e})}))})),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map;const o=new Map,s=new Map,r=new Map,c=new Map,p=new Uint8Array(a.length),y=new Float64Array(a.length),g=new Float64Array(a.length),m=new Float64Array(a.length),f=new Float64Array(a.length),b=new Uint32Array(i.length),w=new Uint32Array(i.length),T=new Float64Array(i.length),k=new Float64Array(i.length),C=[],N=new I.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7});let v,x="organic-standard",E=0,S=0;const R=D.i6.apply;switch(x="geographic-organic-standard"===e?"organic-standard":e,x){case"organic-standard":v=D.pM.apply;break;case"organic-community":v=D.Tu.apply;break;case"hierarchical-bottom-to-top":v=D.$C.apply;break;case"radial-root-centric":v=D.vJ.apply;break;case"tree-left-to-right":v=D.Xq.apply;break;default:v=D.Wg.apply}let z=!1;a.forEach((({typeName:a,feature:i})=>{if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e&&t?.lockedNodeLocations?.has(i.attributes[M.dr])){"geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(a)?p[E]=D.tx.IsGeographic:p[E]=D.tx.None;const n=t.lockedNodeLocations.get(i.attributes[M.dr]);y[E]=n.x,g[E]=n.y}else if("geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(a)){p[E]=D.tx.IsGeographic;let e=null;const t=i.attributes[this.dataManager.geographicLookup.get(a).name],n=this.dataManager.geographicLookup.get(a)?.geometryType;switch(n){case"esriGeometryPoint":y[E]=t?.x,g[E]=t?.y;break;case"esriGeometryPolygon":e=t?.centroid,null!=e?.x&&null!=e?.y?(y[E]=e.x,g[E]=e.y):p[E]=D.tx.IsMovable;break;case"esriGeometryPolyline":case"esriGeometryMultipoint":e=t?.extent?.center,null!=e?.x&&null!=e?.y?(y[E]=e.x,g[E]=e.y):p[E]=D.tx.IsMovable;break;default:p[E]=D.tx.IsMovable}(null==y[E]||null==g[E]||Number.isNaN(y[E])||Number.isNaN(g[E]))&&(p[E]=D.tx.IsMovable,y[E]=0,g[E]=0)}else if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){!z&&t?.lockedNodeLocations?.has(i.attributes[M.dr])&&(z=!0);const e=t?.timeInfoByTypeName?.get(a),n=e?.startField,o=n&&e?.startField?i.attributes[n]:null;m[E]=o?new Date(o).getTime():NaN;const s=e?.endField,r=s&&e?.endField?i.attributes[s]:null;f[E]=r?new Date(r).getTime():NaN,y[E]=0,g[E]=0,p[E]=D.tx.IsMovable}else p[E]=D.tx.IsMovable,y[E]=0,g[E]=0;c.set(i.attributes[M.dr],E),C[E]={feature:i,typeName:a},E++})),z&&h.A.getLogger(this).warn("Locked node locations are not supported for chronological layout at this time. Requested node locations were ignored");let G=!1;const P=new Map;i.forEach((a=>{const i=a.feature.attributes[M.Cz],o=a.feature.attributes[M.KQ],s=c.get(i),r=c.get(o),l=t?.timeInfoByTypeName?.get(a.typeName),h=t?.timeInfoByTypeName?l?.startField:null,d=h?a.feature.attributes[h]:null,u=l?.endField,p=u?a.feature.attributes[u]:null;if(void 0!==s&&void 0!==r){let t=i+"-"+o;"chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e||(t=t+"-"+d+"-"+p);const l=P.get(t),h=l?.has(a.typeName);h||(b[S]=s,w[S]=r,"chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e||(T[S]=d?new Date(d).getTime():NaN,k[S]=p?new Date(p).getTime():NaN),void 0===l?P.set(t,new Map([[a.typeName,S]])):l.set(a.typeName,S),S++),n.push(a)}else G=!0,this.relationshipLinkChartDiagramLookup.set(i,null)})),G&&h.A.getLogger(this).warn("A relationship is a member of this layer that has either origin or destination entity nodes that are not members. The diagram geometry will be set to null");const F=this._validateLayoutSettings(e,t?.layoutSettings),B=this._convertLayoutSettingsToCalculationSettings(F);await(0,D.Hh)();let U=D.JT.Error,Z=null;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){let a;({status:U,links:Z,graphics:a}=R((()=>t?.signal?.aborted??!1),p,y,g,m,f,b.subarray(0,S),w.subarray(0,S),T.subarray(0,S),k.subarray(0,S),"chronological-multi-timeline"===e,t?.layoutSettings?.chronologicalLayoutSettings??{})),U===D.JT.Success&&(this.chronologicalAuxiliaryGraphics=a)}else({status:U,links:Z}=v((()=>t?.signal?.aborted??!1),p,y,g,b.subarray(0,S),w.subarray(0,S),B.computationBudgetTime,B.idealEdgeLengthMultiplier,B.repulsionRadiusMultiplier));if((0,u.Te)(t?.signal),U===D.JT.Error)throw new l.A("knowledge-graph:layout-failed","Attempting to arrange the records in the specified layout failed");if(U===D.JT.Canceled)throw(0,u.NK)();for(let e=0;e<C.length;e++){if(g[e]>84.9999?g[e]=84.9999:g[e]<-84.9999&&(g[e]=-84.9999),y[e]>179.9999?y[e]=179.9999:y[e]<-179.9999&&(y[e]=-179.9999),C[e].feature.attributes[M.T1]=new A.A(y[e],g[e]),o.has(C[e].typeName)){const t=o.get(C[e].typeName);t?.set(C[e].feature.attributes[M.dr],C[e].feature)}else{const t=new Map;t.set(C[e].feature.attributes[M.dr],C[e].feature),o.set(C[e].typeName,t)}r.set(C[e].feature.attributes[M.dr],C[e].feature);const t=(0,L.Ux)(C[e].feature.attributes[M.T1]);this.entityLinkChartDiagramLookup.set(C[e].feature.attributes[M.dr],C[e].feature.attributes[M.T1]?t:null);const a=(0,d.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,C[e].typeName,(()=>({useAllData:!1,members:new Map})));(0,d.tE)(a.members,C[e].feature.attributes[M.dr],(()=>({id:C[e].feature.attributes[M.dr],linkChartLocation:void 0}))).linkChartLocation=C[e].feature.attributes[M.T1],C[e].feature.attributes[M.T1].x<N.xmin&&(N.xmin=C[e].feature.attributes[M.T1].x),C[e].feature.attributes[M.T1].x>N.xmax&&(N.xmax=C[e].feature.attributes[M.T1].x),C[e].feature.attributes[M.T1].y<N.ymin&&(N.ymin=C[e].feature.attributes[M.T1].y),C[e].feature.attributes[M.T1].y>N.ymax&&(N.ymax=C[e].feature.attributes[M.T1].y)}if(this.linkChartExtent.xmin=N.xmin,this.linkChartExtent.xmax=N.xmax,this.linkChartExtent.ymin=N.ymin,this.linkChartExtent.ymax=N.ymax,!Z)throw new l.A("knowledge-graph:layout-failed","Attempting to retrieve link geometry from diagram engine failed");const O=new Map,j=new Map,W=new Map,Q=new Set;for(let a=0;a<n.length;a++){const i=[],o=n[a],l=o.feature.attributes[M.Cz],u=o.feature.attributes[M.KQ];let p=l+"-"+u;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){const e=t?.timeInfoByTypeName?.get(o.typeName),a=t?.timeInfoByTypeName?e?.startField:null,i=a?o.feature.attributes[a]:null,n=e?.endField;p+="-"+i+"-"+(n?o.feature.attributes[n]:null)}const y=P.get(p).get(o.typeName),g=0===y?0:Z?.vertexEndIndex[y-1];if(!Q.has(y)){if(Q.add(y),Z.types[y]===D.J.Recursive){const e=[Z.vertices[2*g],Z.vertices[2*g+1]],t=[Z.vertices[2*(g+1)],Z.vertices[2*(g+1)+1]],a=[.5*(e[0]+t[0]),.5*(e[1]+t[1])],n=[a[0]-e[0],a[1]-e[1]],o=[a[0]+n[1],a[1]-n[0]],s=[a[0]-n[1],a[1]+n[0]];i.push(e),i.push(o),i.push(t),i.push(s),i.push(e)}else{if(Z.types[y]!==D.J.Regular){h.A.getLogger(this).warn("A relationship generated an unsupported link geometry type. It will not be rendered");continue}for(let e=g;e<Z.vertexEndIndex[y];e++)i.push([Z.vertices[2*e],Z.vertices[2*e+1]])}if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e){const e=C[c.get(l)]?.feature.attributes[M.T1],t=C[c.get(u)]?.feature.attributes[M.T1];i[0][0]===e.x&&i[0][1]===e.y||(i[0]=[e.x,e.y]),i[i.length-1][0]===t.x&&i[i.length-1][1]===t.y||(i[i.length-1]=[t.x,t.y])}for(let e=1;e<i.length-1;e++)i[e][1]>85.5?i[e][1]=85.5:i[e][1]<-85.5&&(i[e][1]=-85.5),i[e][0]>179.9999?i[e][0]=179.9999:i[e][0]<-179.9999&&(i[e][0]=-179.9999);O.has(p)?O.get(p).push(i):O.set(p,[i])}const m=O.get(p);j.has(p)||(j.set(p,new Map),W.set(p,new Map));const f=j.get(p),b=W.get(p);f.has(o.typeName)||(f.set(o.typeName,m.shift()),b.set(o.typeName,0));const w=f.get(o.typeName);b.set(o.typeName,b.get(o.typeName)+1);const T=new _.A({paths:[w]});if(o.feature.attributes[M.T1]=T,s.has(o.typeName)){const e=s.get(o.typeName);e?.set(o.feature.attributes[M.dr],o.feature)}else{const e=new Map;e.set(o.feature.attributes[M.dr],o.feature),s.set(o.typeName,e)}r.set(o.feature.attributes[M.dr],o.feature);const k=(0,L.Ux)(o.feature.attributes[M.T1]);this.relationshipLinkChartDiagramLookup.set(o.feature.attributes[M.dr],o.feature.attributes[M.T1]?k:null);const N=(0,d.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,o.typeName,(()=>({useAllData:!1,members:new Map})));(0,d.tE)(N.members,o.feature.attributes[M.dr],(()=>({id:o.feature.attributes[M.dr],linkChartLocation:void 0}))).linkChartLocation=o.feature.attributes[M.T1]}for(const e of n)e.feature.attributes[M.M1]=W.get(e.feature.attributes[M.Cz]+"-"+e.feature.attributes[M.KQ])?.get(e.typeName)??null;return this._currentLinkChartConfig={layoutMode:e,layoutSettings:F},{nodes:o,links:s,idMap:r}}async applyNewLinkChartLayout(e="radial-root-centric",t){const a=[];await this._calculateLayoutWithSublayerTimeInfo(e,t),this.layers.forEach((e=>{a.push(e.refreshCachedQueryEngine())})),this.membershipModified=!0,await Promise.all(a),this._refreshNamedTypes()}getCurrentNodeLocations(){const e=new Map;for(const[t,a]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.entries()??[])this.dataManager.relationshipTypeNames.has(t)||a?.members?.forEach((t=>{const a=t.linkChartLocation;let i;const n=t.id;a&&(i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]},e.set(n,new A.A({x:i.x,y:i.y})))}));return e}async refreshLinkChartCache(e){await this.dataManager.refreshCacheContent(e);const t=[];this.layers.forEach((e=>{t.push(e.refreshCachedQueryEngine())})),await Promise.all(t),this._refreshNamedTypes()}async connectBetweenEntities(e,t){if(!e.length)return{records:[]};let a=[];try{let i=[];for(const e of this.dataManager.relationshipTypeNames){const t=this.sublayerIdsCache.get(e);t&&(i=i.concat(Array.from(t.keys())))}a=await this.dataManager.getRelationshipsBetweenNodes(e,i,t),await this._handleNewRecords(a,t),(0,u.Te)(t)}catch(e){throw(0,u.zf)(e)&&this.removeRecords(a),e}return{records:a}}async connectFromEntities(e,t){if(!e.length)return{records:[]};let a=[];try{let i=[];for(const e of this.dataManager.relationshipTypeNames){const t=this.sublayerIdsCache.get(e);t&&(i=i.concat(Array.from(t.keys())))}let n=[];for(const e of this.dataManager.entityTypeNames){const t=this.sublayerIdsCache.get(e);t&&(n=n.concat(Array.from(t)))}a=await this.dataManager.getRelationshipsFromNodes(e,n,i,t),await this._handleNewRecords(a,t),a.length>0&&(this.membershipModified=!0),(0,u.Te)(t)}catch(e){throw(0,u.zf)(e)&&this.removeRecords(a),e}return{records:a}}getCurrentLayout(){return this._currentLinkChartConfig.layoutMode}async _calculateLayoutWithSublayerTimeInfo(e="radial-root-centric",t){const a=new Map;this.layers.forEach((e=>{a.set(e.objectType.name,e.timeInfo)})),await this.calculateLinkChartLayout(e,{timeInfoByTypeName:a,...t})}async _handleNewRecords(e,t){const a=[];this.dataManager.addToLayer(e);for(const t of e)this.sublayerIdsCache.has(t.typeName)||(this.sublayerIdsCache.set(t.typeName,new Set),a.push(t.typeName)),this.sublayerIdsCache.get(t.typeName).add(t.id);for(const e of a){const t=this._graphTypeLookup.get(e);if(t){const a=this._createSublayer(t);"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),a.geometryType?this.layers.push(a):this.tables.push(a),this.dataManager.sublayerCaches.set(e,new Map)}}await(0,T.q)(this,a,t),await this.dataManager.refreshCacheContent(e.map((e=>e.id)),void 0,void 0,void 0,t);const i=Object.assign({},this._currentLinkChartConfig.layoutSettings);i.lockedNodeLocations=new Map;for(const[e,t]of this.entityLinkChartDiagramLookup.entries())t&&i.lockedNodeLocations.set(e,new A.A(t.coords[0],t.coords[1]));await this.applyNewLinkChartLayout(this._currentLinkChartConfig.layoutMode,{layoutSettings:i})}_createSublayers(e,t,a){e.forEach((e=>{const i=this._createSublayer(e);a(i)&&t.push(i),this._updateSublayerCaches(e)}))}_updateSublayers(e,t){t.forEach((t=>{t.parentCompositeLayer=this;const a=e.find((e=>e.type===t.graphType&&e.name===t.graphTypeName));a&&(t.objectType=a,t.read({title:a.name},{origin:"service"}),this._updateSublayerCaches(a))}))}_updateSublayerCaches(e){const t=this.dataManager.sublayerCaches;t.has(e.name)||t.set(e.name,new Map)}async _initializeDiagram(){this.initializationLinkChartConfig?this.initializationLinkChartConfig.doNotRecalculateLayout?(this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e?.members?.forEach((e=>{const a=e.linkChartLocation;let i;const n=e.id;if(!a)return;i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]};const o=(0,L.Ux)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(n,o):this.entityLinkChartDiagramLookup.set(n,o),this.linkChartExtent.xmin>i.x&&(this.linkChartExtent.xmin=i.x),this.linkChartExtent.xmax<i.x&&(this.linkChartExtent.xmax=i.x),this.linkChartExtent.ymin>i.y&&(this.linkChartExtent.ymin=i.y),this.linkChartExtent.ymax<i.y&&(this.linkChartExtent.ymax=i.y)}))})),this.memberRelationshipTypes.forEach((e=>{e.name&&this.dataManager.sublayerCaches.get(e.name)?.forEach((e=>{const t=this.relationshipLinkChartDiagramLookup.get(e.attributes[M.Cz]),a=this.relationshipLinkChartDiagramLookup.get(e.attributes[M.KQ]);if(t&&a){const i=(0,L.Ux)(new _.A({paths:[[[t.coords[0],t.coords[1]],[a.coords[0],a.coords[1]]]]}));this.relationshipLinkChartDiagramLookup.set(e.attributes[M.dr],i)}else this.relationshipLinkChartDiagramLookup.set(e.attributes[M.dr],null)}))}))):await this._calculateLayoutWithSublayerTimeInfo(this.initializationLinkChartConfig.layoutMode,{lockedNodeLocations:this.getCurrentNodeLocations(),...this.initializationLinkChartConfig||{}}):await this._calculateLayoutWithSublayerTimeInfo("radial-root-centric",{lockedNodeLocations:this.getCurrentNodeLocations()})}_refreshNamedTypes(){for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}_validateLayoutSettings(e,t){const a=e=>"number"==typeof e&&!isNaN(e),n=e=>a(e)&&e>=0,o={organicLayoutSettings:{},chronologicalLayoutSettings:{}};if(!new Set(["organic-standard","organic-community","geographic-organic-standard","chronological-multi-timeline","chronological-mono-timeline"]).has(e)||!t)return o;t.organicLayoutSettings??={};const{computationBudgetTime:s,repulsionRadiusMultiplier:r,absoluteIdealEdgeLength:l,multiplicativeIdealEdgeLength:d,idealEdgeLengthType:c}=t.organicLayoutSettings;if((e=>a(e)&&e>=1)(s)?o.organicLayoutSettings.computationBudgetTime=s:void 0!==s&&h.A.getLogger(this).warn("Invalid layout computationBudgetTime setting, will revert to default setting"),(e=>a(e)&&e>=1)(r)?o.organicLayoutSettings.repulsionRadiusMultiplier=r:void 0!==r&&h.A.getLogger(this).warn("Invalid layout repulsionRadiusMultiplier setting, will revert to default setting"),"geographic-organic-standard"===e&&(void 0!==l||void 0!==d||void 0!==c)&&((e=>Object.values(i).includes(e))(c)?o.organicLayoutSettings.idealEdgeLengthType=c:void 0!==c&&h.A.getLogger(this).warn('Invalid layout idealEdgeLengthType setting, will revert to "multiplier" setting'),"absolute-value"===c&&n(l)?o.organicLayoutSettings.absoluteIdealEdgeLength=l:"absolute-value"===c&&void 0!==l?h.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting"):"multiplier"===c&&n(d)?o.organicLayoutSettings.multiplicativeIdealEdgeLength=d:"multiplier"===c&&void 0!==d&&h.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting")),("chronological-multi-timeline"===e||"chronological-mono-timeline"===e)&&t.chronologicalLayoutSettings){const e=t.chronologicalLayoutSettings;e.durationLineWidth&&e.durationLineWidth<0&&h.A.getLogger(this).warn("Invalid layout durationLineWidth setting, will revert to default setting")}return o}_convertLayoutSettingsToCalculationSettings(e){e.organicLayoutSettings??={};let t=e.organicLayoutSettings.idealEdgeLengthType===i.ABSOLUTE?e.organicLayoutSettings.absoluteIdealEdgeLength:e.organicLayoutSettings.multiplicativeIdealEdgeLength;return e.organicLayoutSettings.idealEdgeLengthType===i.ABSOLUTE&&(void 0===t?t=-1:t*=-1),{computationBudgetTime:e.organicLayoutSettings.computationBudgetTime??void 0,repulsionRadiusMultiplier:e.organicLayoutSettings.repulsionRadiusMultiplier&&!e.organicLayoutSettings.autoRepulsionRadius?e.organicLayoutSettings.repulsionRadiusMultiplier:void 0,idealEdgeLengthMultiplier:t}}_createSublayer(e){return new w.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_handleSublayersChange(e,t){t&&(t.forEach((e=>{e.parent=null})),this.removeHandles("sublayers-owner")),e&&(e.forEach((e=>{e.parent=this})),this.addHandles([e.on("after-add",(({item:e})=>{e.parent=this})),e.on("after-remove",(({item:e})=>{e.parent=null}))],"sublayers-owner"))}_alignLayersDataModelAndInclusionDefinition(e){const t=new Set((e.entityTypes??[]).map((e=>e.name)).concat((e.relationshipTypes??[]).map((e=>e.name)))),a=new Set((e.entityTypes??[]).map((e=>e.name))),i=new Set((e.relationshipTypes??[]).map((e=>e.name)));if(this.layers){for(const e of this.layers)!e.graphType&&t.has(e.graphTypeName)&&(e.graphType=a.has(e.graphTypeName)?"entity":"relationship");this.layers=this.layers.filter((e=>t.has(e.graphTypeName)&&("entity"===e.graphType?a.has(e.graphTypeName):i.has(e.graphTypeName))))}else this.layers=new r.A;if(this.layers&&this._originalInclusionList){const e=new Set(this._originalInclusionList.namedTypeDefinitions.keys()),t=this.tables?.map((e=>e.graphTypeName))??[],a=this.layers.map((e=>e.graphTypeName)).concat(t);for(const t of a)e.has(t)||this._originalInclusionList.namedTypeDefinitions.set(t,{useAllData:!1,members:new Map});const i=[];for(const e of this._originalInclusionList.namedTypeDefinitions.keys())a.includes(e)||(h.A.getLogger(this).warn(`A named type, ${e}, was in the serialized feature collection but did not have a sublayer config in the item, so will be removed`),i.push(e));for(const e of i)this._originalInclusionList.namedTypeDefinitions.delete(e)}}};(0,o._)([(0,y.MZ)()],S.prototype,"dataPreloadedInLocalCache",void 0),(0,o._)([(0,y.MZ)()],S.prototype,"initializationLinkChartConfig",void 0),(0,o._)([(0,y.MZ)()],S.prototype,"membershipModified",void 0),(0,o._)([(0,y.MZ)()],S.prototype,"dataManager",void 0),(0,o._)([(0,y.MZ)()],S.prototype,"initializationInclusionModeDefinition",null),(0,o._)([(0,y.MZ)()],S.prototype,"knowledgeGraph",void 0),(0,o._)([(0,y.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],S.prototype,"layers",void 0),(0,o._)([(0,y.MZ)({readOnly:!0})],S.prototype,"linkChart",null),(0,o._)([(0,y.MZ)()],S.prototype,"entityLinkChartDiagramLookup",void 0),(0,o._)([(0,y.MZ)()],S.prototype,"relationshipLinkChartDiagramLookup",void 0),(0,o._)([(0,y.MZ)()],S.prototype,"linkChartExtent",void 0),(0,o._)([(0,y.MZ)()],S.prototype,"memberEntityTypes",void 0),(0,o._)([(0,y.MZ)()],S.prototype,"memberRelationshipTypes",void 0),(0,o._)([(0,y.MZ)({type:["LinkChartLayer"]})],S.prototype,"operationalLayerType",void 0),(0,o._)([(0,y.MZ)()],S.prototype,"sublayerIdsCache",void 0),(0,o._)([(0,y.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],S.prototype,"tables",void 0),(0,o._)([(0,y.MZ)({json:{read:!1}})],S.prototype,"type",void 0),(0,o._)([(0,y.MZ)({json:{read:!1}})],S.prototype,"chronologicalAuxiliaryGraphics",void 0),S=(0,o._)([(0,g.$)("esri.layers.LinkChartLayer")],S);const R=S}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{92474:(t,e,r)=>{r.d(e,{A:()=>m});var o=r(90237),s=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(40608);const d="loaded",h=t=>{let e=class extends t{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((t=>{const e=this.load.bind(this);this.load=r=>{const o=new Promise(((t,e)=>{const o=(0,a.NY)(r,e);this.destroyed&&e(new s.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally((()=>{o&&o.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),o}}))),this.when((()=>{this._set("loadStatus",d),this._loadController=null}),(t=>{this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null}))}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new s.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,o._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loaded",null),(0,o._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loadError",void 0),(0,o._)([(0,u.MZ)({clonable:!1})],e.prototype,"loadStatus",void 0),(0,o._)([(0,u.MZ)({type:[n.A],readOnly:!0})],e.prototype,"loadWarnings",null),e=(0,o._)([(0,p.$)("esri.core.Loadable")],e),e};let y=class extends(h(l.A)){};var c;y=(0,o._)([(0,p.$)("esri.core.Loadable")],y),(c=y||(y={})).LoadableMixin=h,c.isLoadable=function(t){return!(!t||!t.load)};const m=y},61893:(t,e,r)=>{r.d(e,{A:()=>h});var o,s,i=r(90237),l=r(69622),a=r(74887),n=r(40608);(s=o||(o={}))[s.PENDING=0]="PENDING",s[s.RESOLVED=1]="RESOLVED",s[s.REJECTED=2]="REJECTED";class u{constructor(){this._resolver=(0,a.Tw)(),this._status=o.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=o.RESOLVED,this._cleanUp()}),(()=>{this._status=o.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===o.RESOLVED}isRejected(){return this._status===o.REJECTED}isFulfilled(){return this._status!==o.PENDING}abort(){this._resolver.reject((0,a.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,a.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()}),(t=>{this.isFulfilled()||this._allPromise!==r||(0,a.zf)(t)||this._resolver.reject(t)})),t.resolve()}}const p=t=>{let e=class extends t{constructor(...t){super(...t),this._promiseProps=new u,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then((()=>this)).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}};return e=(0,i._)([(0,n.$)("esri.core.Promise")],e),e};let d=class extends(p(l.A)){};d=(0,i._)([(0,n.$)("esri.core.Promise")],d),function(t){t.EsriPromiseMixin=p}(d||(d={}));const h=d},20655:(t,e,r)=>{r.d(e,{A:()=>G});var o=r(90237),s=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(74887),h=r(10107),y=r(56507),c=(r(44208),r(87811),r(36005)),m=r(40608),_=r(5443),v=r(73444);let f;var M=r(96360),g=r(16405),Z=r(69622);r(53966);let S=class extends Z.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,o._)([(0,h.MZ)()],S.prototype,"nextQueryParams",void 0),(0,o._)([(0,h.MZ)()],S.prototype,"queryParams",void 0),(0,o._)([(0,h.MZ)()],S.prototype,"results",void 0),(0,o._)([(0,h.MZ)()],S.prototype,"total",void 0),S=(0,o._)([(0,m.$)("esri.portal.PortalQueryResult")],S);const P=S;var O,w=r(41318),A=r(926);let C;const b={PortalGroup:()=>Promise.resolve({default:M.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:w.A})};let D=O=class extends(n.A.JSONSupportMixin(u.A)){constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=s.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){q.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)s.A.request.trustedServers.includes(e)||s.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,A.Jn)(this.url)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=w.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then((({default:e})=>{(0,d.Te)(t),C=e})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t))).then((t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==O.AUTH_MODE_AUTO&&this.authMode!==O.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),q.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)}));return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(6131),r.e(7251),r.e(812),r.e(9186),r.e(8463),r.e(554)]).then(r.bind(r,68611))).default;return t?t.map((t=>new e({id:t.id,url:t.url}))):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){const o=await this._fetchBasemaps3D(t,e);r.unshift(...o)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new g.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find((t=>"Web Scene"===t.type));return r?new C({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then((t=>t.categorySchema)):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new g.A({num:100,sortField:"title"});if(e?.length){const o=[];for(const t of e)o.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,t).then((t=>t.results))}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return f&&!f.destroyed||(f=new O),f}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const o=this.restUrl+"/portals/self",s={authMode:t,query:{culture:(0,v.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),e&&(s.query.default=!0),this.request(o,s)}queryPortal(t,e,r,o){const s=(0,y.dp)(g.A,e),i=e=>this.request(this.restUrl+t,{...s.toRequestOptions(this),...o}).then((t=>{const r=s.clone();return r.start=t.nextStart,new P({nextQueryParams:r,queryParams:s,total:t.total,results:O._resultsToTypedArray(e,{portal:this},t,o)})})).then((t=>Promise.all(t.results.map((e=>"function"==typeof e.when?e.when():t))).then((()=>t),(e=>((0,d.QP)(e),t)))));return r&&b[r]?b[r]().then((({default:t})=>((0,d.Te)(o),i(t)))):i()}signIn(){if(this.hasAPIKey)return this.load().then((()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")}));if(this.authMode===O.AUTH_MODE_ANONYMOUS||this.authMode===O.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate")))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate")))).then((t=>{t&&(this.sourceJSON=t,this.read(t))}));return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==O.AUTH_MODE_NO_PROMPT}).then((e=>t(e))):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then((t=>{const e=O._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map((e=>"function"==typeof e.when?e.when():t))).then((()=>e),(()=>e))}))}request(t,e={}){const r={f:"json",...e.query},{authMode:o=(this.authMode===O.AUTH_MODE_ANONYMOUS||this.authMode===O.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:s=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:o,body:s,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then((t=>t.data))}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new O({sourceJSON:t})}_getHelperService(t){const e=this.helperServices&&this.helperServices[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new g.A;r.query=t||(this.hasAPIKey?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const o=await this.queryGroups(r,e);if(!o.total)return[];const s=o.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=s.sortField||"name",r.sortOrder=s.sortOrder||"desc";const i=await s.queryItems(r,e);return i.total?i.results.filter((t=>"Web Map"===t.type)).map((t=>new C({portalItem:t}))):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];const o=new g.A({query:r,disableExtraQuery:!0}),s=await this.queryGroups(o,e);if(!s.total)return[];const i=s.results[0];o.num=100,o.query='type:"Web Scene"',o.sortField=i.sortField||"name",o.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(o,e);return l.total?l.results.filter((t=>"Web Scene"===t.type)).map((t=>new C({portalItem:t}))):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=C.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,o){let s;if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(s=s.map((r=>{const o=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof o.load&&o.load(i),o})))}else s=[];return s}};D.AUTH_MODE_ANONYMOUS="anonymous",D.AUTH_MODE_AUTO="auto",D.AUTH_MODE_IMMEDIATE="immediate",D.AUTH_MODE_NO_PROMPT="no-prompt",(0,o._)([(0,h.MZ)()],D.prototype,"access",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"allSSL",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"authMode",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"authorizedCrossOriginDomains",void 0),(0,o._)([(0,c.w)("authorizedCrossOriginDomains")],D.prototype,"readAuthorizedCrossOriginDomains",null),(0,o._)([(0,h.MZ)()],D.prototype,"basemapGalleryGroupQuery",void 0),(0,o._)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],D.prototype,"basemapGalleryGroupQuery3D",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"bingKey",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canListApps",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canListData",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canListPreProvisionedItems",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canProvisionDirectPurchase",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSearchPublic",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canShareBingPublic",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSharePublic",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSignInArcGIS",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSignInIDP",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"colorSetsGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"commentsEnabled",void 0),(0,o._)([(0,h.MZ)({type:Date})],D.prototype,"created",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"credential",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"culture",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"currentVersion",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"customBaseUrl",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"default3DBasemapQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"defaultBasemap",void 0),(0,o._)([(0,c.w)("defaultBasemap")],D.prototype,"readDefaultBasemap",null),(0,o._)([(0,h.MZ)()],D.prototype,"defaultDevBasemap",void 0),(0,o._)([(0,c.w)("defaultDevBasemap")],D.prototype,"readDefaultDevBasemap",null),(0,o._)([(0,h.MZ)({type:_.A})],D.prototype,"defaultExtent",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"defaultVectorBasemap",void 0),(0,o._)([(0,c.w)("defaultVectorBasemap")],D.prototype,"readDefaultVectorBasemap",null),(0,o._)([(0,h.MZ)()],D.prototype,"description",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"devBasemapGalleryGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"eueiEnabled",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"extraQuery",null),(0,o._)([(0,h.MZ)()],D.prototype,"featuredGroups",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"featuredItemsGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"galleryTemplatesGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"layoutGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"livingAtlasGroupQuery",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"hasAPIKey",null),(0,o._)([(0,h.MZ)()],D.prototype,"hasCategorySchema",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"hasClassificationSchema",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"helpBase",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"helperServices",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"helpMap",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"homePageFeaturedContent",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"homePageFeaturedContentCount",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"httpPort",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"httpsPort",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"id",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"ipCntryCode",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"isOrganization",null),(0,o._)([(0,h.MZ)()],D.prototype,"isPortal",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"isReadOnly",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"itemPageUrl",null),(0,o._)([(0,h.MZ)()],D.prototype,"layerTemplatesGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"maxTokenExpirationMinutes",void 0),(0,o._)([(0,h.MZ)({type:Date})],D.prototype,"modified",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"name",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"portalHostname",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"portalMode",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"portalProperties",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"region",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"recycleBinEnabled",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"restUrl",null),(0,o._)([(0,h.MZ)()],D.prototype,"rotatorPanels",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"showHomePageDescription",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"sourceJSON",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"staticImagesUrl",void 0),(0,o._)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],D.prototype,"stylesGroupQuery2d",void 0),(0,o._)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],D.prototype,"stylesGroupQuery3d",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"supportsHostedServices",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"symbolSetsGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"templatesGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"thumbnail",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"thumbnailUrl",null),(0,o._)([(0,h.MZ)()],D.prototype,"units",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"url",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"urlKey",void 0),(0,o._)([(0,c.w)("urlKey")],D.prototype,"readUrlKey",null),(0,o._)([(0,h.MZ)()],D.prototype,"user",void 0),(0,o._)([(0,c.w)("user")],D.prototype,"readUser",null),(0,o._)([(0,h.MZ)()],D.prototype,"use3dBasemaps",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"useDefault3dBasemap",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"useStandardizedQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"useVectorBasemaps",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"vectorBasemapGalleryGroupQuery",void 0),D=O=(0,o._)([(0,m.$)("esri.portal.Portal")],D);const G=D,q=new FinalizationRegistry((t=>{t.remove()}))},96360:(t,e,r)=>{r.d(e,{A:()=>h});var o,s=r(90237),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(44208),r(87811),r(40608)),p=r(16405);let d=o=class extends l.A{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then((e=>{const r=e.categorySchema||[];return r.some((t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source))?this._fetchCategorySchemaSet("LivingAtlas",t):r}))}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new o({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const o=this.portal;return parseFloat(o.currentVersion)>5?(r=r||new p.A,o.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),o.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then((t=>{const o=t.contentCategorySetsGroupQuery;if(o){const t=new p.A({disableExtraQuery:!0,num:1,query:o});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const o=r.results[0],s=new p.A({num:1,query:`typekeywords:"${t}"`});return o.queryItems(s,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((t=>t.total?t.results[0].fetchData("json",e).then((t=>{const e=t?.categorySchema;return e?.length?e:[]})):[]))}};(0,s._)([(0,a.MZ)()],d.prototype,"access",void 0),(0,s._)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"description",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"id",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,s._)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,s._)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s._)([(0,a.MZ)()],d.prototype,"title",void 0),(0,s._)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=o=(0,s._)([(0,u.$)("esri.portal.PortalGroup")],d);const h=d},16405:(t,e,r)=>{r.d(e,{A:()=>m});var o,s=r(90237),i=r(69622),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(40608)),p=r(5443),d=r(16930),h=r(28735);const y=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=o=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new o({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map((t=>Array.isArray(t)?JSON.stringify(t):t)));let o="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(o=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let s=this.query;!this.disableExtraQuery&&t.extraQuery&&(s="("+s+")"+t.extraQuery);const i={categories:r,bbox:o,q:s,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map((t=>y.toJSON(t.trim()))).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,s._)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,s._)([(0,n.MZ)({type:p.A})],c.prototype,"extent",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"num",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"query",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,s._)([(0,n.MZ)()],c.prototype,"start",void 0),c=o=(0,s._)([(0,u.$)("esri.portal.PortalQueryParams")],c);const m=c},41318:(t,e,r)=>{r.d(e,{A:()=>y});var o=r(90237),s=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let n=class extends i.A{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new s.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,o._)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,o._)([(0,l.MZ)()],n.prototype,"id",void 0),(0,o._)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,o._)([(0,l.MZ)()],n.prototype,"title",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,o._)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,o._)([(0,a.$)("esri.portal.PortalFolder")],n);const u=n;var p,d=r(96360);let h=p=class extends i.A{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.username}`:null}addItem(t){const e=t&&t.item,r=t?.data,o=t?.folder,s={method:"post"};e&&(s.query=e.createPostQuery(),null!=r&&("string"==typeof r?s.query.text=r:"object"==typeof r&&(s.query.text=JSON.stringify(r))));let i=this.userContentUrl;return o&&(i+="/"+("string"==typeof o?o:o.id)),this.portal.request(i+"/addItem",s).then((t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load())))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const o=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:o}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",o=[],i=t.map((t=>t.id));if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find((t=>e.itemId===t.id)),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new s.A("portal:delete-item-failed",e.error.message,e.error)),o.push({item:r,success:i,error:l})}}return o}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((t=>{let e;return e=t&&t.folders?t.folders.map((t=>{const e=u.fromJSON(t);return e.portal=this.portal,e})):[],e}))}fetchGroups(){return this.portal.request(this.url??"").then((t=>{let e;return e=t&&t.groups?t.groups.map((t=>{const e=d.A.fromJSON(t);return e.portal=this.portal,e})):[],e}))}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:o}=await r.e(812).then(r.bind(r,80812)),s={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:s});let l;return i?.items?(l=i.items.map((t=>{const e=o.fromJSON(t);return e.portal=this.portal,e})),await Promise.all(l.map((t=>t.load()))),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then((t=>t.tags))}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new d.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new s.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,o=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:o})}toJSON(){throw new s.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new p({sourceJSON:t});return e.read(t),e}};(0,o._)([(0,l.MZ)()],h.prototype,"access",void 0),(0,o._)([(0,l.MZ)({type:Date})],h.prototype,"created",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"culture",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"description",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"email",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"favGroupId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"fullName",void 0),(0,o._)([(0,l.MZ)({type:Date})],h.prototype,"modified",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"orgId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"portal",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"preferredView",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"privileges",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"region",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"role",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"roleId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"sourceJSON",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"thumbnail",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],h.prototype,"thumbnailUrl",null),(0,o._)([(0,l.MZ)()],h.prototype,"units",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],h.prototype,"userContentUrl",null),(0,o._)([(0,l.MZ)({readOnly:!0})],h.prototype,"url",null),(0,o._)([(0,l.MZ)()],h.prototype,"username",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"userLicenseTypeId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"userType",void 0),h=p=(0,o._)([(0,a.$)("esri.portal.PortalUser")],h);const y=h}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5740],{46130:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach((({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)}))}},76553:(e,t,r)=>{function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},33359:(e,t,r)=>{r.d(t,{save:()=>g,saveAs:()=>O});var a=r(4576),n=(r(44208),r(49186),r(71530)),o=r(60694),i=r(23154),s=r(83531),l=r(10407);const u="Feature Service",c="feature-layer-utils",p=`${c}-save`,d=`${c}-save-as`;function f(e){return{isValid:(0,s.W_)(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function m(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)a.isTable?r.push(n):t.push(n);return{layers:t,tables:r}}function y(e){return m([e])}async function w(e,t){return/\/\d+\/?$/.test(e.url)?y(t[0]):async function(e,t){if(e.reverse(),!t)return m(e);const a=await async function(e,t){let a=await e.fetchData("json");if(function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(a))return a;a||={},function(e){e.layers||=[],e.tables||=[]}(a);const{layer:{url:n,customParameters:o,apiKey:s}}=t[0];return await async function(e,t,a){const{url:n,customParameters:o,apiKey:s}=t,{serviceJSON:l,layersJSON:u}=await(0,i.Q)(n,{customParameters:o,apiKey:s}),c=b(e.layers,l.layers,a),p=b(e.tables,l.tables,a);e.layers=c.itemResources,e.tables=p.itemResources;const d=[...c.added,...p.added],f=u?[...u.layers,...u.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=[];e.forEach((({type:e})=>{switch((0,i.K)(e)){case"CatalogLayer":t.push(Promise.all([r.e(893),r.e(2593),r.e(4196)]).then(r.bind(r,79003)).then((e=>e.default)));break;case"FeatureLayer":t.push(Promise.all([r.e(3029),r.e(3600),r.e(9340)]).then(r.bind(r,13600)).then((e=>e.default)));break;case"OrientedImageryLayer":t.push(Promise.all([r.e(3029),r.e(3600),r.e(8330)]).then(r.bind(r,97927)).then((e=>e.default)))}}));const a=await Promise.all(t),n=new Map;return e.forEach((({type:e},t)=>{n.set(e,a[t])})),n}(t),s=t.map((({id:e,type:t})=>new(o.get(t))({url:a,layerId:e,sourceJSON:n.find((({id:t})=>t===e))})));await Promise.allSettled(s.map((e=>e.load()))),s.forEach((t=>{const{layerId:r,loaded:a,defaultPopupTemplate:n}=t;if(!a||null==n)return;const o={id:r,popupInfo:n.toJSON()};"ArcGISFeatureLayer"!==t.operationalLayerType&&(o.layerType=t.operationalLayerType),I(t,o,e)}))}(e,d,n,f)}(a,{url:n??"",customParameters:o,apiKey:s},t.map((e=>e.layer.layerId))),a}(t,e);for(const t of e)I(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}h(e.layers,r),h(e.tables,a)}(a,e),a}(t,e)}function h(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(v),t.slice().sort(v))&&e.sort(((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0}))}function v(e,t){return e<t?-1:e>t?1:0}function b(e,t,r){const n=(0,a.iv)(e,t,((e,t)=>e.id===t.id));e=e.filter((e=>!n.removed.some((t=>t.id===e.id))));const o=n.added;return o.forEach((({id:t})=>{e.push({id:t})})),{itemResources:e,added:o.filter((({id:e})=>!r.includes(e)))}}function I(e,t,r){e.isTable?A(r.tables,t):A(r.layers,t)}function A(e,t){const r=e.findIndex((({id:e})=>e===t.id));-1===r?e.push(t):e[r]=t}async function P(e,t,r){!function(e,t){const r=e.layers.some((e=>"OrientedImageryLayer"===e.layerType));(0,l.Sm)(t,l.mm.ORIENTED_IMAGERY_LAYER,r)}(r,t)}async function S(e,t){const{url:r,layerId:a,title:n,fullExtent:i,isTable:s}=e,u=(0,o.qg)(r);t.url=("FeatureServer"===u?.serverType?r:`${r}/${a}`)??null,t.title||=n,t.extent=null,s||null==i||(t.extent=await(0,l.sQ)(i)),(0,l.OM)(t,l.mm.METADATA),(0,l.OM)(t,l.mm.MULTI_LAYER),(0,l.LG)(t,l.mm.SINGLE_LAYER),(0,l.Sm)(t,l.mm.TABLE,s),function(e,t){const r=e.some((e=>"oriented-imagery"===e.type));(0,l.Sm)(t,l.mm.ORIENTED_IMAGERY_LAYER,r)}([e],t)}async function g(e,t){return(0,n.UN)({layer:e,itemType:u,validateLayer:f,createItemData:(e,t)=>w(t,[e]),errorNamePrefix:p,setItemProperties:P},t)}async function O(e,t,r){return(0,n.Uh)({layer:e,itemType:u,validateLayer:f,createItemData:(e,t)=>Promise.resolve(y(e)),errorNamePrefix:d,newItem:t,setItemProperties:S},r)}},71530:(e,t,r)=>{r.d(t,{UN:()=>v,Uh:()=>b});var a=r(49186),n=r(46130),o=r(20655),i=r(80812),s=r(88788),l=r(10407),u=r(26121);async function c(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function p(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function d(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:i}=e,s=[r];if(n&&s.push(n),!s.includes(t.type)){const e=s.map((e=>`'${e}'`)).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:i})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function f(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,p(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,p(t,"cannot be saved to a portal item that does not exist or is inaccessible"));d({...e,item:n})}function m(e){const{newItem:t,itemType:r}=e;let a=i.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),d({...e,item:a}),a}function y(e){return(0,s.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.c)(t,{errorName:"layer-write:unsupported"},r),a}function h(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter(((e,t,r)=>r.indexOf(e)===t)))}async function v(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:i,saveResources:s,supplementalUnsupportedErrors:l}=e;await c(e),f(e);const u=r.portalItem,p=o?o(u):y(u),d=await w(r,p,{...t,supplementalUnsupportedErrors:l}),m=await a({layer:r,layerJSON:d},u);return await(i?.(r,u,m)),h(u),await u.update({data:m}),(0,n.v)(p),await(s?.(u,p)),u}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:i,saveResources:s,supplementalUnsupportedErrors:l}=e;await c(e);const u=m(e),p=o?o(u):y(u),d=await w(r,p,{...t,supplementalUnsupportedErrors:l}),f=await a({layer:r,layerJSON:d},u);return await i(r,u,f),h(u),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,f,t),r.portalItem=u,(0,n.v)(p),await(s?.(u,p)),u}},88788:(e,t,r)=>{r.d(t,{m:()=>i,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...s(e,t),readResourcePaths:[]}}function i(e,t,r){const n=(0,a.An)(e.itemUrl);return{...s(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function s(e,t){return{origin:t,url:(0,a.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},26121:(e,t,r)=>{r.d(t,{c:()=>i,d:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}const o=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function i(e,t,r){let n=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new a.A(e,t,r)));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map((e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`))))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter((({name:e})=>!(o.has(e)||t.includes(e))))),a&&(n=n.filter((e=>"web-document-write:property-required"!==e.name)))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}}}]);