@arcgis/core 4.34.0-next.1 → 4.34.0-next.3

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 (391) hide show
  1. package/Map.js +1 -1
  2. package/WebScene.js +1 -1
  3. package/analysis/DimensionAnalysis.js +1 -1
  4. package/analysis/LineOfSightAnalysis.js +1 -1
  5. package/analysis/ViewshedAnalysis.js +1 -1
  6. package/arcade/Voxel.js +1 -1
  7. package/arcade/functions/knowledgegraph.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/{253bcc3cc7bc4c2dc6ea.js → 03db109e9b695528c35d.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{fc61d02286b6ff5447cc.js → 09da6b3085fc84cd69d5.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{bf3555f91492a1a3b613.js → 09f76ca9b47b465c934f.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{42d9989b2aad3ac28d4d.js → 0d78fc2c2bc1152f84db.js} +1 -1
  13. package/assets/esri/core/workers/chunks/0fd826e7f64a37aaaa1e.js +1 -0
  14. package/assets/esri/core/workers/chunks/{ead5d4e271effc04def3.js → 1415d4e2f5f3193be004.js} +1 -1
  15. package/assets/esri/core/workers/chunks/17e43a050fbf8dc87588.js +1 -0
  16. package/assets/esri/core/workers/chunks/1ee6e9a88f0676032e91.js +1 -0
  17. package/assets/esri/core/workers/chunks/{1c86aa3802d9ae0230ae.js → 28e31ac00dc95a1318e9.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{ece68a25651ef03fc95d.js → 342f61e784c9364a493b.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{0d23610475c85385fbff.js → 355e6bcdb401ada71f39.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{bba6d7615d8f3862fe70.js → 36f0046ff6b46adce7b7.js} +1 -1
  21. package/assets/esri/core/workers/chunks/3adcf78ed1e7cd82666d.js +1 -0
  22. package/assets/esri/core/workers/chunks/{b0522dffa5600345c07e.js → 3e85e63148b5e93d3074.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{d2ebb72a43d995ed368a.js → 42bb9bb6fe44a47d9b81.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{6ee41e9c92ed8ba4c763.js → 4dd0a5f327fa5fc7249d.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{36b0d6b4089a96475201.js → 51ba7345c31e6eb79060.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{66e79aa02b3aa12b3778.js → 5200be8bce60fa831026.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{6b23ca6570357f9fb724.js → 52a57106a41b8c9483d7.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{fa63b0f7fa799cb2f81d.js → 562800b0af52a38a311b.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{585c7b485c42555ec554.js → 61f9747c960d959b571b.js} +2 -2
  30. package/assets/esri/core/workers/chunks/{9fc35ec8185beba96715.js → 632d1a1287dde980479e.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{1d043965dcdc11b3aeaa.js → 63852887b3f07d50f7c9.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{32ee2708edd307954125.js → 7174150bf7595c22f976.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{e77371ddbaf4b2d9be8d.js → 74c0db9e3a62e9839b23.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{6ecc3a3737ae8622dfa4.js → 7b12607633bbdc318936.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{06eb4832b6c86744e52e.js → 8008f5479f4d16964088.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{d839a237d5edc243d645.js → 8aa8f9986b966ccb64e2.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{67338948e470c1251d8a.js → 8d14e957219364a81d5f.js} +3 -3
  38. package/assets/esri/core/workers/chunks/92a5dccb328229a9336b.js +1 -0
  39. package/assets/esri/core/workers/chunks/{631205dc4d73d49ec9ed.js → 95507ff0a243e451b99e.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{1051a5a57b2fb843a555.js → 9cd55043f3d789f41815.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{40f54c4f8ae63c6f3df9.js → a32dcd5bc4680374d30c.js} +1 -1
  42. package/assets/esri/core/workers/chunks/ad4f65d764654c70a117.js +1 -0
  43. package/assets/esri/core/workers/chunks/b2a6afa0cd537805b4b8.js +1 -0
  44. package/assets/esri/core/workers/chunks/{ac2607f1e8cd2e99907c.js → b70f65ccee01d48a610e.js} +2 -2
  45. package/assets/esri/core/workers/chunks/{571252c9822d73cf7b01.js → b845586219f284a215b2.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{d7b640f7a181bd26c7c7.js → bac5e1d50b69f0d94694.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{9ca480eb8b2312381ccf.js → bcadcb709e622f2aaaf9.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{c16e0da7a19310c71e8b.js → c6cd8784a3e222eb2d4a.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{97c148adf0347c69a79c.js → c9604f8df909ec4fad46.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{b87fec1753f164c845c5.js → ca76950d81ab4ebb65e1.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{faa40ef04604c7cce706.js → cb63ea6a53d3c2fc3179.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{54f4a1131f99468db076.js → d33a5d79f2163ad62b1d.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{55f087bca75c3f2a4515.js → d3c0d7799c92c6f0e7d3.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{ca60b34c3e1ed2ff5934.js → dd2b316baae02bbdddac.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{e3c1aea34ece8336dae1.js → e9aa1d9ded8a52a40c57.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{80b596496800e8d60eb8.js → ed75e0962358523f4439.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{0cf979a093e9744d1e80.js → ef7955a2509be0f03ca2.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{b5d68d8460b7c15001dd.js → f1c6df5cf2ccb6ac47a1.js} +1 -1
  59. package/assets/esri/core/workers/chunks/f2aa8090827086c62dde.js +1 -0
  60. package/assets/esri/core/workers/chunks/{523046e04679e301797d.js → f3d97a4c4f433adbdab5.js} +1 -1
  61. package/assets/esri/core/workers/chunks/fd4c020297badcb81947.js +1 -0
  62. package/assets/esri/core/workers/chunks/{9a06476b834584d00d5c.js → feaf79b69d2e2a1f2aa2.js} +1 -1
  63. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  64. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  65. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  66. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  67. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  68. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  69. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  70. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  71. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  72. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  73. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  74. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  75. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  76. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  77. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  78. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  79. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  80. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  81. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  82. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  83. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  84. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  85. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  86. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  87. package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
  88. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  89. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  90. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  91. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  92. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  93. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  94. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  95. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  96. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  97. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  98. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  99. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  100. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  101. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  102. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  103. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  104. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
  105. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  106. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  107. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  108. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  109. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  110. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  111. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  112. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  113. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
  114. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  115. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  116. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  117. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  118. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  119. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  120. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  121. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  122. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  123. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  124. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  125. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  126. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  127. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  128. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
  129. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  130. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  131. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  132. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  133. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  134. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  135. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  136. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  137. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  138. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  139. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  140. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  141. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  142. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  143. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  144. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  145. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  146. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  147. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  148. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  149. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  150. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  151. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  152. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  153. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  154. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  155. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  156. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  157. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  158. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  159. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  160. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  161. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  162. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  163. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  164. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  165. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  166. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  167. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  168. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  169. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  170. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  171. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  172. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  173. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  174. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  175. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  176. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  177. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  178. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  179. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  180. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  181. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  182. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  183. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  184. package/chunks/FocusAreaColor.glsl.js +10 -8
  185. package/chunks/Laserlines.glsl.js +2 -2
  186. package/chunks/cameraUtilsSpherical.js +1 -1
  187. package/chunks/persistableUrlUtils.js +1 -1
  188. package/chunks/sphere.js +1 -1
  189. package/chunks/vec42.js +1 -1
  190. package/config.js +1 -1
  191. package/core/accessorSupport/decorators/persistable.js +1 -1
  192. package/core/accessorSupport/ensureType.js +1 -1
  193. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  194. package/core/libs/gl-matrix-2/math/vec4.js +1 -1
  195. package/effects/FocusArea.js +5 -0
  196. package/effects/FocusAreaOutline.js +5 -0
  197. package/effects/FocusAreas.js +5 -0
  198. package/geometry/projection/projectPointToVector.js +1 -1
  199. package/geometry/projection/projectVectorToPoint.js +1 -1
  200. package/geometry/projection/projectVectorToVector.js +1 -1
  201. package/geometry/projection.js +1 -1
  202. package/geometry/projectionUtils.js +5 -0
  203. package/geometry/support/frustum.js +1 -1
  204. package/geometry/support/meshUtils/elevation.js +1 -1
  205. package/geometry/support/meshUtils/extent.js +1 -1
  206. package/geometry/support/sphere.js +1 -1
  207. package/interfaces.d.ts +171 -68
  208. package/kernel.js +1 -1
  209. package/layers/MapNotesLayer.js +1 -1
  210. package/layers/RouteLayer.js +1 -1
  211. package/layers/VideoLayer.js +1 -1
  212. package/layers/graphics/applyEditsUtils.js +1 -1
  213. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  214. package/layers/graphics/data/QueryEngine.js +1 -1
  215. package/layers/graphics/data/projectionSupport.js +1 -1
  216. package/layers/graphics/data/queryUtils.js +1 -1
  217. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  218. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  219. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  220. package/layers/ogc/wfsUtils.js +1 -1
  221. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  222. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  223. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  224. package/layers/orientedImagery/transformations/utils.js +1 -1
  225. package/layers/support/ControlPointsGeoreference.js +1 -1
  226. package/layers/support/CornersGeoreference.js +1 -1
  227. package/layers/support/ElevationQuery.js +1 -1
  228. package/layers/support/ExtentAndRotationGeoreference.js +1 -1
  229. package/layers/support/GeoreferenceBase.js +1 -1
  230. package/layers/support/LocalMediaElementSource.js +1 -1
  231. package/layers/support/MediaElementView.js +1 -1
  232. package/layers/support/PolygonCollection.js +1 -1
  233. package/layers/support/SceneModification.js +1 -1
  234. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  235. package/layers/video/VideoController.js +1 -1
  236. package/networks/support/UNTraceConfiguration.js +1 -1
  237. package/networks/support/typeUtils.js +1 -1
  238. package/package.json +1 -1
  239. package/portal/schemas/definitions.js +1 -1
  240. package/portal/schemas/webScene.js +1 -1
  241. package/portal/support/portalItemUtils.js +1 -1
  242. package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
  243. package/rest/knowledgeGraph/GraphAddFieldIndexResult.js +5 -0
  244. package/rest/knowledgeGraph/GraphAddNamedTypesResult.js +1 -1
  245. package/rest/knowledgeGraph/GraphAddPropertyResult.js +1 -1
  246. package/rest/knowledgeGraph/GraphDataModelOperationResult.js +5 -0
  247. package/rest/knowledgeGraph/GraphDeleteFieldIndexResult.js +5 -0
  248. package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.js +1 -1
  249. package/rest/knowledgeGraph/GraphDeletePropertyResult.js +1 -1
  250. package/rest/knowledgeGraph/GraphUpdateNamedTypesResult.js +1 -1
  251. package/rest/knowledgeGraph/GraphUpdatePropertyResult.js +1 -1
  252. package/rest/knowledgeGraph/GraphUpdateSearchIndexResult.js +1 -1
  253. package/rest/knowledgeGraph/wasmInterface/updateToWasmEncodedFactories.js +1 -1
  254. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelChangeResponseFactories.js +1 -1
  255. package/rest/knowledgeGraphService.js +1 -1
  256. package/rest/networks/support/CircuitPath.js +5 -0
  257. package/rest/networks/support/CircuitPathConnectivityElement.js +5 -0
  258. package/rest/networks/support/TraceLocation.js +1 -1
  259. package/rest/networks/support/TraceResult.js +1 -1
  260. package/smartMapping/renderers/pieChart.js +1 -1
  261. package/smartMapping/renderers/predominance.js +1 -1
  262. package/smartMapping/renderers/size.js +1 -1
  263. package/smartMapping/renderers/support/rendererUtils.js +1 -1
  264. package/smartMapping/renderers/support/spikeUtils.d.ts +4 -0
  265. package/smartMapping/renderers/support/spikeUtils.js +1 -1
  266. package/smartMapping/statistics/histogram.js +1 -1
  267. package/smartMapping/statistics/summaryStatistics.js +1 -1
  268. package/support/persistableUrlUtils.js +1 -1
  269. package/support/revision.js +1 -1
  270. package/views/2d/ViewStateManager.js +1 -1
  271. package/views/2d/constraints/GeometryConstraint.js +1 -1
  272. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  273. package/views/2d/grid/GridView2D.js +1 -1
  274. package/views/2d/interactive/editingTools/ControlPointsTransformTool.js +1 -1
  275. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  276. package/views/2d/layers/KMLLayerView2D.js +1 -1
  277. package/views/2d/layers/VideoLayerView2D.js +1 -1
  278. package/views/2d/viewpointUtils.js +1 -1
  279. package/views/3d/FocusAreasView.js +1 -1
  280. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
  281. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  282. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  283. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  284. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  285. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  286. package/views/3d/analysis/support/projectionUtils.js +1 -1
  287. package/views/3d/camera/constraintUtils/distance.js +1 -1
  288. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  289. package/views/3d/environment/EnvironmentManager.js +1 -1
  290. package/views/3d/interactive/Manipulator3D.js +1 -1
  291. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  292. package/views/3d/interactive/editingTools/media/MediaElementControllerControlPoints.js +1 -1
  293. package/views/3d/interactive/editingTools/media/MediaElementControllerShape.js +1 -1
  294. package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
  295. package/views/3d/interactive/visualElements/DrapedVisualElementResources.js +1 -1
  296. package/views/3d/interactive/visualElements/support/Segment.js +1 -1
  297. package/views/3d/layers/FeatureLayerView3D.js +1 -1
  298. package/views/3d/layers/FlowSubView3D.js +1 -1
  299. package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
  300. package/views/3d/layers/SceneLayerWorker.js +1 -1
  301. package/views/3d/layers/TileLayerView3D.js +1 -1
  302. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  303. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  304. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  305. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  306. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  307. package/views/3d/layers/graphics/focusAreaStyle.js +1 -1
  308. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  309. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  310. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  311. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  312. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  313. package/views/3d/state/NearFarHeuristic.js +1 -1
  314. package/views/3d/state/ViewStateManager.js +1 -1
  315. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  316. package/views/3d/state/utils/navigationUtils.js +1 -1
  317. package/views/3d/support/cameraUtils.js +1 -1
  318. package/views/3d/support/geometryUtils/sphere.js +1 -1
  319. package/views/3d/support/sunUtils.js +1 -1
  320. package/views/3d/support/viewpointUtils.js +1 -1
  321. package/views/3d/terrain/ExtentHelper.js +1 -1
  322. package/views/3d/terrain/OverlayManager.js +1 -1
  323. package/views/3d/terrain/OverlayRenderer.js +1 -1
  324. package/views/3d/webgl/RenderCamera.js +1 -1
  325. package/views/3d/webgl/RenderNode.js +1 -1
  326. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  327. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  328. package/views/3d/webgl-engine/effects/focusArea/FocusAreaEffect.js +5 -0
  329. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  330. package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +5 -0
  331. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  332. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechniqueConfiguration.js +1 -1
  333. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  334. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  335. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  336. package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
  337. package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +1 -1
  338. package/views/SceneView.js +1 -1
  339. package/views/VideoView.js +1 -1
  340. package/views/View2D.js +1 -1
  341. package/views/interactive/GraphicManipulator.js +1 -1
  342. package/views/interactive/dragEventPipeline.js +1 -1
  343. package/views/interactive/snapping/GridSnappingEngine.js +1 -1
  344. package/views/interactive/snapping/SnappingManager.js +1 -1
  345. package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
  346. package/views/layers/SceneLayerView.js +1 -1
  347. package/views/support/projectionUtils.js +1 -1
  348. package/views/webgl/RenderingContext.js +1 -1
  349. package/views/webgl/Texture.js +1 -1
  350. package/webscene/Slide.js +1 -1
  351. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  352. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  353. package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
  354. package/widgets/CoordinateConversion/support/Format.js +1 -1
  355. package/widgets/Daylight/DaylightViewModel.js +1 -1
  356. package/widgets/Editor/EditorViewModel.js +1 -1
  357. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  358. package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
  359. package/widgets/Editor/UpdateWorkflow.js +1 -1
  360. package/widgets/Editor/Upload.js +1 -1
  361. package/widgets/Editor/components/Notices.js +1 -1
  362. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  363. package/widgets/Editor/workflowUtils.js +1 -1
  364. package/widgets/Editor.js +1 -1
  365. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  366. package/widgets/FeatureTable/FieldColumn.js +1 -1
  367. package/widgets/FeatureTable/Grid/EditorColumn.js +1 -1
  368. package/widgets/Features/FeaturesViewModel.js +1 -1
  369. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  370. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  371. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  372. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  373. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  374. package/widgets/Sketch/SketchViewModel.js +1 -1
  375. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  376. package/widgets/support/AnchorElementViewModel.js +1 -1
  377. package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
  378. package/widgets/support/tests.js +1 -1
  379. package/assets/esri/core/workers/chunks/094e8aae6dada24c8115.js +0 -1
  380. package/assets/esri/core/workers/chunks/24327d01cb2c5c55a4b7.js +0 -1
  381. package/assets/esri/core/workers/chunks/2b1486a466760d2152f5.js +0 -1
  382. package/assets/esri/core/workers/chunks/3a743653b786b010a57f.js +0 -1
  383. package/assets/esri/core/workers/chunks/62b2d3720693c93a60f2.js +0 -1
  384. package/assets/esri/core/workers/chunks/6d1e1a4fcb90ea8b6848.js +0 -1
  385. package/assets/esri/core/workers/chunks/87fc7b6c3e2d4f7775e2.js +0 -1
  386. package/assets/esri/core/workers/chunks/b06cb23048c32940f5de.js +0 -1
  387. package/assets/esri/core/workers/chunks/d3d98ea5b5e56fc60a31.js +0 -1
  388. package/views/FocusArea.js +0 -5
  389. package/views/FocusAreaOutline.js +0 -5
  390. package/views/FocusAreaOutlineItem.js +0 -5
  391. package/views/FocusAreas.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1389],{4146:(e,t,i)=>{i.d(t,{A:()=>b});var r=i(90237),n=i(78888),s=i(49186),o=i(65529),l=i(4902),a=i(92474),u=i(53966),c=i(74887),p=i(84952),d=i(10107),h=(i(44208),i(87811),i(40608)),y=i(5443),m=i(16930),f=i(92602),g=i(64272);let v=0,b=class extends(o.A.EventedMixin(l.A.IdentifiableMixin(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.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=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await i.e(5613).then(i.bind(i,45613));try{return await r(t)}catch(e){const i=t?.portalItem,r=i?.id||"unset",n=i?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.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,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,r._)([(0,d.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r._)([(0,d.MZ)({type:m.A})],b.prototype,"spatialReference",void 0),(0,r._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,r._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,r._)([(0,d.MZ)({type:g.T})],b.prototype,"visibilityTimeExtent",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r._)([(0,h.$)("esri.layers.Layer")],b)},8303:(e,t,i)=>{i.d(t,{A:()=>_});var r=i(90237),n=i(92602),s=i(70333),o=i(78888),l=i(60999),a=i(49186),u=i(53966),c=i(97768),p=i(74887),d=i(84952),h=i(10107),y=(i(44208),i(87811),i(36005)),m=i(40608),f=i(43937),g=i(77548),v=i(20655),b=i(80812),M=i(41318),S=i(10407);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.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,i){if(t.itemId)return new b.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||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,p.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!s.id?.findCredential(this.url),n=e===i.id;if(n&&i.portal.user)return this._getUserPrivileges(i,r);let o,l;if(n)o=i.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(n?await i.reload():(i=new b.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,S.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const i=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(r))return n.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?M.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.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,r._)([(0,h.MZ)({type:b.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,m.$)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},16183:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$e});var r=i(90237),n=i(13874),s=i(5503),o=i(49186),l=i(53966),a=i(92071),u=i(74887),c=i(10107),p=i(56507),d=(i(44208),i(87811),i(36005)),h=i(40608),y=i(38954),m=i(51850),f=i(5443),g=i(4146),v=i(52136),b=i(18768),M=i(69208),S=i(16131),_=i(8303),w=i(25036),x=i(58947),A=i(60694),Z=i(10873),j=i(20437),I=i(95466),T=i(96184),N=i(69540),V=i(69052),F=i(25482),R=i(87024),z=i(67026),P=i(82534),O=i(34304);const E=(0,m.vt)(),U=(0,P.vt)(),L=(0,P.vt)(),D=(0,P.vt)(),q=(0,m.fA)(0,0,1),$=(0,m.fA)(0,1,0),C=(0,m.fA)(1,0,0);function B(e){(0,y.c)(E,e),(0,y.n)(E,E);const t=Math.atan2(E[1],E[0]),i=(0,z.x8)((0,P.vt)(),q,-t);(0,y.v)(E,E,i);const r=-1*Math.atan2(E[2],E[0]);return[(0,O.ct)(t)+270,(0,O.ct)(r)+90]}function k(e,t){return(0,z.x8)(L,q,(0,O.DF)(e-270)),(0,z.x8)(D,$,(0,O.DF)(t-90)),(0,z.lw)(U,L,D),(0,y.c)(E,C),(0,y.v)(E,E,U),(0,y.n)(E,E),[E[0],E[1],E[2]]}var H=i(79901);let G=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],G.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],G.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],G.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],G.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],G.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],G.prototype,"point",void 0),G=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSlice")],G);var J=i(97159);let K=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}};(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],K.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{origins:{service:{read:J.r},"web-scene":{write:{isRequired:!0}}},write:!0}}),(0,R.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],K.prototype,"href",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],K.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],K.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],K.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"point",void 0),(0,r._)([(0,c.MZ)({type:[p.jz],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"sizeInPixel",void 0),(0,r._)([(0,c.MZ)({type:[G],json:{write:!0}})],K.prototype,"slices",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{default:0,write:!0}})],K.prototype,"timeId",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"variableId",void 0),K=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSection")],K);let W=class extends F.A{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"diffuseFactor",void 0),(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"specularFactor",void 0),W=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSimpleShading")],W);let Y=class extends F.A{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,r._)([(0,c.MZ)({type:["discrete","continuous"],json:{write:!0}})],Y.prototype,"continuity",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Y.prototype,"hasNoData",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"noData",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"offset",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"scale",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"type",void 0),Y=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelFormat")],Y);const Q=Y;let X=class extends F.A{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"name",void 0),(0,r._)([(0,c.MZ)({type:Q,json:{write:!0}})],X.prototype,"originalFormat",void 0),(0,r._)([(0,c.MZ)({type:Q,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"renderingFormat",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],X.prototype,"unit",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],X.prototype,"volumeId",void 0),(0,r._)([(0,c.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],X.prototype,"type",void 0),X=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVariable")],X);const ee=X;var te=i(4718),ie=i(68197);let re=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],re.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"value",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],re.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],re.prototype,"colorLocked",void 0),re=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelIsosurface")],re);var ne=i(62885),se=i(34727);let oe=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"position",void 0),oe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelColorStop")],oe);const le=oe;let ae=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,r._)([(0,c.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ae.prototype,"opacity",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ae.prototype,"position",void 0),ae=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelOpacityStop")],ae);const ue=ae;let ce=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],ce.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ce.prototype,"range",void 0),ce=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelRangeFilter")],ce);const pe=ce;var de,he;(he=de||(de={}))[he.Color=1]="Color",he[he.Alpha=2]="Alpha",he[he.Both=3]="Both";let ye=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(s.A.ofType(le)),this.opacityStops=new(s.A.ofType(ue))}set colorStops(e){this._set("colorStops",(0,ne.V)(e,this._get("colorStops"),s.A.ofType(le)))}set opacityStops(e){this._set("opacityStops",(0,ne.V)(e,this._get("opacityStops"),s.A.ofType(ue)))}getPreviousNext(e,t,i){let r=e;for(;--r>0&&t[r].type!==i&&t[r].type!==de.Both;);let n=e;const s=t.length;for(;++n<s&&t[n].type!==i&&t[n].type!==de.Both;);return[r,n]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],i=[];for(const t of this.colorStops){if(!t.color)return e;i.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:de.Color})}if(0===this.opacityStops.length)for(const e of i)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,se.qE)(e.position,0,1),r=Math.round(255*(0,se.qE)(1-e.opacity,0,1));let n=!1;for(const e of i)if(e.type===de.Color&&Math.abs(e.position-t)<1e-5){e.color.a=r,e.type=de.Both,n=!0;break}n||i.push({color:{r:0,g:0,b:0,a:r},position:e.position,type:de.Alpha})}i.sort(((e,t)=>e.position<t.position?-1:1));const e=i.length;for(let t=0;t<e;++t){const r=i[t];if(r.type!==de.Both)if(r.type===de.Color){const[n,s]=this.getPreviousNext(t,i,de.Alpha);if(-1!==n&&s!==e){const e=(r.position-i[n].position)/(i[s].position-i[n].position);r.color.a=Math.round((0,se.Cc)(i[n].color.a,i[s].color.a,e))}else r.color.a=-1!==n?i[n].color.a:i[s].color.a}else{const[n,s]=this.getPreviousNext(t,i,de.Color);if(-1!==n&&s!==e){const e=(r.position-i[n].position)/(i[s].position-i[n].position),t=i[n].color,o=i[s].color;fe.forEach((i=>{r.color[i]=Math.round((0,se.Cc)(t[i],o[i],e))}))}else-1!==n?fe.forEach((e=>{r.color[e]=i[n].color[e]})):fe.forEach((e=>{r.color[e]=i[s].color[e]}))}}for(const e of i)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let r=0,n=1;for(let i=0;i<this._colorMapSize;++i){const s=i/this._colorMapSize;for(;s>t[n].position;)r=n++;const o=(s-t[r].position)/(t[n].position-t[r].position),l=t[r].color,a=t[n].color,u=new ie.A;fe.forEach((e=>{u[e]=Math.round((0,se.Cc)(l[e],a[e],o))})),u.a=(0,se.qE)(1-(0,se.Cc)(l.a,a.a,o)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const i=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||i.length<256)return null;let r=this.stretchRange[0],n=this.stretchRange[1];if(r>n){const e=r;r=n,n=e}e=(0,se.qE)(e,r,n);const s=i[Math.round((e-r)/(n-r)*(this._colorMapSize-1))].clone();return t||(s.a=1),s}};(0,r._)([(0,c.MZ)({type:["linear","nearest"],json:{write:!0}})],ye.prototype,"interpolation",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ye.prototype,"stretchRange",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(le),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ye.prototype,"colorStops",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(ue),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ye.prototype,"opacityStops",null),(0,r._)([(0,c.MZ)({type:pe,json:{write:!0}})],ye.prototype,"rangeFilter",void 0),(0,r._)([(0,c.MZ)({type:[ie.A],clonable:!1,json:{read:!1}})],ye.prototype,"rasterizedTransferFunction",null),ye=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelTransferFunctionStyle")],ye);const me=ye,fe=["r","g","b"];let ge=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};var ve;(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ge.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],ge.prototype,"value",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ge.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"label",void 0),ge=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelUniqueValue")],ge);let be=ve=class extends F.A{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(s.A.ofType(ge)),this.isosurfaces=new(s.A.ofType(re))}clone(){return new ve({variableId:this.variableId,label:this.label,transferFunction:(0,te.o8)(this.transferFunction),uniqueValues:(0,te.o8)(this.uniqueValues),isosurfaces:(0,te.o8)(this.isosurfaces)})}};(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],be.prototype,"variableId",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],be.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:me,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],be.prototype,"transferFunction",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(ge),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],be.prototype,"uniqueValues",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(re),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],be.prototype,"isosurfaces",void 0),be=ve=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVariableStyle")],be);var Me=i(88930),Se=i(86738),_e=i(16930),we=i(21325);function xe(e){const t=/^(days?|hours?|minutes?|seconds?|d|h|m|s) since (\d{1,4})-(\d{1,2})-(\d{1,2})[ |T](\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[\s|Z]?(([+|\-|\s?])(\d{1,2}):(\d{1,2}))?$/i.exec(e);if(null==t)return{didParse:!1};const[,i,r,n,s,o,l,a,u,c,p,d,h]=t;let y="seconds";const m=i.charAt(0).toLowerCase();"d"===m?y="days":"h"===m?y="hours":"m"===m&&(y="minutes");const f=parseInt(r,10);if(Number.isNaN(f))return{didParse:!1};const g=parseInt(n,10);if(Number.isNaN(g)||g<1||g>12)return{didParse:!1};const v=parseInt(s,10);if(Number.isNaN(v)||v<1||v>31)return{didParse:!1};if(2===g){const e=f%4==0&&(f%100!=0||f%400==0);if(e&&v>29||!e&&v>28)return{didParse:!1}}else if((4===g||6===g||9===g||11===g)&&v>30)return{didParse:!1};const b=parseInt(o,10);if(Number.isNaN(b)||b<0||b>23)return{didParse:!1};const M=parseInt(l,10);if(Number.isNaN(M)||M<0||M>59)return{didParse:!1};const S=parseInt(a,10);if(Number.isNaN(S)||S<0||S>59)return{didParse:!1};let _=1,w=0,x=0;if(p&&(_="-"===p?-1:1),d){if(w=parseInt(d,10),Number.isNaN(w)||w<0)return{didParse:!1};if(0!==w){const e=_*w;if(e<-12||e>14)return{didParse:!1}}}if(h&&(x=parseInt(h,10),Number.isNaN(x)||x<0||x>59))return{didParse:!1};const A=`${f}`.padStart(4,"0"),Z=`${g}`.padStart(2,"0"),j=`${v}`.padStart(2,"0"),I=`${b}`.padStart(2,"0"),T=`${M}`.padStart(2,"0"),N=`${S}`.padStart(2,"0");let V="Z";return 0===w&&0===x||(V=_>0?"+":"-",V+=`${w}`.padStart(2,"0"),V+=":",V+=`${x}`.padStart(2,"0")),{didParse:!0,unit:y,reference:new Date(`${A}-${Z}-${j}T${I}:${T}:${N}.000${V}`)}}let Ae=class extends F.A{constructor(){super(...arguments),this.values=null}};(0,r._)([(0,c.MZ)({type:[Number],json:{write:!0}})],Ae.prototype,"values",void 0),Ae=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelIrregularSpacing")],Ae);const Ze=Ae;let je=class extends F.A{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],je.prototype,"scale",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],je.prototype,"offset",void 0),je=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelRegularSpacing")],je);const Ie=je;let Te=class extends F.A{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,r._)([(0,c.MZ)({type:Ze,json:{write:!0}})],Te.prototype,"irregularSpacing",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isPositiveUp",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isWrappedDateLine",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"name",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"quantity",void 0),(0,r._)([(0,c.MZ)({type:Ie,json:{write:!0}})],Te.prototype,"regularSpacing",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Te.prototype,"size",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"unit",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{read:!1}})],Te.prototype,"isRegular",null),Te=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelDimension")],Te);const Ne=Te;let Ve=class extends F.A{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=_e.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size];return[e[0],t[0],r[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size],n=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)n[e]<2?n[e]=1:n[e]-=1;return i.isRegular&&!i.isPositiveUp&&(n[2]*=-1),[(e[1]-e[0])/n[0],(t[1]-t[0])/n[1],(r[1]-r[0])/n[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0;let t=this.dimensions[3].size>0;if(t){const e=this.dimensions[3];t="time"===e.quantity,t&&null!==e.unit&&(t=xe(e.unit).didParse)}if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}get timeStops(){if("xyzt"!==this.volumeType)return[];const e=this.dimensions[3],t=[],i=xe(e.unit);if(i.didParse)if(e.isRegular){const r=e.regularSpacing?.offset??0,n=e.regularSpacing?.scale||1;for(let s=0;s<e.size;++s){const e=r+n*s;t.push((0,Me.mi)(i.reference,e,i.unit))}}else if(Array.isArray(e.irregularSpacing?.values)&&e.irregularSpacing.values.length>0)for(let r=0;r<e.irregularSpacing.values.length;++r){const n=e.irregularSpacing.values[r];t.push((0,Me.mi)(i.reference,n,i.unit))}return t}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return l.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,we.aI)(this.spatialReference,e.spatialReference))return l.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.fA)(e.x,e.y,e.z??0);(0,y.d)(t,t,this.originInLayerSpace3D),(0,y.D)(t,t,this.voxelSizeInLayerSpaceSigned);const i=this.dimensions[this.zDimension];if(!i.isRegular&&Array.isArray(i.irregularSpacing?.values)&&i.irregularSpacing.values.length>1){const r=e.z??0,n=i.irregularSpacing.values,s=i.isPositiveUp?1:-1,o=n.reduce(((e,t)=>Math.abs(s*t-r)<Math.abs(s*e-r)?t:e));for(let e=0;e<n.length;++e)if(n[e]===o){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new Se.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.ci)(e);if((0,y.C)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.f)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Se.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const i=this.dimensions[this.zDimension];return i.isRegular||Array.isArray(i.irregularSpacing?.values)&&(e[2]<0?t[2]=i.irregularSpacing.values[0]:e[2]<i.irregularSpacing.values.length?t[2]=i.irregularSpacing.values[e[2]]:t[2]=i.irregularSpacing.values[i.irregularSpacing.values.length-1],i.isPositiveUp||(t[2]*=-1)),new Se.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};var Fe;(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:[Ne],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"dimensions",void 0),(0,r._)([(0,c.MZ)({type:_e.A,json:{read:{enabled:!1}}})],Ve.prototype,"spatialReference",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1}})],Ve.prototype,"zDimension",null),(0,r._)([(0,c.MZ)({type:[Boolean],json:{read:!1}})],Ve.prototype,"isValid",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"originInLayerSpace3D",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"voxelSizeInLayerSpaceSigned",null),(0,r._)([(0,c.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Ve.prototype,"volumeType",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"sizeInVoxels",null),(0,r._)([(0,c.MZ)({type:[Date],json:{read:!1,write:!1}})],Ve.prototype,"timeStops",null),Ve=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolume")],Ve);let Re=Fe=class extends F.A{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Fe;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"apronWidth",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"brickSize",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"maxLodLevel",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"nodeSize",void 0),Re=Fe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolumeIndex")],Re);const ze=Re;let Pe=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};var Oe;(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],Pe.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Pe.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],Pe.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],Pe.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],Pe.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],Pe.prototype,"point",void 0),Pe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelDynamicSection")],Pe);let Ee=Oe=class extends F.A{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(s.A.ofType(G)),this.dynamicSections=new(s.A.ofType(Pe))}set slices(e){this._set("slices",(0,ne.V)(e,this._get("slices"),s.A.ofType(G)))}set dynamicSections(e){this._set("dynamicSections",(0,ne.V)(e,this._get("dynamicSections"),s.A.ofType(Pe)))}clone(){return new Oe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,te.o8)(this.slices),dynamicSections:(0,te.o8)(this.dynamicSections)})}};(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"volumeId",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{default:1,write:!0}})],Ee.prototype,"verticalExaggeration",void 0),(0,r._)([(0,c.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Ee.prototype,"exaggerationMode",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{default:0,write:!0}})],Ee.prototype,"verticalOffset",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(G),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Ee.prototype,"slices",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(Pe),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Ee.prototype,"dynamicSections",null),Ee=Oe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolumeStyle")],Ee);var Ue=i(30291),Le=i(64272),De=i(26253);let qe=class extends((0,x.w6)((0,b.b)((0,S.q)((0,_.A)((0,w.j)((0,a.P)((0,M.d)((0,v.p)(g.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new W,this.opacity=1,this.variables=new s.A,this.volumes=new s.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.popupTemplate=null,this.test=null,this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0,this.volumeStyles=new(s.A.ofType(Ee)),this.variableStyles=new(s.A.ofType(be)),this.sections=new(s.A.ofType(K))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,A.Jf)(e,l.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(i),Promise.resolve(this)}read(e,t){super.read(e,t),"service"===t?.origin&&this.version.major<=3&&this.version.minor<=0&&!this.getAtOrigin("popupTemplate","service")&&this.setAtOrigin("popupTemplate",this.createPopupTemplate(),"service");for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new o.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,i){if(null!=e&&"object"==typeof e){const r=f.A.fromJSON(e,i);if(0===r.zmin&&0===r.zmax&&Array.isArray(t.volumes)){const e=Ve.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,i=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>i){const t=e;e=i,i=t}r.zmin=e,r.zmax=i}}}return r}return null}get fields(){const e=[new j.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"}),new j.A({name:"Voxel.CurrentVariable",alias:"Current Variable",domain:null,editable:!1,length:128,type:"string"})];for(const t of this.variables){const i=new j.A({name:t.name,alias:t.description,domain:null,editable:!1,length:128,type:"discrete"===t.renderingFormat.continuity?"string":"double"});e.push(i)}const t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new j.A({name:"Voxel.LocalTime",alias:"Local Time",domain:null,editable:!1,length:256,type:"date"});e.push(t);const i=new j.A({name:"Voxel.SourceTime",alias:"Source Time",domain:null,editable:!1,length:256,type:"string"});e.push(i)}if("xyt"!==t.volumeType){const t=new j.A({name:"Voxel.Depth",alias:"Depth",domain:null,editable:!1,length:128,type:"double"});e.push(t)}}return e}get fieldsIndex(){return this.loaded?new I.A(this.fields):null}getField(e){return this.fieldsIndex?.get(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.fields;return(0,Ue.tn)({fields:t,title:"{Voxel.Position}"},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const i=this.variableStyles.findIndex((e=>e.variableId===t));return i<0?null:this.variableStyles.at(i)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const i=this.variables.findIndex((e=>e.id===t));return i<0?null:this.variables.at(i)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}get timeInfo(){const e=this.getVolume(null);if("xyzt"!==e?.volumeType)return null;const t=e.timeStops;if(!t?.length)return null;const i=new Le.T({start:t[0],end:t.at(-1)});return new T.A({fullTimeExtent:i,stops:t})}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,i){const r=this.getVariable(e);if(null==r||"continuous"!==r.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const n=this.variableStyles.findIndex((t=>t.variableId===e));if(n<0)return null;const s=this.variableStyles.at(n);return s?.transferFunction?s.transferFunction.getColorForContinuousDataValue(t,i):null}getSections(){const e=[];for(const t of this.sections)e.push(new K({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const i=this._getVariable(t);if(null!=i){const r=t.clone();r.isosurfaces.length>4&&(r.isosurfaces=r.isosurfaces.slice(0,3),l.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of r.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(r.variableId,e.value,!1);null==t||t.equals(e.color)||(e.color=t)}if("continuous"===i.renderingFormat.continuity)(null===r.transferFunction||r.transferFunction.colorStops.length<2)&&l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==r.transferFunction&&(Array.isArray(r.transferFunction.stretchRange)&&2===r.transferFunction.stretchRange.length||(l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),r.transferFunction.stretchRange=[0,1],r.transferFunction.colorStops.removeAll()));else if("discrete"===i.renderingFormat.continuity)if(0===t.uniqueValues.length)l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(r)}else l.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const i=this._getVolumeFromVolumeId(t.volumeId);if(null!=i){const r=t.clone();for(const e of r.slices)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of r.dynamicSections)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");e.push(r)}else l.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,i){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const r=(0,m.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(r,r),!(Math.abs(r[0])+Math.abs(r[1])+Math.abs(r[2])<1e-6||(e.normal[0]=r[0],e.normal[1]=r[1],e.normal[2]=r[2],0))}};(0,r._)([(0,c.MZ)({type:["Voxel"]})],qe.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.MZ)(Z.fV)],qe.prototype,"legendEnabled",void 0),(0,r._)([(0,c.MZ)({json:{write:!0}})],qe.prototype,"title",void 0),(0,r._)([(0,c.MZ)(Z.OZ)],qe.prototype,"url",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(K),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],qe.prototype,"sections",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],qe.prototype,"currentVariableId",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(Ee),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],qe.prototype,"volumeStyles",void 0),(0,r._)([(0,c.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],qe.prototype,"renderMode",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(be),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],qe.prototype,"variableStyles",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],qe.prototype,"enableSlices",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],qe.prototype,"enableSections",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],qe.prototype,"enableDynamicSections",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],qe.prototype,"enableIsosurfaces",void 0),(0,r._)([(0,c.MZ)({type:W,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],qe.prototype,"shading",void 0),(0,r._)([(0,c.MZ)({type:["show","hide"]})],qe.prototype,"listMode",void 0),(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],qe.prototype,"opacity",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(ee)})],qe.prototype,"variables",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(Ve)})],qe.prototype,"volumes",void 0),(0,r._)([(0,c.MZ)({type:ze})],qe.prototype,"index",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],qe.prototype,"minScale",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],qe.prototype,"maxScale",void 0),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0})],qe.prototype,"type",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],qe.prototype,"version",void 0),(0,r._)([(0,d.w)("service","version")],qe.prototype,"readVersion",null),(0,r._)([(0,c.MZ)({type:f.A})],qe.prototype,"fullExtent",void 0),(0,r._)([(0,d.w)("service","fullExtent",["fullExtent"])],qe.prototype,"readFullExtent",null),(0,r._)([(0,c.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],qe.prototype,"fields",null),(0,r._)([(0,c.MZ)({readOnly:!0})],qe.prototype,"fieldsIndex",null),(0,r._)([(0,c.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,i){t[i]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],qe.prototype,"popupEnabled",void 0),(0,r._)([(0,c.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],qe.prototype,"popupTemplate",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],qe.prototype,"defaultPopupTemplate",null),(0,r._)([(0,c.MZ)({type:T.A,readOnly:!0,json:{read:!1}})],qe.prototype,"timeInfo",null),(0,r._)([(0,c.MZ)({type:Le.T,json:{read:!1}})],qe.prototype,"timeExtent",void 0),(0,r._)([(0,c.MZ)({type:De.T,json:{read:!1}})],qe.prototype,"timeOffset",void 0),(0,r._)([(0,c.MZ)({type:Boolean,nonNullable:!0,json:{origins:{"web-scene":{name:"timeAnimation",write:!0},service:{read:!1}}}})],qe.prototype,"useViewTime",void 0),qe=(0,r._)([(0,h.$)("esri.layers.VoxelLayer")],qe);const $e=qe},18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(90237),n=i(53966),s=i(10107),o=(i(44208),i(87811),i(40608)),l=i(60694);const a=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.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,l.Jf)(e,n.A.getLogger(this)))}};return(0,r._)([(0,s.MZ)()],t.prototype,"title",null),(0,r._)([(0,s.MZ)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},25036:(e,t,i)=>{i.d(t,{j:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(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 i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,r._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,r._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,r._)([(0,n.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,r._)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},26253:(e,t,i)=>{i.d(t,{T:()=>p});var r=i(90237),n=i(69540),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(93223)),u=i(40608),c=i(73133);let p=class extends(n.A.ClonableMixin(s.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,r._)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,r._)([(0,u.$)("esri.time.TimeInterval")],p)},29242:(e,t,i)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function n(e,t,i,r,n,s,o,l,a){return[e,t,i,r,n,s,o,l,a]}i.d(t,{fA:()=>n,vt:()=>r,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,fromValues:n},Symbol.toStringTag,{value:"Module"}))},30291:(e,t,i)=>{i.d(t,{tn:()=>u});var r=i(13874),n=i(30524),s=i(89893),o=(i(84424),i(80737),i(96808),i(66159)),l=(i(67336),i(92094),i(23721),i(47582),i(41227)),a=i(68780);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:u},h){if(!i)return null;const m=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),!0!==i&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||y,sortDisabled:t?.sortDisabled}).map((t=>new l.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:a},h);if(!m.length)return null;const f=function(e){const t=(0,n.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),g=[new o.A,new s.A];return new r.A({title:f,content:g,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.A({digitSeparator:!0,places:0});case"double":return new a.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new a.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const y=["geometry","blob","raster","guid","xml"]},38954:(e,t,i)=>{i.d(t,{A:()=>y,B:()=>h,C:()=>c,D:()=>p,E:()=>R,F:()=>E,H:()=>L,a:()=>z,b:()=>g,c:()=>o,d:()=>u,e:()=>x,f:()=>a,g:()=>f,h:()=>A,i:()=>l,j:()=>v,k:()=>M,l:()=>s,m:()=>Z,n:()=>w,o:()=>I,q:()=>F,r:()=>_,s:()=>b,t:()=>j,u:()=>S,v:()=>T,w:()=>d,x:()=>U,y:()=>D,z:()=>m});var r=i(51850),n=i(34304);function s(e){const t=e[0],i=e[1],r=e[2];return Math.sqrt(t*t+i*i+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,i,r){return e[0]=t,e[1]=i,e[2]=r,e}function a(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function p(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function y(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function m(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function f(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,r){return e[0]=t[0]+i[0]*r,e[1]=t[1]+i[1]*r,e[2]=t[2]+i[2]*r,e}function v(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(i*i+r*r+n*n)}function b(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return i*i+r*r+n*n}function M(e){const t=e[0],i=e[1],r=e[2];return t*t+i*i+r*r}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const i=t[0],r=t[1],n=t[2];let s=i*i+r*r+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,i){const r=t[0],n=t[1],s=t[2],o=i[0],l=i[1],a=i[2];return e[0]=n*a-s*l,e[1]=s*o-r*a,e[2]=r*l-n*o,e}function Z(e,t,i,r){const n=t[0],s=t[1],o=t[2];return e[0]=n+r*(i[0]-n),e[1]=s+r*(i[1]-s),e[2]=o+r*(i[2]-o),e}function j(e,t,i){const r=t[0],n=t[1],s=t[2];return e[0]=i[0]*r+i[4]*n+i[8]*s+i[12],e[1]=i[1]*r+i[5]*n+i[9]*s+i[13],e[2]=i[2]*r+i[6]*n+i[10]*s+i[14],e}function I(e,t,i){const r=t[0],n=t[1],s=t[2];return e[0]=r*i[0]+n*i[3]+s*i[6],e[1]=r*i[1]+n*i[4]+s*i[7],e[2]=r*i[2]+n*i[5]+s*i[8],e}function T(e,t,i){const r=i[0],n=i[1],s=i[2],o=i[3],l=t[0],a=t[1],u=t[2],c=n*u-s*a,p=s*l-r*u,d=r*a-n*l,h=n*d-s*p,y=s*c-r*d,m=r*p-n*c,f=2*o;return e[0]=l+c*f+2*h,e[1]=a+p*f+2*y,e[2]=u+d*f+2*m,e}const N=(0,r.vt)(),V=(0,r.vt)();function F(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t,i){const r=i[0]-t[0],n=i[1]-t[1],s=i[2]-t[2];let o=r*r+n*n+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const z=u,P=c,O=p,E=v,U=b,L=s,D=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:a,angle:function(e,t){w(N,e),w(V,t);const i=x(N,V);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,r,n,s){const o=1-s,l=o*o,a=s*s,u=l*o,c=3*s*l,p=3*a*o,d=a*s;return e[0]=t[0]*u+i[0]*c+r[0]*p+n[0]*d,e[1]=t[1]*u+i[1]*c+r[1]*p+n[1]*d,e[2]=t[2]*u+i[2]*c+r[2]*p+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:A,crossAndNormalize:function(e,t,i){const r=t[0],n=t[1],s=t[2],o=i[0],l=i[1],a=i[2],u=n*a-s*l,c=s*o-r*a,p=r*l-n*o,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:R,dist:E,distance:v,div:O,divide:p,dot:x,equals:function(e,t){if(e===t)return!0;const i=e[0],r=e[1],s=e[2],o=t[0],l=t[1],a=t[2],u=(0,n.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))},exactEquals:F,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,r,n,s){const o=s*s,l=o*(2*s-3)+1,a=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*l+i[0]*a+r[0]*u+n[0]*c,e[1]=t[1]*l+i[1]*a+r[1]*u+n[1]*c,e[2]=t[2]*l+i[2]*a+r[2]*u+n[2]*c,e},inverse:_,len:L,length:s,lerp:Z,max:m,min:y,mul:P,multiply:c,negate:S,normalize:w,random:function(e,t=1){const i=n.Ov,r=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=s*t,e},rotateX:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[0],s[1]=n[1]*Math.cos(r)-n[2]*Math.sin(r),s[2]=n[1]*Math.sin(r)+n[2]*Math.cos(r),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[2]*Math.sin(r)+n[0]*Math.cos(r),s[1]=n[1],s[2]=n[2]*Math.cos(r)-n[0]*Math.sin(r),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[0]*Math.cos(r)-n[1]*Math.sin(r),s[1]=n[0]*Math.sin(r)+n[1]*Math.cos(r),s[2]=n[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:f,scaleAndAdd:g,set:l,sign:h,sqrDist:U,sqrLen:D,squaredDistance:b,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:z,subtract:u,transformMat3:I,transformMat4:j,transformQuat:T},Symbol.toStringTag,{value:"Module"}))},52136:(e,t,i)=>{i.d(t,{p:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(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,r._)([(0,n.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,s.$)("esri.layers.mixins.APIKeyMixin")],t),t}},54239:(e,t,i)=>{i.d(t,{A:()=>g});var r,n=i(90237),s=i(4576),o=i(66552),l=i(25482),a=i(83047),u=i(67076),c=i(10107),p=(i(44208),i(53966),i(36005)),d=i(40608),h=i(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.Xy)(m,"orthometric");const f=(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=r=class extends l.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({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 i=(0,a.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??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 r;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,n._)([(0,c.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,n._)([(0,h.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,n._)([(0,p.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,n._)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,n._)([(0,p.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,n._)([(0,p.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,n._)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,n._)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=r=(0,n._)([(0,d.$)("esri.geometry.HeightModelInfo")],g)},62885:(e,t,i)=>{i.d(t,{H:()=>s,V:()=>n});var r=i(5503);function n(e,t,i=r.A){return t||(t=new i),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function s(e){return e}},64272:(e,t,i)=>{i.d(t,{T:()=>d});var r,n=i(90237),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),c=i(43937),p=i(98623);let d=class extends s.A{static{r=this}static get allTime(){return h}static get empty(){return y}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&i===n}expandTo(e,t=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,e,t));let n=this.end;if(n){const i=(0,o.lL)(n,e,t);n=n.getTime()===i.getTime()?i:(0,o.S1)(i,1,e,t)}return new r({start:i,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,l;return n>=t&&n<=i?o=n:t>=n&&t<=s&&(o=t),i>=n&&i<=s?l=i:s>=t&&s<=i&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(e,t,i=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.S1)(s,e,t,i)),null!=l&&(n.end=(0,o.S1)(l,e,t,i)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,n._)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,a.w)("start")],d.prototype,"readStart",null),(0,n._)([(0,c.K)("start")],d.prototype,"writeStart",null),d=r=(0,n._)([(0,u.$)("esri.time.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0})},67026:(e,t,i)=>{i.d(t,{A6:()=>m,Xd:()=>c,Xr:()=>h,hZ:()=>g,lw:()=>p,t2:()=>I,x8:()=>u});var r=i(29242),n=i(82534),s=i(51850),o=i(34304),l=i(38954),a=i(87317);function u(e,t,i){i*=.5;const r=Math.sin(i);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(i),e}function c(e,t){const i=2*Math.acos(t[3]),r=Math.sin(i/2);return r>(0,o.FD)()?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),i}function p(e,t,i){const r=t[0],n=t[1],s=t[2],o=t[3],l=i[0],a=i[1],u=i[2],c=i[3];return e[0]=r*c+o*l+n*u-s*a,e[1]=n*c+o*a+s*l-r*u,e[2]=s*c+o*u+r*a-n*l,e[3]=o*c-r*l-n*a-s*u,e}function d(e,t,i,r){const n=t[0],s=t[1],l=t[2],a=t[3];let u,c,p,d,h,y=i[0],m=i[1],f=i[2],g=i[3];return c=n*y+s*m+l*f+a*g,c<0&&(c=-c,y=-y,m=-m,f=-f,g=-g),1-c>(0,o.FD)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-r)*u)/p,h=Math.sin(r*u)/p):(d=1-r,h=r),e[0]=d*n+h*y,e[1]=d*s+h*m,e[2]=d*l+h*f,e[3]=d*a+h*g,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const i=t[0]+t[4]+t[8];let r;if(i>0)r=Math.sqrt(i+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);const n=(i+1)%3,s=(i+2)%3;r=Math.sqrt(t[3*i+i]-t[3*n+n]-t[3*s+s]+1),e[i]=.5*r,r=.5/r,e[3]=(t[3*n+s]-t[3*s+n])*r,e[n]=(t[3*n+i]+t[3*i+n])*r,e[s]=(t[3*s+i]+t[3*i+s])*r}return e}function m(e,t,i,r){const n=.5*Math.PI/180;t*=n,i*=n,r*=n;const s=Math.sin(t),o=Math.cos(t),l=Math.sin(i),a=Math.cos(i),u=Math.sin(r),c=Math.cos(r);return e[0]=s*a*c-o*l*u,e[1]=o*l*c+s*a*u,e[2]=o*a*u-s*l*c,e[3]=o*a*c+s*l*u,e}const f=a.c,g=a.s,v=a.g,b=p,M=a.b,S=a.h,_=a.l,w=a.j,x=w,A=a.f,Z=A,j=a.n,I=a.a,T=a.e,N=(0,s.vt)(),V=(0,s.fA)(1,0,0),F=(0,s.fA)(0,1,0),R=(0,n.vt)(),z=(0,n.vt)(),P=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const i=t[0],r=t[1],n=t[2];return e[0]=i,e[1]=r,e[2]=n,e[3]=Math.sqrt(Math.abs(1-i*i-r*r-n*n)),e},conjugate:h,copy:f,dot:S,equals:T,exactEquals:I,fromEuler:m,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const i=t[0],r=t[1],n=t[2],s=t[3],o=i*i+r*r+n*n+s*s,l=o?1/o:0;return e[0]=-i*l,e[1]=-r*l,e[2]=-n*l,e[3]=s*l,e},len:x,length:w,lerp:_,mul:b,multiply:p,normalize:j,random:function(e){const t=o.Ov,i=t(),r=t(),n=t(),s=Math.sqrt(1-i),l=Math.sqrt(i);return e[0]=s*Math.sin(2*Math.PI*r),e[1]=s*Math.cos(2*Math.PI*r),e[2]=l*Math.sin(2*Math.PI*n),e[3]=l*Math.cos(2*Math.PI*n),e},rotateX:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+o*l,e[1]=n*a+s*l,e[2]=s*a-n*l,e[3]=o*a-r*l,e},rotateY:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a-s*l,e[1]=n*a+o*l,e[2]=s*a+r*l,e[3]=o*a-n*l,e},rotateZ:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+n*l,e[1]=n*a-r*l,e[2]=s*a+o*l,e[3]=o*a-s*l,e},rotationTo:function(e,t,i){const r=(0,l.e)(t,i);return r<-.999999?((0,l.h)(N,V,t),(0,l.H)(N)<1e-6&&(0,l.h)(N,F,t),(0,l.n)(N,N),u(e,N,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.h)(N,t,i),e[0]=N[0],e[1]=N[1],e[2]=N[2],e[3]=1+r,j(e,e))},scale:M,set:g,setAxes:function(e,t,i,r){const n=P;return n[0]=i[0],n[3]=i[1],n[6]=i[2],n[1]=r[0],n[4]=r[1],n[7]=r[2],n[2]=-t[0],n[5]=-t[1],n[8]=-t[2],j(e,y(e,n))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,i,r,n,s){return d(R,t,n,s),d(z,i,r,s),d(e,R,z,2*s*(1-s)),e},sqrLen:Z,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},68197:(e,t,i)=>{i.d(t,{A:()=>p});var r,n,s=i(40876),o=i(34727),l=i(56507);function a(e){return(0,o.qE)((0,l.Vr)(e),0,255)}function u(e,t){const i=e.toString(16).padStart(2,"0");return t?i.slice(0,1):i}class c{static blendColors(e,t,i,r=new c){return r.r=Math.round(e.r+(t.r-e.r)*i),r.g=Math.round(e.g+(t.g-e.g)*i),r.b=Math.round(e.b+(t.b-e.b)*i),r.a=e.a+(t.a-e.a)*i,r._sanitize()}static fromRgb(e,t){const i=(0,s.lT)(e);return i?c.fromArray(i,t):null}static fromHex(e,t=new c){const i=(0,s.oW)(e);return i?c.fromArray(i,t):null}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const i=(0,s.Eq)(e);return i?c.fromArray(i,t):null}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?c.fromString(e,this):Array.isArray(e)?c.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,i=e?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${u(this.r,r)}${u(this.g,r)}${u(this.b,r)}${n?u(Math.round(255*this.a),r):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=c.AlphaMode.ALWAYS){const t=a(this.r),i=a(this.g),r=a(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,i,r,a(255*this.a)]:[t,i,r]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,s.c1)(this.r),this.g=(0,s.c1)(this.g),this.b=(0,s.c1)(this.b),this.a=(0,s.G1)(this.a),this}_set(e,t,i,r){this.r=e,this.g=t,this.b=i,this.a=r}}c.prototype.declaredClass="esri.Color",r=c||(c={}),(n=r.AlphaMode||(r.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const p=c},69052:(e,t,i)=>{i.d(t,{ie:()=>l});var r=i(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return s(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return s(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function s(e,t,i,r,n=0,s=!1){return(r-=n)<t?r+=o(e,t-r):r>i&&(r-=o(e,r-i)),s&&r===i&&(r=t),r+n}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}new n(0,2*Math.PI),new n(-Math.PI,Math.PI);const l=new n(0,360)},69208:(e,t,i)=>{i.d(t,{d:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},69540:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(90237),n=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(35666),a=i(88620),u=i(40608);const c=e=>{let t=class extends e{clone(){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,i=e.store,r={},n=new Map;for(const e in t){const o=t[e],a=i?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const c=this[e];let p=null;p="function"==typeof u?u(c):"reference"===u?c:(0,s.TU)(c),null!=c&&null==p||(a===l.Gr.DEFAULTS?n.set(e,p):r[e]=p)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(n.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,i]of n)e.set(t,i,l.Gr.DEFAULTS)}return u}};return t=(0,r._)([(0,u.$)("esri.core.Clonable")],t),t};let p=class extends(c(n.A)){};p=(0,r._)([(0,u.$)("esri.core.Clonable")],p),(p||(p={})).ClonableMixin=c;const d=p},73133:(e,t,i)=>{i.d(t,{j:()=>r});const r=(0,i(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})},80200:(e,t,i)=>{i.d(t,{T:()=>r,d:()=>m});const r={Base64:0,Hex:1,String:2,Raw:3},n=8,s=(1<<n)-1;function o(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e){const t=[];for(let i=0,r=e.length*n;i<r;i+=n)t[i>>5]|=(e.charCodeAt(i/n)&s)<<i%32;return t}function a(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=n)t.push(String.fromCharCode(e[i>>5]>>>i%32&s));return t.join("")}function u(e,t,i,r,n,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(r,s)),n),i)}function c(e,t,i,r,n,s,o){return u(t&i|~t&r,e,t,n,s,o)}function p(e,t,i,r,n,s,o){return u(t&r|i&~r,e,t,n,s,o)}function d(e,t,i,r,n,s,o){return u(t^i^r,e,t,n,s,o)}function h(e,t,i,r,n,s,o){return u(i^(t|~r),e,t,n,s,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,n=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const l=i,a=r,u=n,y=s;i=c(i,r,n,s,e[t],7,-680876936),s=c(s,i,r,n,e[t+1],12,-389564586),n=c(n,s,i,r,e[t+2],17,606105819),r=c(r,n,s,i,e[t+3],22,-1044525330),i=c(i,r,n,s,e[t+4],7,-176418897),s=c(s,i,r,n,e[t+5],12,1200080426),n=c(n,s,i,r,e[t+6],17,-1473231341),r=c(r,n,s,i,e[t+7],22,-45705983),i=c(i,r,n,s,e[t+8],7,1770035416),s=c(s,i,r,n,e[t+9],12,-1958414417),n=c(n,s,i,r,e[t+10],17,-42063),r=c(r,n,s,i,e[t+11],22,-1990404162),i=c(i,r,n,s,e[t+12],7,1804603682),s=c(s,i,r,n,e[t+13],12,-40341101),n=c(n,s,i,r,e[t+14],17,-1502002290),r=c(r,n,s,i,e[t+15],22,1236535329),i=p(i,r,n,s,e[t+1],5,-165796510),s=p(s,i,r,n,e[t+6],9,-1069501632),n=p(n,s,i,r,e[t+11],14,643717713),r=p(r,n,s,i,e[t],20,-373897302),i=p(i,r,n,s,e[t+5],5,-701558691),s=p(s,i,r,n,e[t+10],9,38016083),n=p(n,s,i,r,e[t+15],14,-660478335),r=p(r,n,s,i,e[t+4],20,-405537848),i=p(i,r,n,s,e[t+9],5,568446438),s=p(s,i,r,n,e[t+14],9,-1019803690),n=p(n,s,i,r,e[t+3],14,-187363961),r=p(r,n,s,i,e[t+8],20,1163531501),i=p(i,r,n,s,e[t+13],5,-1444681467),s=p(s,i,r,n,e[t+2],9,-51403784),n=p(n,s,i,r,e[t+7],14,1735328473),r=p(r,n,s,i,e[t+12],20,-1926607734),i=d(i,r,n,s,e[t+5],4,-378558),s=d(s,i,r,n,e[t+8],11,-2022574463),n=d(n,s,i,r,e[t+11],16,1839030562),r=d(r,n,s,i,e[t+14],23,-35309556),i=d(i,r,n,s,e[t+1],4,-1530992060),s=d(s,i,r,n,e[t+4],11,1272893353),n=d(n,s,i,r,e[t+7],16,-155497632),r=d(r,n,s,i,e[t+10],23,-1094730640),i=d(i,r,n,s,e[t+13],4,681279174),s=d(s,i,r,n,e[t],11,-358537222),n=d(n,s,i,r,e[t+3],16,-722521979),r=d(r,n,s,i,e[t+6],23,76029189),i=d(i,r,n,s,e[t+9],4,-640364487),s=d(s,i,r,n,e[t+12],11,-421815835),n=d(n,s,i,r,e[t+15],16,530742520),r=d(r,n,s,i,e[t+2],23,-995338651),i=h(i,r,n,s,e[t],6,-198630844),s=h(s,i,r,n,e[t+7],10,1126891415),n=h(n,s,i,r,e[t+14],15,-1416354905),r=h(r,n,s,i,e[t+5],21,-57434055),i=h(i,r,n,s,e[t+12],6,1700485571),s=h(s,i,r,n,e[t+3],10,-1894986606),n=h(n,s,i,r,e[t+10],15,-1051523),r=h(r,n,s,i,e[t+1],21,-2054922799),i=h(i,r,n,s,e[t+8],6,1873313359),s=h(s,i,r,n,e[t+15],10,-30611744),n=h(n,s,i,r,e[t+6],15,-1560198380),r=h(r,n,s,i,e[t+13],21,1309151649),i=h(i,r,n,s,e[t+4],6,-145523070),s=h(s,i,r,n,e[t+11],10,-1120210379),n=h(n,s,i,r,e[t+2],15,718787259),r=h(r,n,s,i,e[t+9],21,-343485551),i=o(i,l),r=o(r,a),n=o(n,u),s=o(s,y)}return[i,r,n,s]}function m(e,t=r.Hex){const i=t||r.Base64,s=y(l(e),e.length*n);switch(i){case r.Raw:return s;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(s);case r.String:return a(s);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(s)}}},82534:(e,t,i)=>{function r(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>n,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:r,fromValues:function(e,t,i,r){return[e,t,i,r]}},Symbol.toStringTag,{value:"Module"}))},85648:(e,t,i)=>{i.d(t,{n:()=>n});var r=i(84952);function n(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,r.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const s={},o="text/plain",l=s[o],a={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 a)s[a[e]]=e},87024:(e,t,i)=>{i.d(t,{P:()=>h});var r=i(49186),n=i(80200),s=i(76553),o=i(84952),l=i(13069),a=i(96156),u=i(35666),c=i(10107),p=i(85648),d=i(97159);function h(e){const t=e?.origins??[void 0];return(i,r)=>{const n=function(e,t,i){if("resource"===e?.type)return function(e,t,i){const r=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{const n=(0,d.r)(e,t,i);return r.type===String?n:"function"==typeof r.type?new r.type({url:n}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(t,n,l,a){if(!a?.resources)return"string"==typeof t?void(n[l]=(0,d.t)(t,a)):void(n[l]=t.write({},a));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),g=r.type!==String&&(!(0,s.H)(this)||a?.origin&&this.originIdOf(i)>(0,u.aB)(a.origin)),v={object:this,propertyName:i,value:t,targetUrl:h,dest:n,targetPropertyName:l,context:a,params:e};a?.portalItem&&h&&!(0,o.oP)(h)?g&&e?.contentAddressed?y(v):g?function(e){const{context:t,targetUrl:i,params:r,value:n,dest:s,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(i),u=f(n,i,t),c=(0,p.n)(u),d=(0,o.Zo)(a.path),h=r?.compress??!1;c===d?(t.resources&&m({...e,resource:a,content:u,compress:h,updates:t.resources.toUpdate}),s[l]=i):y(e)}(v):function({context:e,targetUrl:t,dest:i,targetPropertyName:r}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[r]=t)}(v):a?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,o.w8)(h)||g)?y(v):n[l]=h}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.p;return{read:e,write:t}}}}(e,i,r);for(const e of t){const t=(0,c.rM)(i,e,r);for(const e in n)t[e]=n[e]}}}function y(e){const{targetUrl:t,params:i,value:s,context:a,dest:u,targetPropertyName:c}=e;if(!a.portalItem)return;const h=(0,d.b)(t),y=f(s,t,a);if(i?.contentAddressed&&"json"!==y.type)return void a.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${c}" 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=i?.contentAddressed&&"json"===y.type?(0,n.d)(y.jsonString):h?.filename??(0,l.lk)(),v=(0,o.fj)(i?.prefix??h?.prefix,g),b=`${v}.${(0,p.n)(y)}`;if(i?.contentAddressed&&a.resources&&"json"===y.type){const e=a.resources.toKeep.find((({resource:e})=>e.path===b))??a.resources.toAdd.find((({resource:e})=>e.path===b));if(e)return void(u[c]=e.resource.itemRelativeUrl)}const M=a.portalItem.resourceFromPath(b);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then((e=>{M.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,u[c]=M.itemRelativeUrl})).catch((()=>{})));const S=i?.compress??!1;a.resources&&m({...e,resource:M,content:y,compress:S,updates:a.resources.toAdd}),u[c]=M.itemRelativeUrl}function m({object:e,propertyName:t,updates:i,resource:r,content:n,compress:s}){i.push({resource:r,content:n,compress:s,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function f(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},92071:(e,t,i)=>{i.d(t,{P:()=>b,L:()=>M});var r=i(90237),n=i(69622),s=i(76953),o=i(4718),l=i(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new a,i=this._originStores[l.Gr.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,o.o8)(e),l.Gr.DEFAULTS)}));for(let i=l.Gr.SERVICE;i<l.AU;i++){const r=this._originStores[i];r&&r.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,o.o8)(r),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=l.Gr.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=i){const r=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),r!==t}return!1}delete(e,t=l.Gr.USER){const i=this._originStores[t];if(!i)return;const r=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],r=i?.get(e),n=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),n!==r}originOf(e){return this._propertyOriginMap.get(e)||l.Gr.DEFAULTS}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var u=i(45917),c=i(88620),p=i(40608);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,c.oY)(this),i=t.store,r=new a;t.store=r,(0,s.k)(t,i,r)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const i=h(this),r=(0,l.aB)(t);if("string"==typeof e)return i.get(e,r);const n={};return e.forEach((e=>{n[e]=i.get(e,r)})),n}originOf(e){return(0,l.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const i=h(this),r=(0,l.aB)(t),n=(0,c.oY)(this);let s;s="string"==typeof e?"*"===e?i.keys(r):[e]:e,s.forEach((e=>{n.invalidate(e),i.revert(e,r),n.commit(e)}))}};return t=(0,r._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,c.oY)(e).store}let y=class extends(d(n.A)){};y=(0,r._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var m=i(16649),f=i(49422);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){(0,c.oY)(this).clearOrigin(e,(0,l.aB)(t))}write(e,t){return(0,f.M)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,c.oY)(this).setAtOrigin(e,t,(0,l.aB)(i))}removeOrigin(e){const t=v(this),i=(0,l.aB)(e),r=t.keys(i);for(const e of r)t.originOf(e)===i&&t.set(e,t.get(e,i),l.Gr.USER)}updateOrigin(e,t){const i=v(this),r=(0,l.aB)(t),n=(0,m.Jt)(this,e);for(let t=r+1;t<l.AU;++t)i.delete(e,t);i.set(e,n,r)}toJSON(e){return this.write({},e)}};return t=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,c.oY)(e).store}const b=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],t),t};let M=class extends(b(n.A)){};M=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],M)},95466:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(49186),n=i(53966),s=i(91869),o=i(3330),l=i(12195),a=i(30524),u=i(98623),c=i(56400),p=i(96285);const d=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],g(e))}static fromLayerJSON(e){return new h(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=m(t);if(t&&r){const n=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),i.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):f.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,(()=>p.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,l.W)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:n}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,c.ZS)(n.dateFieldsTimeReference):l??u.n$:null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,c.ZS)(r.timeReference):l:null,d=new Map([[y(n?.creationDateField??""),a],[y(n?.editDateField??""),a],[y(s),p],[y(o),p]]);for(const{name:r,type:n}of e.fields)if(f.has(n))t.set(r,u.L5);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(r,null);else if(i)t.set(r,u.L5);else{const e=d.get(y(r??""))??l;t.set(r,e)}return t}},96184:(e,t,i)=>{i.d(t,{A:()=>y});var r=i(90237),n=i(69540),s=i(25482),o=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),a=i(40608),u=i(43937),c=i(64272),p=i(26253),d=i(56400);function h(e,t){return p.T.fromJSON({value:e,unit:t})}let y=class extends(n.A.ClonableMixin(s.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?c.T.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,r._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,r._)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,r._)([(0,o.MZ)({type:c.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,r._)([(0,l.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,r._)([(0,u.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,r._)([(0,o.MZ)({type:p.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,r._)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,r._)([(0,u.K)("interval")],y.prototype,"writeInterval",null),(0,r._)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,r._)([(0,o.MZ)((0,d.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,r._)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,r._)([(0,a.$)("esri.layers.support.TimeInfo")],y)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1389],{4146:(e,t,i)=>{i.d(t,{A:()=>b});var r=i(90237),n=i(78888),s=i(49186),o=i(65529),l=i(4902),a=i(92474),u=i(53966),c=i(74887),p=i(84952),d=i(10107),h=(i(44208),i(87811),i(40608)),y=i(5443),m=i(16930),f=i(92602),g=i(64272);let v=0,b=class extends(o.A.EventedMixin(l.A.IdentifiableMixin(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.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=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await i.e(5613).then(i.bind(i,45613));try{return await r(t)}catch(e){const i=t?.portalItem,r=i?.id||"unset",n=i?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.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,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,r._)([(0,d.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r._)([(0,d.MZ)({type:m.A})],b.prototype,"spatialReference",void 0),(0,r._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,r._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,r._)([(0,d.MZ)({type:g.T})],b.prototype,"visibilityTimeExtent",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r._)([(0,h.$)("esri.layers.Layer")],b)},8303:(e,t,i)=>{i.d(t,{A:()=>_});var r=i(90237),n=i(92602),s=i(70333),o=i(78888),l=i(60999),a=i(49186),u=i(53966),c=i(97768),p=i(74887),d=i(84952),h=i(10107),y=(i(44208),i(87811),i(36005)),m=i(40608),f=i(43937),g=i(77548),v=i(20655),b=i(80812),M=i(41318),S=i(10407);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.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,i){if(t.itemId)return new b.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||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,p.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!s.id?.findCredential(this.url),n=e===i.id;if(n&&i.portal.user)return this._getUserPrivileges(i,r);let o,l;if(n)o=i.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(n?await i.reload():(i=new b.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,S.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const i=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(r))return n.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?M.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.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,r._)([(0,h.MZ)({type:b.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,m.$)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},16183:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$e});var r=i(90237),n=i(13874),s=i(5503),o=i(49186),l=i(53966),a=i(92071),u=i(74887),c=i(10107),p=i(56507),d=(i(44208),i(87811),i(36005)),h=i(40608),y=i(38954),m=i(51850),f=i(5443),g=i(4146),v=i(52136),b=i(18768),M=i(69208),S=i(16131),_=i(8303),w=i(25036),x=i(58947),A=i(60694),Z=i(10873),j=i(20437),I=i(95466),T=i(96184),N=i(69540),V=i(69052),F=i(25482),R=i(87024),z=i(67026),P=i(82534),O=i(34304);const E=(0,m.vt)(),U=(0,P.vt)(),L=(0,P.vt)(),D=(0,P.vt)(),q=(0,m.fA)(0,0,1),$=(0,m.fA)(0,1,0),C=(0,m.fA)(1,0,0);function B(e){(0,y.c)(E,e),(0,y.n)(E,E);const t=Math.atan2(E[1],E[0]),i=(0,z.x8)((0,P.vt)(),q,-t);(0,y.v)(E,E,i);const r=-1*Math.atan2(E[2],E[0]);return[(0,O.ct)(t)+270,(0,O.ct)(r)+90]}function k(e,t){return(0,z.x8)(L,q,(0,O.DF)(e-270)),(0,z.x8)(D,$,(0,O.DF)(t-90)),(0,z.lw)(U,L,D),(0,y.c)(E,C),(0,y.v)(E,E,U),(0,y.n)(E,E),[E[0],E[1],E[2]]}var H=i(79901);let G=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],G.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],G.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],G.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],G.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],G.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],G.prototype,"point",void 0),G=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSlice")],G);var J=i(97159);let K=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}};(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],K.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{origins:{service:{read:J.r},"web-scene":{write:{isRequired:!0}}},write:!0}}),(0,R.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],K.prototype,"href",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],K.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],K.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],K.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"point",void 0),(0,r._)([(0,c.MZ)({type:[p.jz],json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"sizeInPixel",void 0),(0,r._)([(0,c.MZ)({type:[G],json:{write:!0}})],K.prototype,"slices",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{default:0,write:!0}})],K.prototype,"timeId",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],K.prototype,"variableId",void 0),K=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSection")],K);let W=class extends F.A{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"diffuseFactor",void 0),(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"specularFactor",void 0),W=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelSimpleShading")],W);let Y=class extends F.A{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,r._)([(0,c.MZ)({type:["discrete","continuous"],json:{write:!0}})],Y.prototype,"continuity",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Y.prototype,"hasNoData",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"noData",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"offset",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Y.prototype,"scale",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"type",void 0),Y=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelFormat")],Y);const Q=Y;let X=class extends F.A{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"name",void 0),(0,r._)([(0,c.MZ)({type:Q,json:{write:!0}})],X.prototype,"originalFormat",void 0),(0,r._)([(0,c.MZ)({type:Q,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"renderingFormat",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],X.prototype,"unit",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],X.prototype,"volumeId",void 0),(0,r._)([(0,c.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],X.prototype,"type",void 0),X=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVariable")],X);const ee=X;var te=i(4718),ie=i(68197);let re=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],re.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"value",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],re.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],re.prototype,"colorLocked",void 0),re=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelIsosurface")],re);var ne=i(62885),se=i(34727);let oe=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"position",void 0),oe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelColorStop")],oe);const le=oe;let ae=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,r._)([(0,c.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ae.prototype,"opacity",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ae.prototype,"position",void 0),ae=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelOpacityStop")],ae);const ue=ae;let ce=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],ce.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ce.prototype,"range",void 0),ce=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelRangeFilter")],ce);const pe=ce;var de,he;(he=de||(de={}))[he.Color=1]="Color",he[he.Alpha=2]="Alpha",he[he.Both=3]="Both";let ye=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(s.A.ofType(le)),this.opacityStops=new(s.A.ofType(ue))}set colorStops(e){this._set("colorStops",(0,ne.V)(e,this._get("colorStops"),s.A.ofType(le)))}set opacityStops(e){this._set("opacityStops",(0,ne.V)(e,this._get("opacityStops"),s.A.ofType(ue)))}getPreviousNext(e,t,i){let r=e;for(;--r>0&&t[r].type!==i&&t[r].type!==de.Both;);let n=e;const s=t.length;for(;++n<s&&t[n].type!==i&&t[n].type!==de.Both;);return[r,n]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],i=[];for(const t of this.colorStops){if(!t.color)return e;i.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:de.Color})}if(0===this.opacityStops.length)for(const e of i)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,se.qE)(e.position,0,1),r=Math.round(255*(0,se.qE)(1-e.opacity,0,1));let n=!1;for(const e of i)if(e.type===de.Color&&Math.abs(e.position-t)<1e-5){e.color.a=r,e.type=de.Both,n=!0;break}n||i.push({color:{r:0,g:0,b:0,a:r},position:e.position,type:de.Alpha})}i.sort(((e,t)=>e.position<t.position?-1:1));const e=i.length;for(let t=0;t<e;++t){const r=i[t];if(r.type!==de.Both)if(r.type===de.Color){const[n,s]=this.getPreviousNext(t,i,de.Alpha);if(-1!==n&&s!==e){const e=(r.position-i[n].position)/(i[s].position-i[n].position);r.color.a=Math.round((0,se.Cc)(i[n].color.a,i[s].color.a,e))}else r.color.a=-1!==n?i[n].color.a:i[s].color.a}else{const[n,s]=this.getPreviousNext(t,i,de.Color);if(-1!==n&&s!==e){const e=(r.position-i[n].position)/(i[s].position-i[n].position),t=i[n].color,o=i[s].color;fe.forEach((i=>{r.color[i]=Math.round((0,se.Cc)(t[i],o[i],e))}))}else-1!==n?fe.forEach((e=>{r.color[e]=i[n].color[e]})):fe.forEach((e=>{r.color[e]=i[s].color[e]}))}}for(const e of i)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let r=0,n=1;for(let i=0;i<this._colorMapSize;++i){const s=i/this._colorMapSize;for(;s>t[n].position;)r=n++;const o=(s-t[r].position)/(t[n].position-t[r].position),l=t[r].color,a=t[n].color,u=new ie.A;fe.forEach((e=>{u[e]=Math.round((0,se.Cc)(l[e],a[e],o))})),u.a=(0,se.qE)(1-(0,se.Cc)(l.a,a.a,o)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const i=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||i.length<256)return null;let r=this.stretchRange[0],n=this.stretchRange[1];if(r>n){const e=r;r=n,n=e}e=(0,se.qE)(e,r,n);const s=i[Math.round((e-r)/(n-r)*(this._colorMapSize-1))].clone();return t||(s.a=1),s}};(0,r._)([(0,c.MZ)({type:["linear","nearest"],json:{write:!0}})],ye.prototype,"interpolation",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ye.prototype,"stretchRange",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(le),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ye.prototype,"colorStops",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(ue),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ye.prototype,"opacityStops",null),(0,r._)([(0,c.MZ)({type:pe,json:{write:!0}})],ye.prototype,"rangeFilter",void 0),(0,r._)([(0,c.MZ)({type:[ie.A],clonable:!1,json:{read:!1}})],ye.prototype,"rasterizedTransferFunction",null),ye=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelTransferFunctionStyle")],ye);const me=ye,fe=["r","g","b"];let ge=class extends(N.A.ClonableMixin(F.A)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};var ve;(0,r._)([(0,c.MZ)({type:ie.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ge.prototype,"color",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],ge.prototype,"value",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ge.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],ge.prototype,"label",void 0),ge=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelUniqueValue")],ge);let be=ve=class extends F.A{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(s.A.ofType(ge)),this.isosurfaces=new(s.A.ofType(re))}clone(){return new ve({variableId:this.variableId,label:this.label,transferFunction:(0,te.o8)(this.transferFunction),uniqueValues:(0,te.o8)(this.uniqueValues),isosurfaces:(0,te.o8)(this.isosurfaces)})}};(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],be.prototype,"variableId",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],be.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:me,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],be.prototype,"transferFunction",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(ge),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],be.prototype,"uniqueValues",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(re),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],be.prototype,"isosurfaces",void 0),be=ve=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVariableStyle")],be);var Me=i(88930),Se=i(86738),_e=i(16930),we=i(21325);function xe(e){const t=/^(days?|hours?|minutes?|seconds?|d|h|m|s) since (\d{1,4})-(\d{1,2})-(\d{1,2})[ |T](\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[\s|Z]?(([+|\-|\s?])(\d{1,2}):(\d{1,2}))?$/i.exec(e);if(null==t)return{didParse:!1};const[,i,r,n,s,o,l,a,u,c,p,d,h]=t;let y="seconds";const m=i.charAt(0).toLowerCase();"d"===m?y="days":"h"===m?y="hours":"m"===m&&(y="minutes");const f=parseInt(r,10);if(Number.isNaN(f))return{didParse:!1};const g=parseInt(n,10);if(Number.isNaN(g)||g<1||g>12)return{didParse:!1};const v=parseInt(s,10);if(Number.isNaN(v)||v<1||v>31)return{didParse:!1};if(2===g){const e=f%4==0&&(f%100!=0||f%400==0);if(e&&v>29||!e&&v>28)return{didParse:!1}}else if((4===g||6===g||9===g||11===g)&&v>30)return{didParse:!1};const b=parseInt(o,10);if(Number.isNaN(b)||b<0||b>23)return{didParse:!1};const M=parseInt(l,10);if(Number.isNaN(M)||M<0||M>59)return{didParse:!1};const S=parseInt(a,10);if(Number.isNaN(S)||S<0||S>59)return{didParse:!1};let _=1,w=0,x=0;if(p&&(_="-"===p?-1:1),d){if(w=parseInt(d,10),Number.isNaN(w)||w<0)return{didParse:!1};if(0!==w){const e=_*w;if(e<-12||e>14)return{didParse:!1}}}if(h&&(x=parseInt(h,10),Number.isNaN(x)||x<0||x>59))return{didParse:!1};const A=`${f}`.padStart(4,"0"),Z=`${g}`.padStart(2,"0"),j=`${v}`.padStart(2,"0"),I=`${b}`.padStart(2,"0"),T=`${M}`.padStart(2,"0"),N=`${S}`.padStart(2,"0");let V="Z";return 0===w&&0===x||(V=_>0?"+":"-",V+=`${w}`.padStart(2,"0"),V+=":",V+=`${x}`.padStart(2,"0")),{didParse:!0,unit:y,reference:new Date(`${A}-${Z}-${j}T${I}:${T}:${N}.000${V}`)}}let Ae=class extends F.A{constructor(){super(...arguments),this.values=null}};(0,r._)([(0,c.MZ)({type:[Number],json:{write:!0}})],Ae.prototype,"values",void 0),Ae=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelIrregularSpacing")],Ae);const Ze=Ae;let je=class extends F.A{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],je.prototype,"scale",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],je.prototype,"offset",void 0),je=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelRegularSpacing")],je);const Ie=je;let Te=class extends F.A{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,r._)([(0,c.MZ)({type:Ze,json:{write:!0}})],Te.prototype,"irregularSpacing",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isPositiveUp",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isWrappedDateLine",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"name",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"quantity",void 0),(0,r._)([(0,c.MZ)({type:Ie,json:{write:!0}})],Te.prototype,"regularSpacing",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:!0}})],Te.prototype,"size",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"unit",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{read:!1}})],Te.prototype,"isRegular",null),Te=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelDimension")],Te);const Ne=Te;let Ve=class extends F.A{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=_e.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size];return[e[0],t[0],r[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size],n=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)n[e]<2?n[e]=1:n[e]-=1;return i.isRegular&&!i.isPositiveUp&&(n[2]*=-1),[(e[1]-e[0])/n[0],(t[1]-t[0])/n[1],(r[1]-r[0])/n[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0;let t=this.dimensions[3].size>0;if(t){const e=this.dimensions[3];t="time"===e.quantity,t&&null!==e.unit&&(t=xe(e.unit).didParse)}if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}get timeStops(){if("xyzt"!==this.volumeType)return[];const e=this.dimensions[3],t=[],i=xe(e.unit);if(i.didParse)if(e.isRegular){const r=e.regularSpacing?.offset??0,n=e.regularSpacing?.scale||1;for(let s=0;s<e.size;++s){const e=r+n*s;t.push((0,Me.mi)(i.reference,e,i.unit))}}else if(Array.isArray(e.irregularSpacing?.values)&&e.irregularSpacing.values.length>0)for(let r=0;r<e.irregularSpacing.values.length;++r){const n=e.irregularSpacing.values[r];t.push((0,Me.mi)(i.reference,n,i.unit))}return t}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return l.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,we.aI)(this.spatialReference,e.spatialReference))return l.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.fA)(e.x,e.y,e.z??0);(0,y.d)(t,t,this.originInLayerSpace3D),(0,y.D)(t,t,this.voxelSizeInLayerSpaceSigned);const i=this.dimensions[this.zDimension];if(!i.isRegular&&Array.isArray(i.irregularSpacing?.values)&&i.irregularSpacing.values.length>1){const r=e.z??0,n=i.irregularSpacing.values,s=i.isPositiveUp?1:-1,o=n.reduce(((e,t)=>Math.abs(s*t-r)<Math.abs(s*e-r)?t:e));for(let e=0;e<n.length;++e)if(n[e]===o){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new Se.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.ci)(e);if((0,y.C)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.f)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Se.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const i=this.dimensions[this.zDimension];return i.isRegular||Array.isArray(i.irregularSpacing?.values)&&(e[2]<0?t[2]=i.irregularSpacing.values[0]:e[2]<i.irregularSpacing.values.length?t[2]=i.irregularSpacing.values[e[2]]:t[2]=i.irregularSpacing.values[i.irregularSpacing.values.length-1],i.isPositiveUp||(t[2]*=-1)),new Se.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};var Fe;(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"id",void 0),(0,r._)([(0,c.MZ)({type:[Ne],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"dimensions",void 0),(0,r._)([(0,c.MZ)({type:_e.A,json:{read:{enabled:!1}}})],Ve.prototype,"spatialReference",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1}})],Ve.prototype,"zDimension",null),(0,r._)([(0,c.MZ)({type:[Boolean],json:{read:!1}})],Ve.prototype,"isValid",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"originInLayerSpace3D",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"voxelSizeInLayerSpaceSigned",null),(0,r._)([(0,c.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Ve.prototype,"volumeType",null),(0,r._)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ve.prototype,"sizeInVoxels",null),(0,r._)([(0,c.MZ)({type:[Date],json:{read:!1,write:!1}})],Ve.prototype,"timeStops",null),Ve=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolume")],Ve);let Re=Fe=class extends F.A{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Fe;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"apronWidth",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"brickSize",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"maxLodLevel",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"nodeSize",void 0),Re=Fe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolumeIndex")],Re);const ze=Re;let Pe=class extends(N.A.ClonableMixin(F.A)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=k(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=B(this.normal);return V.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=k(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};var Oe;(0,r._)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],Pe.prototype,"enabled",void 0),(0,r._)([(0,c.MZ)({type:String,json:{write:!0}})],Pe.prototype,"label",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],Pe.prototype,"orientation",null),(0,r._)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,H.w)((e=>V.ie.normalize((0,p.GB)(e),0,!0)))],Pe.prototype,"tilt",null),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],Pe.prototype,"normal",void 0),(0,r._)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],Pe.prototype,"point",void 0),Pe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelDynamicSection")],Pe);let Ee=Oe=class extends F.A{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(s.A.ofType(G)),this.dynamicSections=new(s.A.ofType(Pe))}set slices(e){this._set("slices",(0,ne.V)(e,this._get("slices"),s.A.ofType(G)))}set dynamicSections(e){this._set("dynamicSections",(0,ne.V)(e,this._get("dynamicSections"),s.A.ofType(Pe)))}clone(){return new Oe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,te.o8)(this.slices),dynamicSections:(0,te.o8)(this.dynamicSections)})}};(0,r._)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Ee.prototype,"volumeId",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{default:1,write:!0}})],Ee.prototype,"verticalExaggeration",void 0),(0,r._)([(0,c.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Ee.prototype,"exaggerationMode",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{default:0,write:!0}})],Ee.prototype,"verticalOffset",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(G),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Ee.prototype,"slices",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(Pe),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Ee.prototype,"dynamicSections",null),Ee=Oe=(0,r._)([(0,h.$)("esri.layers.voxel.VoxelVolumeStyle")],Ee);var Ue=i(30291),Le=i(64272),De=i(26253);let qe=class extends((0,x.w6)((0,b.b)((0,S.q)((0,_.A)((0,w.j)((0,a.P)((0,M.d)((0,v.p)(g.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new W,this.opacity=1,this.variables=new s.A,this.volumes=new s.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.popupTemplate=null,this.test=null,this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0,this.volumeStyles=new(s.A.ofType(Ee)),this.variableStyles=new(s.A.ofType(be)),this.sections=new(s.A.ofType(K))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,A.Jf)(e,l.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(i),Promise.resolve(this)}read(e,t){super.read(e,t),"service"===t?.origin&&this.version.major<=3&&this.version.minor<=0&&!this.getAtOrigin("popupTemplate","service")&&this.setAtOrigin("popupTemplate",this.createPopupTemplate(),"service");for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new o.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,i){if(null!=e&&"object"==typeof e){const r=f.A.fromJSON(e,i);if(0===r.zmin&&0===r.zmax&&Array.isArray(t.volumes)){const e=Ve.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,i=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>i){const t=e;e=i,i=t}r.zmin=e,r.zmax=i}}}return r}return null}get fields(){const e=[new j.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"}),new j.A({name:"Voxel.CurrentVariable",alias:"Current Variable",domain:null,editable:!1,length:128,type:"string"})];for(const t of this.variables){const i=new j.A({name:t.name,alias:t.description,domain:null,editable:!1,length:128,type:"discrete"===t.renderingFormat.continuity?"string":"double"});e.push(i)}const t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new j.A({name:"Voxel.LocalTime",alias:"Local Time",domain:null,editable:!1,length:256,type:"date"});e.push(t);const i=new j.A({name:"Voxel.SourceTime",alias:"Source Time",domain:null,editable:!1,length:256,type:"string"});e.push(i)}if("xyt"!==t.volumeType){const t=new j.A({name:"Voxel.Depth",alias:"Depth",domain:null,editable:!1,length:128,type:"double"});e.push(t)}}return e}get fieldsIndex(){return this.loaded?new I.A(this.fields):null}getField(e){return this.fieldsIndex?.get(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.fields;return(0,Ue.tn)({fields:t,title:"{Voxel.Position}"},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const i=this.variableStyles.findIndex((e=>e.variableId===t));return i<0?null:this.variableStyles.at(i)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const i=this.variables.findIndex((e=>e.id===t));return i<0?null:this.variables.at(i)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}get timeInfo(){const e=this.getVolume(null);if("xyzt"!==e?.volumeType)return null;const t=e.timeStops;if(!t?.length)return null;const i=new Le.T({start:t[0],end:t.at(-1)});return new T.A({fullTimeExtent:i,stops:t})}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,i){const r=this.getVariable(e);if(null==r||"continuous"!==r.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const n=this.variableStyles.findIndex((t=>t.variableId===e));if(n<0)return null;const s=this.variableStyles.at(n);return s?.transferFunction?s.transferFunction.getColorForContinuousDataValue(t,i):null}getSections(){const e=[];for(const t of this.sections)e.push(new K({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const i=this._getVariable(t);if(null!=i){const r=t.clone();r.isosurfaces.length>4&&(r.isosurfaces=r.isosurfaces.slice(0,3),l.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of r.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(r.variableId,e.value,!1);null==t||t.equals(e.color)||(e.color=t)}if("continuous"===i.renderingFormat.continuity)(null===r.transferFunction||r.transferFunction.colorStops.length<2)&&l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==r.transferFunction&&(Array.isArray(r.transferFunction.stretchRange)&&2===r.transferFunction.stretchRange.length||(l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),r.transferFunction.stretchRange=[0,1],r.transferFunction.colorStops.removeAll()));else if("discrete"===i.renderingFormat.continuity)if(0===t.uniqueValues.length)l.A.getLogger(this).error(`VoxelVariableStyle for variable ${i.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(r)}else l.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const i=this._getVolumeFromVolumeId(t.volumeId);if(null!=i){const r=t.clone();for(const e of r.slices)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of r.dynamicSections)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");e.push(r)}else l.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,i){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const r=(0,m.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(r,r),!(Math.abs(r[0])+Math.abs(r[1])+Math.abs(r[2])<1e-6||(e.normal[0]=r[0],e.normal[1]=r[1],e.normal[2]=r[2],0))}};(0,r._)([(0,c.MZ)({type:["Voxel"]})],qe.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.MZ)(Z.fV)],qe.prototype,"legendEnabled",void 0),(0,r._)([(0,c.MZ)({json:{write:!0}})],qe.prototype,"title",void 0),(0,r._)([(0,c.MZ)(Z.OZ)],qe.prototype,"url",null),(0,r._)([(0,c.MZ)({type:s.A.ofType(K),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],qe.prototype,"sections",void 0),(0,r._)([(0,c.MZ)({type:p.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],qe.prototype,"currentVariableId",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(Ee),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],qe.prototype,"volumeStyles",void 0),(0,r._)([(0,c.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],qe.prototype,"renderMode",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(be),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],qe.prototype,"variableStyles",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],qe.prototype,"enableSlices",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],qe.prototype,"enableSections",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],qe.prototype,"enableDynamicSections",void 0),(0,r._)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],qe.prototype,"enableIsosurfaces",void 0),(0,r._)([(0,c.MZ)({type:W,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],qe.prototype,"shading",void 0),(0,r._)([(0,c.MZ)({type:["show","hide"]})],qe.prototype,"listMode",void 0),(0,r._)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],qe.prototype,"opacity",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(ee)})],qe.prototype,"variables",void 0),(0,r._)([(0,c.MZ)({type:s.A.ofType(Ve)})],qe.prototype,"volumes",void 0),(0,r._)([(0,c.MZ)({type:ze})],qe.prototype,"index",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],qe.prototype,"minScale",void 0),(0,r._)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],qe.prototype,"maxScale",void 0),(0,r._)([(0,c.MZ)({json:{read:!1},readOnly:!0})],qe.prototype,"type",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],qe.prototype,"version",void 0),(0,r._)([(0,d.w)("service","version")],qe.prototype,"readVersion",null),(0,r._)([(0,c.MZ)({type:f.A})],qe.prototype,"fullExtent",void 0),(0,r._)([(0,d.w)("service","fullExtent",["fullExtent"])],qe.prototype,"readFullExtent",null),(0,r._)([(0,c.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],qe.prototype,"fields",null),(0,r._)([(0,c.MZ)({readOnly:!0})],qe.prototype,"fieldsIndex",null),(0,r._)([(0,c.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,i){t[i]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],qe.prototype,"popupEnabled",void 0),(0,r._)([(0,c.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],qe.prototype,"popupTemplate",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],qe.prototype,"defaultPopupTemplate",null),(0,r._)([(0,c.MZ)({type:T.A,readOnly:!0,json:{read:!1}})],qe.prototype,"timeInfo",null),(0,r._)([(0,c.MZ)({type:Le.T,json:{read:!1}})],qe.prototype,"timeExtent",void 0),(0,r._)([(0,c.MZ)({type:De.T,json:{read:!1}})],qe.prototype,"timeOffset",void 0),(0,r._)([(0,c.MZ)({type:Boolean,nonNullable:!0,json:{origins:{"web-scene":{name:"timeAnimation",write:!0},service:{read:!1}}}})],qe.prototype,"useViewTime",void 0),qe=(0,r._)([(0,h.$)("esri.layers.VoxelLayer")],qe);const $e=qe},18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(90237),n=i(53966),s=i(10107),o=(i(44208),i(87811),i(40608)),l=i(60694);const a=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.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,l.Jf)(e,n.A.getLogger(this)))}};return(0,r._)([(0,s.MZ)()],t.prototype,"title",null),(0,r._)([(0,s.MZ)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},25036:(e,t,i)=>{i.d(t,{j:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(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 i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,r._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,r._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,r._)([(0,n.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,r._)([(0,s.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},26253:(e,t,i)=>{i.d(t,{T:()=>p});var r=i(90237),n=i(69540),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(93223)),u=i(40608),c=i(73133);let p=class extends(n.A.ClonableMixin(s.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,r._)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,r._)([(0,u.$)("esri.time.TimeInterval")],p)},29242:(e,t,i)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function n(e,t,i,r,n,s,o,l,a){return[e,t,i,r,n,s,o,l,a]}i.d(t,{fA:()=>n,vt:()=>r,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,fromValues:n},Symbol.toStringTag,{value:"Module"}))},30291:(e,t,i)=>{i.d(t,{tn:()=>u});var r=i(13874),n=i(30524),s=i(89893),o=(i(84424),i(80737),i(96808),i(66159)),l=(i(67336),i(92094),i(23721),i(47582),i(41227)),a=i(68780);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:u},h){if(!i)return null;const m=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),!0!==i&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||y,sortDisabled:t?.sortDisabled}).map((t=>new l.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:a},h);if(!m.length)return null;const f=function(e){const t=(0,n.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),g=[new o.A,new s.A];return new r.A({title:f,content:g,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.A({digitSeparator:!0,places:0});case"double":return new a.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new a.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const y=["geometry","blob","raster","guid","xml"]},38954:(e,t,i)=>{i.d(t,{A:()=>y,B:()=>h,C:()=>c,D:()=>p,E:()=>R,F:()=>E,H:()=>L,a:()=>z,b:()=>g,c:()=>o,d:()=>u,e:()=>x,f:()=>a,g:()=>f,h:()=>A,i:()=>l,j:()=>v,k:()=>M,l:()=>s,m:()=>Z,n:()=>w,o:()=>I,q:()=>F,r:()=>_,s:()=>b,t:()=>j,u:()=>S,v:()=>T,w:()=>d,x:()=>U,y:()=>D,z:()=>m});var r=i(51850),n=i(34304);function s(e){const t=e[0],i=e[1],r=e[2];return Math.sqrt(t*t+i*i+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,i,r){return e[0]=t,e[1]=i,e[2]=r,e}function a(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function u(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function p(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function y(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function m(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function f(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t,i,r){return e[0]=t[0]+i[0]*r,e[1]=t[1]+i[1]*r,e[2]=t[2]+i[2]*r,e}function v(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(i*i+r*r+n*n)}function b(e,t){const i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return i*i+r*r+n*n}function M(e){const t=e[0],i=e[1],r=e[2];return t*t+i*i+r*r}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function _(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function w(e,t){const i=t[0],r=t[1],n=t[2];let s=i*i+r*r+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,i){const r=t[0],n=t[1],s=t[2],o=i[0],l=i[1],a=i[2];return e[0]=n*a-s*l,e[1]=s*o-r*a,e[2]=r*l-n*o,e}function Z(e,t,i,r){const n=t[0],s=t[1],o=t[2];return e[0]=n+r*(i[0]-n),e[1]=s+r*(i[1]-s),e[2]=o+r*(i[2]-o),e}function j(e,t,i){const r=t[0],n=t[1],s=t[2];return e[0]=i[0]*r+i[4]*n+i[8]*s+i[12],e[1]=i[1]*r+i[5]*n+i[9]*s+i[13],e[2]=i[2]*r+i[6]*n+i[10]*s+i[14],e}function I(e,t,i){const r=t[0],n=t[1],s=t[2];return e[0]=r*i[0]+n*i[3]+s*i[6],e[1]=r*i[1]+n*i[4]+s*i[7],e[2]=r*i[2]+n*i[5]+s*i[8],e}function T(e,t,i){const r=i[0],n=i[1],s=i[2],o=i[3],l=t[0],a=t[1],u=t[2],c=n*u-s*a,p=s*l-r*u,d=r*a-n*l,h=n*d-s*p,y=s*c-r*d,m=r*p-n*c,f=2*o;return e[0]=l+c*f+2*h,e[1]=a+p*f+2*y,e[2]=u+d*f+2*m,e}const N=(0,r.vt)(),V=(0,r.vt)();function F(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t,i){const r=i[0]-t[0],n=i[1]-t[1],s=i[2]-t[2];let o=r*r+n*n+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const z=u,P=c,O=p,E=v,U=b,L=s,D=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:a,angle:function(e,t){w(N,e),w(V,t);const i=x(N,V);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(e,t,i,r,n,s){const o=1-s,l=o*o,a=s*s,u=l*o,c=3*s*l,p=3*a*o,d=a*s;return e[0]=t[0]*u+i[0]*c+r[0]*p+n[0]*d,e[1]=t[1]*u+i[1]*c+r[1]*p+n[1]*d,e[2]=t[2]*u+i[2]*c+r[2]*p+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,i=1){return e[0]=Math.min(Math.max(e[0],t),i),e[1]=Math.min(Math.max(e[1],t),i),e[2]=Math.min(Math.max(e[2],t),i),e},copy:o,cross:A,crossAndNormalize:function(e,t,i){const r=t[0],n=t[1],s=t[2],o=i[0],l=i[1],a=i[2],u=n*a-s*l,c=s*o-r*a,p=r*l-n*o,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:R,dist:E,distance:v,div:O,divide:p,dot:x,equals:function(e,t){if(e===t)return!0;const i=e[0],r=e[1],s=e[2],o=t[0],l=t[1],a=t[2],u=(0,n.FD)();return Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))},exactEquals:F,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,i,r,n,s){const o=s*s,l=o*(2*s-3)+1,a=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*l+i[0]*a+r[0]*u+n[0]*c,e[1]=t[1]*l+i[1]*a+r[1]*u+n[1]*c,e[2]=t[2]*l+i[2]*a+r[2]*u+n[2]*c,e},inverse:_,len:L,length:s,lerp:Z,max:m,min:y,mul:P,multiply:c,negate:S,normalize:w,random:function(e,t=1){const i=n.Ov,r=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=s*t,e},rotateX:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[0],s[1]=n[1]*Math.cos(r)-n[2]*Math.sin(r),s[2]=n[1]*Math.sin(r)+n[2]*Math.cos(r),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateY:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[2]*Math.sin(r)+n[0]*Math.cos(r),s[1]=n[1],s[2]=n[2]*Math.cos(r)-n[0]*Math.sin(r),e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},rotateZ:function(e,t,i,r){const n=[],s=[];return n[0]=t[0]-i[0],n[1]=t[1]-i[1],n[2]=t[2]-i[2],s[0]=n[0]*Math.cos(r)-n[1]*Math.sin(r),s[1]=n[0]*Math.sin(r)+n[1]*Math.cos(r),s[2]=n[2],e[0]=s[0]+i[0],e[1]=s[1]+i[1],e[2]=s[2]+i[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:f,scaleAndAdd:g,set:l,sign:h,sqrDist:U,sqrLen:D,squaredDistance:b,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:z,subtract:u,transformMat3:I,transformMat4:j,transformQuat:T},Symbol.toStringTag,{value:"Module"}))},52136:(e,t,i)=>{i.d(t,{p:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(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,r._)([(0,n.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,s.$)("esri.layers.mixins.APIKeyMixin")],t),t}},54239:(e,t,i)=>{i.d(t,{A:()=>g});var r,n=i(90237),s=i(4576),o=i(66552),l=i(25482),a=i(83047),u=i(67076),c=i(10107),p=(i(44208),i(53966),i(36005)),d=i(40608),h=i(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.Xy)(m,"orthometric");const f=(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=r=class extends l.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({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 i=(0,a.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??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 r;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,n._)([(0,c.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,n._)([(0,h.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,n._)([(0,p.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,n._)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,n._)([(0,p.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,n._)([(0,p.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,n._)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,n._)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=r=(0,n._)([(0,d.$)("esri.geometry.HeightModelInfo")],g)},62885:(e,t,i)=>{i.d(t,{H:()=>s,V:()=>n});var r=i(5503);function n(e,t,i=r.A){return t||(t=new i),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function s(e){return e}},64272:(e,t,i)=>{i.d(t,{T:()=>d});var r,n=i(90237),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),c=i(43937),p=i(98623);let d=class extends s.A{static{r=this}static get allTime(){return h}static get empty(){return y}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&i===n}expandTo(e,t=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,e,t));let n=this.end;if(n){const i=(0,o.lL)(n,e,t);n=n.getTime()===i.getTime()?i:(0,o.S1)(i,1,e,t)}return new r({start:i,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,l;return n>=t&&n<=i?o=n:t>=n&&t<=s&&(o=t),i>=n&&i<=s?l=i:s>=t&&s<=i&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(e,t,i=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.S1)(s,e,t,i)),null!=l&&(n.end=(0,o.S1)(l,e,t,i)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,n._)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,a.w)("start")],d.prototype,"readStart",null),(0,n._)([(0,c.K)("start")],d.prototype,"writeStart",null),d=r=(0,n._)([(0,u.$)("esri.time.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0})},67026:(e,t,i)=>{i.d(t,{A6:()=>m,Xd:()=>c,Xr:()=>h,hZ:()=>g,lw:()=>p,t2:()=>I,x8:()=>u});var r=i(29242),n=i(82534),s=i(51850),o=i(34304),l=i(38954),a=i(87317);function u(e,t,i){i*=.5;const r=Math.sin(i);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(i),e}function c(e,t){const i=2*Math.acos(t[3]),r=Math.sin(i/2);return r>(0,o.FD)()?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),i}function p(e,t,i){const r=t[0],n=t[1],s=t[2],o=t[3],l=i[0],a=i[1],u=i[2],c=i[3];return e[0]=r*c+o*l+n*u-s*a,e[1]=n*c+o*a+s*l-r*u,e[2]=s*c+o*u+r*a-n*l,e[3]=o*c-r*l-n*a-s*u,e}function d(e,t,i,r){const n=t[0],s=t[1],l=t[2],a=t[3];let u,c,p,d,h,y=i[0],m=i[1],f=i[2],g=i[3];return c=n*y+s*m+l*f+a*g,c<0&&(c=-c,y=-y,m=-m,f=-f,g=-g),1-c>(0,o.FD)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-r)*u)/p,h=Math.sin(r*u)/p):(d=1-r,h=r),e[0]=d*n+h*y,e[1]=d*s+h*m,e[2]=d*l+h*f,e[3]=d*a+h*g,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const i=t[0]+t[4]+t[8];let r;if(i>0)r=Math.sqrt(i+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);const n=(i+1)%3,s=(i+2)%3;r=Math.sqrt(t[3*i+i]-t[3*n+n]-t[3*s+s]+1),e[i]=.5*r,r=.5/r,e[3]=(t[3*n+s]-t[3*s+n])*r,e[n]=(t[3*n+i]+t[3*i+n])*r,e[s]=(t[3*s+i]+t[3*i+s])*r}return e}function m(e,t,i,r){const n=.5*Math.PI/180;t*=n,i*=n,r*=n;const s=Math.sin(t),o=Math.cos(t),l=Math.sin(i),a=Math.cos(i),u=Math.sin(r),c=Math.cos(r);return e[0]=s*a*c-o*l*u,e[1]=o*l*c+s*a*u,e[2]=o*a*u-s*l*c,e[3]=o*a*c+s*l*u,e}const f=a.c,g=a.s,v=a.g,b=p,M=a.d,S=a.h,_=a.l,w=a.j,x=w,A=a.b,Z=A,j=a.n,I=a.a,T=a.e,N=(0,s.vt)(),V=(0,s.fA)(1,0,0),F=(0,s.fA)(0,1,0),R=(0,n.vt)(),z=(0,n.vt)(),P=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const i=t[0],r=t[1],n=t[2];return e[0]=i,e[1]=r,e[2]=n,e[3]=Math.sqrt(Math.abs(1-i*i-r*r-n*n)),e},conjugate:h,copy:f,dot:S,equals:T,exactEquals:I,fromEuler:m,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const i=t[0],r=t[1],n=t[2],s=t[3],o=i*i+r*r+n*n+s*s,l=o?1/o:0;return e[0]=-i*l,e[1]=-r*l,e[2]=-n*l,e[3]=s*l,e},len:x,length:w,lerp:_,mul:b,multiply:p,normalize:j,random:function(e){const t=o.Ov,i=t(),r=t(),n=t(),s=Math.sqrt(1-i),l=Math.sqrt(i);return e[0]=s*Math.sin(2*Math.PI*r),e[1]=s*Math.cos(2*Math.PI*r),e[2]=l*Math.sin(2*Math.PI*n),e[3]=l*Math.cos(2*Math.PI*n),e},rotateX:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+o*l,e[1]=n*a+s*l,e[2]=s*a-n*l,e[3]=o*a-r*l,e},rotateY:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a-s*l,e[1]=n*a+o*l,e[2]=s*a+r*l,e[3]=o*a-n*l,e},rotateZ:function(e,t,i){i*=.5;const r=t[0],n=t[1],s=t[2],o=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+n*l,e[1]=n*a-r*l,e[2]=s*a+o*l,e[3]=o*a-s*l,e},rotationTo:function(e,t,i){const r=(0,l.e)(t,i);return r<-.999999?((0,l.h)(N,V,t),(0,l.H)(N)<1e-6&&(0,l.h)(N,F,t),(0,l.n)(N,N),u(e,N,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.h)(N,t,i),e[0]=N[0],e[1]=N[1],e[2]=N[2],e[3]=1+r,j(e,e))},scale:M,set:g,setAxes:function(e,t,i,r){const n=P;return n[0]=i[0],n[3]=i[1],n[6]=i[2],n[1]=r[0],n[4]=r[1],n[7]=r[2],n[2]=-t[0],n[5]=-t[1],n[8]=-t[2],j(e,y(e,n))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,i,r,n,s){return d(R,t,n,s),d(z,i,r,s),d(e,R,z,2*s*(1-s)),e},sqrLen:Z,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},68197:(e,t,i)=>{i.d(t,{A:()=>p});var r,n,s=i(40876),o=i(34727),l=i(56507);function a(e){return(0,o.qE)((0,l.Vr)(e),0,255)}function u(e,t){const i=e.toString(16).padStart(2,"0");return t?i.slice(0,1):i}class c{static blendColors(e,t,i,r=new c){return r.r=Math.round(e.r+(t.r-e.r)*i),r.g=Math.round(e.g+(t.g-e.g)*i),r.b=Math.round(e.b+(t.b-e.b)*i),r.a=e.a+(t.a-e.a)*i,r._sanitize()}static fromRgb(e,t){const i=(0,s.lT)(e);return i?c.fromArray(i,t):null}static fromHex(e,t=new c){const i=(0,s.oW)(e);return i?c.fromArray(i,t):null}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const i=(0,s.Eq)(e);return i?c.fromArray(i,t):null}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?c.fromString(e,this):Array.isArray(e)?c.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,i=e?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${u(this.r,r)}${u(this.g,r)}${u(this.b,r)}${n?u(Math.round(255*this.a),r):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=c.AlphaMode.ALWAYS){const t=a(this.r),i=a(this.g),r=a(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,i,r,a(255*this.a)]:[t,i,r]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,s.c1)(this.r),this.g=(0,s.c1)(this.g),this.b=(0,s.c1)(this.b),this.a=(0,s.G1)(this.a),this}_set(e,t,i,r){this.r=e,this.g=t,this.b=i,this.a=r}}c.prototype.declaredClass="esri.Color",r=c||(c={}),(n=r.AlphaMode||(r.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const p=c},69052:(e,t,i)=>{i.d(t,{ie:()=>l});var r=i(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return s(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return s(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function s(e,t,i,r,n=0,s=!1){return(r-=n)<t?r+=o(e,t-r):r>i&&(r-=o(e,r-i)),s&&r===i&&(r=t),r+n}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}new n(0,2*Math.PI),new n(-Math.PI,Math.PI);const l=new n(0,360)},69208:(e,t,i)=>{i.d(t,{d:()=>o});var r=i(90237),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},69540:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(90237),n=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(35666),a=i(88620),u=i(40608);const c=e=>{let t=class extends e{clone(){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,i=e.store,r={},n=new Map;for(const e in t){const o=t[e],a=i?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const c=this[e];let p=null;p="function"==typeof u?u(c):"reference"===u?c:(0,s.TU)(c),null!=c&&null==p||(a===l.Gr.DEFAULTS?n.set(e,p):r[e]=p)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(n.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,i]of n)e.set(t,i,l.Gr.DEFAULTS)}return u}};return t=(0,r._)([(0,u.$)("esri.core.Clonable")],t),t};let p=class extends(c(n.A)){};p=(0,r._)([(0,u.$)("esri.core.Clonable")],p),(p||(p={})).ClonableMixin=c;const d=p},73133:(e,t,i)=>{i.d(t,{j:()=>r});const r=(0,i(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})},80200:(e,t,i)=>{i.d(t,{T:()=>r,d:()=>m});const r={Base64:0,Hex:1,String:2,Raw:3},n=8,s=(1<<n)-1;function o(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e){const t=[];for(let i=0,r=e.length*n;i<r;i+=n)t[i>>5]|=(e.charCodeAt(i/n)&s)<<i%32;return t}function a(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=n)t.push(String.fromCharCode(e[i>>5]>>>i%32&s));return t.join("")}function u(e,t,i,r,n,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(r,s)),n),i)}function c(e,t,i,r,n,s,o){return u(t&i|~t&r,e,t,n,s,o)}function p(e,t,i,r,n,s,o){return u(t&r|i&~r,e,t,n,s,o)}function d(e,t,i,r,n,s,o){return u(t^i^r,e,t,n,s,o)}function h(e,t,i,r,n,s,o){return u(i^(t|~r),e,t,n,s,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,n=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const l=i,a=r,u=n,y=s;i=c(i,r,n,s,e[t],7,-680876936),s=c(s,i,r,n,e[t+1],12,-389564586),n=c(n,s,i,r,e[t+2],17,606105819),r=c(r,n,s,i,e[t+3],22,-1044525330),i=c(i,r,n,s,e[t+4],7,-176418897),s=c(s,i,r,n,e[t+5],12,1200080426),n=c(n,s,i,r,e[t+6],17,-1473231341),r=c(r,n,s,i,e[t+7],22,-45705983),i=c(i,r,n,s,e[t+8],7,1770035416),s=c(s,i,r,n,e[t+9],12,-1958414417),n=c(n,s,i,r,e[t+10],17,-42063),r=c(r,n,s,i,e[t+11],22,-1990404162),i=c(i,r,n,s,e[t+12],7,1804603682),s=c(s,i,r,n,e[t+13],12,-40341101),n=c(n,s,i,r,e[t+14],17,-1502002290),r=c(r,n,s,i,e[t+15],22,1236535329),i=p(i,r,n,s,e[t+1],5,-165796510),s=p(s,i,r,n,e[t+6],9,-1069501632),n=p(n,s,i,r,e[t+11],14,643717713),r=p(r,n,s,i,e[t],20,-373897302),i=p(i,r,n,s,e[t+5],5,-701558691),s=p(s,i,r,n,e[t+10],9,38016083),n=p(n,s,i,r,e[t+15],14,-660478335),r=p(r,n,s,i,e[t+4],20,-405537848),i=p(i,r,n,s,e[t+9],5,568446438),s=p(s,i,r,n,e[t+14],9,-1019803690),n=p(n,s,i,r,e[t+3],14,-187363961),r=p(r,n,s,i,e[t+8],20,1163531501),i=p(i,r,n,s,e[t+13],5,-1444681467),s=p(s,i,r,n,e[t+2],9,-51403784),n=p(n,s,i,r,e[t+7],14,1735328473),r=p(r,n,s,i,e[t+12],20,-1926607734),i=d(i,r,n,s,e[t+5],4,-378558),s=d(s,i,r,n,e[t+8],11,-2022574463),n=d(n,s,i,r,e[t+11],16,1839030562),r=d(r,n,s,i,e[t+14],23,-35309556),i=d(i,r,n,s,e[t+1],4,-1530992060),s=d(s,i,r,n,e[t+4],11,1272893353),n=d(n,s,i,r,e[t+7],16,-155497632),r=d(r,n,s,i,e[t+10],23,-1094730640),i=d(i,r,n,s,e[t+13],4,681279174),s=d(s,i,r,n,e[t],11,-358537222),n=d(n,s,i,r,e[t+3],16,-722521979),r=d(r,n,s,i,e[t+6],23,76029189),i=d(i,r,n,s,e[t+9],4,-640364487),s=d(s,i,r,n,e[t+12],11,-421815835),n=d(n,s,i,r,e[t+15],16,530742520),r=d(r,n,s,i,e[t+2],23,-995338651),i=h(i,r,n,s,e[t],6,-198630844),s=h(s,i,r,n,e[t+7],10,1126891415),n=h(n,s,i,r,e[t+14],15,-1416354905),r=h(r,n,s,i,e[t+5],21,-57434055),i=h(i,r,n,s,e[t+12],6,1700485571),s=h(s,i,r,n,e[t+3],10,-1894986606),n=h(n,s,i,r,e[t+10],15,-1051523),r=h(r,n,s,i,e[t+1],21,-2054922799),i=h(i,r,n,s,e[t+8],6,1873313359),s=h(s,i,r,n,e[t+15],10,-30611744),n=h(n,s,i,r,e[t+6],15,-1560198380),r=h(r,n,s,i,e[t+13],21,1309151649),i=h(i,r,n,s,e[t+4],6,-145523070),s=h(s,i,r,n,e[t+11],10,-1120210379),n=h(n,s,i,r,e[t+2],15,718787259),r=h(r,n,s,i,e[t+9],21,-343485551),i=o(i,l),r=o(r,a),n=o(n,u),s=o(s,y)}return[i,r,n,s]}function m(e,t=r.Hex){const i=t||r.Base64,s=y(l(e),e.length*n);switch(i){case r.Raw:return s;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(s);case r.String:return a(s);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(s)}}},82534:(e,t,i)=>{function r(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}i.d(t,{o8:()=>n,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:r,fromValues:function(e,t,i,r){return[e,t,i,r]}},Symbol.toStringTag,{value:"Module"}))},85648:(e,t,i)=>{i.d(t,{n:()=>n});var r=i(84952);function n(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,r.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const s={},o="text/plain",l=s[o],a={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 a)s[a[e]]=e},87024:(e,t,i)=>{i.d(t,{P:()=>h});var r=i(49186),n=i(80200),s=i(76553),o=i(84952),l=i(13069),a=i(96156),u=i(35666),c=i(10107),p=i(85648),d=i(97159);function h(e){const t=e?.origins??[void 0];return(i,r)=>{const n=function(e,t,i){if("resource"===e?.type)return function(e,t,i){const r=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{const n=(0,d.r)(e,t,i);return r.type===String?n:"function"==typeof r.type?new r.type({url:n}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(t,n,l,a){if(!a?.resources)return"string"==typeof t?void(n[l]=(0,d.t)(t,a)):void(n[l]=t.write({},a));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),g=r.type!==String&&(!(0,s.H)(this)||a?.origin&&this.originIdOf(i)>(0,u.aB)(a.origin)),v={object:this,propertyName:i,value:t,targetUrl:h,dest:n,targetPropertyName:l,context:a,params:e};a?.portalItem&&h&&!(0,o.oP)(h)?g&&e?.contentAddressed?y(v):g?function(e){const{context:t,targetUrl:i,params:r,value:n,dest:s,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(i),u=f(n,i,t),c=(0,p.n)(u),d=(0,o.Zo)(a.path),h=r?.compress??!1;c===d?(t.resources&&m({...e,resource:a,content:u,compress:h,updates:t.resources.toUpdate}),s[l]=i):y(e)}(v):function({context:e,targetUrl:t,dest:i,targetPropertyName:r}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[r]=t)}(v):a?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,o.w8)(h)||g)?y(v):n[l]=h}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,i,r);for(const e of t){const t=(0,c.rM)(i,e,r);for(const e in n)t[e]=n[e]}}}function y(e){const{targetUrl:t,params:i,value:s,context:a,dest:u,targetPropertyName:c}=e;if(!a.portalItem)return;const h=(0,d.p)(t),y=f(s,t,a);if(i?.contentAddressed&&"json"!==y.type)return void a.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${c}" 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=i?.contentAddressed&&"json"===y.type?(0,n.d)(y.jsonString):h?.filename??(0,l.lk)(),v=(0,o.fj)(i?.prefix??h?.prefix,g),b=`${v}.${(0,p.n)(y)}`;if(i?.contentAddressed&&a.resources&&"json"===y.type){const e=a.resources.toKeep.find((({resource:e})=>e.path===b))??a.resources.toAdd.find((({resource:e})=>e.path===b));if(e)return void(u[c]=e.resource.itemRelativeUrl)}const M=a.portalItem.resourceFromPath(b);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then((e=>{M.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,u[c]=M.itemRelativeUrl})).catch((()=>{})));const S=i?.compress??!1;a.resources&&m({...e,resource:M,content:y,compress:S,updates:a.resources.toAdd}),u[c]=M.itemRelativeUrl}function m({object:e,propertyName:t,updates:i,resource:r,content:n,compress:s}){i.push({resource:r,content:n,compress:s,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function f(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},92071:(e,t,i)=>{i.d(t,{P:()=>b,L:()=>M});var r=i(90237),n=i(69622),s=i(76953),o=i(4718),l=i(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new a,i=this._originStores[l.Gr.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,o.o8)(e),l.Gr.DEFAULTS)}));for(let i=l.Gr.SERVICE;i<l.AU;i++){const r=this._originStores[i];r&&r.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,o.o8)(r),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=l.Gr.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=i){const r=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),r!==t}return!1}delete(e,t=l.Gr.USER){const i=this._originStores[t];if(!i)return;const r=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],r=i?.get(e),n=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),n!==r}originOf(e){return this._propertyOriginMap.get(e)||l.Gr.DEFAULTS}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var u=i(45917),c=i(88620),p=i(40608);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,c.oY)(this),i=t.store,r=new a;t.store=r,(0,s.k)(t,i,r)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const i=h(this),r=(0,l.aB)(t);if("string"==typeof e)return i.get(e,r);const n={};return e.forEach((e=>{n[e]=i.get(e,r)})),n}originOf(e){return(0,l.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const i=h(this),r=(0,l.aB)(t),n=(0,c.oY)(this);let s;s="string"==typeof e?"*"===e?i.keys(r):[e]:e,s.forEach((e=>{n.invalidate(e),i.revert(e,r),n.commit(e)}))}};return t=(0,r._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,c.oY)(e).store}let y=class extends(d(n.A)){};y=(0,r._)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var m=i(16649),f=i(49422);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){(0,c.oY)(this).clearOrigin(e,(0,l.aB)(t))}write(e,t){return(0,f.M)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,c.oY)(this).setAtOrigin(e,t,(0,l.aB)(i))}removeOrigin(e){const t=v(this),i=(0,l.aB)(e),r=t.keys(i);for(const e of r)t.originOf(e)===i&&t.set(e,t.get(e,i),l.Gr.USER)}updateOrigin(e,t){const i=v(this),r=(0,l.aB)(t),n=(0,m.Jt)(this,e);for(let t=r+1;t<l.AU;++t)i.delete(e,t);i.set(e,n,r)}toJSON(e){return this.write({},e)}};return t=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,c.oY)(e).store}const b=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],t),t};let M=class extends(b(n.A)){};M=(0,r._)([(0,p.$)("esri.core.MultiOriginJSONSupport")],M)},95466:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(49186),n=i(53966),s=i(91869),o=i(3330),l=i(12195),a=i(30524),u=i(98623),c=i(56400),p=i(96285);const d=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],g(e))}static fromLayerJSON(e){return new h(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=m(t);if(t&&r){const n=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),i.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):f.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,(()=>p.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,l.W)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:n}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,c.ZS)(n.dateFieldsTimeReference):l??u.n$:null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,c.ZS)(r.timeReference):l:null,d=new Map([[y(n?.creationDateField??""),a],[y(n?.editDateField??""),a],[y(s),p],[y(o),p]]);for(const{name:r,type:n}of e.fields)if(f.has(n))t.set(r,u.L5);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(r,null);else if(i)t.set(r,u.L5);else{const e=d.get(y(r??""))??l;t.set(r,e)}return t}},96184:(e,t,i)=>{i.d(t,{A:()=>y});var r=i(90237),n=i(69540),s=i(25482),o=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),a=i(40608),u=i(43937),c=i(64272),p=i(26253),d=i(56400);function h(e,t){return p.T.fromJSON({value:e,unit:t})}let y=class extends(n.A.ClonableMixin(s.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?c.T.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,r._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,r._)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,r._)([(0,o.MZ)({type:c.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,r._)([(0,l.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,r._)([(0,u.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,r._)([(0,o.MZ)({type:p.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,r._)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,r._)([(0,u.K)("interval")],y.prototype,"writeInterval",null),(0,r._)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,r._)([(0,o.MZ)((0,d.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,r._)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,r._)([(0,a.$)("esri.layers.support.TimeInfo")],y)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4496],{1193:(t,n,e)=>{e.d(n,{H:()=>p});var r,o=e(90237),i=e(25482),a=e(4718),u=e(53966),l=e(10107),s=e(79901),c=e(40608),f=e(31199);let p=r=class extends i.A{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,f.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},u.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&u.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,f.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},u.A.getLogger(this))}castUv(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clone(){const t={position:(0,a.o8)(this.position),uv:(0,a.o8)(this.uv),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),color:(0,a.o8)(this.color)};return new r(t)}clonePositional(){const t={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"color",void 0),(0,o._)([(0,s.w)("color")],p.prototype,"castColor",null),(0,o._)([(0,l.MZ)({nonNullable:!0,json:{write:f.B}})],p.prototype,"position",void 0),(0,o._)([(0,s.w)("position")],p.prototype,"castPosition",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"uv",void 0),(0,o._)([(0,s.w)("uv")],p.prototype,"castUv",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"normal",void 0),(0,o._)([(0,s.w)("normal")],p.prototype,"castNormal",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"tangent",void 0),(0,o._)([(0,s.w)("tangent")],p.prototype,"castTangent",null),p=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshVertexAttributes")],p)},22141:(t,n,e)=>{e.d(n,{$5:()=>b,CN:()=>A,JP:()=>m,KM:()=>S,Mv:()=>_,X4:()=>M,gr:()=>v,qs:()=>w,si:()=>T,xA:()=>B});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),u=e(9093),l=e(38954),s=e(51850),c=e(48353),f=e(9762),p=(e(79258),e(21325)),g=e(28735),d=e(13030),h=e(73354),y=e(65686);const m="Projection may be possible after calling projection.load().";function A(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function M(t,n,e,r,o,i){return F(C.TO_PCPF,d.xs.fromTypedArray(t),R.NORMAL,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function T(t,n,e,r,o,i){return F(C.FROM_PCPF,d.xs.fromTypedArray(t),R.NORMAL,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function w(t,n,e){return(0,o.Ge)(L,e),(0,h.b)(n,t,L),(0,r.or)(L)&&(0,h.n)(n,n),n}function S(t,n,e){return(0,o.z0)(L,e),(0,y.t)(n,t,L),(0,r.or)(L)&&(0,h.n)(n,n,4),n}function B(t,n,e,r,o,i){if(!F(C.TO_PCPF,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),R.TANGENT,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function _(t,n,e,r,o,i){if(!F(C.FROM_PCPF,d.xs.fromTypedArray(t,16),R.TANGENT,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}var R,C,E;function N(t,n,e,r,i){switch((0,c.l)(r,e,P,r),t===C.FROM_PCPF&&(0,a.B8)(P,P),n){case R.NORMAL:return(0,o.Ge)(i,P);case R.TANGENT:return(0,o.z0)(i,P)}}function F(t,n,e,r,o,i,a,u){if(!n)return;const s=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,p.q8)(t)||(0,p.KQ)(t)}(o))for(let r=0;r<s;r++)i.getVec(r,x),n.getVec(r,O),(0,l.o)(O,O,N(t,e,x,a,L)),u.setVec(r,O);else for(let o=0;o<s;o++){i.getVec(o,x),n.getVec(o,O);const s=(0,g.jg)(r.get(o,1));let c=Math.cos(s);e===R.TANGENT!=(t===C.TO_PCPF)&&(c=1/c),N(t,e,x,a,L),t===C.TO_PCPF?(L[0]*=c,L[1]*=c,L[2]*=c,L[3]*=c,L[4]*=c,L[5]*=c):(L[0]*=c,L[3]*=c,L[6]*=c,L[1]*=c,L[4]*=c,L[7]*=c),(0,l.o)(O,O,L),(0,l.n)(O,O),u.setVec(o,O)}return u}(E=R||(R={}))[E.NORMAL=0]="NORMAL",E[E.TANGENT=1]="TANGENT",function(t){t[t.TO_PCPF=0]="TO_PCPF",t[t.FROM_PCPF=1]="FROM_PCPF"}(C||(C={}));const x=(0,s.vt)(),O=(0,s.vt)(),P=(0,u.vt)(),L=(0,i.vt)()},28846:(t,n,e)=>{e.d(n,{convertMeshVertexSpace:()=>l});var r=e(49186),o=e(4718),i=e(74887),a=e(1193),u=e(72258);async function l(t,n,e){await Promise.resolve(),(0,i.Te)(e);const l=(0,u.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!l)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");const s=t.cloneAndModifyVertexAttributes(new a.H({...l,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),n);return s.transform=null,s}},31199:(t,n,e)=>{function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const a of e)if(t instanceof a)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map((t=>`'${t.name}'`));return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},48163:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function i(){return o(1,1)}function a(){return o(1,0)}function u(){return o(0,1)}e.d(n,{Un:()=>l,fA:()=>o,vt:()=>r});const l=i(),s=a(),c=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:s,UNIT_Y:c,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>s});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),u=e;return u[0]=-r,u[4]=-i*o,u[8]=a*o,u[12]=0,u[1]=o,u[5]=-i*r,u[9]=a*r,u[13]=0,u[2]=0,u[6]=a,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=e(37539),l=e(21325);function s(t,n,e,r){const i=(0,u.Tp)(t,r);if(null==i)return!1;const s=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(s===d&&!c(d)&&(s!==u.rz.UNKNOWN||(0,l.aI)(t,r)))return(0,o.kN)(e,n),!0;if(c(d)){const t=u.w5[s][u.rz.LON_LAT],r=u.w5[u.rz.LON_LAT][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),a(f*p[0],f*p[1],e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}const h=c(s);if((d===u.rz.WEB_MERCATOR||d===u.rz.PLATE_CARREE||d===u.rz.WGS84||d===u.rz.CGCS2000)&&(s===u.rz.WGS84||h||s===u.rz.WEB_MERCATOR||s===u.rz.CGCS2000)){const t=u.w5[s][u.rz.LON_LAT],r=u.w5[u.rz.LON_LAT][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),h?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(f*p[0],f*p[1],e):(0,o.D_)(e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}return!1}function c(t){return t===u.rz.SPHERICAL_ECEF||t===u.rz.SPHERICAL_MARS_PCPF||t===u.rz.SPHERICAL_MOON_PCPF||t===u.rz.WGS84_ECEF}const f=(0,r.kU)(1),p=(0,i.vt)(),g=(0,i.vt)()},65686:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>c,l:()=>s,n:()=>u,t:()=>a});var r=e(40876),o=(e(44208),e(53966));function i(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=4,o=r){if(t.length/r!==n.length/o)return;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let h=0,y=0;for(let e=0;e<i;e++){const e=n[h],i=n[h+1],m=n[h+2],A=n[h+3];t[y]=a*e+s*i+p*m,t[y+1]=u*e+c*i+g*m,t[y+2]=l*e+f*i+d*m,t[y+3]=A,h+=o,y+=r}}function u(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,a=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*a,u=i[e],l=i[e+1],s=i[e+2],c=u*u+l*l+s*s;if(c>0){const t=1/Math.sqrt(c);r[n]=t*u,r[n+1]=t*l,r[n+2]=t*s}}}function l(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,a=n.typedBufferStride;let u=0,l=0;for(let n=0;n<o;n++)t[l]=e*i[u],t[l+1]=e*i[u+1],t[l+2]=e*i[u+2],t[l+3]=e*i[u+3],u+=a,l+=r}function s(t,n,e,r){c(t.typedBuffer,n,e,r,t.typedBufferStride)}function c(t,n,e,o,i=4){const a=Math.min(t.length/i,n.count),u=n.typedBuffer,l=n.typedBufferStride;let s=0,c=0;const f=1/r.Tf;for(let n=0;n<a;n++)t[c]=o*(e*u[s])**f,t[c+1]=o*(e*u[s+1])**f,t[c+2]=o*(e*u[s+2])**f,t[c+3]=o*e*u[s+3],s+=l,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:u,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:a,transformMat3View:i,transformMat4:function(t,n,e,r=4,i=r){if(t.length/r!==n.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=t.length/r,u=e[0],l=e[1],s=e[2],c=e[3],f=e[4],p=e[5],g=e[6],d=e[7],h=e[8],y=e[9],m=e[10],A=e[11],M=e[12],T=e[13],v=e[14],b=e[15];let w=0,S=0;for(let e=0;e<a;e++){const e=n[w],o=n[w+1],a=n[w+2],B=n[w+3];t[S]=u*e+f*o+h*a+M*B,t[S+1]=l*e+p*o+y*a+T*B,t[S+2]=s*e+g*o+m*a+v*B,t[S+3]=c*e+d*o+A*a+b*B,w+=i,S+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],a=e[2],u=e[3],l=e[4],s=e[5],c=e[6],f=e[7],p=e[8],g=e[9],d=e[10],h=e[11],y=e[12],m=e[13],A=e[14],M=e[15],T=t.typedBuffer,v=t.typedBufferStride,b=n.typedBuffer,w=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*v,e=t*w,r=b[e],S=b[e+1],B=b[e+2],_=b[e+3];T[n]=o*r+l*S+p*B+y*_,T[n+1]=i*r+s*S+g*B+m*_,T[n+2]=a*r+c*S+d*B+A*_,T[n+3]=u*r+f*S+h*B+M*_}}},Symbol.toStringTag,{value:"Module"}))},65806:(t,n,e)=>{e.d(n,{g:()=>a});var r=e(51850),o=e(80586),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){u[0]=t.x,u[1]=t.y;const o=t.z;return u[2]=o??r??0,(0,i.projectBuffer)(u,t.spatialReference,0,n,e,0)}const a=(0,o.tryProjectWithZConversion)(t,e);return!!a&&(n[0]=a?.x,n[1]=a?.y,n[2]=a?.z??r??0,!0)}const u=(0,r.vt)()},72258:(t,n,e)=>{e.d(n,{UR:()=>v,p5:()=>T,xK:()=>R});var r=e(53966),o=e(34727),i=e(83047),a=e(77690),u=e(29242),l=e(58083),s=e(9093),c=e(38954),f=e(51850),p=e(98764),g=e(48353),d=e(65806),h=e(27615),y=e(21325),m=e(73354),A=e(22141);const M=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function T(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,c.d)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:a}=e,u=x;if(!(0,g.l)(r,a,u,o))return!1;const s=(0,l.B8)(x,u);return null!=s&&((0,c.t)(t,i,s),!0)}function v(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,u=(0,h.Hq)(r)?o:null,f=B(t.spatialReference,e,O.SOURCE_AND_TARGET);if((0,h.yJ)(r,n)&&(!u||(0,l.t2)(u.localMatrix,s.zK))&&_(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=b(n,i);if(!(0,g.l)(n,r,C,a))return(0,A.CN)(M(),n,a),null;if(e&&(0,l.lw)(C,C,e.localMatrix),!(0,g.l)(n,o,E,a))return(0,A.CN)(M(),a,n),null;(0,l.B8)(E,E);const u=(0,l.lw)(C,E,C);return S(u,n,i,O.SOURCE_AND_TARGET),w(t,u)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=b(t,i);if(!(0,g.l)(t,r,C,a))return(0,A.CN)(M(),t,a),null;e&&(0,l.lw)(C,C,e.localMatrix),S(C,t,i,O.SOURCE);const u=new Float64Array(n.position.length),s=function(t,n,e,r,o){(0,m.t)(r,t,n);const i=new Float64Array(t.length);return(0,A.$5)(r,o,i,e)?i:((0,A.CN)(M(),o,e),null)}(n.position,C,t,u,a);if(!s)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,A.qs)(o,a,i),(0,A.si)(a,t,n,e,r,a)?a:((0,A.CN)(M(),r,n),null)}(s,t,u,a,n.normal,C);if(n.normal&&!f)return null;const p=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,A.KM)(o,a,i),(0,A.Mv)(a,t,n,e,r,a)?a:((0,A.CN)(M(),r,n),null)}(s,t,u,a,n.tangent,C);if(n.tangent&&!p)return null;if(o){const t=(0,c.u)(F,o);(0,m.a)(s,s,t)}return{position:s,normal:f,tangent:p}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=b(n,i);if(!(0,g.l)(n,o,C,u))return(0,A.CN)(M(),n,u),null;const s=1/B(n,i,O.TARGET);(0,l.hs)(C,C,[s,s,s]);const c=(0,l.B8)(E,C),{position:f,normal:p,tangent:d}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,m.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=w(t,e.localMatrix);return(0,m.a)(r.position,r.position,n),r}(t,r,e),h=new Float64Array(f.length),y=function(t,n,e,r,o){const i=(0,A.gr)(t,n,r,o);if(!i)return(0,A.CN)(M(),n,o),null;const a=new Float64Array(i.length);return(0,m.t)(a,i,e),a}(f,n,c,h,u);if(!y)return null;const T=(0,a.Ge)(N,c),v=function(t,n,e,r,o,i,a){if(null==t)return null;const u=a??new Float32Array(t.length);return(0,A.X4)(t,n,e,r,o,u)?((0,m.b)(u,u,i),u):((0,A.CN)(M(),e,o),null)}(p,f,n,h,u,T,p!==t.normal?p:void 0);if(!v&&p)return null;const S=function(t,n,e,r,o,i,a){if(null==t)return null;const u=a??new Float32Array(t.length);return(0,A.xA)(t,n,e,r,o,u)?((0,m.b)(u,u,i,4),u):((0,A.CN)(M(),e,o),null)}(d,f,n,h,u,T,d!==t.tangent?d:void 0);return!S&&d?null:{position:y,normal:v,tangent:S}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const a=B(e,i,O.SOURCE_AND_TARGET),u=r||!_(a)?(0,l.C)(C,n?.localMatrix??s.zK):null;u&&S(u,e,i,O.SOURCE_AND_TARGET);const{position:f,normal:p,tangent:g}=u?w(t,u):t,d=i?.allowBufferReuse,h=d?f:new Float64Array(f.length);let y=f;if(r&&(y=(0,m.a)(h,y,r)),o){const t=(0,c.u)(F,o);y=(0,m.a)(h,y,t)}return{position:y!==t.position||d?y:y.slice(),normal:p!==t.normal||d?p:p?.slice(),tangent:g!==t.tangent||d?g:g?.slice()}}(t,t.vertexSpace,n.origin,e)}}function b(t,n){return n?.useEllipsoid&&(0,y.B3)(t)?p.Y0:(0,p.lO)(t)}function w(t,n){const e=new Float64Array(t.position.length);(0,m.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,A.qs)(t.normal,r,n),o&&t.tangent&&(0,A.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function S(t,n,e,r){const o=B(n,e,r);_(o)||(0,l.hs)(t,t,[o,o,o])}function B(t,n,e){const r=!!(e&O.SOURCE),o=!!(e&O.TARGET),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let u=R(i,t);r||!i||_(u)||(M().warn("source unit conversion not supported"),u=1);let l=1/R(a,t);return o||!a||_(l)||(M().warn("target unit conversion not supported"),l=1),u*l}function _(t){return(0,o.Io)(t,1)}function R(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const C=(0,s.vt)(),E=(0,s.vt)(),N=(0,u.vt)(),F=(0,f.vt)(),x=(0,s.vt)();var O,P;(P=O||(O={}))[P.NONE=0]="NONE",P[P.SOURCE=1]="SOURCE",P[P.TARGET=2]="TARGET",P[P.SOURCE_AND_TARGET=3]="SOURCE_AND_TARGET"},73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>u,c:()=>a,d:()=>o,e:()=>p,f:()=>c,l:()=>s,n:()=>g,t:()=>i});var r=e(40876);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[4],c=e[5],f=e[6],p=e[8],g=e[9],d=e[10],h=e[12],y=e[13],m=e[14];let A=0,M=0;for(let e=0;e<i;e++){const e=n[A],i=n[A+1],T=n[A+2];t[M]=a*e+s*i+p*T+h,t[M+1]=u*e+c*i+g*T+y,t[M+2]=l*e+f*i+d*T+m,A+=o,M+=r}return t}function a(t,n,e){u(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function u(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let h=0,y=0;for(let e=0;e<i;e++){const e=n[h],i=n[h+1],m=n[h+2];t[y]=a*e+s*i+p*m,t[y+1]=u*e+c*i+g*m,t[y+2]=l*e+f*i+d*m,h+=o,y+=r}}function l(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,u=0;for(let l=0;l<i;l++)t[u]=e*n[a],t[u+1]=e*n[a+1],t[u+2]=e*n[a+2],a+=o,u+=r;return t}function s(t,n,e,r){c(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function c(t,n,e,o,i=3,a=i){const u=Math.min(t.length/i,n.length/a);let l=0,s=0;const c=1/r.Tf;for(let r=0;r<u;r++)t[s]=o*(e*n[l])**c,t[s+1]=o*(e*n[l+1])**c,t[s+2]=o*(e*n[l+2])**c,l+=a,s+=i}function f(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let a=0,u=0;for(let l=0;l<i;l++)t[u]=n[a]+e[0],t[u+1]=n[a+1]+e[1],t[u+2]=n[a+2]+e[2],a+=o,u+=r;return t}function p(t,n){g(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function g(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let u=0;u<o;u++){const o=n[i],u=n[i+1],l=n[i+2],s=o*o+u*u+l*l;if(s>0){const n=1/Math.sqrt(s);t[a]=n*o,t[a+1]=n*u,t[a+2]=n*l}i+=r,a+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:g,normalizeView:p,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,u=n.typedBufferStride;let l=0,s=0;for(let t=0;t<r;t++)o[s]=a[l]>>e,o[s+1]=a[l+1]>>e,o[s+2]=a[l+2]>>e,l+=u,s+=i},transformMat3:u,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},77690:(t,n,e)=>{e.d(n,{B8:()=>u,Ge:()=>p,I0:()=>f,KC:()=>l,hZ:()=>i,hs:()=>c,lw:()=>s,mg:()=>a,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,o,i,a,u,l,s){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=u,t[7]=l,t[8]=s,t}function a(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function u(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8],f=c*a-u*s,p=-c*i+u*l,g=s*i-a*l;let d=e*f+r*p+o*g;return d?(d=1/d,t[0]=f*d,t[1]=(-c*r+o*s)*d,t[2]=(u*r-o*a)*d,t[3]=p*d,t[4]=(c*e-o*l)*d,t[5]=(-u*e+o*i)*d,t[6]=g*d,t[7]=(-s*e+r*l)*d,t[8]=(a*e-r*i)*d,t):null}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8];return t[0]=a*c-u*s,t[1]=o*s-r*c,t[2]=r*u-o*a,t[3]=u*l-i*c,t[4]=e*c-o*l,t[5]=o*i-e*u,t[6]=i*s-a*l,t[7]=r*l-e*s,t[8]=e*a-r*i,t}function s(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1],d=e[2],h=e[3],y=e[4],m=e[5],A=e[6],M=e[7],T=e[8];return t[0]=p*r+g*a+d*s,t[1]=p*o+g*u+d*c,t[2]=p*i+g*l+d*f,t[3]=h*r+y*a+m*s,t[4]=h*o+y*u+m*c,t[5]=h*i+y*l+m*f,t[6]=A*r+M*a+T*s,t[7]=A*o+M*u+T*c,t[8]=A*i+M*l+T*f,t}function c(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,u=r+r,l=o+o,s=e*a,c=r*a,f=r*u,p=o*a,g=o*u,d=o*l,h=i*a,y=i*u,m=i*l;return t[0]=1-f-d,t[3]=c-m,t[6]=p+y,t[1]=c+m,t[4]=1-s-d,t[7]=g-h,t[2]=p-y,t[5]=g+h,t[8]=1-s-f,t}function p(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8],f=n[9],p=n[10],g=n[11],d=n[12],h=n[13],y=n[14],m=n[15],A=e*u-r*a,M=e*l-o*a,T=e*s-i*a,v=r*l-o*u,b=r*s-i*u,w=o*s-i*l,S=c*h-f*d,B=c*y-p*d,_=c*m-g*d,R=f*y-p*h,C=f*m-g*h,E=p*m-g*y;let N=A*E-M*C+T*R+v*_-b*B+w*S;return N?(N=1/N,t[0]=(u*E-l*C+s*R)*N,t[1]=(l*_-a*E-s*B)*N,t[2]=(a*C-u*_+s*S)*N,t[3]=(o*C-r*E-i*R)*N,t[4]=(e*E-o*_+i*B)*N,t[5]=(r*_-e*C-i*S)*N,t[6]=(h*w-y*b+m*v)*N,t[7]=(y*T-d*w-m*M)*N,t[8]=(d*b-h*T+m*A)*N,t):null}function g(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=s,h=g;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:l,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],u=t[6],l=t[7],s=t[8];return n*(s*i-a*l)+e*(-s*o+a*u)+r*(l*o-i*u)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8],p=n[0],g=n[1],d=n[2],h=n[3],y=n[4],m=n[5],A=n[6],M=n[7],T=n[8],v=(0,r.FD)();return Math.abs(e-p)<=v*Math.max(1,Math.abs(e),Math.abs(p))&&Math.abs(o-g)<=v*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(i-d)<=v*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-h)<=v*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(u-y)<=v*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(l-m)<=v*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(s-A)<=v*Math.max(1,Math.abs(s),Math.abs(A))&&Math.abs(c-M)<=v*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-T)<=v*Math.max(1,Math.abs(f),Math.abs(T))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:u,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8];return Math.abs(1-(e*e+a*a+s*s))<=n&&Math.abs(1-(o*o+u*u+c*c))<=n&&Math.abs(1-(i*i+l*l+f*f))<=n},mul:d,multiply:s,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],u=n[6],l=n[8],s=n[9],c=n[10],f=c*a-u*s,p=-c*i+u*l,g=s*i-a*l,d=e*f+r*p+o*g;if(!d)return null;const h=1/d;return t[0]=f*h,t[1]=(-c*r+o*s)*h,t[2]=(u*r-o*a)*h,t[3]=p*h,t[4]=(c*e-o*l)*h,t[5]=(-u*e+o*i)*h,t[6]=g*h,t[7]=(-s*e+r*l)*h,t[8]=(a*e-r*i)*h,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=Math.sin(e),g=Math.cos(e);return t[0]=g*r+p*a,t[1]=g*o+p*u,t[2]=g*i+p*l,t[3]=g*a-p*r,t[4]=g*u-p*o,t[5]=g*l-p*i,t[6]=s,t[7]=c,t[8]=f,t},scale:c,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:h,subtract:g,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=u,t[5]=l,t[6]=p*r+g*a+s,t[7]=p*o+g*u+c,t[8]=p*i+g*l+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>s,lO:()=>c});var r=e(73941),o=e(16930),i=e(21325);const a=new o.A(r.fv),u=new o.A(r.FY),l=new o.A(r.LJ),s=new o.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=a;if(t)if(t===u)e=u;else if(t===l)e=l;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=u:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=l);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===p?e=u:t===g&&(e=l)}}}return f.set(t,e),e}const f=new Map,p=u.wkt.toUpperCase(),g=l.wkt.toUpperCase()}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4496],{1193:(t,n,e)=>{e.d(n,{H:()=>p});var r,o=e(90237),i=e(25482),a=e(4718),u=e(53966),l=e(10107),s=e(79901),c=e(40608),f=e(31199);let p=r=class extends i.A{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,f.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},u.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&u.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,f.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},u.A.getLogger(this))}castUv(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clone(){const t={position:(0,a.o8)(this.position),uv:(0,a.o8)(this.uv),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),color:(0,a.o8)(this.color)};return new r(t)}clonePositional(){const t={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"color",void 0),(0,o._)([(0,s.w)("color")],p.prototype,"castColor",null),(0,o._)([(0,l.MZ)({nonNullable:!0,json:{write:f.B}})],p.prototype,"position",void 0),(0,o._)([(0,s.w)("position")],p.prototype,"castPosition",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"uv",void 0),(0,o._)([(0,s.w)("uv")],p.prototype,"castUv",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"normal",void 0),(0,o._)([(0,s.w)("normal")],p.prototype,"castNormal",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"tangent",void 0),(0,o._)([(0,s.w)("tangent")],p.prototype,"castTangent",null),p=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshVertexAttributes")],p)},22141:(t,n,e)=>{e.d(n,{$5:()=>b,CN:()=>A,JP:()=>m,KM:()=>S,Mv:()=>_,X4:()=>M,gr:()=>v,qs:()=>w,si:()=>T,xA:()=>B});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),u=e(9093),l=e(38954),s=e(51850),c=e(48353),f=e(9762),p=(e(79258),e(21325)),g=e(28735),d=e(13030),h=e(73354),y=e(65686);const m="Projection may be possible after calling projection.load().";function A(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function M(t,n,e,r,o,i){return F(C.TO_PCPF,d.xs.fromTypedArray(t),R.NORMAL,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function T(t,n,e,r,o,i){return F(C.FROM_PCPF,d.xs.fromTypedArray(t),R.NORMAL,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function w(t,n,e){return(0,o.Ge)(L,e),(0,h.b)(n,t,L),(0,r.or)(L)&&(0,h.n)(n,n),n}function S(t,n,e){return(0,o.z0)(L,e),(0,y.t)(n,t,L),(0,r.or)(L)&&(0,h.n)(n,n,4),n}function B(t,n,e,r,o,i){if(!F(C.TO_PCPF,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),R.TANGENT,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function _(t,n,e,r,o,i){if(!F(C.FROM_PCPF,d.xs.fromTypedArray(t,16),R.TANGENT,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}var R,C,E;function N(t,n,e,r,i){switch((0,c.l)(r,e,P,r),t===C.FROM_PCPF&&(0,a.B8)(P,P),n){case R.NORMAL:return(0,o.Ge)(i,P);case R.TANGENT:return(0,o.z0)(i,P)}}function F(t,n,e,r,o,i,a,u){if(!n)return;const s=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,p.q8)(t)||(0,p.KQ)(t)}(o))for(let r=0;r<s;r++)i.getVec(r,x),n.getVec(r,O),(0,l.o)(O,O,N(t,e,x,a,L)),u.setVec(r,O);else for(let o=0;o<s;o++){i.getVec(o,x),n.getVec(o,O);const s=(0,g.jg)(r.get(o,1));let c=Math.cos(s);e===R.TANGENT!=(t===C.TO_PCPF)&&(c=1/c),N(t,e,x,a,L),t===C.TO_PCPF?(L[0]*=c,L[1]*=c,L[2]*=c,L[3]*=c,L[4]*=c,L[5]*=c):(L[0]*=c,L[3]*=c,L[6]*=c,L[1]*=c,L[4]*=c,L[7]*=c),(0,l.o)(O,O,L),(0,l.n)(O,O),u.setVec(o,O)}return u}(E=R||(R={}))[E.NORMAL=0]="NORMAL",E[E.TANGENT=1]="TANGENT",function(t){t[t.TO_PCPF=0]="TO_PCPF",t[t.FROM_PCPF=1]="FROM_PCPF"}(C||(C={}));const x=(0,s.vt)(),O=(0,s.vt)(),P=(0,u.vt)(),L=(0,i.vt)()},28846:(t,n,e)=>{e.d(n,{convertMeshVertexSpace:()=>l});var r=e(49186),o=e(4718),i=e(74887),a=e(1193),u=e(72258);async function l(t,n,e){await Promise.resolve(),(0,i.Te)(e);const l=(0,u.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!l)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");const s=t.cloneAndModifyVertexAttributes(new a.H({...l,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),n);return s.transform=null,s}},31199:(t,n,e)=>{function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const a of e)if(t instanceof a)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map((t=>`'${t.name}'`));return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},48163:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function i(){return o(1,1)}function a(){return o(1,0)}function u(){return o(0,1)}e.d(n,{Un:()=>l,fA:()=>o,vt:()=>r});const l=i(),s=a(),c=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:s,UNIT_Y:c,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>s});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),u=e;return u[0]=-r,u[4]=-i*o,u[8]=a*o,u[12]=0,u[1]=o,u[5]=-i*r,u[9]=a*r,u[13]=0,u[2]=0,u[6]=a,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=e(37539),l=e(21325);function s(t,n,e,r){const i=(0,u.Tp)(t,r);if(null==i)return!1;const s=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(s===d&&!c(d)&&(s!==u.rz.UNKNOWN||(0,l.aI)(t,r)))return(0,o.kN)(e,n),!0;if(c(d)){const t=u.w5[s][u.rz.LON_LAT],r=u.w5[u.rz.LON_LAT][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),a(f*p[0],f*p[1],e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}const h=c(s);if((d===u.rz.WEB_MERCATOR||d===u.rz.PLATE_CARREE||d===u.rz.WGS84||d===u.rz.CGCS2000)&&(s===u.rz.WGS84||h||s===u.rz.WEB_MERCATOR||s===u.rz.CGCS2000)){const t=u.w5[s][u.rz.LON_LAT],r=u.w5[u.rz.LON_LAT][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),h?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(f*p[0],f*p[1],e):(0,o.D_)(e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}return!1}function c(t){return t===u.rz.SPHERICAL_ECEF||t===u.rz.SPHERICAL_MARS_PCPF||t===u.rz.SPHERICAL_MOON_PCPF||t===u.rz.WGS84_ECEF}const f=(0,r.kU)(1),p=(0,i.vt)(),g=(0,i.vt)()},65686:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>c,l:()=>s,n:()=>u,t:()=>a});var r=e(40876),o=(e(44208),e(53966));function i(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=4,o=r){if(t.length/r!==n.length/o)return;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let h=0,y=0;for(let e=0;e<i;e++){const e=n[h],i=n[h+1],m=n[h+2],A=n[h+3];t[y]=a*e+s*i+p*m,t[y+1]=u*e+c*i+g*m,t[y+2]=l*e+f*i+d*m,t[y+3]=A,h+=o,y+=r}}function u(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,a=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*a,u=i[e],l=i[e+1],s=i[e+2],c=u*u+l*l+s*s;if(c>0){const t=1/Math.sqrt(c);r[n]=t*u,r[n+1]=t*l,r[n+2]=t*s}}}function l(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,a=n.typedBufferStride;let u=0,l=0;for(let n=0;n<o;n++)t[l]=e*i[u],t[l+1]=e*i[u+1],t[l+2]=e*i[u+2],t[l+3]=e*i[u+3],u+=a,l+=r}function s(t,n,e,r){c(t.typedBuffer,n,e,r,t.typedBufferStride)}function c(t,n,e,o,i=4){const a=Math.min(t.length/i,n.count),u=n.typedBuffer,l=n.typedBufferStride;let s=0,c=0;const f=1/r.Tf;for(let n=0;n<a;n++)t[c]=o*(e*u[s])**f,t[c+1]=o*(e*u[s+1])**f,t[c+2]=o*(e*u[s+2])**f,t[c+3]=o*e*u[s+3],s+=l,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:u,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:a,transformMat3View:i,transformMat4:function(t,n,e,r=4,i=r){if(t.length/r!==n.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=t.length/r,u=e[0],l=e[1],s=e[2],c=e[3],f=e[4],p=e[5],g=e[6],d=e[7],h=e[8],y=e[9],m=e[10],A=e[11],M=e[12],T=e[13],v=e[14],b=e[15];let w=0,S=0;for(let e=0;e<a;e++){const e=n[w],o=n[w+1],a=n[w+2],B=n[w+3];t[S]=u*e+f*o+h*a+M*B,t[S+1]=l*e+p*o+y*a+T*B,t[S+2]=s*e+g*o+m*a+v*B,t[S+3]=c*e+d*o+A*a+b*B,w+=i,S+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],a=e[2],u=e[3],l=e[4],s=e[5],c=e[6],f=e[7],p=e[8],g=e[9],d=e[10],h=e[11],y=e[12],m=e[13],A=e[14],M=e[15],T=t.typedBuffer,v=t.typedBufferStride,b=n.typedBuffer,w=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*v,e=t*w,r=b[e],S=b[e+1],B=b[e+2],_=b[e+3];T[n]=o*r+l*S+p*B+y*_,T[n+1]=i*r+s*S+g*B+m*_,T[n+2]=a*r+c*S+d*B+A*_,T[n+3]=u*r+f*S+h*B+M*_}}},Symbol.toStringTag,{value:"Module"}))},65806:(t,n,e)=>{e.d(n,{g:()=>a});var r=e(51850),o=e(98988),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){u[0]=t.x,u[1]=t.y;const o=t.z;return u[2]=o??r??0,(0,i.projectBuffer)(u,t.spatialReference,0,n,e,0)}const a=(0,o.tryProjectWithZConversion)(t,e);return!!a&&(n[0]=a?.x,n[1]=a?.y,n[2]=a?.z??r??0,!0)}const u=(0,r.vt)()},72258:(t,n,e)=>{e.d(n,{UR:()=>v,p5:()=>T,xK:()=>R});var r=e(53966),o=e(34727),i=e(83047),a=e(77690),u=e(29242),l=e(58083),s=e(9093),c=e(38954),f=e(51850),p=e(98764),g=e(48353),d=e(65806),h=e(27615),y=e(21325),m=e(73354),A=e(22141);const M=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function T(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,c.d)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:a}=e,u=x;if(!(0,g.l)(r,a,u,o))return!1;const s=(0,l.B8)(x,u);return null!=s&&((0,c.t)(t,i,s),!0)}function v(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,u=(0,h.Hq)(r)?o:null,f=B(t.spatialReference,e,O.SOURCE_AND_TARGET);if((0,h.yJ)(r,n)&&(!u||(0,l.t2)(u.localMatrix,s.zK))&&_(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=b(n,i);if(!(0,g.l)(n,r,C,a))return(0,A.CN)(M(),n,a),null;if(e&&(0,l.lw)(C,C,e.localMatrix),!(0,g.l)(n,o,E,a))return(0,A.CN)(M(),a,n),null;(0,l.B8)(E,E);const u=(0,l.lw)(C,E,C);return S(u,n,i,O.SOURCE_AND_TARGET),w(t,u)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=b(t,i);if(!(0,g.l)(t,r,C,a))return(0,A.CN)(M(),t,a),null;e&&(0,l.lw)(C,C,e.localMatrix),S(C,t,i,O.SOURCE);const u=new Float64Array(n.position.length),s=function(t,n,e,r,o){(0,m.t)(r,t,n);const i=new Float64Array(t.length);return(0,A.$5)(r,o,i,e)?i:((0,A.CN)(M(),o,e),null)}(n.position,C,t,u,a);if(!s)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,A.qs)(o,a,i),(0,A.si)(a,t,n,e,r,a)?a:((0,A.CN)(M(),r,n),null)}(s,t,u,a,n.normal,C);if(n.normal&&!f)return null;const p=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,A.KM)(o,a,i),(0,A.Mv)(a,t,n,e,r,a)?a:((0,A.CN)(M(),r,n),null)}(s,t,u,a,n.tangent,C);if(n.tangent&&!p)return null;if(o){const t=(0,c.u)(F,o);(0,m.a)(s,s,t)}return{position:s,normal:f,tangent:p}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=b(n,i);if(!(0,g.l)(n,o,C,u))return(0,A.CN)(M(),n,u),null;const s=1/B(n,i,O.TARGET);(0,l.hs)(C,C,[s,s,s]);const c=(0,l.B8)(E,C),{position:f,normal:p,tangent:d}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,m.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=w(t,e.localMatrix);return(0,m.a)(r.position,r.position,n),r}(t,r,e),h=new Float64Array(f.length),y=function(t,n,e,r,o){const i=(0,A.gr)(t,n,r,o);if(!i)return(0,A.CN)(M(),n,o),null;const a=new Float64Array(i.length);return(0,m.t)(a,i,e),a}(f,n,c,h,u);if(!y)return null;const T=(0,a.Ge)(N,c),v=function(t,n,e,r,o,i,a){if(null==t)return null;const u=a??new Float32Array(t.length);return(0,A.X4)(t,n,e,r,o,u)?((0,m.b)(u,u,i),u):((0,A.CN)(M(),e,o),null)}(p,f,n,h,u,T,p!==t.normal?p:void 0);if(!v&&p)return null;const S=function(t,n,e,r,o,i,a){if(null==t)return null;const u=a??new Float32Array(t.length);return(0,A.xA)(t,n,e,r,o,u)?((0,m.b)(u,u,i,4),u):((0,A.CN)(M(),e,o),null)}(d,f,n,h,u,T,d!==t.tangent?d:void 0);return!S&&d?null:{position:y,normal:v,tangent:S}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const a=B(e,i,O.SOURCE_AND_TARGET),u=r||!_(a)?(0,l.C)(C,n?.localMatrix??s.zK):null;u&&S(u,e,i,O.SOURCE_AND_TARGET);const{position:f,normal:p,tangent:g}=u?w(t,u):t,d=i?.allowBufferReuse,h=d?f:new Float64Array(f.length);let y=f;if(r&&(y=(0,m.a)(h,y,r)),o){const t=(0,c.u)(F,o);y=(0,m.a)(h,y,t)}return{position:y!==t.position||d?y:y.slice(),normal:p!==t.normal||d?p:p?.slice(),tangent:g!==t.tangent||d?g:g?.slice()}}(t,t.vertexSpace,n.origin,e)}}function b(t,n){return n?.useEllipsoid&&(0,y.B3)(t)?p.Y0:(0,p.lO)(t)}function w(t,n){const e=new Float64Array(t.position.length);(0,m.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,A.qs)(t.normal,r,n),o&&t.tangent&&(0,A.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function S(t,n,e,r){const o=B(n,e,r);_(o)||(0,l.hs)(t,t,[o,o,o])}function B(t,n,e){const r=!!(e&O.SOURCE),o=!!(e&O.TARGET),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let u=R(i,t);r||!i||_(u)||(M().warn("source unit conversion not supported"),u=1);let l=1/R(a,t);return o||!a||_(l)||(M().warn("target unit conversion not supported"),l=1),u*l}function _(t){return(0,o.Io)(t,1)}function R(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const C=(0,s.vt)(),E=(0,s.vt)(),N=(0,u.vt)(),F=(0,f.vt)(),x=(0,s.vt)();var O,P;(P=O||(O={}))[P.NONE=0]="NONE",P[P.SOURCE=1]="SOURCE",P[P.TARGET=2]="TARGET",P[P.SOURCE_AND_TARGET=3]="SOURCE_AND_TARGET"},73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>u,c:()=>a,d:()=>o,e:()=>p,f:()=>c,l:()=>s,n:()=>g,t:()=>i});var r=e(40876);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[4],c=e[5],f=e[6],p=e[8],g=e[9],d=e[10],h=e[12],y=e[13],m=e[14];let A=0,M=0;for(let e=0;e<i;e++){const e=n[A],i=n[A+1],T=n[A+2];t[M]=a*e+s*i+p*T+h,t[M+1]=u*e+c*i+g*T+y,t[M+2]=l*e+f*i+d*T+m,A+=o,M+=r}return t}function a(t,n,e){u(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function u(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let h=0,y=0;for(let e=0;e<i;e++){const e=n[h],i=n[h+1],m=n[h+2];t[y]=a*e+s*i+p*m,t[y+1]=u*e+c*i+g*m,t[y+2]=l*e+f*i+d*m,h+=o,y+=r}}function l(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,u=0;for(let l=0;l<i;l++)t[u]=e*n[a],t[u+1]=e*n[a+1],t[u+2]=e*n[a+2],a+=o,u+=r;return t}function s(t,n,e,r){c(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function c(t,n,e,o,i=3,a=i){const u=Math.min(t.length/i,n.length/a);let l=0,s=0;const c=1/r.Tf;for(let r=0;r<u;r++)t[s]=o*(e*n[l])**c,t[s+1]=o*(e*n[l+1])**c,t[s+2]=o*(e*n[l+2])**c,l+=a,s+=i}function f(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let a=0,u=0;for(let l=0;l<i;l++)t[u]=n[a]+e[0],t[u+1]=n[a+1]+e[1],t[u+2]=n[a+2]+e[2],a+=o,u+=r;return t}function p(t,n){g(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function g(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let u=0;u<o;u++){const o=n[i],u=n[i+1],l=n[i+2],s=o*o+u*u+l*l;if(s>0){const n=1/Math.sqrt(s);t[a]=n*o,t[a+1]=n*u,t[a+2]=n*l}i+=r,a+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:g,normalizeView:p,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,u=n.typedBufferStride;let l=0,s=0;for(let t=0;t<r;t++)o[s]=a[l]>>e,o[s+1]=a[l+1]>>e,o[s+2]=a[l+2]>>e,l+=u,s+=i},transformMat3:u,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},77690:(t,n,e)=>{e.d(n,{B8:()=>u,Ge:()=>p,I0:()=>f,KC:()=>l,hZ:()=>i,hs:()=>c,lw:()=>s,mg:()=>a,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,o,i,a,u,l,s){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=u,t[7]=l,t[8]=s,t}function a(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function u(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8],f=c*a-u*s,p=-c*i+u*l,g=s*i-a*l;let d=e*f+r*p+o*g;return d?(d=1/d,t[0]=f*d,t[1]=(-c*r+o*s)*d,t[2]=(u*r-o*a)*d,t[3]=p*d,t[4]=(c*e-o*l)*d,t[5]=(-u*e+o*i)*d,t[6]=g*d,t[7]=(-s*e+r*l)*d,t[8]=(a*e-r*i)*d,t):null}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8];return t[0]=a*c-u*s,t[1]=o*s-r*c,t[2]=r*u-o*a,t[3]=u*l-i*c,t[4]=e*c-o*l,t[5]=o*i-e*u,t[6]=i*s-a*l,t[7]=r*l-e*s,t[8]=e*a-r*i,t}function s(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1],d=e[2],h=e[3],y=e[4],m=e[5],A=e[6],M=e[7],T=e[8];return t[0]=p*r+g*a+d*s,t[1]=p*o+g*u+d*c,t[2]=p*i+g*l+d*f,t[3]=h*r+y*a+m*s,t[4]=h*o+y*u+m*c,t[5]=h*i+y*l+m*f,t[6]=A*r+M*a+T*s,t[7]=A*o+M*u+T*c,t[8]=A*i+M*l+T*f,t}function c(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,u=r+r,l=o+o,s=e*a,c=r*a,f=r*u,p=o*a,g=o*u,d=o*l,h=i*a,y=i*u,m=i*l;return t[0]=1-f-d,t[3]=c-m,t[6]=p+y,t[1]=c+m,t[4]=1-s-d,t[7]=g-h,t[2]=p-y,t[5]=g+h,t[8]=1-s-f,t}function p(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8],f=n[9],p=n[10],g=n[11],d=n[12],h=n[13],y=n[14],m=n[15],A=e*u-r*a,M=e*l-o*a,T=e*s-i*a,v=r*l-o*u,b=r*s-i*u,w=o*s-i*l,S=c*h-f*d,B=c*y-p*d,_=c*m-g*d,R=f*y-p*h,C=f*m-g*h,E=p*m-g*y;let N=A*E-M*C+T*R+v*_-b*B+w*S;return N?(N=1/N,t[0]=(u*E-l*C+s*R)*N,t[1]=(l*_-a*E-s*B)*N,t[2]=(a*C-u*_+s*S)*N,t[3]=(o*C-r*E-i*R)*N,t[4]=(e*E-o*_+i*B)*N,t[5]=(r*_-e*C-i*S)*N,t[6]=(h*w-y*b+m*v)*N,t[7]=(y*T-d*w-m*M)*N,t[8]=(d*b-h*T+m*A)*N,t):null}function g(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=s,h=g;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:l,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],u=t[6],l=t[7],s=t[8];return n*(s*i-a*l)+e*(-s*o+a*u)+r*(l*o-i*u)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8],p=n[0],g=n[1],d=n[2],h=n[3],y=n[4],m=n[5],A=n[6],M=n[7],T=n[8],v=(0,r.FD)();return Math.abs(e-p)<=v*Math.max(1,Math.abs(e),Math.abs(p))&&Math.abs(o-g)<=v*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(i-d)<=v*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-h)<=v*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(u-y)<=v*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(l-m)<=v*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(s-A)<=v*Math.max(1,Math.abs(s),Math.abs(A))&&Math.abs(c-M)<=v*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-T)<=v*Math.max(1,Math.abs(f),Math.abs(T))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:u,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8];return Math.abs(1-(e*e+a*a+s*s))<=n&&Math.abs(1-(o*o+u*u+c*c))<=n&&Math.abs(1-(i*i+l*l+f*f))<=n},mul:d,multiply:s,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],u=n[6],l=n[8],s=n[9],c=n[10],f=c*a-u*s,p=-c*i+u*l,g=s*i-a*l,d=e*f+r*p+o*g;if(!d)return null;const h=1/d;return t[0]=f*h,t[1]=(-c*r+o*s)*h,t[2]=(u*r-o*a)*h,t[3]=p*h,t[4]=(c*e-o*l)*h,t[5]=(-u*e+o*i)*h,t[6]=g*h,t[7]=(-s*e+r*l)*h,t[8]=(a*e-r*i)*h,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=Math.sin(e),g=Math.cos(e);return t[0]=g*r+p*a,t[1]=g*o+p*u,t[2]=g*i+p*l,t[3]=g*a-p*r,t[4]=g*u-p*o,t[5]=g*l-p*i,t[6]=s,t[7]=c,t[8]=f,t},scale:c,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:h,subtract:g,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=u,t[5]=l,t[6]=p*r+g*a+s,t[7]=p*o+g*u+c,t[8]=p*i+g*l+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>s,lO:()=>c});var r=e(73941),o=e(16930),i=e(21325);const a=new o.A(r.fv),u=new o.A(r.FY),l=new o.A(r.LJ),s=new o.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=a;if(t)if(t===u)e=u;else if(t===l)e=l;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=u:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=l);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===p?e=u:t===g&&(e=l)}}}return f.set(t,e),e}const f=new Map,p=u.wkt.toUpperCase(),g=l.wkt.toUpperCase()}}]);