@arcgis/core 5.1.0-next.70 → 5.1.0-next.71

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 (479) hide show
  1. package/assets/components/assets/combobox/t9n/messages.ar.json +1 -1
  2. package/assets/components/assets/combobox/t9n/messages.bg.json +1 -1
  3. package/assets/components/assets/combobox/t9n/messages.bs.json +1 -1
  4. package/assets/components/assets/combobox/t9n/messages.ca.json +1 -1
  5. package/assets/components/assets/combobox/t9n/messages.cs.json +1 -1
  6. package/assets/components/assets/combobox/t9n/messages.da.json +1 -1
  7. package/assets/components/assets/combobox/t9n/messages.de.json +1 -1
  8. package/assets/components/assets/combobox/t9n/messages.el.json +1 -1
  9. package/assets/components/assets/combobox/t9n/messages.en.json +1 -1
  10. package/assets/components/assets/combobox/t9n/messages.es.json +1 -1
  11. package/assets/components/assets/combobox/t9n/messages.et.json +1 -1
  12. package/assets/components/assets/combobox/t9n/messages.fi.json +1 -1
  13. package/assets/components/assets/combobox/t9n/messages.fr.json +1 -1
  14. package/assets/components/assets/combobox/t9n/messages.he.json +1 -1
  15. package/assets/components/assets/combobox/t9n/messages.hr.json +1 -1
  16. package/assets/components/assets/combobox/t9n/messages.hu.json +1 -1
  17. package/assets/components/assets/combobox/t9n/messages.id.json +1 -1
  18. package/assets/components/assets/combobox/t9n/messages.it.json +1 -1
  19. package/assets/components/assets/combobox/t9n/messages.ja.json +1 -1
  20. package/assets/components/assets/combobox/t9n/messages.json +1 -1
  21. package/assets/components/assets/combobox/t9n/messages.ko.json +1 -1
  22. package/assets/components/assets/combobox/t9n/messages.lt.json +1 -1
  23. package/assets/components/assets/combobox/t9n/messages.lv.json +1 -1
  24. package/assets/components/assets/combobox/t9n/messages.nl.json +1 -1
  25. package/assets/components/assets/combobox/t9n/messages.no.json +1 -1
  26. package/assets/components/assets/combobox/t9n/messages.pl.json +1 -1
  27. package/assets/components/assets/combobox/t9n/messages.pt-BR.json +1 -1
  28. package/assets/components/assets/combobox/t9n/messages.pt-PT.json +1 -1
  29. package/assets/components/assets/combobox/t9n/messages.ro.json +1 -1
  30. package/assets/components/assets/combobox/t9n/messages.ru.json +1 -1
  31. package/assets/components/assets/combobox/t9n/messages.sk.json +1 -1
  32. package/assets/components/assets/combobox/t9n/messages.sl.json +1 -1
  33. package/assets/components/assets/combobox/t9n/messages.sr.json +1 -1
  34. package/assets/components/assets/combobox/t9n/messages.sv.json +1 -1
  35. package/assets/components/assets/combobox/t9n/messages.th.json +1 -1
  36. package/assets/components/assets/combobox/t9n/messages.tr.json +1 -1
  37. package/assets/components/assets/combobox/t9n/messages.uk.json +1 -1
  38. package/assets/components/assets/combobox/t9n/messages.vi.json +1 -1
  39. package/assets/components/assets/combobox/t9n/messages.zh-CN.json +1 -1
  40. package/assets/components/assets/combobox/t9n/messages.zh-HK.json +1 -1
  41. package/assets/components/assets/combobox/t9n/messages.zh-TW.json +1 -1
  42. package/assets/components/assets/icon/addToLivestreamVideoLayer16.json +1 -0
  43. package/assets/components/assets/icon/addToLivestreamVideoLayer24.json +1 -0
  44. package/assets/components/assets/icon/addToLivestreamVideoLayer32.json +1 -0
  45. package/assets/components/assets/icon/addToVideoLayer16.json +1 -0
  46. package/assets/components/assets/icon/addToVideoLayer24.json +1 -0
  47. package/assets/components/assets/icon/addToVideoLayer32.json +1 -0
  48. package/assets/components/assets/icon/arcgisQuickcapture16.json +1 -0
  49. package/assets/components/assets/icon/arcgisQuickcapture24.json +1 -0
  50. package/assets/components/assets/icon/arcgisQuickcapture32.json +1 -0
  51. package/assets/components/assets/icon/arcgisSurvey12316.json +1 -0
  52. package/assets/components/assets/icon/arcgisSurvey12324.json +1 -0
  53. package/assets/components/assets/icon/arcgisSurvey12332.json +1 -0
  54. package/assets/components/assets/icon/bicycleTravelMode16.json +1 -0
  55. package/assets/components/assets/icon/bicycleTravelMode16F.json +1 -0
  56. package/assets/components/assets/icon/bicycleTravelMode24.json +1 -0
  57. package/assets/components/assets/icon/bicycleTravelMode24F.json +1 -0
  58. package/assets/components/assets/icon/bicycleTravelMode32.json +1 -0
  59. package/assets/components/assets/icon/bicycleTravelMode32F.json +1 -0
  60. package/assets/components/assets/icon/busTravelMode16.json +1 -0
  61. package/assets/components/assets/icon/busTravelMode16F.json +1 -0
  62. package/assets/components/assets/icon/busTravelMode24.json +1 -0
  63. package/assets/components/assets/icon/busTravelMode24F.json +1 -0
  64. package/assets/components/assets/icon/busTravelMode32.json +1 -0
  65. package/assets/components/assets/icon/busTravelMode32F.json +1 -0
  66. package/assets/components/assets/icon/carTravelMode16.json +1 -0
  67. package/assets/components/assets/icon/carTravelMode16F.json +1 -0
  68. package/assets/components/assets/icon/carTravelMode24.json +1 -0
  69. package/assets/components/assets/icon/carTravelMode24F.json +1 -0
  70. package/assets/components/assets/icon/carTravelMode32.json +1 -0
  71. package/assets/components/assets/icon/carTravelMode32F.json +1 -0
  72. package/assets/components/assets/icon/conditionalRulesDown16.json +1 -0
  73. package/assets/components/assets/icon/conditionalRulesDown24.json +1 -0
  74. package/assets/components/assets/icon/conditionalRulesDown32.json +1 -0
  75. package/assets/components/assets/icon/emergency16.json +1 -0
  76. package/assets/components/assets/icon/emergency16F.json +1 -0
  77. package/assets/components/assets/icon/emergency24.json +1 -0
  78. package/assets/components/assets/icon/emergency24F.json +1 -0
  79. package/assets/components/assets/icon/emergency32.json +1 -0
  80. package/assets/components/assets/icon/emergency32F.json +1 -0
  81. package/assets/components/assets/icon/eyedropper16.json +1 -1
  82. package/assets/components/assets/icon/eyedropper24.json +1 -1
  83. package/assets/components/assets/icon/eyedropper32.json +1 -1
  84. package/assets/components/assets/icon/featureDetailsSet16.json +1 -0
  85. package/assets/components/assets/icon/featureDetailsSet24.json +1 -0
  86. package/assets/components/assets/icon/featureDetailsSet32.json +1 -0
  87. package/assets/components/assets/icon/fileBim16.json +1 -0
  88. package/assets/components/assets/icon/fileBim24.json +1 -0
  89. package/assets/components/assets/icon/fileBim32.json +1 -0
  90. package/assets/components/assets/icon/fileDwg16.json +1 -0
  91. package/assets/components/assets/icon/fileDwg24.json +1 -0
  92. package/assets/components/assets/icon/fileDwg32.json +1 -0
  93. package/assets/components/assets/icon/fileRvt16.json +1 -0
  94. package/assets/components/assets/icon/fileRvt24.json +1 -0
  95. package/assets/components/assets/icon/fileRvt32.json +1 -0
  96. package/assets/components/assets/icon/gradient16.json +1 -0
  97. package/assets/components/assets/icon/gradient24.json +1 -0
  98. package/assets/components/assets/icon/gradient32.json +1 -0
  99. package/assets/components/assets/icon/layerStreamSetting16.json +1 -0
  100. package/assets/components/assets/icon/layerStreamSetting24.json +1 -0
  101. package/assets/components/assets/icon/layerStreamSetting32.json +1 -0
  102. package/assets/components/assets/icon/mopedTravelMode16.json +1 -0
  103. package/assets/components/assets/icon/mopedTravelMode16F.json +1 -0
  104. package/assets/components/assets/icon/mopedTravelMode24.json +1 -0
  105. package/assets/components/assets/icon/mopedTravelMode24F.json +1 -0
  106. package/assets/components/assets/icon/mopedTravelMode32.json +1 -0
  107. package/assets/components/assets/icon/mopedTravelMode32F.json +1 -0
  108. package/assets/components/assets/icon/motorcycleTravelMode16.json +1 -0
  109. package/assets/components/assets/icon/motorcycleTravelMode16F.json +1 -0
  110. package/assets/components/assets/icon/motorcycleTravelMode24.json +1 -0
  111. package/assets/components/assets/icon/motorcycleTravelMode24F.json +1 -0
  112. package/assets/components/assets/icon/motorcycleTravelMode32.json +1 -0
  113. package/assets/components/assets/icon/motorcycleTravelMode32F.json +1 -0
  114. package/assets/components/assets/icon/publish16.json +1 -0
  115. package/assets/components/assets/icon/publish24.json +1 -0
  116. package/assets/components/assets/icon/publish32.json +1 -0
  117. package/assets/components/assets/icon/scooterTravelMode16.json +1 -0
  118. package/assets/components/assets/icon/scooterTravelMode16F.json +1 -0
  119. package/assets/components/assets/icon/scooterTravelMode24.json +1 -0
  120. package/assets/components/assets/icon/scooterTravelMode24F.json +1 -0
  121. package/assets/components/assets/icon/scooterTravelMode32.json +1 -0
  122. package/assets/components/assets/icon/scooterTravelMode32F.json +1 -0
  123. package/assets/components/assets/icon/shuttleTravelMode16.json +1 -0
  124. package/assets/components/assets/icon/shuttleTravelMode16F.json +1 -0
  125. package/assets/components/assets/icon/shuttleTravelMode24.json +1 -0
  126. package/assets/components/assets/icon/shuttleTravelMode24F.json +1 -0
  127. package/assets/components/assets/icon/shuttleTravelMode32.json +1 -0
  128. package/assets/components/assets/icon/shuttleTravelMode32F.json +1 -0
  129. package/assets/components/assets/icon/strollerTravelMode16.json +1 -0
  130. package/assets/components/assets/icon/strollerTravelMode16F.json +1 -0
  131. package/assets/components/assets/icon/strollerTravelMode24.json +1 -0
  132. package/assets/components/assets/icon/strollerTravelMode24F.json +1 -0
  133. package/assets/components/assets/icon/strollerTravelMode32.json +1 -0
  134. package/assets/components/assets/icon/strollerTravelMode32F.json +1 -0
  135. package/assets/components/assets/icon/trainTravelMode16.json +1 -0
  136. package/assets/components/assets/icon/trainTravelMode16F.json +1 -0
  137. package/assets/components/assets/icon/trainTravelMode24.json +1 -0
  138. package/assets/components/assets/icon/trainTravelMode24F.json +1 -0
  139. package/assets/components/assets/icon/trainTravelMode32.json +1 -0
  140. package/assets/components/assets/icon/trainTravelMode32F.json +1 -0
  141. package/assets/components/assets/icon/tramTravelMode16.json +1 -0
  142. package/assets/components/assets/icon/tramTravelMode16F.json +1 -0
  143. package/assets/components/assets/icon/tramTravelMode24.json +1 -0
  144. package/assets/components/assets/icon/tramTravelMode24F.json +1 -0
  145. package/assets/components/assets/icon/tramTravelMode32.json +1 -0
  146. package/assets/components/assets/icon/tramTravelMode32F.json +1 -0
  147. package/assets/components/assets/icon/truckTravelMode16.json +1 -0
  148. package/assets/components/assets/icon/truckTravelMode16F.json +1 -0
  149. package/assets/components/assets/icon/truckTravelMode24.json +1 -0
  150. package/assets/components/assets/icon/truckTravelMode24F.json +1 -0
  151. package/assets/components/assets/icon/truckTravelMode32.json +1 -0
  152. package/assets/components/assets/icon/truckTravelMode32F.json +1 -0
  153. package/assets/components/assets/icon/velocityServer16.json +1 -0
  154. package/assets/components/assets/icon/velocityServer24.json +1 -0
  155. package/assets/components/assets/icon/velocityServer32.json +1 -0
  156. package/assets/components/assets/icon/walkingTravelMode16.json +1 -0
  157. package/assets/components/assets/icon/walkingTravelMode16F.json +1 -0
  158. package/assets/components/assets/icon/walkingTravelMode24.json +1 -0
  159. package/assets/components/assets/icon/walkingTravelMode24F.json +1 -0
  160. package/assets/components/assets/icon/walkingTravelMode32.json +1 -0
  161. package/assets/components/assets/icon/walkingTravelMode32F.json +1 -0
  162. package/assets/components/assets/icon/wheelchairTravelMode16.json +1 -0
  163. package/assets/components/assets/icon/wheelchairTravelMode16F.json +1 -0
  164. package/assets/components/assets/icon/wheelchairTravelMode24.json +1 -0
  165. package/assets/components/assets/icon/wheelchairTravelMode24F.json +1 -0
  166. package/assets/components/assets/icon/wheelchairTravelMode32.json +1 -0
  167. package/assets/components/assets/icon/wheelchairTravelMode32F.json +1 -0
  168. package/assets/esri/core/workers/RemoteClient.js +1 -1
  169. package/assets/esri/core/workers/chunks/09ecb36e44096e577af8.js +1 -0
  170. package/assets/esri/core/workers/chunks/0b1454a77a6a682541dc.js +2 -0
  171. package/assets/esri/core/workers/chunks/{d82b543c96f09ded3bf9.js.LICENSE.txt → 0b1454a77a6a682541dc.js.LICENSE.txt} +6 -1
  172. package/assets/esri/core/workers/chunks/0ca06ea649bbdb93ff49.js +1 -0
  173. package/assets/esri/core/workers/chunks/10308c9f3f0d709d96bc.js +1 -0
  174. package/assets/esri/core/workers/chunks/{03e20ac54d6f141b5001.js → 11241781baaed346af52.js} +1 -1
  175. package/assets/esri/core/workers/chunks/123e920e4460124ec3bb.js +288 -0
  176. package/assets/esri/core/workers/chunks/{fc64ae69581e4c38fa8a.js → 141edf5ed890105a079b.js} +1 -1
  177. package/assets/esri/core/workers/chunks/160b9a76b75875507c86.js +1 -0
  178. package/assets/esri/core/workers/chunks/16dfdee05704df249e95.js +1 -0
  179. package/assets/esri/core/workers/chunks/17ef955dc48e329aa184.js +1 -0
  180. package/assets/esri/core/workers/chunks/18001536ed345955121a.js +1 -0
  181. package/assets/esri/core/workers/chunks/1c7183551f5269bdcf13.js +30 -0
  182. package/assets/esri/core/workers/chunks/1d9560eb8b21b9e76616.js +1 -0
  183. package/assets/esri/core/workers/chunks/{b364ec104dd59faa41b6.js → 1f82a0f134ea912fc686.js} +1 -1
  184. package/assets/esri/core/workers/chunks/231f502cd15f30d12be2.js +1 -0
  185. package/assets/esri/core/workers/chunks/238f51d0b36f998017b8.js +1 -0
  186. package/assets/esri/core/workers/chunks/2cee6d751c5e73fe09d4.js +1 -0
  187. package/assets/esri/core/workers/chunks/31071a43e2c03984d619.js +1 -0
  188. package/assets/esri/core/workers/chunks/36031cb53c486630f3c9.js +1 -0
  189. package/assets/esri/core/workers/chunks/3697e51e1e4cf442f39a.js +1 -0
  190. package/assets/esri/core/workers/chunks/3a58708217a9c11836ab.js +1 -0
  191. package/assets/esri/core/workers/chunks/3b1446286a9b87f34761.js +1 -0
  192. package/assets/esri/core/workers/chunks/3b7cda16e656db450f11.js +1 -0
  193. package/assets/esri/core/workers/chunks/3e972ae291df1844017d.js +1 -0
  194. package/assets/esri/core/workers/chunks/{73e000cc3c4da10e9937.js → 3f7fd58ee7d71989fc83.js} +1 -1
  195. package/assets/esri/core/workers/chunks/416e031bafc0189544fa.js +1 -0
  196. package/assets/esri/core/workers/chunks/427dec43ef2d67467699.js +1 -0
  197. package/assets/esri/core/workers/chunks/{746b3e98bad32c366a27.js → 444f0f51b3ee0b9845a5.js} +1 -1
  198. package/assets/esri/core/workers/chunks/4d51261d6131c07402cd.js +1 -0
  199. package/assets/esri/core/workers/chunks/{8ccf2f65d8ed3c48ffff.js → 4d8670f6fa8952b7bab6.js} +1 -1
  200. package/assets/esri/core/workers/chunks/{f209a7076d67cbf4d205.js → 4e676e888a935c507d90.js} +1 -1
  201. package/assets/esri/core/workers/chunks/50d5d6654ada9f28345d.js +1 -0
  202. package/assets/esri/core/workers/chunks/54c6e870262469d0d702.js +1 -0
  203. package/assets/esri/core/workers/chunks/55ee78923987ed17ea8c.js +1 -0
  204. package/assets/esri/core/workers/chunks/58b3c888c8bfedbe6443.js +1 -0
  205. package/assets/esri/core/workers/chunks/58c79e15ca95238a4b43.js +1 -0
  206. package/assets/esri/core/workers/chunks/6118706b9a038e9a06b8.js +1 -0
  207. package/assets/esri/core/workers/chunks/628f56c09838eb9c573b.js +1 -0
  208. package/assets/esri/core/workers/chunks/{f11ea0d3de93ec0392af.js → 6ac5ec3ecbca8860338b.js} +1 -1
  209. package/assets/esri/core/workers/chunks/6d15229b3fa84a7acf4d.js +599 -0
  210. package/assets/esri/core/workers/chunks/6dac8dfcd63fc757ae2d.js +1 -0
  211. package/assets/esri/core/workers/chunks/6e70e922331704b92a08.js +1 -0
  212. package/assets/esri/core/workers/chunks/6f67c9f68101a084b683.js +30 -0
  213. package/assets/esri/core/workers/chunks/728ad5bbbcbf88d6249f.js +1 -0
  214. package/assets/esri/core/workers/chunks/7314c0131403cac84ad7.js +1 -0
  215. package/assets/esri/core/workers/chunks/73545bb13c70f6a347a4.js +1 -0
  216. package/assets/esri/core/workers/chunks/74be994d789c57031631.js +1 -0
  217. package/assets/esri/core/workers/chunks/7bacdd65a6cc4d284e0a.js +2 -0
  218. package/assets/esri/core/workers/chunks/7c7c11c0fde8b63e330b.js +1 -0
  219. package/assets/esri/core/workers/chunks/7ca32806e47be15109a4.js +1 -0
  220. package/assets/esri/core/workers/chunks/7cb6d8f7eaf762279632.js +1 -0
  221. package/assets/esri/core/workers/chunks/7d6ed65bbcd279448191.js +1 -0
  222. package/assets/esri/core/workers/chunks/7e6ccf9f3e756186e93e.js +1 -0
  223. package/assets/esri/core/workers/chunks/81f149e45c79b9b086fb.js +1 -0
  224. package/assets/esri/core/workers/chunks/824051af00e7a1f05ed0.js +1 -0
  225. package/assets/esri/core/workers/chunks/84fa25f66a6949290221.js +1 -0
  226. package/assets/esri/core/workers/chunks/852aabbf671d2ca9cd33.js +1 -0
  227. package/assets/esri/core/workers/chunks/85edbb072a2ce6c1bb30.js +2 -0
  228. package/assets/esri/core/workers/chunks/{2d2c10c31cc1460dd96a.js → 88827e23f8938342781c.js} +1 -1
  229. package/assets/esri/core/workers/chunks/{bc2c7cb99e227ddbd3a6.js → 89345a682dea60ef1643.js} +1 -1
  230. package/assets/esri/core/workers/chunks/8985402c328b90af5724.js +1 -0
  231. package/assets/esri/core/workers/chunks/89fdf9ad10ca8fbb08a5.js +1 -0
  232. package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +1 -0
  233. package/assets/esri/core/workers/chunks/8b094330323d9b16fb5d.js +1 -0
  234. package/assets/esri/core/workers/chunks/8b73f4d2f99c0b54cced.js +1 -0
  235. package/assets/esri/core/workers/chunks/90aed8c4b266832f84ca.js +1 -0
  236. package/assets/esri/core/workers/chunks/916a8f3eed1fafdc7242.js +1 -0
  237. package/assets/esri/core/workers/chunks/9187d1caca1fd2d713e0.js +1 -0
  238. package/assets/esri/core/workers/chunks/943cf0653a2b7de16a4f.js +1 -0
  239. package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +1 -0
  240. package/assets/esri/core/workers/chunks/967758a05170545cd371.js +1 -0
  241. package/assets/esri/core/workers/chunks/9776c2db337222ceceef.js +1 -0
  242. package/assets/esri/core/workers/chunks/990853e9df38fdfc58b5.js +1 -0
  243. package/assets/esri/core/workers/chunks/9a21ba0c45a96b94c05e.js +1 -0
  244. package/assets/esri/core/workers/chunks/{e0a63b5861e8c975097e.js → 9aaf78b831f8739bc127.js} +1 -1
  245. package/assets/esri/core/workers/chunks/9b56162ac67c992193ce.js +1 -0
  246. package/assets/esri/core/workers/chunks/{4d378d4e021a33b0047e.js → 9be4438ce2c7180adadf.js} +1 -1
  247. package/assets/esri/core/workers/chunks/a169d9fe66b5865911d9.js +1 -0
  248. package/assets/esri/core/workers/chunks/a1e6187c239fdc7553ed.js +1 -0
  249. package/assets/esri/core/workers/chunks/a5a46d0a0831497cf1b4.js +1 -0
  250. package/assets/esri/core/workers/chunks/a5afcd633b32e6ee31a7.js +1 -0
  251. package/assets/esri/core/workers/chunks/a5d8d6f3c0c8de474efd.js +1 -0
  252. package/assets/esri/core/workers/chunks/a65d576e90179a2b5400.js +1 -0
  253. package/assets/esri/core/workers/chunks/a760be8fa6c6ea6b745c.js +1 -0
  254. package/assets/esri/core/workers/chunks/a8782286ce3c0d6c20e6.js +1 -0
  255. package/assets/esri/core/workers/chunks/{38328a785365c4783b1e.js → a994a3c912a33b2f4100.js} +1 -1
  256. package/assets/esri/core/workers/chunks/{678c9f15712cf3d3bb9e.js → aa1a3a849aba84cf585b.js} +1 -1
  257. package/assets/esri/core/workers/chunks/abcc5fb71be2bd94878c.js +1 -0
  258. package/assets/esri/core/workers/chunks/ae0a572cbbdd9815ee2e.js +1 -0
  259. package/assets/esri/core/workers/chunks/aecb05df4ad1454f5435.js +1 -0
  260. package/assets/esri/core/workers/chunks/aecb105db7cec2c9c4c5.js +1 -0
  261. package/assets/esri/core/workers/chunks/b19f33e026a2a43b17c4.js +1 -0
  262. package/assets/esri/core/workers/chunks/b1a21a4d7d73ad7d0e47.js +1 -0
  263. package/assets/esri/core/workers/chunks/b2983f521d8c96becd8a.js +1 -0
  264. package/assets/esri/core/workers/chunks/b5922991d2f450e6a9d9.js +1 -0
  265. package/assets/esri/core/workers/chunks/b8643976a7f984552d94.js +1 -0
  266. package/assets/esri/core/workers/chunks/ba4259aa050169c1d523.js +1 -0
  267. package/assets/esri/core/workers/chunks/bc53ce9a643f82d516c2.js +1 -0
  268. package/assets/esri/core/workers/chunks/{81b2985b83be8f8f1090.js → c06d021180418f2014de.js} +1 -1
  269. package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +1 -0
  270. package/assets/esri/core/workers/chunks/{0e2e4cb34ac6aac88ebf.js → c178e2cfc34603661b1d.js} +1 -1
  271. package/assets/esri/core/workers/chunks/c3e80c0e29ac6a7a6f80.js +1 -0
  272. package/assets/esri/core/workers/chunks/c46a4adea39636a96d03.js +1 -0
  273. package/assets/esri/core/workers/chunks/c6030271bd6d39b6e1db.js +1 -0
  274. package/assets/esri/core/workers/chunks/c9065cee85eb8dde6a42.js +1 -0
  275. package/assets/esri/core/workers/chunks/c92352b0e39576ca317a.js +1 -0
  276. package/assets/esri/core/workers/chunks/c92b40a532e708e506cc.js +1 -0
  277. package/assets/esri/core/workers/chunks/c961aff385e38b081204.js +1 -0
  278. package/assets/esri/core/workers/chunks/cca095f0c623e037002d.js +1 -0
  279. package/assets/esri/core/workers/chunks/ce2aa75e084ee56f5e29.js +1 -0
  280. package/assets/esri/core/workers/chunks/ce44e172e2847fd8df14.js +1 -0
  281. package/assets/esri/core/workers/chunks/cf826787ab8d4b27ad80.js +1 -0
  282. package/assets/esri/core/workers/chunks/cff7e921649aef715c78.js +1 -0
  283. package/assets/esri/core/workers/chunks/d05a7ce6c1d4b883ed4c.js +30 -0
  284. package/assets/esri/core/workers/chunks/d4a9eb4470cc6a1f67fc.js +2 -0
  285. package/assets/esri/core/workers/chunks/{478879ba965798f61bf3.js → d69110ec4078c583a05e.js} +1 -1
  286. package/assets/esri/core/workers/chunks/d8c0d18f0132872decd3.js +1 -0
  287. package/assets/esri/core/workers/chunks/db0061a6d5bf454cc509.js +1 -0
  288. package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +1 -0
  289. package/assets/esri/core/workers/chunks/dcfafcf4386f2940d000.js +1 -0
  290. package/assets/esri/core/workers/chunks/deb8a0b306d7b9c86b97.js +1 -0
  291. package/assets/esri/core/workers/chunks/df8143b72ef94806c992.js +1 -0
  292. package/assets/esri/core/workers/chunks/e0b47b08ae2c36c76fa2.js +1 -0
  293. package/assets/esri/core/workers/chunks/e2b034c391c603f7f825.js +1 -0
  294. package/assets/esri/core/workers/chunks/e77d958cb62536b8eebc.js +1 -0
  295. package/assets/esri/core/workers/chunks/e797d45eba0884dc7e6f.js +1 -0
  296. package/assets/esri/core/workers/chunks/{453280ea87a696a4df81.js → e81a3da05fcff97b4752.js} +1 -1
  297. package/assets/esri/core/workers/chunks/e957d52cb9643961a843.js +1127 -0
  298. package/assets/esri/core/workers/chunks/{915a5e8aecf25f3bc72b.js → eb3cdc4ff45243fc3cc5.js} +1 -1
  299. package/assets/esri/core/workers/chunks/eb9982bc866976fef960.js +1 -0
  300. package/assets/esri/core/workers/chunks/{edc2e87968c958bc852b.js → ec4669a0edeca94710e0.js} +1 -1
  301. package/assets/esri/core/workers/chunks/f05932aea4eb267cba4d.js +1 -0
  302. package/assets/esri/core/workers/chunks/f09a41ad239d467d9438.js +2 -0
  303. package/assets/esri/core/workers/chunks/f52443cd203e687551da.js +1 -0
  304. package/assets/esri/core/workers/chunks/f653970d983f17fb764b.js +1 -0
  305. package/assets/esri/core/workers/chunks/f6912532aae1638cbe8f.js +1 -0
  306. package/assets/esri/core/workers/chunks/f6d5dd2eef0d9918096e.js +1 -0
  307. package/assets/esri/core/workers/chunks/f89976ec97938bf86996.js +1 -0
  308. package/assets/esri/core/workers/chunks/f9edc685099f51363f41.js +1 -0
  309. package/assets/esri/core/workers/chunks/fa687ba2d66fcc2501da.js +1 -0
  310. package/assets/esri/core/workers/chunks/fe68c28d3c61f116ff23.js +1 -0
  311. package/assets/esri/core/workers/chunks/fef5dc19736f12dfa99a.js +1 -0
  312. package/assets/esri/core/workers/chunks/ffcd4fca7f67e1f943f1.js +1 -0
  313. package/assets/esri/themes/dark/main.css +1 -1
  314. package/assets/esri/themes/light/main.css +1 -1
  315. package/assets/esri/themes/light/view.css +1 -1
  316. package/chunks/OITDim.glsl.js +3 -4
  317. package/config.js +1 -1
  318. package/core/workers/WorkerHandle.js +1 -1
  319. package/geometry/Mesh.js +1 -1
  320. package/geometry/support/DoubleArray.js +1 -1
  321. package/geometry/support/triangulationUtilsDeprecated.js +1 -1
  322. package/kernel.js +1 -1
  323. package/package.json +3 -3
  324. package/popup/Feature.d.ts +2 -0
  325. package/popup/Feature.js +1 -1
  326. package/popup/actions.js +1 -1
  327. package/support/revision.js +1 -1
  328. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  329. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  330. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  331. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  332. package/views/2d/layers/imagery/ImageryView2D.js +1 -1
  333. package/views/2d/layers/imagery/VectorFieldView2D.js +1 -1
  334. package/views/3d/FocusAreasView.js +1 -1
  335. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementController.js +1 -1
  336. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  337. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  338. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  339. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  340. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  341. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  342. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  343. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  344. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  345. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  346. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  347. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  348. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  349. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  350. package/views/3d/support/renderInfoUtils/polygonDeprecated.js +1 -1
  351. package/views/3d/terrain/PatchRenderData.js +1 -1
  352. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  353. package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +1 -1
  354. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  355. package/views/3d/webgl-engine/lib/SamplerRepository.js +2 -0
  356. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  357. package/views/ViewAnimation.d.ts +2 -21
  358. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  359. package/views/support/rasterHitTestUtils.js +2 -0
  360. package/views/webgl/Sampler.js +1 -1
  361. package/widgets/support/widgetUtils.js +1 -1
  362. package/assets/esri/core/workers/chunks/01be1315c60810651783.js +0 -1
  363. package/assets/esri/core/workers/chunks/0dd12d6af0cf7707109c.js +0 -2
  364. package/assets/esri/core/workers/chunks/155f57fe9886ef322e2a.js +0 -1
  365. package/assets/esri/core/workers/chunks/170f4d83555d238e365b.js +0 -1
  366. package/assets/esri/core/workers/chunks/171cca726a763c770469.js +0 -1
  367. package/assets/esri/core/workers/chunks/1761dc5799850ca7b66c.js +0 -1
  368. package/assets/esri/core/workers/chunks/17d54e77001ccb48a258.js +0 -1
  369. package/assets/esri/core/workers/chunks/19afacc9a741038e4bfb.js +0 -1
  370. package/assets/esri/core/workers/chunks/1a198c9e17f7a058669e.js +0 -1
  371. package/assets/esri/core/workers/chunks/1ae4e43a399e1974f106.js +0 -1
  372. package/assets/esri/core/workers/chunks/1c742bfe3b0aa51823d1.js +0 -1
  373. package/assets/esri/core/workers/chunks/1d8777266fb1c5cfca55.js +0 -1
  374. package/assets/esri/core/workers/chunks/1f76c06af4682c85bc21.js +0 -1
  375. package/assets/esri/core/workers/chunks/205e957ffd7e95f530f7.js +0 -1
  376. package/assets/esri/core/workers/chunks/210629f3c28d4339c655.js +0 -1
  377. package/assets/esri/core/workers/chunks/21a8e2a11ffacc226e2b.js +0 -1
  378. package/assets/esri/core/workers/chunks/27643750dce502fedef3.js +0 -1
  379. package/assets/esri/core/workers/chunks/29b1a4ce7646b403008e.js +0 -1
  380. package/assets/esri/core/workers/chunks/2a65bbe6c63c384cbf5f.js +0 -1
  381. package/assets/esri/core/workers/chunks/2fa69ca3ba8c442dd7d6.js +0 -1
  382. package/assets/esri/core/workers/chunks/35217befc8f9882d139e.js +0 -1
  383. package/assets/esri/core/workers/chunks/3a2ecb883fdb5c598544.js +0 -30
  384. package/assets/esri/core/workers/chunks/3eef3c2e94aa2a00d76a.js +0 -1
  385. package/assets/esri/core/workers/chunks/40d6ad030614099155cd.js +0 -1414
  386. package/assets/esri/core/workers/chunks/41e59d75ccb51a238739.js +0 -1
  387. package/assets/esri/core/workers/chunks/44016e1176629c36bc11.js +0 -1
  388. package/assets/esri/core/workers/chunks/499b899bf88aaf29230d.js +0 -1
  389. package/assets/esri/core/workers/chunks/4b0d6309abf273f1f79f.js +0 -1
  390. package/assets/esri/core/workers/chunks/4e07827ab870c65377d3.js +0 -1
  391. package/assets/esri/core/workers/chunks/51852ef71ac04954fdae.js +0 -1
  392. package/assets/esri/core/workers/chunks/53b797e384be9628fc94.js +0 -1
  393. package/assets/esri/core/workers/chunks/549a51dedcc49f366e53.js +0 -1
  394. package/assets/esri/core/workers/chunks/54c0306082d30d59cba2.js +0 -1
  395. package/assets/esri/core/workers/chunks/57cdd5d4ae073d5ca725.js +0 -1
  396. package/assets/esri/core/workers/chunks/5b9257c5359fa05f4f28.js +0 -1
  397. package/assets/esri/core/workers/chunks/5d574079f0e96e883aab.js +0 -1
  398. package/assets/esri/core/workers/chunks/5d967bcf71c05ddb1ab6.js +0 -1
  399. package/assets/esri/core/workers/chunks/60d0f8a949b130baff81.js +0 -1
  400. package/assets/esri/core/workers/chunks/61778185d702da468b00.js +0 -1
  401. package/assets/esri/core/workers/chunks/61b49cdaf288f36f9288.js +0 -1
  402. package/assets/esri/core/workers/chunks/621ea864e2774f160d1c.js +0 -1
  403. package/assets/esri/core/workers/chunks/679086351352756b33c9.js +0 -1
  404. package/assets/esri/core/workers/chunks/681e97ebbf9c69c410c6.js +0 -1
  405. package/assets/esri/core/workers/chunks/69644b8a6ce340ca1159.js +0 -1
  406. package/assets/esri/core/workers/chunks/6a567755b67c06d16f21.js +0 -1
  407. package/assets/esri/core/workers/chunks/6e7bb6d3e739527116a4.js +0 -1
  408. package/assets/esri/core/workers/chunks/70263c2182dc43046742.js +0 -1
  409. package/assets/esri/core/workers/chunks/71326d16b5cc35c3ff7f.js +0 -1
  410. package/assets/esri/core/workers/chunks/78fbfc03d9b827c3f767.js +0 -1
  411. package/assets/esri/core/workers/chunks/7d0350f459844162d3a7.js +0 -1
  412. package/assets/esri/core/workers/chunks/7e39e9d4d68843b60e4c.js +0 -1
  413. package/assets/esri/core/workers/chunks/823127b23bec07e1f9d0.js +0 -2
  414. package/assets/esri/core/workers/chunks/84eb889b9cce35dac2e5.js +0 -1
  415. package/assets/esri/core/workers/chunks/888f6387e795d45a7ad3.js +0 -2
  416. package/assets/esri/core/workers/chunks/891d97d0da6361d63679.js +0 -1
  417. package/assets/esri/core/workers/chunks/8969788c57bcc11bf77b.js +0 -1
  418. package/assets/esri/core/workers/chunks/8d6da6573d07385f4ed5.js +0 -1
  419. package/assets/esri/core/workers/chunks/8ede12f54b215c52cf3c.js +0 -1
  420. package/assets/esri/core/workers/chunks/8fb336c2066113300d0d.js +0 -1
  421. package/assets/esri/core/workers/chunks/8fed6becd107d2ed9bbd.js +0 -1
  422. package/assets/esri/core/workers/chunks/97062996e1e4196cfa7c.js +0 -1
  423. package/assets/esri/core/workers/chunks/97210bcb5e3cf3ac961b.js +0 -1
  424. package/assets/esri/core/workers/chunks/9c819ebdc98ed8b6afcf.js +0 -1
  425. package/assets/esri/core/workers/chunks/9d7ffd83f69d6e639f09.js +0 -1
  426. package/assets/esri/core/workers/chunks/9dfd00972c12a4adc15d.js +0 -1
  427. package/assets/esri/core/workers/chunks/9fab410b9fa668dc498b.js +0 -1
  428. package/assets/esri/core/workers/chunks/a061a17b62686f945e81.js +0 -1
  429. package/assets/esri/core/workers/chunks/a30815a0155a3b8790b4.js +0 -1
  430. package/assets/esri/core/workers/chunks/a43decc8ede8b4910553.js +0 -1
  431. package/assets/esri/core/workers/chunks/a462aa1c7b68efad6906.js +0 -1
  432. package/assets/esri/core/workers/chunks/a520f83ae0c3c3e78858.js +0 -1
  433. package/assets/esri/core/workers/chunks/a5d9dbb1fef8c4465943.js +0 -1
  434. package/assets/esri/core/workers/chunks/a73e8b80760dc88f926f.js +0 -1
  435. package/assets/esri/core/workers/chunks/b014f0b2385dc82dc683.js +0 -2
  436. package/assets/esri/core/workers/chunks/b2120c4c56656be941ae.js +0 -1
  437. package/assets/esri/core/workers/chunks/b8005b1996f42dee8237.js +0 -1
  438. package/assets/esri/core/workers/chunks/b85c9ceeece1bae67a16.js +0 -1
  439. package/assets/esri/core/workers/chunks/b8e85b7d5eed6e7c79b5.js +0 -1
  440. package/assets/esri/core/workers/chunks/bbdf27bc34fadbe8e6fe.js +0 -1
  441. package/assets/esri/core/workers/chunks/bc85bb82cfcbc216fa31.js +0 -1
  442. package/assets/esri/core/workers/chunks/be42fe0b7ba0e27030b2.js +0 -1
  443. package/assets/esri/core/workers/chunks/be4d13088a557b7de4b1.js +0 -1
  444. package/assets/esri/core/workers/chunks/be61ea8e1883b915bbb1.js +0 -1
  445. package/assets/esri/core/workers/chunks/bf758d57091fa534c1f8.js +0 -1
  446. package/assets/esri/core/workers/chunks/bfd516c37fb717e14d71.js +0 -1
  447. package/assets/esri/core/workers/chunks/c22945637a40355fbe61.js +0 -1
  448. package/assets/esri/core/workers/chunks/c25a58d9f94aaa96957d.js +0 -1
  449. package/assets/esri/core/workers/chunks/c6a43f748dbf8bac4bb5.js +0 -1
  450. package/assets/esri/core/workers/chunks/c7ca47f5d4b2f3885239.js +0 -1
  451. package/assets/esri/core/workers/chunks/d024278a1c2aa7d22be3.js +0 -1
  452. package/assets/esri/core/workers/chunks/d264aed5dbe09e34040f.js +0 -1
  453. package/assets/esri/core/workers/chunks/d4e55eb75fa4d3ac1e84.js +0 -1
  454. package/assets/esri/core/workers/chunks/d5c7ebfd5c2ca635a7a8.js +0 -1
  455. package/assets/esri/core/workers/chunks/d635f97b7b82a37482d6.js +0 -1
  456. package/assets/esri/core/workers/chunks/d7b92bd9198dd3b27eb5.js +0 -1
  457. package/assets/esri/core/workers/chunks/d816d1a4220d827faf63.js +0 -1
  458. package/assets/esri/core/workers/chunks/d82b543c96f09ded3bf9.js +0 -2
  459. package/assets/esri/core/workers/chunks/d8dde0d1759e009b8373.js +0 -1
  460. package/assets/esri/core/workers/chunks/da0a61f73d45ea9e71fc.js +0 -1
  461. package/assets/esri/core/workers/chunks/e305ced975d885c28e7e.js +0 -1
  462. package/assets/esri/core/workers/chunks/e3c60b7df2740e600066.js +0 -1
  463. package/assets/esri/core/workers/chunks/e5801b0f3893d4d4f5b0.js +0 -1
  464. package/assets/esri/core/workers/chunks/e59f5dc8c85bcea66e98.js +0 -1
  465. package/assets/esri/core/workers/chunks/e611cd03eee4fae7c413.js +0 -1
  466. package/assets/esri/core/workers/chunks/e62d08f5488a74cbda82.js +0 -1
  467. package/assets/esri/core/workers/chunks/e64a92b6f4075616f40f.js +0 -1
  468. package/assets/esri/core/workers/chunks/e78b442417f6a903b9b1.js +0 -1
  469. package/assets/esri/core/workers/chunks/ef0fe4e1a9e960a74c60.js +0 -1
  470. package/assets/esri/core/workers/chunks/efbbcf467b2a27a92b85.js +0 -1
  471. package/assets/esri/core/workers/chunks/f201edf9b68717a6106d.js +0 -1
  472. package/assets/esri/core/workers/chunks/f59f1db572be1f19887f.js +0 -1
  473. package/assets/esri/core/workers/chunks/f9cde38cb56c547e87e5.js +0 -1
  474. package/assets/esri/core/workers/chunks/fd6bbe47773bbd9f7dd9.js +0 -1
  475. package/assets/esri/core/workers/chunks/fe3b42eadcdd9ba54f05.js +0 -1
  476. /package/assets/esri/core/workers/chunks/{0dd12d6af0cf7707109c.js.LICENSE.txt → 7bacdd65a6cc4d284e0a.js.LICENSE.txt} +0 -0
  477. /package/assets/esri/core/workers/chunks/{823127b23bec07e1f9d0.js.LICENSE.txt → 85edbb072a2ce6c1bb30.js.LICENSE.txt} +0 -0
  478. /package/assets/esri/core/workers/chunks/{888f6387e795d45a7ad3.js.LICENSE.txt → d4a9eb4470cc6a1f67fc.js.LICENSE.txt} +0 -0
  479. /package/assets/esri/core/workers/chunks/{b014f0b2385dc82dc683.js.LICENSE.txt → f09a41ad239d467d9438.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1005,5804],{68197(e,t,r){r.d(t,{A:()=>u});var n=r(40876),i=r(4576),o=r(34727),s=r(56507);function a(e){return(0,o.qE)((0,s.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,n=new u){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?u.fromArray(r,t):null}static fromHex(e,t=new u){const r=(0,n.oW)(e);return r?u.fromArray(r,t):null}static fromArray(e,t=new u){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 r=(0,n.Eq)(e);return r?u.fromArray(r,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}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){if("string"==typeof e)u.fromString(e,this);else if((0,i.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return 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,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,o=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?o.toUpperCase():o}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=0){const t=a(this.r),r=a(this.g),n=a(this.b);return 0===e||1!==this.a?[t,r,n,a(255*this.a)]:[t,r,n]}clone(){return new u(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,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>h,G1:()=>f,TS:()=>o,Tf:()=>v,V6:()=>i,Vm:()=>g,ay:()=>l,c1:()=>y,c4:()=>s,j5:()=>u,lT:()=>p,oW:()=>c,xV:()=>w});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function o(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...o(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const i=(e%360+360)%360/360,o=r<=.5?r*(t+1):r+t-r*t,s=2*r-o;return[Math.round(255*a(s,o,i+1/3)),Math.round(255*a(s,o,i)),Math.round(255*a(s,o,i-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,o=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return o&&(l=s&n,s>>=r,a[3]=i*l/255),l=s&n,s>>=r,a[2]=i*l,l=s&n,s>>=r,a[1]=i*l,l=s&n,s>>=r,a[0]=i*l,a}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function p(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=y(e[0]),e[1]=y(e[1]),e[2]=y(e[2]),e[3]=4===e.length?f(e[3]):1,e}function h(e){let t=i(e)?o(e):null;return t??=p(e),t??=c(e),t}function g(e){const t=h(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function f(e){return m(e,0,1)}function y(e){return Math.round(m(e,0,255))}function m(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const v=2.2,b=1/v;function w(e){return e**b}},69052(e,t,r){r.d(t,{hr:()=>i,ie:()=>l,uC:()=>a});var n=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return o(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+s(this.range,e-t,r)}minimalMonotonic(e,t,r){return o(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function o(e,t,r,n,i=0,o=!1){return(n-=i)<t?n+=s(e,t-n):n>r&&(n-=s(e,n-r)),o&&n===r&&(n=t),n+i}function s(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360))},80200(e,t,r){r.d(t,{T:()=>n,d:()=>p});const n={Base64:0,Hex:1,String:2,Raw:3};function i(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,n,o,s){return i(function(e,t){return e<<t|e>>>32-t}(i(i(t,e),i(n,s)),o),r)}function s(e,t,r,n,i,s,a){return o(t&r|~t&n,e,t,i,s,a)}function a(e,t,r,n,i,s,a){return o(t&n|r&~n,e,t,i,s,a)}function l(e,t,r,n,i,s,a){return o(t^r^n,e,t,i,s,a)}function u(e,t,r,n,i,s,a){return o(r^(t|~n),e,t,i,s,a)}function c(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,n=-271733879,o=-1732584194,c=271733878;for(let t=0;t<e.length;t+=16){const p=r,d=n,h=o,g=c;r=s(r,n,o,c,e[t],7,-680876936),c=s(c,r,n,o,e[t+1],12,-389564586),o=s(o,c,r,n,e[t+2],17,606105819),n=s(n,o,c,r,e[t+3],22,-1044525330),r=s(r,n,o,c,e[t+4],7,-176418897),c=s(c,r,n,o,e[t+5],12,1200080426),o=s(o,c,r,n,e[t+6],17,-1473231341),n=s(n,o,c,r,e[t+7],22,-45705983),r=s(r,n,o,c,e[t+8],7,1770035416),c=s(c,r,n,o,e[t+9],12,-1958414417),o=s(o,c,r,n,e[t+10],17,-42063),n=s(n,o,c,r,e[t+11],22,-1990404162),r=s(r,n,o,c,e[t+12],7,1804603682),c=s(c,r,n,o,e[t+13],12,-40341101),o=s(o,c,r,n,e[t+14],17,-1502002290),n=s(n,o,c,r,e[t+15],22,1236535329),r=a(r,n,o,c,e[t+1],5,-165796510),c=a(c,r,n,o,e[t+6],9,-1069501632),o=a(o,c,r,n,e[t+11],14,643717713),n=a(n,o,c,r,e[t],20,-373897302),r=a(r,n,o,c,e[t+5],5,-701558691),c=a(c,r,n,o,e[t+10],9,38016083),o=a(o,c,r,n,e[t+15],14,-660478335),n=a(n,o,c,r,e[t+4],20,-405537848),r=a(r,n,o,c,e[t+9],5,568446438),c=a(c,r,n,o,e[t+14],9,-1019803690),o=a(o,c,r,n,e[t+3],14,-187363961),n=a(n,o,c,r,e[t+8],20,1163531501),r=a(r,n,o,c,e[t+13],5,-1444681467),c=a(c,r,n,o,e[t+2],9,-51403784),o=a(o,c,r,n,e[t+7],14,1735328473),n=a(n,o,c,r,e[t+12],20,-1926607734),r=l(r,n,o,c,e[t+5],4,-378558),c=l(c,r,n,o,e[t+8],11,-2022574463),o=l(o,c,r,n,e[t+11],16,1839030562),n=l(n,o,c,r,e[t+14],23,-35309556),r=l(r,n,o,c,e[t+1],4,-1530992060),c=l(c,r,n,o,e[t+4],11,1272893353),o=l(o,c,r,n,e[t+7],16,-155497632),n=l(n,o,c,r,e[t+10],23,-1094730640),r=l(r,n,o,c,e[t+13],4,681279174),c=l(c,r,n,o,e[t],11,-358537222),o=l(o,c,r,n,e[t+3],16,-722521979),n=l(n,o,c,r,e[t+6],23,76029189),r=l(r,n,o,c,e[t+9],4,-640364487),c=l(c,r,n,o,e[t+12],11,-421815835),o=l(o,c,r,n,e[t+15],16,530742520),n=l(n,o,c,r,e[t+2],23,-995338651),r=u(r,n,o,c,e[t],6,-198630844),c=u(c,r,n,o,e[t+7],10,1126891415),o=u(o,c,r,n,e[t+14],15,-1416354905),n=u(n,o,c,r,e[t+5],21,-57434055),r=u(r,n,o,c,e[t+12],6,1700485571),c=u(c,r,n,o,e[t+3],10,-1894986606),o=u(o,c,r,n,e[t+10],15,-1051523),n=u(n,o,c,r,e[t+1],21,-2054922799),r=u(r,n,o,c,e[t+8],6,1873313359),c=u(c,r,n,o,e[t+15],10,-30611744),o=u(o,c,r,n,e[t+6],15,-1560198380),n=u(n,o,c,r,e[t+13],21,1309151649),r=u(r,n,o,c,e[t+4],6,-145523070),c=u(c,r,n,o,e[t+11],10,-1120210379),o=u(o,c,r,n,e[t+2],15,718787259),n=u(n,o,c,r,e[t+9],21,-343485551),r=i(r,p),n=i(n,d),o=i(o,h),c=i(c,g)}return[r,n,o,c]}function p(e,t=n.Hex){const r=t||n.Base64,i=c(function(e){const t=[];for(let r=0,n=8*e.length;r<n;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case n.Raw:return i;case n.Hex:return function(e){const t="0123456789abcdef",r=[];for(let n=0,i=4*e.length;n<i;n++)r.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return r.join("")}(i);case n.String:return function(e){const t=[];for(let r=0,n=32*e.length;r<n;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(i);case n.Base64:return function(e){const t=[];for(let r=0,n=4*e.length;r<n;r+=3){const n=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let i=0;i<4;i++)8*r+6*i>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-i)&63))}return t.join("")}(i)}}},87024(e,t,r){r.d(t,{P:()=>h});var n=r(49186),i=r(80200),o=r(76553),s=r(84952),a=r(13069),l=r(96156),u=r(35666),c=r(10107),p=r(85648),d=r(97159);function h(e){const t=e?.origins??[void 0];return(r,n)=>{const i=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const n=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const i=(0,d.r)(e,t,r);return n.type===String?i:"function"==typeof n.type?new n.type({url:i}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,i,a,l){if(!l?.resources)return"string"==typeof t?void(i[a]=(0,d.t)(t,l)):void(i[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=n.type!==String&&(!(0,o.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:i,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,s.oP)(h)?m&&e?.contentAddressed?g(v):m?function(e){const{context:t,targetUrl:r,params:n,value:i,dest:o,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=y(i,r,t),c=(0,p.n)(u),d=(0,s.Zo)(l.path),h=n?.compress??!1;c===d?(t.resources&&f({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),o[a]=r):g(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[n]=t)}(v):l?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,s.w8)(h)||m)?g(v):i[a]=h}}}}(e,t,r);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,r,n);for(const e of t){const t=(0,c.rM)(r,e,n);for(const e in i)t[e]=i[e]}}}function g(e){const{targetUrl:t,params:r,value:o,context:l,dest:u,targetPropertyName:c}=e;if(!l.portalItem)return;const h=(0,d.p)(t),g=y(o,t,l);if(r?.contentAddressed&&"json"!==g.type)return void l.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${g.type} with content addressing. Content addressing is only supported for json resources.`,{content:g}));const m=r?.contentAddressed&&"json"===g.type?(0,i.d)(g.jsonString):h?.filename??(0,a.lk)(),v=(0,s.fj)(r?.prefix??h?.prefix,m),b=`${v}.${(0,p.n)(g)}`;if(r?.contentAddressed&&l.resources&&"json"===g.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===b)??l.resources.toAdd.find(({resource:e})=>e.path===b);if(e)return void(u[c]=e.resource.itemRelativeUrl)}const w=l.portalItem.resourceFromPath(b);(0,s.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,s.tk)(t).then(e=>{w.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,u[c]=w.itemRelativeUrl}).catch(()=>{}));const M=r?.compress??!1;l.resources&&f({...e,resource:w,content:g,compress:M,updates:l.resources.toAdd}),u[c]=w.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:n,content:i,compress:o}){r.push({resource:n,content:i,compress:o,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function y(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},46130(e,t,r){r.d(t,{v:()=>i});var n=r(76553);function i(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,n.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},60999(e,t,r){r.d(t,{DZ:()=>g,Ke:()=>h,Tj:()=>c,UT:()=>f,aD:()=>m,jJ:()=>u});var n=r(5482),i=r(69622),o=r(97768),s=r(17676),a=r(10107),l=r(64108);function u(e,t,r){return(0,s.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,s.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return d(e)}}async function g(e){try{return p(await e)}catch(e){return(0,s.QP)(e),d(e)}}function f(e,t){return new y(e,t)}let y=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,s.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},62885(e,t,r){r.d(t,{H:()=>o,V:()=>i});var n=r(7762);function i(e,t,r=n.A){return t||(t=new r),t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function o(e){return e}},82534(e,t,r){function n(){return[0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>i,vt:()=>n,zK:()=>o});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:n,fromValues:function(e,t,r,n){return[e,t,r,n]}},Symbol.toStringTag,{value:"Module"}))},67026(e,t,r){r.d(t,{A6:()=>f,Xd:()=>c,Xr:()=>h,hZ:()=>m,lw:()=>p,t2:()=>R,x8:()=>u});var n=r(29242),i=r(82534),o=r(51850),s=r(34304),a=r(35522),l=r(78955);function u(e,t,r){r*=.5;const n=Math.sin(r);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(r),e}function c(e,t){const r=2*Math.acos(t[3]),n=Math.sin(r/2);return n>(0,s.FD)()?(e[0]=t[0]/n,e[1]=t[1]/n,e[2]=t[2]/n):(e[0]=1,e[1]=0,e[2]=0),r}function p(e,t,r){const n=t[0],i=t[1],o=t[2],s=t[3],a=r[0],l=r[1],u=r[2],c=r[3];return e[0]=n*c+s*a+i*u-o*l,e[1]=i*c+s*l+o*a-n*u,e[2]=o*c+s*u+n*l-i*a,e[3]=s*c-n*a-i*l-o*u,e}function d(e,t,r,n){const i=t[0],o=t[1],a=t[2],l=t[3];let u,c,p,d,h,g=r[0],f=r[1],y=r[2],m=r[3];return c=i*g+o*f+a*y+l*m,c<0&&(c=-c,g=-g,f=-f,y=-y,m=-m),1-c>(0,s.FD)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-n)*u)/p,h=Math.sin(n*u)/p):(d=1-n,h=n),e[0]=d*i+h*g,e[1]=d*o+h*f,e[2]=d*a+h*y,e[3]=d*l+h*m,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function g(e,t){const r=t[0]+t[4]+t[8];let n;if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const i=(r+1)%3,o=(r+2)%3;n=Math.sqrt(t[3*r+r]-t[3*i+i]-t[3*o+o]+1),e[r]=.5*n,n=.5/n,e[3]=(t[3*i+o]-t[3*o+i])*n,e[i]=(t[3*i+r]+t[3*r+i])*n,e[o]=(t[3*o+r]+t[3*r+o])*n}return e}function f(e,t,r,n){const i=.5*Math.PI/180;t*=i,r*=i,n*=i;const o=Math.sin(t),s=Math.cos(t),a=Math.sin(r),l=Math.cos(r),u=Math.sin(n),c=Math.cos(n);return e[0]=o*l*c-s*a*u,e[1]=s*a*c+o*l*u,e[2]=s*l*u-o*a*c,e[3]=s*l*c+o*a*u,e}const y=l.C,m=l.hZ,v=l.WQ,b=p,w=l.hs,M=l.Om,S=l.Cc,x=l.Bw,C=x,A=l.m3,I=A,j=l.S8,R=l.t2,Z=l.aI,P=(0,o.vt)(),T=(0,o.fA)(1,0,0),N=(0,o.fA)(0,1,0),V=(0,i.vt)(),O=(0,i.vt)(),q=(0,n.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const r=t[0],n=t[1],i=t[2];return e[0]=r,e[1]=n,e[2]=i,e[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),e},conjugate:h,copy:y,dot:M,equals:Z,exactEquals:R,fromEuler:f,fromMat3:g,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const r=t[0],n=t[1],i=t[2],o=t[3],s=r*r+n*n+i*i+o*o,a=s?1/s:0;return e[0]=-r*a,e[1]=-n*a,e[2]=-i*a,e[3]=o*a,e},len:C,length:x,lerp:S,mul:b,multiply:p,normalize:j,random:function(e){const t=s.Ov,r=t(),n=t(),i=t(),o=Math.sqrt(1-r),a=Math.sqrt(r);return e[0]=o*Math.sin(2*Math.PI*n),e[1]=o*Math.cos(2*Math.PI*n),e[2]=a*Math.sin(2*Math.PI*i),e[3]=a*Math.cos(2*Math.PI*i),e},rotateX:function(e,t,r){r*=.5;const n=t[0],i=t[1],o=t[2],s=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l+s*a,e[1]=i*l+o*a,e[2]=o*l-i*a,e[3]=s*l-n*a,e},rotateY:function(e,t,r){r*=.5;const n=t[0],i=t[1],o=t[2],s=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l-o*a,e[1]=i*l+s*a,e[2]=o*l+n*a,e[3]=s*l-i*a,e},rotateZ:function(e,t,r){r*=.5;const n=t[0],i=t[1],o=t[2],s=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l+i*a,e[1]=i*l-n*a,e[2]=o*l+s*a,e[3]=s*l-o*a,e},rotationTo:function(e,t,r){const n=(0,a.Om)(t,r);return n<-.999999?((0,a.$A)(P,T,t),(0,a.Il)(P)<1e-6&&(0,a.$A)(P,N,t),(0,a.S8)(P,P),u(e,P,Math.PI),e):n>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.$A)(P,t,r),e[0]=P[0],e[1]=P[1],e[2]=P[2],e[3]=1+n,j(e,e))},scale:w,set:m,setAxes:function(e,t,r,n){const i=q;return i[0]=r[0],i[3]=r[1],i[6]=r[2],i[1]=n[0],i[4]=n[1],i[7]=n[2],i[2]=-t[0],i[5]=-t[1],i[8]=-t[2],j(e,g(e,i))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,r,n,i,o){return d(V,t,i,o),d(O,r,n,o),d(e,V,O,2*o*(1-o)),e},sqrLen:I,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>o,C:()=>s,Cc:()=>I,DI:()=>S,Il:()=>k,Io:()=>v,Ln:()=>m,Om:()=>C,Qr:()=>p,Re:()=>u,S8:()=>x,T9:()=>f,WQ:()=>l,Z0:()=>j,_S:()=>h,aI:()=>O,ei:()=>R,fw:()=>P,gL:()=>Z,hG:()=>b,hZ:()=>a,hs:()=>y,jb:()=>z,jk:()=>g,lo:()=>E,lw:()=>c,m3:()=>w,oW:()=>q,t2:()=>V,tn:()=>d,uE:()=>F,xg:()=>U,ze:()=>M});var n=r(51850),i=r(34304);function o(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function p(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[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 g(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function y(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function m(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function v(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function b(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function w(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function M(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function S(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function x(e,t){const r=t[0],n=t[1],i=t[2];let o=r*r+n*n+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],l=r[2];return e[0]=i*l-o*a,e[1]=o*s-n*l,e[2]=n*a-i*s,e}function I(e,t,r,n){const i=t[0],o=t[1],s=t[2];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=s+n*(r[2]-s),e}function j(e,t,r){const n=t[0],i=t[1],o=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12],e[1]=r[1]*n+r[5]*i+r[9]*o+r[13],e[2]=r[2]*n+r[6]*i+r[10]*o+r[14],e}function R(e,t,r){const n=t[0],i=t[1],o=t[2];return e[0]=n*r[0]+i*r[3]+o*r[6],e[1]=n*r[1]+i*r[4]+o*r[7],e[2]=n*r[2]+i*r[5]+o*r[8],e}function Z(e,t,r){return P(e,t,r[0],r[1],r[2],r[3])}function P(e,t,r,n,i,o){const s=t[0],a=t[1],l=t[2],u=n*l-i*a,c=i*s-r*l,p=r*a-n*s,d=n*p-i*c,h=i*u-r*p,g=r*c-n*u,f=2*o;return e[0]=s+u*f+2*d,e[1]=a+c*f+2*h,e[2]=l+p*f+2*g,e}const T=(0,n.vt)(),N=(0,n.vt)();function V(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O(e,t){if(e===t)return!0;const r=e[0],n=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function q(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],o=r[2]-t[2];let s=n*n+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=n*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const z=u,_=c,L=p,U=v,E=b,k=o,F=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){x(T,e),x(N,t);const r=C(T,N);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,p=3*l*s,d=l*o;return e[0]=t[0]*u+r[0]*c+n[0]*p+i[0]*d,e[1]=t[1]*u+r[1]*c+n[1]*p+i[1]*d,e[2]=t[2]*u+r[2]*c+n[2]*p+i[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,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:s,cross:A,crossAndNormalize:function(e,t,r){const n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=i*l-o*a,c=o*s-n*l,p=n*a-i*s,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:q,dist:U,distance:v,div:L,divide:p,dot:C,equals:O,exactEquals:V,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,r,n,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return e[0]=t[0]*a+r[0]*l+n[0]*u+i[0]*c,e[1]=t[1]*a+r[1]*l+n[1]*u+i[1]*c,e[2]=t[2]*a+r[2]*l+n[2]*u+i[2]*c,e},inverse:S,len:k,length:o,lerp:I,max:f,min:g,mul:_,multiply:c,negate:M,normalize:x,random:function(e,t=1){const r=i.Ov,n=2*r()*Math.PI,o=2*r()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(n)*s,e[1]=Math.sin(n)*s,e[2]=o*t,e},rotateX:function(e,t,r,n){const i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0],o[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),o[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),o[1]=i[1],o[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),o[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),o[2]=i[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[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:y,scaleAndAdd:m,set:a,sign:h,sqrDist:E,sqrLen:F,squaredDistance:b,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:z,subtract:u,transformMat3:R,transformMat4:j,transformQuat:Z,transformQuatValues:P},Symbol.toStringTag,{value:"Module"}))},78955(e,t,r){r.d(t,{Bw:()=>y,C:()=>i,Cc:()=>w,LI:()=>d,Om:()=>b,S8:()=>v,T9:()=>p,WQ:()=>s,Z0:()=>M,aI:()=>x,hG:()=>f,hZ:()=>o,hs:()=>h,jk:()=>c,m3:()=>m,t2:()=>S});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function s(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function c(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function p(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function h(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function g(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+o*o)}function f(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return r*r+n*n+i*i+o*o}function y(e){const t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function m(e){const t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function v(e,t){const r=t[0],n=t[1],i=t[2],o=t[3];let s=r*r+n*n+i*i+o*o;return s>0&&(s=1/Math.sqrt(s),e[0]=r*s,e[1]=n*s,e[2]=i*s,e[3]=o*s),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function w(e,t,r,n){const i=t[0],o=t[1],s=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=s+n*(r[2]-s),e[3]=a+n*(r[3]-a),e}function M(e,t,r){const n=t[0],i=t[1],o=t[2],s=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*s,e[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*s,e[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*s,e[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*s,e}function S(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function x(e,t){const r=e[0],i=e[1],o=e[2],s=e[3],a=t[0],l=t[1],u=t[2],c=t[3],p=(0,n.FD)();return Math.abs(r-a)<=p*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-l)<=p*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-u)<=p*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(s-c)<=p*Math.max(1,Math.abs(s),Math.abs(c))}const C=a,A=l,I=u,j=g,R=f,Z=y,P=m;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:j,distance:g,div:I,divide:u,dot:b,equals:x,exactEquals:S,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:Z,length:y,lerp:w,max:p,min:c,mul:A,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:v,random:function(e,t=1){const r=n.Ov;let i,o,s,a,l,u;do{i=2*r()-1,o=2*r()-1,l=i*i+o*o}while(l>=1);do{s=2*r()-1,a=2*r()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-l)/u);return e[0]=t*i,e[1]=t*o,e[2]=t*s*c,e[3]=t*a*c,e},round:d,scale:h,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:o,sqrDist:R,sqrLen:P,squaredDistance:f,squaredLength:m,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:C,subtract:a,transformMat4:M,transformQuat:function(e,t,r){const n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=r[3],c=u*n+a*o-l*i,p=u*i+l*n-s*o,d=u*o+s*i-a*n,h=-s*n-a*i-l*o;return e[0]=c*u+h*-s+p*-l-d*-a,e[1]=p*u+h*-a+d*-s-c*-l,e[2]=d*u+h*-l+c*-a-p*-s,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},76553(e,t,r){function n(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>n})},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const n="randomUUID"in crypto;function i(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},54239(e,t,r){r.d(t,{A:()=>y});var n,i=r(5482),o=r(4576),s=r(66552),a=r(25482),l=r(86211),u=r(67076),c=r(91429),p=r(43937),d=r(36005);const h=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=h.jsonValues.slice();(0,o.Xy)(g,"orthometric");const f=(0,s.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 y=n=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(m(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||f.read(e)||(r?.messages&&r.messages.push(m(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,c.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,i.Cg)([(0,p.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,i.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,i.Cg)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,i.Cg)([(0,d.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,i.Cg)([(0,d.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,i.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=n=(0,i.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],y)},159(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),o=r(69540),s=r(25482),a=r(91429),l=r(99157);let u=n=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),o=r(69540),s=r(25482),a=r(91429);let l=n=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=n=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(49208);function i(e,t,r,i,o,s,a=Math.floor(e.length/3)){const l=(0,n.jd)(t,o);if(null==l)return!1;if(l===n.pO){if(e===i&&r===s)return!0;const t=r+3*a;for(let n=r,o=s;n<t;n++,o++)i[o]=e[n]??0;return!0}const u=r+3*a;for(let t=r,n=s;t<u;t+=3,n+=3)l(e,t,i,n);return!0}},49208(e,t,r){r.d(t,{Tp:()=>p,jd:()=>c,pO:()=>h,w5:()=>u});var n=r(34727),i=r(86211),o=r(73941),s=r(79258),a=r(34403),l=r(21325);const u={2:{5:h,7:null,9:null,10:h,1:M,6:null,8:null,0:null,3:f,11:y,2:h,4:I},5:{5:h,7:null,9:null,10:h,1:M,6:null,8:null,0:null,3:f,11:y,2:h,4:I},7:{5:null,7:h,9:null,10:h,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:h,10:h,1:null,6:null,8:b,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,r,n){const i=e[t]/N,o=T-2*Math.atan(Math.exp(-e[t+1]/N)),s=N+(e[t+2]??0),a=Math.cos(o)*s;r[n]=Math.cos(i)*a,r[n+1]=Math.sin(i)*a,r[n+2]=Math.sin(o)*s},6:null,8:null,0:null,3:h,11:function(e,t,r,n){g(e,t,r,n),y(r,n,r,n)},2:g,4:function(e,t,r,n){g(e,t,r,n),I(r,n,r,n)}},4:{5:j,7:null,9:null,10:j,1:function(e,t,r,n){j(e,t,r,n),M(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){j(e,t,r,n),f(r,n,r,n)},11:function(e,t,r,n){j(e,t,r,n),y(r,n,r,n)},2:j,4:h},1:{5:A,7:null,9:null,10:A,1:h,6:null,8:null,0:null,3:function(e,t,r,n){A(e,t,r,n),f(r,n,r,n)},11:function(e,t,r,n){A(e,t,r,n),y(r,n,r,n)},2:A,4:function(e,t,r,n){A(e,t,r,n),I(r,n,r,n)}},6:{5:null,7:C,9:null,10:C,1:null,6:h,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,1:null,6:null,8:h,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:h,3:null,11:null,2:null,4:null},10:{5:h,7:h,9:h,10:h,1:M,6:w,8:b,0:null,3:f,11:y,2:h,4:I},11:{5:m,7:null,9:null,10:m,1:function(e,t,r,n){m(e,t,r,n),M(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){m(e,t,r,n),f(r,n,r,n)},11:h,2:m,4:function(e,t,r,n){m(e,t,r,n),I(r,n,r,n)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(R.source.spatialReference===e&&R.dest.spatialReference===t)return R;const r=d(e,R.source),n=d(t,R.dest);return 0===r&&0===n?(0,l.aI)(e,t)?R.projector=h:R.projector=null:R.projector=u[r][n],R}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function h(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function g(e,t,r,n){r[n]=P*(e[t]/N),r[n+1]=P*(T-2*Math.atan(Math.exp(-e[t+1]/N))),r[n+2]=e[t+2]??0}function f(e,t,r,i){!function(e,t,r,i,o){const s=.4999999*Math.PI,a=(0,n.qE)(Z*e[t+1],-s,s),l=Math.sin(a);r[i++]=Z*e[t]*o.radius,r[i++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[i]=e[t+2]??0}(e,t,r,i,s.$O)}function y(e,t,r,n){r[n]=e[t]*V,r[n+1]=e[t+1]*V,r[n+2]=e[t+2]??0}function m(e,t,r,n){r[n]=e[t]*O,r[n+1]=e[t+1]*O,r[n+2]=e[t+2]??0}function v(e,t,r,n,i){const o=i+(e[t+2]??0),s=Z*e[t],a=Z*e[t+1],l=Math.cos(a)*o;r[n]=Math.cos(s)*l,r[n+1]=Math.sin(s)*l,r[n+2]=Math.sin(a)*o}function b(e,t,r,n){v(e,t,r,n,s.Sw.radius)}function w(e,t,r,n){v(e,t,r,n,s.sH.radius)}function M(e,t,r,n){v(e,t,r,n,s.$O.radius)}function S(e,t,r,i,o){const s=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(s*s+a*a+l*l),c=(0,n.YN)(l/(0===u?1:u)),p=Math.atan2(a,s);r[i++]=P*p,r[i++]=P*c,r[i]=u-o}function x(e,t,r,n){S(e,t,r,n,s.Sw.radius)}function C(e,t,r,n){S(e,t,r,n,s.sH.radius)}function A(e,t,r,n){S(e,t,r,n,s.$O.radius)}function I(e,t,r,n){!function(e,t,r,n,i){const o=Z*e[t],s=Z*e[t+1],a=e[t+2]??0,l=Math.sin(s),u=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);r[n++]=(c+a)*u*Math.cos(o),r[n++]=(c+a)*u*Math.sin(o),r[n++]=(c*(1-i.eccentricitySquared)+a)*l}(e,t,r,n,s.$O)}function j(e,t,r,n){const i=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let c,p,d,h,g,f,y,m,v,b,w,M,S,x,C,A,I,j,R,Z,T;c=Math.abs(u),p=o*o+l*l,d=Math.sqrt(p),h=p+u*u,g=Math.sqrt(h),Z=Math.atan2(l,o),f=u*u/h,y=p/h,x=i.a2/g,C=i.a3-i.a4/g,y>.3?(m=c/g*(1+y*(i.a1+x+f*C)/g),R=Math.asin(m),b=m*m,v=Math.sqrt(1-b)):(v=d/g*(1-f*(i.a5-x-y*C)/g),R=Math.acos(v),b=1-v*v,m=Math.sqrt(b)),w=1-s.$O.eccentricitySquared*b,M=s.$O.radius/Math.sqrt(w),S=i.a6*M,x=d-M*v,C=c-S*m,I=v*x+m*C,A=v*C-m*x,j=A/(S/w+I),R+=j,T=I+A*j/2,u<0&&(R=-R),r[n++]=P*Z,r[n++]=P*R,r[n]=T}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:h},Z=(0,n.kU)(1),P=(0,n.KJ)(1),T=.5*Math.PI,N=s.$O.radius,V=N*Math.PI/180,O=180/(N*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>B,initializeProjection:()=>H,isEqualBaseGCS:()=>G,isLoaded:()=>N,isLoadedOrLoad:()=>V,isLoadedOrLoadFor:()=>O,load:()=>z,project:()=>_,projectAsync:()=>K,projectExtent:()=>ie,projectMany:()=>L,projectMultipoint:()=>Y,projectOrLoad:()=>E,projectOrLoadMany:()=>k,projectPoint:()=>W,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>J,requiresLoad:()=>q,test:()=>D,tryProject:()=>U,unload:()=>$});var n=r(49186),i=r(17676),o=r(62788),s=r(95488),a=r(51850),l=r(21276),u=r(73941),c=r(5443),p=r(91075),d=r(48526),h=r(86738),g=r(39829),f=r(82799),y=r(16930),m=r(98764),v=r(159),b=r(9762),w=r(49208);function M(e,t,r,n,i,o){return S[0]=e,S[1]=t,S[2]=r,(0,b.projectBuffer)(S,n,0,i,o,0)}const S=(0,a.vt)();var x=r(60408),C=r(21325),A=r(52006);let I=null,j=null,R=null,Z=null,P={};const T=new s.I;function N(){return!!(j?.isLoaded()&&R?.isLoaded()&&Z?.isLoaded())}function V(){return!!N()||((0,o.gc)(T),z(),!1)}function O(e,t){return!e||!t||B(e,t)||V()}function q(e,t){return!B(e,t)&&!N()}async function z(e){null==I&&(I=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(j=e,j.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(R=e,R.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(Z=e,Z.load()))])),await I,(0,i.Te)(e),T.notify()}function _(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),L(e,e[0].spatialReference,t,r)):((0,l.f)(e),L([e],e.spatialReference,t,r)[0])}function L(e,t,r,n){if(null==t||null==r)return e;if(B(t,r,n))return e.map(e=>J(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return L(e.map(e=>J(e,t,y.A.WGS84)),y.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return L(e,t,y.A.WGS84).map(e=>J(e,y.A.WGS84,r));if(!N())throw new F;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:Z.getTransformation(t,r,n.areaOfInterestExtent)||new v.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=P[e];i||(i=Z.getTransformation(t,r)||new v.A,P[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?j.executeMany(e,r,n):R.executeMany(e,r,n)}function U(e,t,r){try{return _(e,t,r)}catch(e){return null}}function E(e,t){const r=k([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function k(e,t,r){if(!N())for(const r of e)if(null!=r&&!(0,C.aI)(r.spatialReference,t)&&(0,C.fn)(r.spatialReference)&&(0,C.fn)(t)&&!B(r.spatialReference,t))return(0,o.gc)(T),{pending:z(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?_(e,t,r):null)}}class F extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function $(){I=null,j=null,R=null,Z=null,P={}}const D={get loadPromise(){return I}};async function K(e,t,r){if((0,i.Te)(r),!e)return e;const n=k(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),K(e,t,r);const o=n.geometries??[];return Array.isArray(e)?o:o[0]}function B(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,w.jd)(e,t))}function G(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const r=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),n=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return r&&n}async function H(e,t,r,n){if(N())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!B(t,r,i))return z(n)}else if(e&&t&&!B(e,t,r))return z(n);return(0,i.NO)(n)}function J(e,t,r){return e?(0,x.fT)(e)?Q(e,t,new h.A,r,0):(0,x.ZC)(e)?oe(e,t,new c.A,r,0):(0,x.Bi)(e)?ne(e,t,new g.A,r,0):(0,x.Rg)(e)?te(e,t,new f.A,r,0):(0,x.U9)(e)?X(e,t,new d.A,r,0):null:null}function W(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=Q(e,e.spatialReference,t,r,n)}function Q(e,t,r,n,i){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:i,(0,b.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==o||(0,u.xP)(n)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Y(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,i){const{points:o,hasZ:s,hasM:a}=e,l=[],u=o.length,c=[];for(const e of o)c.push(e[0],e[1],s?e[2]:i);if(!(0,b.projectBuffer)(c,t,0,c,n,0,u))return null;const p=le(s,n);for(let e=0;e<u;++e){const t=3*e,r=c[t],n=c[t+1];p&&a?l.push([r,n,c[t+2],o[e][3]]):p?l.push([r,n,c[t+2]]):a?l.push([r,n,o[e][2]]):l.push([r,n])}return r.points=l,r.spatialReference=n,r.hasZ=s,r.hasM=a,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,i){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=e;if(!(o?ae(o,a??!1,l??!1,t,r.curvePaths=[],n,i):se(s,a??!1,l??!1,t,r.paths,n,i)))return null;const u=le(a,n);return r.spatialReference=n,r.hasZ=u,r.hasM=l,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,i){const{curveRings:o,rings:s,hasZ:a,hasM:l}=e;return(o?ae(o,a??!1,l??!1,t,r.curveRings=[],n,i):se(s,a??!1,l??!1,t,r.rings,n,i))?(r.spatialReference=n,r.hasZ=le(a,n),r.hasM=l,r):null}function ie(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=oe(e,e.spatialReference,t,r,n)}function oe(e,t,r,n,i){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!M(o,s,u?e.zmin:i,t,ue,n))return null;const p=le(u,n);return r.xmin=ue[0],r.ymin=ue[1],p&&(r.zmin=ue[2]),M(a,l,u?e.zmax:i,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],p&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function se(e,t,r,n,i,o,s=0){const a=new Array;for(const r of e)for(const e of r)a.push(e[0],e[1],t?e[2]:s);if(!(0,b.projectBuffer)(a,n,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,o);for(const t of e){const e=new Array;for(const n of t){const t=a.slice(l,l+=3);c||t.pop(),r&&t.push(n[u]),e.push(t)}i.push(e)}return!0}function ae(e,t,r,n,i,o,s=0){const a=new Array;for(const r of e)for(const e of r){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[r,n]=e.c;a.push(r[0],r[1],t?r[2]:s,n[0],n[1],s);continue}if((0,A.n1)(e)){const[r,n,i]=e.b;a.push(r[0],r[1],t?r[2]:s,n[0],n[1],s,i[0],i[1],s);continue}const r=e;a.push(r[0],r[1],t?r[2]:s)}if(!(0,b.projectBuffer)(a,n,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,o);for(const t of e){const e=new Array;for(const n of t){const t=a.slice(l,l+=3);if(c||t.pop(),r&&t.push((0,A.yP)(n)[u]),(0,A.FG)(n))return!1;if((0,A.aO)(n)){const r=a[l++],n=a[l++];++l,e.push({c:[t,[r,n]]});continue}if((0,A.n1)(n)){const r=a[l++],n=a[l++];++l;const i=a[l++],o=a[l++];++l,e.push({b:[t,[r,n],[i,o]]});continue}e.push(t)}i.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,C.aI)(t,m.Y0)}const ue=(0,a.vt)()},98764(e,t,r){r.d(t,{GD:()=>s,Y0:()=>u,lO:()=>c});var n=r(73941),i=r(16930),o=r(21325);const s=new i.A(n.fv),a=new i.A(n.FY),l=new i.A(n.LJ),u=new i.A(n.Ro);function c(e){const t=p.get(e);if(t)return t;let r=s;if(e)if(e===a)r=a;else if(e===l)r=l;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,o.tl)(t)||(0,o.tl)(n)?r=a:((0,o.ZL)(t)||(0,o.ZL)(n))&&(r=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?r=a:e===h&&(r=l)}}}return p.set(e,r),r}const p=new Map,d=a.wkt.toUpperCase(),h=l.wkt.toUpperCase()},34403(e,t,r){r.d(t,{TP:()=>s});var n=r(79258);Math.PI;const i=n.$O.radius,o=n.$O.eccentricitySquared,s={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius},99959(e,t,r){r.d(t,{A:()=>o});var n=r(5482),i=r(91429);let o=class{};o=(0,n.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],o)},89808(e,t,r){r.d(t,{Q:()=>n});const n=Symbol("getSliceableSymbol")},21005(e,t,r){r.r(t),r.d(t,{default:()=>De});var n=r(5482),i=r(37838),o=r(7762),s=r(49186),a=r(53966),l=r(25728),u=r(17676),c=r(91429),p=r(56507),d=r(35522),h=r(51850),g=r(5443),f=r(60950),y=r(89808),m=r(99959);const v=Symbol("isVoxelGraphicOrigin");var b;class w extends m.A{get[(b=v,f.ym)](){return this.layer}get[y.Q](){return this.layer}constructor(e){super(),this[b]=!0,this.type="voxel",this.layer=e}get id(){return this.layer.id}}var M=r(4146),S=r(52136),x=r(18768),C=r(69208),A=r(34287),I=r(8303),j=r(25036),R=r(58947),Z=r(60694),P=r(10873),T=r(20437),N=r(95466),V=r(96184),O=r(69540),q=r(69052),z=r(25482),_=r(87024),L=r(67026),U=r(82534),E=r(34304);const k=(0,h.vt)(),F=(0,U.vt)(),$=(0,U.vt)(),D=(0,U.vt)(),K=(0,h.fA)(0,0,1),B=(0,h.fA)(0,1,0),G=(0,h.fA)(1,0,0);function H(e){(0,d.C)(k,e),(0,d.S8)(k,k);const t=Math.atan2(k[1],k[0]),r=(0,L.x8)((0,U.vt)(),K,-t);(0,d.gL)(k,k,r);const n=-1*Math.atan2(k[2],k[0]);return[(0,E.ct)(t)+270,(0,E.ct)(n)+90]}function J(e,t){return(0,L.x8)($,K,(0,E.DF)(e-270)),(0,L.x8)(D,B,(0,E.DF)(t-90)),(0,L.lw)(F,$,D),(0,d.C)(k,G),(0,d.gL)(k,k,F),(0,d.S8)(k,k),[k[0],k[1],k[2]]}let W=class extends((0,O.OU)(z.o)){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]=H(this.normal);return q.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=J(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]=H(this.normal);return q.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=J(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],W.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>q.ie.normalize((0,p.GB)(e),0,!0))],W.prototype,"orientation",null),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>q.ie.normalize((0,p.GB)(e),0,!0))],W.prototype,"tilt",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],W.prototype,"normal",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],W.prototype,"point",void 0),W=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSlice")],W);var Q=r(97159);let Y=class extends((0,O.OU)(z.o)){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]=H(this.normal);return q.ie.normalize((0,p.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=H(this.normal);return q.ie.normalize((0,p.GB)(t),0,!0)}};(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],Y.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{origins:{service:{read:Q.r},"web-scene":{write:{isRequired:!0}}},write:!0}}),(0,_.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],Y.prototype,"href",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Y.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Y.prototype,"orientation",null),(0,n.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Y.prototype,"tilt",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"normal",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"point",void 0),(0,n.Cg)([(0,c.MZ)({type:[p.jz],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"sizeInPixel",void 0),(0,n.Cg)([(0,c.MZ)({type:[W],json:{write:!0}})],Y.prototype,"slices",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{default:0,write:!0}})],Y.prototype,"timeId",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"variableId",void 0),Y=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSection")],Y);let X=class extends z.o{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"diffuseFactor",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"specularFactor",void 0),X=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSimpleShading")],X);let ee=class extends z.o{constructor(e){super(e),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,n.Cg)([(0,c.MZ)({type:["discrete","continuous"],json:{write:!0}})],ee.prototype,"continuity",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],ee.prototype,"hasNoData",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"noData",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"offset",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"scale",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelFormat")],ee);const te=ee;let re=class extends z.o{constructor(e){super(e),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"description",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"name",void 0),(0,n.Cg)([(0,c.MZ)({type:te,json:{write:!0}})],re.prototype,"originalFormat",void 0),(0,n.Cg)([(0,c.MZ)({type:te,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"renderingFormat",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"unit",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],re.prototype,"volumeId",void 0),(0,n.Cg)([(0,c.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],re.prototype,"type",void 0),re=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariable")],re);const ne=re;var ie=r(4718),oe=r(68197);let se=class extends((0,O.OU)(z.o)){constructor(e){super(e),this.color=oe.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,n.Cg)([(0,c.MZ)({type:oe.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],se.prototype,"color",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],se.prototype,"value",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],se.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],se.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],se.prototype,"colorLocked",void 0),se=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIsosurface")],se);var ae=r(62885),le=r(34727);let ue=class extends((0,O.OU)(z.o)){constructor(e){super(e),this.color=null,this.position=0}};(0,n.Cg)([(0,c.MZ)({type:oe.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ue.prototype,"color",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelColorStop")],ue);const ce=ue;let pe=class extends((0,O.OU)(z.o)){constructor(e){super(e),this.opacity=1,this.position=0}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],pe.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],pe.prototype,"position",void 0),pe=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelOpacityStop")],pe);const de=pe;let he=class extends((0,O.OU)(z.o)){constructor(e){super(e),this.enabled=!1,this.range=null}};(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],he.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],he.prototype,"range",void 0),he=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRangeFilter")],he);const ge=he;let fe=class extends((0,O.OU)(z.o)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(o.A.ofType(ce)),this.opacityStops=new(o.A.ofType(de))}set colorStops(e){this._set("colorStops",(0,ae.V)(e,this._get("colorStops"),o.A.ofType(ce)))}set opacityStops(e){this._set("opacityStops",(0,ae.V)(e,this._get("opacityStops"),o.A.ofType(de)))}getPreviousNext(e,t,r){let n=e;for(;--n>0&&t[n].type!==r&&3!==t[n].type;);let i=e;const o=t.length;for(;++i<o&&t[i].type!==r&&3!==t[i].type;);return[n,i]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],r=[];for(const t of this.colorStops){if(!t.color)return e;r.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:1})}if(0===this.opacityStops.length)for(const e of r)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,le.qE)(e.position,0,1),n=Math.round(255*(0,le.qE)(1-e.opacity,0,1));let i=!1;for(const e of r)if(1===e.type&&Math.abs(e.position-t)<1e-5){e.color.a=n,e.type=3,i=!0;break}i||r.push({color:{r:0,g:0,b:0,a:n},position:e.position,type:2})}r.sort((e,t)=>e.position<t.position?-1:1);const e=r.length;for(let t=0;t<e;++t){const n=r[t];if(3!==n.type)if(1===n.type){const[i,o]=this.getPreviousNext(t,r,2);if(-1!==i&&o!==e){const e=(n.position-r[i].position)/(r[o].position-r[i].position);n.color.a=Math.round((0,le.Cc)(r[i].color.a,r[o].color.a,e))}else n.color.a=-1!==i?r[i].color.a:r[o].color.a}else{const[i,o]=this.getPreviousNext(t,r,1);if(-1!==i&&o!==e){const e=(n.position-r[i].position)/(r[o].position-r[i].position),t=r[i].color,s=r[o].color;me.forEach(r=>{n.color[r]=Math.round((0,le.Cc)(t[r],s[r],e))})}else-1!==i?me.forEach(e=>{n.color[e]=r[i].color[e]}):me.forEach(e=>{n.color[e]=r[o].color[e]})}}for(const e of r)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let n=0,i=1;for(let r=0;r<this._colorMapSize;++r){const o=r/this._colorMapSize;for(;o>t[i].position;)n=i++;const s=(o-t[n].position)/(t[i].position-t[n].position),a=t[n].color,l=t[i].color,u=new oe.A;me.forEach(e=>{u[e]=Math.round((0,le.Cc)(a[e],l[e],s))}),u.a=(0,le.qE)(1-(0,le.Cc)(a.a,l.a,s)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const r=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||r.length<256)return null;let n=this.stretchRange[0],i=this.stretchRange[1];if(n>i){const e=n;n=i,i=e}e=(0,le.qE)(e,n,i);const o=r[Math.round((e-n)/(i-n)*(this._colorMapSize-1))].clone();return t||(o.a=1),o}};(0,n.Cg)([(0,c.MZ)({type:["linear","nearest"],json:{write:!0}})],fe.prototype,"interpolation",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],fe.prototype,"stretchRange",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(ce),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],fe.prototype,"colorStops",null),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(de),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],fe.prototype,"opacityStops",null),(0,n.Cg)([(0,c.MZ)({type:ge,json:{write:!0}})],fe.prototype,"rangeFilter",void 0),(0,n.Cg)([(0,c.MZ)({type:[oe.A],clonable:!1,json:{read:!1}})],fe.prototype,"rasterizedTransferFunction",null),fe=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelTransferFunctionStyle")],fe);const ye=fe,me=["r","g","b"];let ve=class extends((0,O.OU)(z.o)){constructor(e){super(e),this.color=oe.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};var be;(0,n.Cg)([(0,c.MZ)({type:oe.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ve.prototype,"color",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],ve.prototype,"value",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ve.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ve.prototype,"label",void 0),ve=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelUniqueValue")],ve);let we=be=class extends z.o{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(o.A.ofType(ve)),this.isosurfaces=new(o.A.ofType(se))}clone(){return new be({variableId:this.variableId,label:this.label,transferFunction:(0,ie.o8)(this.transferFunction),uniqueValues:(0,ie.o8)(this.uniqueValues),isosurfaces:(0,ie.o8)(this.isosurfaces)})}};(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],we.prototype,"variableId",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],we.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:ye,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],we.prototype,"transferFunction",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(ve),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],we.prototype,"uniqueValues",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(se),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],we.prototype,"isosurfaces",void 0),we=be=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariableStyle")],we);var Me=r(88930),Se=r(86738),xe=r(16930),Ce=r(21325);function Ae(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[,r,n,i,o,s,a,l,u,c,p,d,h]=t;let g="seconds";const f=r.charAt(0).toLowerCase();"d"===f?g="days":"h"===f?g="hours":"m"===f&&(g="minutes");const y=parseInt(n,10);if(Number.isNaN(y))return{didParse:!1};const m=parseInt(i,10);if(Number.isNaN(m)||m<1||m>12)return{didParse:!1};const v=parseInt(o,10);if(Number.isNaN(v)||v<1||v>31)return{didParse:!1};if(2===m){const e=y%4==0&&(y%100!=0||y%400==0);if(e&&v>29||!e&&v>28)return{didParse:!1}}else if((4===m||6===m||9===m||11===m)&&v>30)return{didParse:!1};const b=parseInt(s,10);if(Number.isNaN(b)||b<0||b>23)return{didParse:!1};const w=parseInt(a,10);if(Number.isNaN(w)||w<0||w>59)return{didParse:!1};const M=parseInt(l,10);if(Number.isNaN(M)||M<0||M>59)return{didParse:!1};let S=1,x=0,C=0;if(p&&(S="-"===p?-1:1),d){if(x=parseInt(d,10),Number.isNaN(x)||x<0)return{didParse:!1};if(0!==x){const e=S*x;if(e<-12||e>14)return{didParse:!1}}}if(h&&(C=parseInt(h,10),Number.isNaN(C)||C<0||C>59))return{didParse:!1};const A=`${y}`.padStart(4,"0"),I=`${m}`.padStart(2,"0"),j=`${v}`.padStart(2,"0"),R=`${b}`.padStart(2,"0"),Z=`${w}`.padStart(2,"0"),P=`${M}`.padStart(2,"0");let T="Z";return 0===x&&0===C||(T=S>0?"+":"-",T+=`${x}`.padStart(2,"0"),T+=":",T+=`${C}`.padStart(2,"0")),{didParse:!0,unit:g,reference:new Date(`${A}-${I}-${j}T${R}:${Z}:${P}.000${T}`)}}let Ie=class extends z.o{constructor(){super(...arguments),this.values=null}};(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:!0}})],Ie.prototype,"values",void 0),Ie=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIrregularSpacing")],Ie);const je=Ie;let Re=class extends z.o{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Re.prototype,"scale",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Re.prototype,"offset",void 0),Re=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRegularSpacing")],Re);const Ze=Re;let Pe=class extends z.o{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,n.Cg)([(0,c.MZ)({type:je,json:{write:!0}})],Pe.prototype,"irregularSpacing",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Pe.prototype,"isPositiveUp",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Pe.prototype,"isWrappedDateLine",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Pe.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Pe.prototype,"name",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Pe.prototype,"quantity",void 0),(0,n.Cg)([(0,c.MZ)({type:Ze,json:{write:!0}})],Pe.prototype,"regularSpacing",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Pe.prototype,"size",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Pe.prototype,"unit",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1}})],Pe.prototype,"isRegular",null),Pe=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDimension")],Pe);const Te=Pe;let Ne=class extends z.o{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=xe.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(),r=this.dimensions[2],n=r.isRegular?r.getRange():[0,r.size];return[e[0],t[0],n[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],n=r.isRegular?r.getRange():[0,r.size],i=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)i[e]<2?i[e]=1:i[e]-=1;return r.isRegular&&!r.isPositiveUp&&(i[2]*=-1),[(e[1]-e[0])/i[0],(t[1]-t[0])/i[1],(n[1]-n[0])/i[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=Ae(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=[],r=Ae(e.unit);if(r.didParse)if(e.isRegular){const n=e.regularSpacing?.offset??0,i=e.regularSpacing?.scale||1;for(let o=0;o<e.size;++o){const e=n+i*o;t.push((0,Me.mi)(r.reference,e,r.unit))}}else if(Array.isArray(e.irregularSpacing?.values)&&e.irregularSpacing.values.length>0)for(let n=0;n<e.irregularSpacing.values.length;++n){const i=e.irregularSpacing.values[n];t.push((0,Me.mi)(r.reference,i,r.unit))}return t}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return a.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,Ce.aI)(this.spatialReference,e.spatialReference))return a.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,h.fA)(e.x,e.y,e.z??0);(0,d.Re)(t,t,this.originInLayerSpace3D),(0,d.Qr)(t,t,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const n=e.z??0,i=r.irregularSpacing.values,o=r.isPositiveUp?1:-1,s=i.reduce((e,t)=>Math.abs(o*t-n)<Math.abs(o*e-n)?t:e);for(let e=0;e<i.length;++e)if(i[e]===s){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,h.ci)(e);if((0,d.lw)(t,t,this.voxelSizeInLayerSpaceSigned),(0,d.WQ)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Se.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const r=this.dimensions[this.zDimension];return r.isRegular||Array.isArray(r.irregularSpacing?.values)&&(e[2]<0?t[2]=r.irregularSpacing.values[0]:e[2]<r.irregularSpacing.values.length?t[2]=r.irregularSpacing.values[e[2]]:t[2]=r.irregularSpacing.values[r.irregularSpacing.values.length-1],r.isPositiveUp||(t[2]*=-1)),new Se.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};var Ve;(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:[Te],json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"dimensions",void 0),(0,n.Cg)([(0,c.MZ)({type:xe.A,json:{read:{enabled:!1}}})],Ne.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1}})],Ne.prototype,"zDimension",null),(0,n.Cg)([(0,c.MZ)({type:[Boolean],json:{read:!1}})],Ne.prototype,"isValid",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"originInLayerSpace3D",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"voxelSizeInLayerSpaceSigned",null),(0,n.Cg)([(0,c.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Ne.prototype,"volumeType",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"sizeInVoxels",null),(0,n.Cg)([(0,c.MZ)({type:[Date],json:{read:!1,write:!1}})],Ne.prototype,"timeStops",null),Ne=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolume")],Ne);let Oe=Ve=class extends z.o{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Ve;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,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"apronWidth",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"brickSize",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"maxLodLevel",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"nodeSize",void 0),Oe=Ve=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeIndex")],Oe);const qe=Oe;let ze=class extends((0,O.OU)(z.o)){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]=H(this.normal);return q.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=J(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]=H(this.normal);return q.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=J(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};var _e;(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ze.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ze.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>q.ie.normalize((0,p.GB)(e),0,!0))],ze.prototype,"orientation",null),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>q.ie.normalize((0,p.GB)(e),0,!0))],ze.prototype,"tilt",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ze.prototype,"normal",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ze.prototype,"point",void 0),ze=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDynamicSection")],ze);let Le=_e=class extends z.o{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(o.A.ofType(W)),this.dynamicSections=new(o.A.ofType(ze))}set slices(e){this._set("slices",(0,ae.V)(e,this._get("slices"),o.A.ofType(W)))}set dynamicSections(e){this._set("dynamicSections",(0,ae.V)(e,this._get("dynamicSections"),o.A.ofType(ze)))}clone(){return new _e({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,ie.o8)(this.slices),dynamicSections:(0,ie.o8)(this.dynamicSections)})}};(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Le.prototype,"volumeId",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{default:1,write:!0}})],Le.prototype,"verticalExaggeration",void 0),(0,n.Cg)([(0,c.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Le.prototype,"exaggerationMode",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{default:0,write:!0}})],Le.prototype,"verticalOffset",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(W),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Le.prototype,"slices",null),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(ze),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Le.prototype,"dynamicSections",null),Le=_e=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeStyle")],Le);var Ue=r(30291),Ee=r(79677),ke=r(10184),Fe=r(36005);let $e=class extends((0,R.w6)((0,x.b)((0,A.q)((0,I.A)((0,j.j)((0,l.M)((0,C.d)((0,S.p)(M.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.graphicOrigin=new w(this),this.shading=new X,this.opacity=1,this.variables=new o.A,this.volumes=new o.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(o.A.ofType(Le)),this.variableStyles=new(o.A.ofType(we)),this.sections=new(o.A.ofType(Y))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,Z.Jf)(e,a.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then(()=>this._fetchService(t)).then(()=>this.serviceRoot=this.url);return this.addResolvingPromise(r),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 s.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 s.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 s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const n=g.A.fromJSON(e,r);if(0===n.zmin&&0===n.zmax&&Array.isArray(t.volumes)){const e=Ne.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,r=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>r){const t=e;e=r,r=t}n.zmin=e,n.zmax=r}}}return n}return null}get fields(){const e=[new T.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"}),new T.A({name:"Voxel.CurrentVariable",alias:"Current Variable",domain:null,editable:!1,length:128,type:"string"})];for(const t of this.variables){const r=new T.A({name:t.name,alias:t.description,domain:null,editable:!1,length:128,type:"discrete"===t.renderingFormat.continuity?"string":"double"});e.push(r)}const t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new T.A({name:"Voxel.LocalTime",alias:"Local Time",domain:null,editable:!1,length:256,type:"date"});e.push(t);const r=new T.A({name:"Voxel.SourceTime",alias:"Source Time",domain:null,editable:!1,length:256,type:"string"});e.push(r)}if("xyt"!==t.volumeType){const t=new T.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 N.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 r=this.variableStyles.findIndex(e=>e.variableId===t);return r<0?null:this.variableStyles.at(r)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const r=this.variables.findIndex(e=>e.id===t);return r<0?null:this.variables.at(r)}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 r=new Ee.A({start:t[0],end:t.at(-1)});return new V.A({fullTimeExtent:r,stops:t})}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find(({volumeId:e})=>e===t.volumeId):null}getColorForContinuousDataValue(e,t,r){const n=this.getVariable(e);if(null==n||"continuous"!==n.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const i=this.variableStyles.findIndex(t=>t.variableId===e);if(i<0)return null;const o=this.variableStyles.at(i);return o?.transferFunction?o.transferFunction.getColorForContinuousDataValue(t,r):null}getSections(){const e=[];for(const t of this.sections)e.push(new Y({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 r=this._getVariable(t);if(null!=r){const n=t.clone();n.isosurfaces.length>4&&(n.isosurfaces=n.isosurfaces.slice(0,3),a.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of n.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(n.variableId,e.value,!1);null==t||t.equals(e.color)||(e.color=t)}if("continuous"===r.renderingFormat.continuity)(null===n.transferFunction||n.transferFunction.colorStops.length<2)&&a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==n.transferFunction&&(Array.isArray(n.transferFunction.stretchRange)&&2===n.transferFunction.stretchRange.length||(a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),n.transferFunction.stretchRange=[0,1],n.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===t.uniqueValues.length)a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.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(n)}else a.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 r=this._getVolumeFromVolumeId(t.volumeId);if(null!=r){const n=t.clone();for(const e of n.slices)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of n.dynamicSections)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");e.push(n)}else a.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,r){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 n=(0,h.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,d.S8)(n,n),!(Math.abs(n[0])+Math.abs(n[1])+Math.abs(n[2])<1e-6||(e.normal[0]=n[0],e.normal[1]=n[1],e.normal[2]=n[2],0))}};(0,n.Cg)([(0,c.MZ)({type:["Voxel"]})],$e.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)(P.fV)],$e.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({json:{write:!0}})],$e.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)(P.OZ)],$e.prototype,"url",null),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(Y),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],$e.prototype,"sections",void 0),(0,n.Cg)([(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"}}}})],$e.prototype,"currentVariableId",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(Le),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],$e.prototype,"volumeStyles",void 0),(0,n.Cg)([(0,c.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],$e.prototype,"renderMode",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(we),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],$e.prototype,"variableStyles",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],$e.prototype,"enableSlices",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],$e.prototype,"enableSections",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],$e.prototype,"enableDynamicSections",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],$e.prototype,"enableIsosurfaces",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],$e.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,c.MZ)({type:X,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],$e.prototype,"shading",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide"]})],$e.prototype,"listMode",void 0),(0,n.Cg)([(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}}}})],$e.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(ne)})],$e.prototype,"variables",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A.ofType(Ne)})],$e.prototype,"volumes",void 0),(0,n.Cg)([(0,c.MZ)({type:qe})],$e.prototype,"index",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],$e.prototype,"minScale",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],$e.prototype,"maxScale",void 0),(0,n.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0})],$e.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],$e.prototype,"version",void 0),(0,n.Cg)([(0,Fe.w)("service","version")],$e.prototype,"readVersion",null),(0,n.Cg)([(0,c.MZ)({type:g.A})],$e.prototype,"fullExtent",void 0),(0,n.Cg)([(0,Fe.w)("service","fullExtent",["fullExtent"])],$e.prototype,"readFullExtent",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],$e.prototype,"fields",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],$e.prototype,"fieldsIndex",null),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,r){t[r]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],$e.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],$e.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],$e.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,c.MZ)({type:V.A,readOnly:!0,json:{read:!1}})],$e.prototype,"timeInfo",null),(0,n.Cg)([(0,c.MZ)({type:Ee.A,json:{read:!1}})],$e.prototype,"timeExtent",void 0),(0,n.Cg)([(0,c.MZ)({type:ke.A,json:{read:!1}})],$e.prototype,"timeOffset",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0,json:{origins:{"web-scene":{name:"timeAnimation",write:!0},service:{read:!1}}}})],$e.prototype,"useViewTime",void 0),$e=(0,n.Cg)([(0,c.$K)("esri.layers.VoxelLayer")],$e);const De=$e},52136(e,t,r){r.d(t,{p:()=>o});var n=r(5482),i=r(91429);const o=e=>{const t=e;let r=class extends t{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,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},18768(e,t,r){r.d(t,{b:()=>a});var n=r(5482),i=r(53966),o=r(91429),s=r(60694);const a=e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,s.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,s.Jf)(e,i.A.getLogger(this)))}};return(0,n.Cg)([(0,o.MZ)()],r.prototype,"title",null),(0,n.Cg)([(0,o.MZ)({type:String})],r.prototype,"url",null),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.ArcGISService")],r),r}},69208(e,t,r){r.d(t,{d:()=>o});var n=r(5482),i=r(91429);const o=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}},8303(e,t,r){r.d(t,{A:()=>M});var n=r(5482),i=r(92602),o=r(70333),s=r(11254),a=r(60999),l=r(49186),u=r(53966),c=r(97768),p=r(17676),d=r(84952),h=r(91429),g=r(77548),f=r(20655),y=r(80812),m=r(41318),v=r(10407),b=r(36005),w=r(43937);const M=e=>{const t=e;let M=class extends t{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}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new y.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await n({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(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!o.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let s,a;if(i)s=r.portal.url;else try{s=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!s||!(0,d.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new y.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=f.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(l,{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 r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,h.MZ)({type:y.default})],M.prototype,"portalItem",null),(0,n.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,n.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,n.Cg)([(0,h.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,n.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],M),M},S={credential:null,user:null}},25036(e,t,r){r.d(t,{j:()=>o});var n=r(5482),i=r(91429);const o=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}},58947(e,t,r){r.d(t,{w6:()=>x,qM:()=>I});var n=r(5482),i=r(11254),o=r(49186),s=r(53966),a=r(17676),l=r(91429),u=r(46130),c=r(5443),p=r(54239),d=r(16930),h=r(60694),g=r(10873),f=r(83898),y=r(73179);var m=r(20655),v=r(80812),b=r(88788),w=r(91682),M=r(26121),S=r(36005);const x=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,a.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return A(t)}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const n=null==e.spatialReference?{...e,spatialReference:A(t)}:e;return c.A.fromJSON(n,r)}const n=t.store,i=A(t);return null==i||null==n?.extent||!Array.isArray(n.extent)||n.extent.some(e=>e<C)?null:new c.A({xmin:n.extent[0],ymin:n.extent[1],xmax:n.extent[2],ymax:n.extent[3],spatialReference:i})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,n=null!=r.version?r.version.toString():"";return this.parseVersionString(n)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){if("item-title"===this.sublayerTitleMode)return this.url?(0,h.yG)(this.url,t.name):t.name;let r=t.name;if(!r&&this.url){const e=(0,h.qg)(this.url);null!=e&&(r=e.title)}const n=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&n&&(r=n+" - "+r),(0,h.cr)(r)}get parsedUrl(){return(0,y.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,f.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,s.A.getLogger(this),t);const{fullExtent:r}=this;null==r||r.hasZ||this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){const r=t.rootIndex%t.pageSize,n=t.rootPage?.nodes?.[r];I(e,n?.obb)}else if("node"===t?.type){const r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<C)return;const n=r[2],i=r[3];e.zmin=n-i,e.zmax=n+i}}async _fetchService(e){if(null==this.url)throw new o.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,i.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,i.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const n=t.data;this.read(n,this._getServiceContext()),this.validateLayer(n)}async _fetchVoxelServiceLayer(e){const t=(await(0,i.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){const r={...Z,...t};let n=v.default.from(e);if(!n)throw new o.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");n.id&&(n=n.clone(),n.id=null);const i=n.portal||m.A.getDefault();await this._ensureLoadBeforeSave(),n.type=R,n.portal=i;const s=(0,b.m)(n,"portal-item",!0),a={layers:[this.write({},s)]};return await Promise.all(s.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(a,s,r),this.url&&(n.url=this.url),n.title||(n.title=this.title),j(n,r,1),await i.signIn(),await i.user.addItem({item:n,folder:r?.folder,data:a}),await(0,w.r)(this.resourceReferences,s),this.portalItem=n,(0,u.v)(s),s.portalItem=n,n}async _save(e){const t={...Z,...e};if(!this.portalItem)throw new o.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==R)throw new o.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${R}"`);await this._ensureLoadBeforeSave();const r=(0,b.m)(this.portalItem,"portal-item",!0),n={layers:[this.write({},r)]};return await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(n,r,t),this.url&&(this.portalItem.url=this.url),this.portalItem.title||(this.portalItem.title=this.title),j(this.portalItem,t,0),await(0,w.S)(this.portalItem,n,this.resourceReferences,r),(0,u.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){const n=r?.validationOptions;(0,M.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:n?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});const i=n?.enabled,a=null;if(i&&a){const t=(await a()).validate(e,r.portalItemLayerType);if(!t.length)return;const i=`Layer item did not validate:\n${t.join("\n")}`;if(s.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${i}`),"throw"===n.failPolicy){const e=t.map(e=>new o.A("sceneservice:schema-validation",e));throw new o.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,n.Cg)([(0,l.MZ)(g.id)],r.prototype,"id",void 0),(0,n.Cg)([(0,l.MZ)({type:d.A})],r.prototype,"spatialReference",void 0),(0,n.Cg)([(0,S.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,n.Cg)([(0,l.MZ)({type:c.A})],r.prototype,"fullExtent",void 0),(0,n.Cg)([(0,S.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,type:p.A})],r.prototype,"heightModelInfo",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,n.Cg)([(0,S.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,n.Cg)([(0,l.MZ)({type:String})],r.prototype,"title",void 0),(0,n.Cg)([(0,S.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,n.Cg)([(0,S.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,n.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,n.Cg)([(0,l.MZ)((0,y.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,n.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.SceneService")],r),r},C=-1e38;function A(e){if(null!=e.spatialReference)return d.A.fromJSON(e.spatialReference);const t=e.store,r=t.indexCRS||t.geographicCRS,n=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null!=n?new d.A(n):null}function I(e,t){if(null==t?.center||null==t.halfSize)throw new o.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<C)return;const r=t.halfSize,n=t.center[2],i=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=n-i,e.zmax=n+i}function j(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const n=t.getTypeKeywords();for(const t of n)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const R="Scene Service",Z={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}}},83898(e,t,r){r.d(t,{F:()=>o});var n=r(11254),i=r(49186);async function o(e,t,r,o,s,a,l){let u=null;if(null!=r){const t=`${e}/nodepages/`,i=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,n.A)(i,{query:{f:"json",...o,token:s},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){null!=a&&a.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",i,e),u=e}}if(!t)return null;const c=t?.split("/").pop(),p=`${e}/nodes/`,d=p+c;try{return{type:"node",rootNode:(await(0,n.A)(d,{query:{f:"json",...o,token:s},responseType:"json",signal:l})).data,urlPrefix:p}}catch(e){throw new i.A("sceneservice:root-node-missing","Root node missing.",{pageError:u,nodeError:e,url:d})}}},96184(e,t,r){r.d(t,{A:()=>h});var n=r(5482),i=r(69540),o=r(25482),s=r(91429),a=r(79677),l=r(10184),u=r(56400),c=r(36005),p=r(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,n.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,n.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],h.prototype,"writeInterval",null),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,n.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,n.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,n.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],h)},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var n=r(4718),i=r(53966),o=r(84952),s=r(60694),a=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},o=(0,n.o8)(a.OZ),l=o.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,n,i){(0,s.LS)(this,e,r,t,i)}),{...o,set:function(e){if(null==e)return void this._set("url",e);const r=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},n=(0,o.An)(e.url);return null!=n&&(null!=e.dynamicDataSource?n.path=(0,o.fj)(n.path,"dynamicLayer"):null!=e.layerId&&(n.path=(0,o.fj)(n.path,r??"",e.layerId.toString()))),n}},88788(e,t,r){r.d(t,{m:()=>s,v:()=>o});var n=r(84952),i=r(20655);function o(e,t){return{...a(e,t),readResourcePaths:[]}}function s(e,t,r){const i=(0,n.An)(e.itemUrl);return{...a(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:i?{rootPath:i.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function a(e,t){return{origin:t,url:(0,n.An)(e.itemUrl),portal:e.portal||i.A.getDefault(),portalItem:e}}},10407(e,t,r){r.d(t,{It:()=>h,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>p});var n=r(91218),i=r(16930),o=r(28735);function s(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?s(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let o=!i||i.includes("features:user:edit"),s=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},85648(e,t,r){r.d(t,{n:()=>i});var n=r(84952);function i(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,n.Zo)(e);return l[t]||s}(e.url)}(e)]||a}const o={},s="text/plain",a=o[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)o[l[e]]=e},15804(e,t,r){r.d(t,{addOrUpdateResources:()=>a,bg:()=>d,cL:()=>p,fetchResources:()=>s,removeAllResources:()=>u,removeResource:()=>l});var n=r(11254),i=r(49186),o=r(84952);async function s(e,t={},r){await e.load(r);const n=(0,o.fj)(e.itemUrl,"resources"),{start:i=1,num:s=10,sortOrder:a="asc",sortField:l="resource"}=t,u={query:{start:i,num:s,sortOrder:a,sortField:l,token:e.apiKey},signal:r?.signal},c=await e.portal.request(n,u);return{total:c.total,nextStart:c.nextStart,resources:c.resources.map(({created:t,size:r,resource:n})=>({created:new Date(t),size:r,resource:e.resourceFromPath(n)}))}}async function a(e,t,r,n){const s=new Map;for(const{resource:e,content:n,compress:o,access:a}of t){if(!e.hasPath())throw new i.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");const[t,l]=c(e.path),u=`${t}/${o??""}/${a??""}`;s.has(u)||s.set(u,{prefix:t,compress:o,access:a,files:[]}),s.get(u).files.push({fileName:l,content:n})}await e.load(n);const a=(0,o.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(const{prefix:t,compress:r,access:i,files:o}of s.values()){const s=25;for(let l=0;l<o.length;l+=s){const u=o.slice(l,l+s),c=new FormData;t&&"."!==t&&c.append("resourcesPrefix",t),r&&c.append("compress","true"),i&&c.append("access",i);let p=0;for(const{fileName:e,content:t}of u)c.append("file"+ ++p,t,e);c.append("f","json"),await e.portal.request(a,{method:"post",body:c,signal:n?.signal})}}}async function l(e,t,r){if(!t.hasPath())throw new i.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const n=(0,o.fj)(e.userItemUrl,"removeResources");await e.portal.request(n,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);const r=(0,o.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function c(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function p(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,n.A)(e.url,{responseType:"blob"})).data}function d(e,t){if(!e.hasPath())return null;const[r,,n]=function(e){const[t,r]=function(e){const t=(0,o.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[n,i]=c(t);return[n,i,r]}(e.path);return e.portalItem.resourceFromPath((0,o.fj)(r,t+n))}},30291(e,t,r){r.d(t,{tn:()=>u});var n=r(37838),i=r(30524),o=r(41227),s=r(89893),a=r(66159),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},h){if(!r)return null;const f=function(e,t){const r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const n=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===n&&(e=e.slice()),!0!==r&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||g,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,i.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:l},h);if(!f.length)return null;const y=function(e){const t=(0,i.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),m=[new a.A,new s.A];return new n.A({title:y,content:m,fieldInfos:f})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,i.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":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,i.JL)(e.name)?new l.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 g=["geometry","blob","raster","guid","xml"]},91682(e,t,r){r.d(t,{S:()=>l,r:()=>a});var n=r(49186),i=r(17676),o=r(13069),s=r(15804);async function a(e,t,r){const n=await u(e,t,r);await c(n,t,r)}async function l(e,t,r,n,i){const o=await u(r,n,i);await e.update({data:t}),await c(o,n,i)}async function u(e,t,a){if(!t?.resources)return;const l=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const u=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,p=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});const d=[],h=[],g=[];for(const r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||c.has(r.resource.path)){const{resource:t,content:n,finish:i}=r,a=(0,s.bg)(t,(0,o.lk)());e.paths.push(a.path),d.push({resource:a,content:await(0,s.cL)(n),compress:r.compress}),i&&g.push(()=>i(a))}else{e.paths.push(r.resource.path),h.push({resource:r.resource,content:await(0,s.cL)(r.content),compress:r.compress});const t=r.finish;t&&g.push(()=>t(r.resource)),c.add(r.resource.path)}for(const r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{d.push({resource:r.resource,content:await(0,s.cL)(r.content),compress:r.compress});const e=r.finish;e&&g.push(()=>e(r.resource))}if(d.length||h.length){const{addOrUpdateResources:e}=await Promise.resolve().then(r.bind(r,15804));await e(t.portalItem,d,"add",a),await e(t.portalItem,h,"update",a)}if(g.forEach(e=>e()),0===p.length)return l;const f=await(0,i.Ol)(p);if((0,i.Te)(a),f.length>0)throw new n.A("save:resources","Failed to save one or more resources",{errors:f});return l}async function c(e,t,r){if(!e||!t.portalItem)return;const n=[];for(const i of e){const e=t.portalItem.resourceFromPath(i);n.push(e.portalItem.removeResource(e,r))}await(0,i.Lx)(n)}},26121(e,t,r){r.d(t,{I6:()=>l,ci:()=>a,dL:()=>s});var n=r(49186),i=r(77548),o=r(59923);async function s(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function a(e,t,r){let i=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new n.A(e,t,r));if(e.blockedRelativeUrls&&(i=i.concat(e.blockedRelativeUrls.map(e=>(0,o.GL)("url",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:n}=r;e&&(i=i.filter(({name:e})=>!(o.MG.has(e)||t.includes(e)))),n&&(i=i.filter(e=>"web-document-write:property-required"!==e.name))}if(i.length>0)throw new n.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:i})}function l(e){return(0,i.qd)(e).some(e=>!!e.charts?.length)}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 823127b23bec07e1f9d0.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9450],{25971(t,e,s){s.d(e,{C:()=>f,G:()=>g,c:()=>u,p:()=>h,t:()=>d});var i=s(11232),o=s(25744),n=s(34857),r=s(48779),a=s(53436);let c;const h=()=>{c?.forEach(({callbacks:t},e)=>{const s=Object.keys(e);t.forEach(t=>t(s))}),c=void 0},l=(t,e,s)=>{const o=t.manager;return o.V!==n.s6&&o.V!==s&&o.S(void 0,void 0),0===o.T.length&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=s,o.T.push((t,o)=>(0,i.UF)(e,void 0,s===o?t:void 0)),s},d=(t=[(0,o.r)(),...(0,o.d)()],e,s)=>{const n=Array.isArray(t)?t:[t];let r=n.length+1;const a=t=>{r-=1,void 0!==t&&(r=Math.min(r,0)),0===r&&e(t)};n.forEach(t=>((t,e,s)=>{const o=Object.keys(t),n=o.length;void 0===c&&queueMicrotask(h),c??=new Map;let r=c.get(t);return void 0===r&&(r={callbacks:[],keyCount:n},c.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach(t=>t(o)),r.callbacks=[],r.keyCount=n),r.callbacks.push(o=>{const r=t=>(0,i.UF)(e,null,t),a=o[n];void 0===a?r(void 0):t[a]===s?r(a):r(void 0)}),s})(t,e=>a(void 0===e?void 0:{key:e,host:t,isReactive:!1}),s));for(const t of n)if("manager"in t&&t.manager.component===t){l(t,e=>a(void 0===e?void 0:{key:e,host:t,isReactive:!0}),s);break}return s},u=((t="",e={},s=(0,o.r)())=>{const i={emit:i=>{""===t&&h();const o=new CustomEvent(t,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...e});return s.el.dispatchEvent(o),o}};return""===t&&d(void 0,e=>t=e.key,i),i}).bind(null,"");var p;p=o.c;class f{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#i=[],this.#o=[],this.#n=[],this.#r=[],this.#a=[],this.#c=[],this.#h=!1,this.P=new r.c,this.connectedCalled=!1,this.loadedCalled=!1,this[p]=!0,this.#l=[];const e=this,s=t??(0,o.r)(new.target.name);e.#d=s,e.ready=e.P.promise,e.#u=y(e),e.component=s,e.#d.addController(e),void 0===e.#d.manager||((0,o.b)(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#i;#o;#n;#r;#a;#c;#h;#d;catchUpLifecycle(){const{manager:t}=this.#d;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t.#h||this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch((0,a.G3)(this.#d))}#u;get exports(){return this.#u}set exports(t){const e=this.#u;e!==t&&(this.#u=t,this.#l.forEach(i.UF),this.connectedCalled&&!1!==this.O&&this.#d.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#u=e?y(t):t,this.#l.forEach(i.UF)}#l;watchExports(t){const e=()=>t(this.#u);return this.#l.push(e),()=>{this.#l.splice(this.#l.indexOf(e),1)}}get use(){return(0,o.a)(this.#d),o.u}get useRef(){return(0,o.a)(this.#d),o.k}get useRefSync(){return(0,o.a)(this.#d),o.l}controllerRemoved(){this.#d.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#i.push(t)}onUpdate(t){this.#o.push(t)}onUpdated(t){this.#n.push(t)}onDestroy(t){this.#r.push(t)}onLifecycle(t){this.#a.push(t),this.connectedCalled&&this.#d.el.isConnected&&this.#p(t)}triggerConnected(){const t=this;t.hostConnected&&(0,i.UF)(t.hostConnected,t),t.#t.forEach(i.UF),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&(0,i.UF)(t.hostDisconnected,t),t.#e.forEach(i.UF),t.#c.forEach(i.UF),t.#c=[]}async triggerLoad(){if(this.#h)return;this.#h=!0;const t=this;t.hostLoad&&await(0,i.ao)(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(i.ao)),this.P.resolve(this.#u)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&(0,i.UF)(this.hostLoaded,this),this.#i.forEach(i.UF),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&(0,i.UF)(this.hostUpdate,this,t),this.#o.forEach(m,t)}triggerUpdated(t){this.hostUpdated&&(0,i.UF)(this.hostUpdated,this,t),this.#n.forEach(m,t)}triggerDestroy(){this.hostDestroy&&(0,i.UF)(this.hostDestroy,this),this.#r.forEach(i.UF)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#a.forEach(this.#p,this)}#p(t){(0,o.a)(this.#d);const e=(0,i.UF)(t);(Array.isArray(e)?e:[e]).forEach(t=>{"function"==typeof t?this.#c.push(t):"object"==typeof t&&"function"==typeof t.remove&&this.#c.push(t.remove)})}}function m(t){(0,i.UF)(t,void 0,this)}const g=f,y=t=>{if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const e=new Proxy(t,{get(t,s,i){if("exports"!==s&&"_exports"!==s||!(s in t)||t[s]!==e)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,i):void 0}});return e}},25744(t,e,s){s.d(e,{a:()=>r,b:()=>h,c:()=>i,d:()=>l,f:()=>y,i:()=>o,j:()=>u,k:()=>f,l:()=>m,r:()=>a,s:()=>g,u:()=>p});const i=Symbol.for("controller"),o=t=>"function"==typeof t?.then;let n;const r=t=>{n!==t&&(n=t,queueMicrotask(()=>n===t?n=void 0:0))},a=t=>n;let c=[];const h=t=>{if(void 0===t)return void(c=[]);const e=c.indexOf(t);c=-1===e?[...c,t]:c.slice(0,e+1),queueMicrotask(()=>c=[])},l=()=>c;let d;const u=t=>{d!==t&&(d=t,queueMicrotask(()=>d===t?d=void 0:0))},p=async(t,e)=>{const s=m(t);if(void 0===s)return t;if(await s.ready,"function"==typeof e){const t=s.watchExports(s=>e(s,t))}return s.exports},f=async t=>{const e=m(t);return await e.ready,e},m=t=>{const e=a().manager.X(t);if(void 0!==e)return e;if((t=>"object"==typeof t&&null!==t&&(i in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t))return t;const s=(()=>{const t=d;return d=void 0,t})();return void 0!==s?s:void 0};let g=!1;const y=t=>{g=!0;try{return t()}finally{g=!1}}},1055(t,e,s){s.d(e,{C:()=>c,a:()=>l,b:()=>h,s:()=>d});var i=s(11232),o=s(25971),n=s(34857),r=s(48779),a=s(25744);class c extends o.G{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=n.s6,this.T=[],this.#f=new WeakMap,this.#d=t,this.exports=void 0,this.hasDestroy=l in t&&"function"==typeof t.destroy,n.WF.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){const e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${l} prop.`)}void 0!==this.#m&&clearTimeout(this.#m),(0,o.p)();for(const e of t.M)"triggerConnected"in e?e.triggerConnected():(0,i.UF)(e.hostConnected,e)},hostDisconnected:()=>{for(const e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():(0,i.UF)(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(const e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):(0,i.UF)(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(const e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):(0,i.UF)(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),(0,a.a)(t)}#m;#d;async destroy(){if(!this.destroyed){this.#d.el.isConnected&&(this.hasDestroy=!1,this.#d.el.remove()),this.#m=void 0,this.destroyed=!0;for(const t of this.#d.M)"triggerDestroy"in t?t.triggerDestroy():(0,i.UF)(t.hostDestroy,t);this.#d.M.splice(0)}}U(){if(void 0!==this.#m&&clearTimeout(this.#m),!this.#d.el.isConnected&&!this.#d.autoDestroyDisabled){const t=()=>{this.#d.destroy()};this.#m=(0,r.o)(t,h)}}S(t,e){const s=this.T;this.V=n.s6,this.T=[],s.forEach(s=>s(t,e))}#f;W(t,e){("object"==typeof e&&null!==e||"function"==typeof e)&&this.#f.set(e,t)}X(t){return"object"==typeof t&&null!==t||"function"==typeof t?this.#f.get(t):void 0}}let h=1e3;const l="autoDestroyDisabled";function d(t){h=t}},67145(t,e,s){s.d(e,{WF:()=>U,le:()=>S,s6:()=>O,CP:()=>T,zl:()=>L,Bq:()=>P,pf:()=>x});var i=s(25971),o=s(65616);o.W3,o.Ec;var n=s(48779);const r=t=>{let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){const s=e;return s.manager?.loadedCalled||(s.J??s._offspring).push(t),(s.I??s._postLoad).promise}return!1},a={};function c(){}const h=Object.defineProperty,l=globalThis.HTMLElement??c;class d extends l{constructor(){super(),this.#g={},this.#y=[],this.I=new n.c,this.H=new n.c,this.J=[];const t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(e=>{Object.hasOwn(t,e)&&(t.#g[e]=t[e],delete t[e])}),e.A?t.#$({a:e.A}):e.B.then(async s=>{await e.K.p,t.#$(await(s.default?.then(t=>"function"==typeof t?{a:t}:t)??s))}).catch(e=>{t.H.reject(e),setTimeout(()=>{throw e})})}static{this.lumina=!0}static F(){for(const t of this.C??[])h(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#g[t]},set(e){this.#g[t]=e}});for(const t of this.E??[])h(this.prototype,t,{async value(...e){this.#A||await this.H.promise;const s=this.#A;return await s[t](...e)},configurable:!0});for(const t of this.D??[])h(this.prototype,t,{value(...e){return this.#A[t](...e)},configurable:!0})}#A;#g;#y;get manager(){return this.#A?.manager}attributeChangedCallback(t,e,s){this.#A?.attributeChangedCallback(t,e,s),this.#A||this.#y.push(t)}connectedCallback(){this.#A?this.#A.connectedCallback?.():queueMicrotask(()=>this.G=r(this))}disconnectedCallback(){this.#A?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#$(t){const e=this.constructor,s=e.L,i=this.#g,o=Object.values(t).find(t=>t.L===s),n=`${s}--lazy`;let r=o;for(;r&&!Object.hasOwn(r,"lumina");)r=Object.getPrototypeOf(r);p(r),!e.A&&(e.A=o,customElements.define(n,o)),o.N=this;const a=document.createElement(n);o.N=void 0,this.#A=a,this.#g=a,this.#y.forEach(t=>a.attributeChangedCallback(t,null,this.getAttribute(t))),Object.entries(i).forEach(u,a);const c=this.isConnected;(c||this.G)&&(a.connectedCallback?.(),c||a.disconnectedCallback())}addController(){}requestUpdate(){this.#A?.requestUpdate()}}function u([t,e]){this[t]=e}const p=t=>{const e=t.prototype,s=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(t,e){s.setAttribute.call(this.el,t,e)},e.removeAttribute=function(t){s.removeAttribute.call(this.el,t)},h(e,"isConnected",{get(){return Reflect.get(s,"isConnected",this.el)}}))};var f=s(11232);const m=/[A-Z]+(?![a-z])|[A-Z]/gu;crypto;var g=s(34857),y=s(25744),$=s(1055),A=s(95862),_=s(57106);const v=(0,_.u$)(class extends _.WL{constructor(t){if(super(t),t.type!==_.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return A.c0}}),b="important",E=" !"+b,C=(0,_.u$)(class extends _.WL{constructor(t){if(super(t),t.type!==_.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(E);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?b:""):s[t]=i}}return A.c0}});s(14490);var w=s(11758);class U extends g.WF{constructor(){super(),this.M=[],this.manager=new $.C(this);const t=this,e=t.constructor,s=e.N,i=e.K.o,o=U.prototype.shouldUpdate;t.#_=s?.H??new n.c,t.I=s?.I??new n.c,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#v=t.enableUpdating,t.enableUpdating=c,t.shouldUpdate!==o&&(t.#b=t.shouldUpdate,t.shouldUpdate=o),i&&(t.#E=new Map,e.elementProperties.forEach((e,s)=>t.#E.set(s,i()))),g.S$&&t.el.setAttribute(e.K.hydratedAttribute,"")}static finalizeStyles(t){const e=super.finalizeStyles(t),s=this.shadowRootOptions===a;return void 0===this.K?.commonStyles||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){const s="number"==typeof e?e:Array.isArray(e)?e[0]:0,i=Array.isArray(e)?e[1]:void 0,o=i?.hasChanged??g.Ec,n={attribute:!!(1&s&&"string"==typeof t)&&(r=t,r.replace(m,(t,e)=>`${0===e?"":"-"}${t.toLowerCase()}`)),reflect:!!(2&s),type:4&s?Boolean:8&s?Number:void 0,state:!!(16&s),readOnly:!!(32&s),noAccessor:!!(64&s),c:!1,...i,hasChanged(t,e){const s=o(t,e);return n.c=s,s}};var r;super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){const o=this.K,n=super.getPropertyDescriptor(t,e,s);return s.d=n,{...n,get(){return o.t?.(this.#E.get(t)),n.get?.call(this)},set(e){const o=this.manager;if(s.readOnly&&!y.s&&(o.R||o.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${e}"`);n.set.call(this,e??void 0),s.c&&this.#E?.get(t)?.notify(),o.T.length>0&&((0,i.p)(),o?.S(t,e))}}}static{this.lumina=!0}#E;#b;#v;#_;#C;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;const t=this.constructor.K.c?.(()=>this.requestUpdate());this.#C=t;const e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#w().catch(t=>{this.#_.reject(t),setTimeout(()=>{throw t})})):t&&this.requestUpdate()}#U(t){try{this.#C.clear(),this.constructor.K.r(this.#C,()=>super.update(t))}catch(t){throw this.#C.clear(),t}}disconnectedCallback(){super.disconnectedCallback(),this.#C?.destroy(),this.#C=void 0}createRenderRoot(){const t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===a?this.el:this.el.attachShadow(s));if(this.isConnected){const t=i.getRootNode();t.adoptedStyleSheets=[...t.adoptedStyleSheets,...e.elementStyles.map(t=>"styleSheet"in t?t.styleSheet:t)]}return i}async#w(){const t=this.el.G??r(this.el);t&&await t;const e=[];for(const t of this.M)"triggerLoad"in t?e.push(t.triggerLoad()):e.push((0,f.ao)(t.hostLoad,t));await Promise.all(e),await(this.load?.()),this.manager.hasDestroy&&this.manager.onUpdate(t=>t.has($.a)&&this.manager.U()),this.#v(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();const s=this.J.filter(t=>!t.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async t=>await t.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(const t of this.M)"triggerLoaded"in t?t.triggerLoaded():(0,f.UF)(t.hostLoaded,t);this.loaded?.(),this.#_.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#b?.(t)??!0}update(t){this.#C?this.#U(t):super.update(t)}listen(t,e,s){const i=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,s),()=>this.el.removeEventListener(t,i,s)))}listenOn(t,e,s,i){const o=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,o,i),()=>t.removeEventListener(e,o,i)))}async componentOnReady(){return await this.#_.promise,this}addController(t){this.M.push(t),!(y.c in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}}const S=t=>{let e;const s=t=>{e=new URL(t,globalThis.location?.href||void 0).href},i={...t,getAssetPath(t){const s=new URL(t,e);return s.origin!==globalThis.location?.origin?s.href:s.pathname},setAssetPath:s,customElement(t,e){e.K=i,e.L=t,customElements.get(t)||customElements.define(t,e)}};return s(t.defaultAssetPath),i},T=t=>"object"==typeof t&&null!=t?v(t):t,L=t=>"object"==typeof t&&null!=t?C(t):t;class k extends _.WL{#S;#T;constructor(t){super(t);const e=this;this.#T=function(t){return e.#S.call(this,t)}}render(t){return"function"==typeof t?(this.#S=t,(0,w.K)(this.#T)):(0,w.K)(t)}}(0,_.u$)(k);const O=g.s6;function P(t,e,s){null==s?t.removeAttribute(e):t.setAttribute(e,s)}const x={toAttribute:t=>!0===t?"":!1===t?null:t}},11232(t,e,s){s.d(e,{UF:()=>i,ao:()=>o});const i=(t,e,...s)=>{try{return t?.call(e,...s)}catch(e){console.error(e,t)}},o=async(t,e,...s)=>{try{const i=t?.call(e,...s);return await i}catch(e){console.error(e,t)}}},53436(t,e,s){s.d(e,{G3:()=>r,Rm:()=>n});const i=new Set;const o=t=>"string"==typeof t?t:"el"in t?t.el.localName:"localName"in t?t.localName:t.declaredClass,n=(t,e,s,n)=>{const r=o(e);if(n?.once){const e=`${t}${r}${s}`;if(i.has(e))return;i.add(e)}let a;if(n?.detail){a={};for(const[t,e]of Object.entries(n.detail))if("object"!=typeof e&&"function"!=typeof e||null===e)a[t]=e;else{const s=new WeakRef(e);Object.defineProperty(a,t,{get:()=>s.deref()})}console[t](`[${r}]: ${s}`,a)}else console[t](`[${r}]: ${s}`)},r=t=>{const e=`[${o(t)}] `;return t=>{const s=t instanceof Error&&t.message?t:new Error(String(t));s.message=`${e}${s.message}`,setTimeout(()=>{throw t})}}},48779(t,e,s){s.d(e,{c:()=>i,o:()=>o});class i{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}}const o=(t,e)=>{const s=e>n?r:e/a;let i=0;const o=setInterval(()=>{i+=s,i>=e&&(clearInterval(o),t())},s);return o},n=4e3,r=2e3,a=4},63601(t,e,s){s.d(e,{eg:()=>i});function i(t){const e=((t,e)=>{let s=t;for(;s;){const t=s.closest?.(e);if(t)return t;const i=s.getRootNode?.();if(i===globalThis.document)return;s=i?.host}})(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return e?.classList.contains("calcite-mode-dark")||e?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}},50917(t,e,s){s.d(e,{C:()=>a,D:()=>c,a:()=>p,b:()=>h,c:()=>g,g:()=>y,s:()=>$}),Object(function(){var t=new Error("Cannot find module '../cdn/main.css'");throw t.code="MODULE_NOT_FOUND",t}());var i=s(67145),o=s(34857);const n="calcite-mode-auto",r="calcite-mode-dark",a={autoMode:n,darkMode:r,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"},c={filter:250,nextTick:0,resize:150,reposition:100},h=25;function l(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains(r)||t.contains(n)&&e?"dark":"light",i=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),o=t=>{a!==t&&i(t),a=t};let a=s();i(a),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>o(t.matches?"dark":"light")),new MutationObserver(()=>o(s())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}let d;const u={focusTrapStack:[],logLevel:"info"};function p(){return d||(d={...u,...globalThis.calciteConfig??{}}),d}const f="5.0.2";o.S$||("interactive"===document.readyState?l():document.addEventListener("DOMContentLoaded",l,{once:!0})),queueMicrotask(function(){const t=p();t&&t.version||(console.info(`Using Calcite Components ${f} [Date: 2026-02-18, Revision: 960214b84]`),Object.defineProperty(t,"version",{value:f,writable:!1}),globalThis.calciteConfig=t)});const m=(0,i.le)({defaultAssetPath:"https://js.arcgis.com/calcite-components/5.0.2/",hydratedAttribute:"calcite-hydrated"}),{customElement:g,getAssetPath:y,setAssetPath:$}=m},91866(t,e,s){s.d(e,{Qu:()=>n,qu:()=>o});var i=s(50917);let o=!1;const n=t=>{o=!0,(0,i.s)(t)}},65616(t,e,s){s.d(e,{mN:()=>w,AH:()=>c,W3:()=>b,Ec:()=>E});const i=globalThis,o=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new a(s,t,n)},h=(t,e)=>{if(o)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),o=i.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,t.appendChild(e)}},l=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,y=globalThis,$=y.trustedTypes,A=$?$.emptyScript:"",_=y.reactiveElementPolyfillSupport,v=(t,e)=>t,b={toAttribute(t,e){switch(e){case Boolean:t=t?A:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},E=(t,e)=>!d(t,e),C={attribute:!0,type:String,converter:b,reflect:!1,useDefault:!1,hasChanged:E};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const n=i?.call(this);o?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??C}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...f(t),...m(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return h(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:b).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:b;this._$Em=i;const n=o.fromAttribute(e,t.type);this[i]=n??this._$Ej?.get(i)??n,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,o=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??E)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==o||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[v("elementProperties")]=new Map,w[v("finalized")]=new Map,_?.({ReactiveElement:w}),(y.reactiveElementVersions??=[]).push("2.1.1")},27654(t,e,s){s.d(e,{Rt:()=>n,mY:()=>a});var i=s(95862);const{I:o}=i.ge,n=t=>void 0===t.strings,r={},a=(t,e=r)=>t._$AH=e},57106(t,e,s){s.d(e,{OA:()=>i,WL:()=>n,u$:()=>o});const i={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},o=t=>(...e)=>({_$litDirective$:t,values:e});class n{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},95862(t,e,s){s.d(e,{JW:()=>w,XX:()=>q,c0:()=>S,ej:()=>U,ge:()=>F,qy:()=>C,s6:()=>T});const i=globalThis,o=i.trustedTypes,n=o?o.createPolicy("lit-html",{createHTML:t=>t}):void 0,r="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+a,h=`<${c}>`,l=document,d=()=>l.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,p=Array.isArray,f=t=>p(t)||"function"==typeof t?.[Symbol.iterator],m="[ \t\n\f\r]",g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,$=/>/g,A=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,v=/"/g,b=/^(?:script|style|textarea|title)$/i,E=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),C=E(1),w=E(2),U=E(3),S=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),L=new WeakMap,k=l.createTreeWalker(l,129);function O(t,e){if(!p(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==n?n.createHTML(e):e}const P=(t,e)=>{const s=t.length-1,i=[];let o,n=2===e?"<svg>":3===e?"<math>":"",c=g;for(let e=0;e<s;e++){const s=t[e];let l,d,u=-1,p=0;for(;p<s.length&&(c.lastIndex=p,d=c.exec(s),null!==d);)p=c.lastIndex,c===g?"!--"===d[1]?c=y:void 0!==d[1]?c=$:void 0!==d[2]?(b.test(d[2])&&(o=RegExp("</"+d[2],"g")),c=A):void 0!==d[3]&&(c=A):c===A?">"===d[0]?(c=o??g,u=-1):void 0===d[1]?u=-2:(u=c.lastIndex-d[2].length,l=d[1],c=void 0===d[3]?A:'"'===d[3]?v:_):c===v||c===_?c=A:c===y||c===$?c=g:(c=A,o=void 0);const f=c===A&&t[e+1].startsWith("/>")?" ":"";n+=c===g?s+h:u>=0?(i.push(l),s.slice(0,u)+r+s.slice(u)+a+f):s+a+(-2===u?e:f)}return[O(t,n+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class x{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,h=0;const l=t.length-1,u=this.parts,[p,f]=P(t,e);if(this.el=x.createElement(p,s),k.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=k.nextNode())&&u.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(r)){const e=f[h++],s=i.getAttribute(t).split(a),o=/([.?@])?(.*)/.exec(e);u.push({type:1,index:n,name:o[2],strings:s,ctor:"."===o[1]?H:"?"===o[1]?j:"@"===o[1]?I:N}),i.removeAttribute(t)}else t.startsWith(a)&&(u.push({type:6,index:n}),i.removeAttribute(t));if(b.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=o?o.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],d()),k.nextNode(),u.push({type:2,index:++n});i.append(t[e],d())}}}else if(8===i.nodeType)if(i.data===c)u.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)u.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,e){const s=l.createElement("template");return s.innerHTML=t,s}}function M(t,e,s=t,i){if(e===S)return e;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const n=u(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),void 0===n?o=void 0:(o=new n(t),o._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(e=M(t,o._$AS(t,e.values),o,i)),e}class R{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??l).importNode(e,!0);k.currentNode=i;let o=k.nextNode(),n=0,r=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new D(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new W(o,this,t)),this._$AV.push(e),a=s[++r]}n!==a?.index&&(o=k.nextNode(),n++)}return k.currentNode=l,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class D{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),u(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==S&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):f(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==T&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=x.createElement(O(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new R(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new x(t)),e}k(t){p(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new D(this.O(d()),this.O(d()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class N{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(void 0===o)t=M(this,t,e,0),n=!u(t)||t!==this._$AH&&t!==S,n&&(this._$AH=t);else{const i=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=M(this,i[s+r],e,r),a===S&&(a=this._$AH[r]),n||=!u(a)||a!==this._$AH[r],a===T?t=T:t!==T&&(t+=(a??"")+o[r+1]),this._$AH[r]=a}n&&!i&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class H extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class j extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class I extends N{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??T)===S)return;const s=this._$AH,i=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==T&&(s===T||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const F={M:r,P:a,A:c,C:1,L:P,R,D:f,V:M,I:D,H:N,N:j,U:I,B:H,F:W},B=i.litHtmlPolyfillSupport;B?.(x,D),(i.litHtmlVersions??=[]).push("3.3.1");const q=(t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new D(e.insertBefore(d(),t),t,void 0,s??{})}return o._$AI(t),o}},14490(t,e,s){s.d(e,{V:()=>r});var i=s(95862),o=s(57106),n=s(27654);const r=(0,o.u$)(class extends o.WL{constructor(t){if(super(t),t.type!==o.OA.PROPERTY&&t.type!==o.OA.ATTRIBUTE&&t.type!==o.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,n.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const s=t.element,r=t.name;if(t.type===o.OA.PROPERTY){if(e===s[r])return i.c0}else if(t.type===o.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(r))return i.c0}else if(t.type===o.OA.ATTRIBUTE&&s.getAttribute(r)===e+"")return i.c0;return(0,n.mY)(t),e}})},11758(t,e,s){s.d(e,{_:()=>p,K:()=>g});var i=s(95862),o=s(27654),n=s(57106);const r=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),r(t,e);return!0},a=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},c=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function h(t){void 0!==this._$AN?(a(this),this._$AM=t,c(this)):this._$AM=t}function l(t,e=!1,s=0){const i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)r(i[t],!1),a(i[t]);else null!=i&&(r(i,!1),a(i));else r(this,t)}const d=t=>{t.type==n.OA.CHILD&&(t._$AP??=l,t._$AQ??=h)};class u extends n.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(r(this,t),a(this))}setValue(t){if((0,o.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const p=()=>new f;class f{}const m=new WeakMap,g=(0,n.u$)(class extends u{render(t){return i.s6}update(t,[e]){const s=e!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=m.get(e);void 0===s&&(s=new WeakMap,m.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?m.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},34857(t,e,s){s.d(e,{WF:()=>r,AH:()=>i.AH,qy:()=>o.qy,S$:()=>c,Ec:()=>i.Ec,s6:()=>o.s6,JW:()=>o.JW});var i=s(65616),o=s(95862);const n=globalThis;class r extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,o.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}r._$litElement$=!0,r.finalized=!0,n.litElementHydrateSupport?.({LitElement:r});const a=n.litElementPolyfillSupport;a?.({LitElement:r}),(n.litElementVersions??=[]).push("4.2.1");const c=!1}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3636],{69052(t,e,r){r.d(e,{hr:()=>n,ie:()=>u,uC:()=>o});var s=r(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,r=!1){return i(this.range,this.min,this.max,t,e,r)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,r){return t<e?e:e+a(this.range,t-e,r)}minimalMonotonic(t,e,r){return i(this.range,t,t+this.range,e,r)}center(t,e,r){return e=this.monotonic(t,e,r),this.normalize((t+e)/2,r)}diff(t,e,r){return this.monotonic(t,e,r)-t}shortestSignedDiff(t,e){t=this.normalize(t);const r=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(r)<Math.abs(s)?r:s}contains(t,e,r){return e=this.minimalMonotonic(t,e),(r=this.minimalMonotonic(t,r))>t&&r<e}}function i(t,e,r,s,n=0,i=!1){return(s-=n)<e?s+=a(t,e-s):s>r&&(s-=a(t,s-r)),i&&s===r&&(s=e),s+n}function a(t,e,r=0){return Math.ceil((e-r)/t)*t+r}const o=new n(0,2*Math.PI),u=(new n(-Math.PI,Math.PI),new n(0,360))},82534(t,e,r){function s(){return[0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>n,vt:()=>s,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:n,create:s,fromValues:function(t,e,r,s){return[t,e,r,s]}},Symbol.toStringTag,{value:"Module"}))},67026(t,e,r){r.d(e,{A6:()=>f,Xd:()=>c,Xr:()=>d,hZ:()=>g,lw:()=>p,t2:()=>R,x8:()=>l});var s=r(29242),n=r(82534),i=r(51850),a=r(34304),o=r(35522),u=r(78955);function l(t,e,r){r*=.5;const s=Math.sin(r);return t[0]=s*e[0],t[1]=s*e[1],t[2]=s*e[2],t[3]=Math.cos(r),t}function c(t,e){const r=2*Math.acos(e[3]),s=Math.sin(r/2);return s>(0,a.FD)()?(t[0]=e[0]/s,t[1]=e[1]/s,t[2]=e[2]/s):(t[0]=1,t[1]=0,t[2]=0),r}function p(t,e,r){const s=e[0],n=e[1],i=e[2],a=e[3],o=r[0],u=r[1],l=r[2],c=r[3];return t[0]=s*c+a*o+n*l-i*u,t[1]=n*c+a*u+i*o-s*l,t[2]=i*c+a*l+s*u-n*o,t[3]=a*c-s*o-n*u-i*l,t}function h(t,e,r,s){const n=e[0],i=e[1],o=e[2],u=e[3];let l,c,p,h,d,y=r[0],f=r[1],m=r[2],g=r[3];return c=n*y+i*f+o*m+u*g,c<0&&(c=-c,y=-y,f=-f,m=-m,g=-g),1-c>(0,a.FD)()?(l=Math.acos(c),p=Math.sin(l),h=Math.sin((1-s)*l)/p,d=Math.sin(s*l)/p):(h=1-s,d=s),t[0]=h*n+d*y,t[1]=h*i+d*f,t[2]=h*o+d*m,t[3]=h*u+d*g,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function y(t,e){const r=e[0]+e[4]+e[8];let s;if(r>0)s=Math.sqrt(r+1),t[3]=.5*s,s=.5/s,t[0]=(e[5]-e[7])*s,t[1]=(e[6]-e[2])*s,t[2]=(e[1]-e[3])*s;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const n=(r+1)%3,i=(r+2)%3;s=Math.sqrt(e[3*r+r]-e[3*n+n]-e[3*i+i]+1),t[r]=.5*s,s=.5/s,t[3]=(e[3*n+i]-e[3*i+n])*s,t[n]=(e[3*n+r]+e[3*r+n])*s,t[i]=(e[3*i+r]+e[3*r+i])*s}return t}function f(t,e,r,s){const n=.5*Math.PI/180;e*=n,r*=n,s*=n;const i=Math.sin(e),a=Math.cos(e),o=Math.sin(r),u=Math.cos(r),l=Math.sin(s),c=Math.cos(s);return t[0]=i*u*c-a*o*l,t[1]=a*o*c+i*u*l,t[2]=a*u*l-i*o*c,t[3]=a*u*c+i*o*l,t}const m=u.C,g=u.hZ,A=u.WQ,b=p,S=u.hs,v=u.Om,x=u.Cc,_=u.Bw,w=_,M=u.m3,q=M,F=u.S8,R=u.t2,I=u.aI,O=(0,i.vt)(),C=(0,i.fA)(1,0,0),T=(0,i.fA)(0,1,0),P=(0,n.vt)(),N=(0,n.vt)(),E=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:A,calculateW:function(t,e){const r=e[0],s=e[1],n=e[2];return t[0]=r,t[1]=s,t[2]=n,t[3]=Math.sqrt(Math.abs(1-r*r-s*s-n*n)),t},conjugate:d,copy:m,dot:v,equals:I,exactEquals:R,fromEuler:f,fromMat3:y,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],s=e[1],n=e[2],i=e[3],a=r*r+s*s+n*n+i*i,o=a?1/a:0;return t[0]=-r*o,t[1]=-s*o,t[2]=-n*o,t[3]=i*o,t},len:w,length:_,lerp:x,mul:b,multiply:p,normalize:F,random:function(t){const e=a.Ov,r=e(),s=e(),n=e(),i=Math.sqrt(1-r),o=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*s),t[1]=i*Math.cos(2*Math.PI*s),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},rotateX:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+a*o,t[1]=n*u+i*o,t[2]=i*u-n*o,t[3]=a*u-s*o,t},rotateY:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u-i*o,t[1]=n*u+a*o,t[2]=i*u+s*o,t[3]=a*u-n*o,t},rotateZ:function(t,e,r){r*=.5;const s=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(r),u=Math.cos(r);return t[0]=s*u+n*o,t[1]=n*u-s*o,t[2]=i*u+a*o,t[3]=a*u-i*o,t},rotationTo:function(t,e,r){const s=(0,o.Om)(e,r);return s<-.999999?((0,o.$A)(O,C,e),(0,o.Il)(O)<1e-6&&(0,o.$A)(O,T,e),(0,o.S8)(O,O),l(t,O,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(O,e,r),t[0]=O[0],t[1]=O[1],t[2]=O[2],t[3]=1+s,F(t,t))},scale:S,set:g,setAxes:function(t,e,r,s){const n=E;return n[0]=r[0],n[3]=r[1],n[6]=r[2],n[1]=s[0],n[4]=s[1],n[7]=s[2],n[2]=-e[0],n[5]=-e[1],n[8]=-e[2],F(t,y(t,n))},setAxisAngle:l,slerp:h,sqlerp:function(t,e,r,s,n,i){return h(P,e,n,i),h(N,r,s,i),h(t,P,N,2*i*(1-i)),t},sqrLen:q,squaredLength:M,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>d,i5:()=>h,lM:()=>i,qK:()=>c});var s=r(34275);const n=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let r=p;for(let s=0;s<e;s++)r+=o(t[s]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+h:Array.isArray(e)?l(e,n):0:0),0)}function l(t,e){return p+t.length*e}const c=32,p=16,h=145,d=64},95696(t,e,r){r.d(e,{A:()=>l});var s,n=r(5482),i=r(69540),a=r(25482),o=r(91429),u=r(93223);let l=class extends((0,i.OU)(a.o)){static{s=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new s}};(0,n.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=s=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(t,e,r){r.r(e),r.d(e,{default:()=>l});var s=r(5482),n=r(69540),i=r(25482),a=r(91429),o=r(51850),u=r(93223);let l=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,o.vt)()}};(0,s.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,s.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},73836(t,e,r){r.d(e,{A:()=>d});var s=r(5482),n=r(69540),i=r(25482),a=r(91429),o=r(58083),u=r(9093),l=r(67026),c=r(82534),p=r(51850),h=r(24770);let d=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(h.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,l.x8)(y,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,o.o1)(t,y,this.translation,this.scale),t}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,o.t2)(this.localMatrix,t.localMatrix)}};(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,s.Cg)([(0,a.MZ)()],d.prototype,"rotation",null),(0,s.Cg)([(0,a.MZ)()],d.prototype,"localMatrix",null),(0,s.Cg)([(0,a.MZ)()],d.prototype,"localMatrixInverse",null),d=(0,s.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],d);const y=(0,c.vt)()},24770(t,e,r){r.d(e,{$I:()=>m,AU:()=>d,g7:()=>f,i4:()=>c,ui:()=>p,up:()=>A,vt:()=>l,yo:()=>y});var s=r(34727),n=r(58083),i=r(67026),a=r(82534),o=r(35522),u=r(51850);function l(t=A){return[t[0],t[1],t[2],t[3]]}function c(t,e,r=l()){return(0,o.C)(r,t),r[3]=e,r}function p(t,e=l()){const r=(0,n.l)(b,t);return g(e,(0,s.KJ)((0,i.Xd)(e,r))),e}function h(t,e,r=l()){return(0,i.x8)(b,t,m(t)),(0,i.x8)(S,e,m(e)),(0,i.lw)(b,S,b),g(r,(0,s.KJ)((0,i.Xd)(r,b)))}function d(t,e,r,s=l()){return c(u.Cw,t,v),c(u.JP,e,x),c(u.Cb,r,_),h(v,x,v),h(v,_,s),s}function y(t){return t}function f(t){return t[3]}function m(t){return(0,s.kU)(t[3])}function g(t,e){return t[3]=e,t}const A=[0,0,1,0],b=(0,a.vt)(),S=(0,a.vt)(),v=(l(),l()),x=l(),_=l()},63579(t,e,r){r.d(e,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>d,fH:()=>f,in:()=>y,yr:()=>l});var s=r(11254),n=r(4576),i=r(17676),a=r(20557);class o{constructor(t,e,r){this.assetName=t,this.assetMimeType=e,this.parts=r}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,n.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const r=await Promise.all(e.map(e=>e.toBlob(t)));return(0,i.Te)(t),new Blob(r)}}class u{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(t),e}}function l(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(h):h(t.files);case"service":return t.assets.some(h);case"loadable":return!0;default:return!1}}(t?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(t){if(t instanceof File){const{type:e,name:r}=t;return c.test(e)||p.test(r)}return c.test(t.assetMimeType)||p.test(t.assetName)}function d(t,e){if(!t)return!1;const{source:r}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(r,e)}function y(t,e){if(t===e)return!0;const{source:r}=t,{source:s}=e;if(r===s)return!0;if("service"===r.type&&"service"===s.type){if(r.assets.length!==s.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...r.assets].sort(t),n=[...s.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(n[t]))return!1;return!0}return!1}function f(t,e){return t instanceof File?(0,a.rq)(t,e):(0,a.z$)(t.assetMimeType,t.assetName,e)}function m(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function g(t){return!!t.original}},27615(t,e,r){r.d(e,{CK:()=>u,Hq:()=>o,MW:()=>l,TE:()=>c,yJ:()=>p});var s=r(35522),n=r(86738),i=r(95696),a=r(18251);function o(t){return null!=t.origin}function u(t){return o(t.vertexSpace)}function l(t,e){if(!o(t))return null;const[r,s,i]=t.origin;return new n.A({x:r,y:s,z:i,spatialReference:e})}function c(t,e){const{x:r,y:s,z:n,spatialReference:o}=t,u=[r,s,n??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new a.default({origin:u}):new i.A({origin:u})}function p(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,s.t2)(t.origin,e.origin))}},17136(t,e,r){r.d(e,{Y_:()=>R,O7:()=>q,el:()=>M});var s=r(92602),n=r(69052),i=r(49186),a=r(53966),o=r(39829),u=r(82799),l=r(16930),c=r(80754),p=r(21325),h=r(28735),d=r(11254),y=r(60408),f=r(65864),m=r(2272),g=r(84952),A=r(92300);const b=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function S(t){return"polygon"===t[0].type}function v(t){return"polyline"===t[0].type}function x(t,e,r){if(e){const e=function(t,e){if(!(t instanceof u.A||t instanceof o.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw b().error(t),new i.A("internal:geometry",t)}const r=(0,c.r8)(t),s=[];for(const t of r){const r=[];s.push(r),r.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const n=t[s][0],i=t[s][1],a=t[s+1][0],o=t[s+1][1],u=Math.sqrt((a-n)*(a-n)+(o-i)*(o-i)),l=(o-i)/u,c=(a-n)/u,p=u/e;if(p>1){for(let t=1;t<=p-1;t++){const s=t*e,a=c*s+n,o=l*s+i;r.push([a,o])}const t=(u+Math.floor(p-1)*e)/2,s=c*t+n,a=l*t+i;r.push([s,a])}r.push([a,o])}}return function(t){return"polygon"===t.type}(t)?new o.A({rings:s,spatialReference:t.spatialReference}):new u.A({paths:s,spatialReference:t.spatialReference})}(t,1e6);t=(0,h.ci)(e,!0)}return r&&(t=(0,c.kS)(t,r)),t}function _(t,e,r){if(Array.isArray(t)){const s=t[0];if(s>e){const r=(0,c.kd)(s,e);t[0]=s+r*(-2*e)}else if(s<r){const e=(0,c.kd)(s,r);t[0]=s+e*(-2*r)}}else{const s=t.x;if(s>e){const r=(0,c.kd)(s,e);t=t.clone().offset(r*(-2*e),0)}else if(s<r){const e=(0,c.kd)(s,r);t=t.clone().offset(e*(-2*r),0)}}return t}function w(t,e){let r=-1;for(let s=0;s<e.cutIndexes.length;s++){const n=e.cutIndexes[s],i=e.geometries[s],a=(0,c.r8)(i);for(let t=0;t<a.length;t++){const e=a[t];e.some(r=>{if(r[0]<180)return!0;{let r=0;for(let t=0;t<e.length;t++){const s=e[t][0];r=s>r?s:r}r=Number(r.toFixed(9));const s=-360*(0,c.kd)(r,180);for(let r=0;r<e.length;r++){const e=i.getPoint(t,r);i.setPoint(t,r,e.clone().offset(s,0))}return!0}})}if(n===r){if(S(t))for(const e of(0,c.r8)(i))t[n]=t[n].addRing(e);else if(v(t))for(const e of(0,c.r8)(i))t[n]=t[n].addPath(e)}else r=n,t[n]=i}return t}async function M(t,e,r){if(!Array.isArray(t))return M([t],e);e&&"string"!=typeof e&&b().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let i,a,l,S,v,q,F,R,I=0;const O=[],C=[];for(const e of t)if(null!=e)if(i||(i=e.spatialReference,a=(0,p.Vp)(i),l=i.isWebMercator,q=l?102100:4326,S=c.j7[q].maxX,v=c.j7[q].minX,F=c.j7[q].plus180Line,R=c.j7[q].minus180Line),a)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(_(e.clone(),S,v));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>_(t,S,v)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,a);C.push(t.rings?new o.A(t):t)}else if(e.extent){const t=e.extent,r=(0,c.kd)(t.xmin,v)*(2*S);let s=0===r?e.clone():(0,c.kS)(e.clone(),r);t.offset(r,0);let{xmin:n,xmax:i}=t;n=Number(n.toFixed(9)),i=Number(i.toFixed(9)),t.intersects(F)&&i!==S?(I=i>I?i:I,s=x(s,l),O.push(s),C.push("cut")):t.intersects(R)&&n!==v?(I=i*(2*S)>I?i*(2*S):I,s=x(s,l,360),O.push(s),C.push("cut")):C.push(s)}else C.push(e.clone());else C.push(e);else C.push(e);let T=(0,c.kd)(I,S),P=-90;const N=T,E=new u.A;for(;T>0;){const t=360*T-180;E.addPath([[t,P],[t,-1*P]]),P*=-1,T--}if(O.length>0&&N>0){const e=w(O,await async function(t,e,r,s){const n=(0,m.Dl)(t),i=e[0].spatialReference,a={...s,responseType:"json",query:{...n.query,f:"json",sr:(0,p.YX)(i),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(r)}},o=await(0,d.A)(n.path+"/cut",a),{cutIndexes:u,geometries:l=[]}=o.data;return{cutIndexes:u,geometries:l.map(t=>{const e=(0,f.rS)(t);return e.spatialReference=i,e})}}(n,O,E,r)),s=[],i=[];for(let r=0;r<C.length;r++){const n=C[r];if("cut"!==n)i.push(n);else{const n=e.shift(),a=t[r];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&n.rings.length>=a.rings.length?(s.push(n),i.push("simplify")):i.push(l?(0,h.Gh)(n):n)}}if(!s.length)return i;const a=await async function(t,e,r){const s="string"==typeof t?(0,g.An)(t):t,n=e[0].spatialReference,i=(0,y.$B)(e[0]),a={...r,query:{...s.query,f:"json",sr:(0,p.YX)(n),geometries:JSON.stringify((0,A.X)(e))}},{data:o}=await(0,d.A)(s.path+"/simplify",a);return(0,A.V)(o.geometries,i,n)}(n,s,r),o=[];for(let t=0;t<i.length;t++){const e=i[t];"simplify"!==e?o.push(e):o.push(l?(0,h.Gh)(a.shift()):a.shift())}return o}const D=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)D.push(e);else{const t=O.shift();D.push(!0===l?(0,h.Gh)(t):t)}}return D}function q(t,e,r){const s=(0,p.Vp)(r);if(null==s)return t;const[n,i]=s.valid,a=2*i;let o=0,u=0;e>i?o=Math.ceil(Math.abs(e-i)/a):e<n&&(o=-Math.ceil(Math.abs(e-n)/a)),t>i?u=Math.ceil(Math.abs(t-i)/a):t<n&&(u=-Math.ceil(Math.abs(t-n)/a));let l=t+(o-u)*a;const c=l-e;return c>i?l-=a:c<n&&(l+=a),l}function F(t){const e=(0,p.Vp)(t);if(null==e)return null;const[r,s]=e.valid;return new n.hr(r,s)}const R=F(l.A.WGS84);F(l.A.WebMercator)},80754(t,e,r){r.d(e,{j7:()=>a,kS:()=>u,kd:()=>o,r8:()=>l});var s=r(82799),n=r(16930),i=r(60408);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function o(t,e){return Math.ceil((t-e)/(2*e))}function u(t,e){const r=l(t);for(const t of r)for(const r of t)r[0]+=e;return t}function l(t){return(0,i.Bi)(t)?t.rings:t.paths}},99352(t,e,r){r.d(e,{F:()=>s,P:()=>n});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},n={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}},65515(t,e,r){r.r(e),r.d(e,{default:()=>Y});var s=r(5482),n=r(92602),i=r(11254),a=r(4576),o=r(49186),u=r(44208),l=r(66552),c=r(92474),p=r(53966),h=r(93637),d=r(17676),y=r(36708),f=r(84952),m=r(13069),g=r(91429),A=r(5443),b=r(16930),S=r(95696),v=r(27615),x=r(63579),_=r(52106),w=r(86211);function M(t){return"object"==typeof t&&null!=t&&"objectId"in t&&!!t.objectId}function q(t){return"object"==typeof t&&null!=t&&"globalId"in t&&!!t.globalId}function F(t){return t.every(q)}var R=r(91218),I=r(65864),O=r(73836),C=r(21325);async function T(t,e,r){const{geometry:s}=e,n={...e.attributes};if(null!=r&&"mesh"===s?.type){const{transformFieldRoles:e}=r,{origin:i,spatialReference:a,vertexSpace:o}=s,u=s.transform??new O.A,l="local"===o.type,c=t.spatialReference,p=c.isGeographic,h=(0,C.aI)(c,a),d=(0,R.isEqualBaseGCS)(a,c)&&(0,R.canProjectWithoutEngine)(a,c);if(!(l&&p&&d||!l&&!p&&h))return null;const y=(0,R.projectWithoutEngine)(i,a,c);if(null==y)return null;if(n[e.originX]=y.x,n[e.originY]=y.y,n[e.originZ]=y.z??0,null!=u){const{translation:t,scale:r,rotation:s}=u,i=l?1:(0,w.KX)(a)/(0,w.KX)(c);n[e.translationX]=t[0]*i,n[e.translationY]=t[2]*i,n[e.translationZ]=-t[1]*i,n[e.scaleX]=r[0],n[e.scaleY]=r[2],n[e.scaleZ]=r[1],n[e.rotationX]=s[0],n[e.rotationY]=s[2],n[e.rotationZ]=-s[1],n[e.rotationDeg]=s[3]}return{attributes:n}}return null==s?{attributes:n}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:n}}async function P(t,e){const r=await Promise.all((e.addAttachments??[]).map(e=>N(t,e))),s=await Promise.all((e.updateAttachments??[]).map(e=>N(t,e))),n=e.deleteAttachments??[];return r.length||s.length||n.length?{adds:r,updates:s,deletes:[...n]}:null}async function N(t,e){const{feature:r,attachment:s}=e,{globalId:n,name:i,contentType:a,data:o,uploadId:u}=s,l={globalId:n};if(r&&("attributes"in r?l.parentGlobalId=r.attributes?.[t.globalIdField]:r.globalId&&(l.parentGlobalId=r.globalId)),u)l.uploadId=u;else if(o){const t=await(0,f._0)(o);t&&(l.contentType=t.mediaType,l.data=t.data),o instanceof File&&(l.name=o.name)}return i&&(l.name=i),a&&(l.contentType=a),l}function E(t,e,r){if(!e||0===e.length)return[];if(r&&F(e))return e.map(t=>t.globalId);if(function(t){return t.every(M)}(e))return e.map(t=>t.objectId);const s=r?t.globalIdField:t.objectIdField;return s?e.map(t=>t.getAttribute(s)):[]}function D(t){const e=!0===t.success?null:t.error||{code:void 0,description:"Feature edit failed"};return{objectId:t.objectId,globalId:t.globalId,error:e?new o.A("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}function Q(t,e){return new _.A({attributes:t.attributes,geometry:(0,I.rS)({...t.geometry,spatialReference:e})})}function j(t,e){return{adds:t?.adds?.map(t=>Q(t,e))||[],updates:t?.updates?.map(t=>({original:Q(t[0],e),current:Q(t[1],e)}))||[],deletes:t?.deletes?.map(t=>Q(t,e))||[],spatialReference:e}}var V=r(64714),J=r(64314),Z=r(60694),U=r(15426),k=r(20557),G=r(99199),X=r(96520),B=r(61956),z=r(79677),L=r(20816);const $=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends c.x_{constructor(t){super(t),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.refresh=(0,d.sg)(async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(t){const e=this.layer.sourceJSON,r=this._fetchService(e,{...t}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,t)).then(()=>this._ensureLatestMetadata(t));return this.addResolvingPromise(r),Promise.resolve(this)}initialize(){this.addHandles([(0,y.wB)(()=>{const t=this.layer;return t&&"lastEditsEventDate"in t?t.lastEditsEventDate:null},t=>this._handleLastEditsEventChange(t))])}destroy(){this._removeEditInterceptor()}get queryTask(){const{capabilities:t,parsedUrl:e,gdbVersion:r,spatialReference:s,fieldsIndex:n,uniqueIdFields:i}=this.layer,a="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,l=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==a,c=l&&t?.query.supportsFormatPBFWithCurves,p=t?.operations?.supportsQueryAttachments??!1,h=t?.query?.relativeTimeBinWindow??0,d=e.path;return new J.A({dynamicDataSource:o,fieldsIndex:n,gdbVersion:r,infoFor3D:a,pbfSupported:l,pbfSupportedWithCurves:c,queryAttachmentsSupported:p,relativeTimeBinWindow:h,sourceSpatialReference:s,uniqueIdFields:i,url:d})}async addAttachment(t,e){await this.load();const{layer:r}=this;await(0,U.VA)(r,"editing");const s=t.attributes[r.objectIdField],n=r.parsedUrl.path+"/"+s+"/addAttachment",a=this._getLayerRequestOptions(),o=this._getFormDataForAttachment(e,a.query);try{return D((await(0,i.A)(n,{body:o})).data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(s,t)}}async updateAttachment(t,e,r){await this.load();const{layer:s}=this;await(0,U.VA)(s,"editing");const n=t.attributes[s.objectIdField],a=s.parsedUrl.path+"/"+n+"/updateAttachment",o=this._getLayerRequestOptions({query:{attachmentId:e}}),u=this._getFormDataForAttachment(r,o.query);try{return D((await(0,i.A)(a,{body:u})).data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(n,t)}}async applyEdits(t,e){await this.load();const{layer:r}=this;await(0,U.VA)(r,"editing");const s="infoFor3D"in r?r.infoFor3D:null,n=null!=s,u=n||(e?.globalIdUsed??!1),l=n?await this._uploadMeshesAndGetAssetMapEditsJSON(t):null,c=t.addFeatures?.map(t=>T(this.layer,t,s))??[],p=(await Promise.all(c)).filter(a.Ru),h=t.updateFeatures?.map(t=>T(this.layer,t,s))??[],d=(await Promise.all(h)).filter(a.Ru),y=E(this.layer,t.deleteFeatures,u);(0,X.u)(p,d,r.spatialReference);const f=await P(this.layer,t),m=r.capabilities.editing.supportsAsyncApplyEdits&&n,g=e?.gdbVersion||r.gdbVersion,A={gdbVersion:g,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:e?.returnEditMoment,trueCurveClient:e?.editsRespectTrueCurves,usePreviousEditMoment:e?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);const b=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(r.url,g,r.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");e?.returnServiceEditsOption?(A.edits=JSON.stringify([{id:r.layerId,adds:p.length?p:null,updates:d.length?d:null,deletes:y.length?y:null,attachments:f,assetMaps:l}]),A.returnServiceEditsOption=$.toJSON(e?.returnServiceEditsOption),A.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(A.adds=p.length?JSON.stringify(p):null,A.updates=d.length?JSON.stringify(d):null,A.deletes=y.length?u?JSON.stringify(y):y.join(","):null,A.attachments=f&&JSON.stringify(f),A.assetMaps=null!=l?JSON.stringify(l):void 0);const S=this._getLayerRequestOptions({method:"post",query:A});b&&(S.authMode="immediate",S.query.returnEditMoment=!0,S.query.sessionId=L.TA);const v=e?.returnServiceEditsOption?r.url:r.parsedUrl.path;let x;try{x=m?await this._asyncApplyEdits(v+"/applyEdits",S):await(0,i.A)(v+"/applyEdits",S)}catch(t){if(!function(t){const e=t.details.raw,r=+e.code,s=+e.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(t))throw t;S.authMode="immediate",x=m?await this._asyncApplyEdits(v+"/applyEdits",S):await(0,i.A)(v+"/applyEdits",S)}return this._createEditsResult(x)}async deleteAttachments(t,e){await this.load();const{layer:r}=this;await(0,U.VA)(r,"editing");const s=t.attributes[r.objectIdField],n=r.parsedUrl.path+"/"+s+"/deleteAttachments";try{return(await(0,i.A)(n,this._getLayerRequestOptions({query:{attachmentIds:e.join(",")},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(t){throw this._createAttachmentErrorResult(s,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then(async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:n}=await(0,i.A)(`${s}/${r}`,e),{id:a,extent:o,fullExtent:u,timeExtent:l}=n,c=o||u;return{id:a,fullExtent:c&&A.A.fromJSON(c),timeExtent:l&&z.A.fromJSON({start:l[0],end:l[1]})}})}async queryAttachments(t,e={}){await this.load();const r=this._getLayerRequestOptions(e);return this.queryTask.executeAttachmentQuery(t,r)}async queryFeatures(t,e){await this.load();const r=await this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)});if(t.outStatistics?.length&&r.features.length){const e=new Map;if(r.features.forEach(r=>{const s=r.attributes;t.outStatistics?.forEach(({outStatisticFieldName:t})=>{if(t){const r=t.toLowerCase();r&&r in s&&t!==r&&(s[t]=s[r],delete s[r],e.set(r,t))}})}),null!=r.fields)for(const t of r.fields){const r=e.get(t.name.toLowerCase());null!=r&&(t.name=r)}}return r}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryPivot(t,e){return await this.load(),this.queryTask.executePivotQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryAttributeBins(t,e){return await this.load(),this.queryTask.executeAttributeBinsQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}async fetchPublishingStatus(){if(!(0,Z.Wo)(this.layer.url))return"unavailable";const t=(0,f.fj)(this.layer.url,"status"),e=await(0,i.A)(t,{query:{f:"json"}});return W.fromJSON(e.data.status)}async uploadAssets(t,e){const{uploadAssets:s}=await r.e(1384).then(r.bind(r,31384));return s(t,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},e)}_handleLastEditsEventChange(t){const e=this.layer;if(null==t||!("capabilities"in e)||!("effectiveCapabilities"in e))return;if(e.capabilities?.operations?.supportsEditing||!e.effectiveCapabilities?.operations?.supportsEditing)return;const r=e.url;null!=r&&("layerId"in e&&(0,f.fj)(r,e.layerId.toString()),this._getOrCreateEditInterceptor(r).before=e=>{const r=e.requestOptions.method??"auto";if("auto"===r||"head"===r){const r=e.requestOptions.query??{};r._ts=t.getTime(),e.requestOptions.query=r}})}_getOrCreateEditInterceptor(t){return null==this._editInterceptor&&(this._editInterceptor={urls:t},n.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,a.TF)(n.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(t,e){const r=(await(0,i.A)(t,e)).data.statusUrl;for(;;){const t=(await(0,i.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(t.status){case"Completed":return(0,i.A)(t.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,d.Pl)(H)}}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),e?.cacheBust&&(r._ts=Date.now());const{data:s}=await(0,i.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:e?.signal}));t=s}this.layer.applyPreferredHost(t),this.sourceJSON=await this._patchServiceJSON(t,e?.signal);const r=t.type;if(!this.supportedSourceTypes.has(r))throw new o.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(t,e){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,V.F0)(t.geometryType).renderer;(0,h.sM)("drawingInfo.renderer",e,t)}if("esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),null==t.extent)try{const{data:r}=await(0,i.A)(this.layer.url,this._getLayerRequestOptions({signal:e}));r.spatialReference&&(t.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(t){(0,d.QP)(t)}return t}async _ensureLatestMetadata(t){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...t,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(t){const{addAssetFeatures:e}=t;if(!e?.length)return null;if(await this._areAllAssetsAlreadyMapped(e))return null;const s=t.addFeatures.filter(t=>t.geometry);if(e.length!==s.length+t.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const n=new Array,i=new Map;for(const t of e){const{geometry:e}=t,{vertexSpace:s}=e;if((0,v.Hq)(s))n.push(e);else{const s=e.origin,{convertMeshVertexSpace:a}=await Promise.all([r.e(6860),r.e(4496)]).then(r.bind(r,28846)),o=await a(e,new S.A({origin:[s.x,s.y,s.z??0]}));i.set(o,e),t.geometry=o,n.push(o)}}await this.uploadAssets(n);for(const[t,e]of i)e.addExternalSources(t.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(e),updates:[],deletes:[]}}_getAssetMapEditsJSON(t){const e=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const n of t){const t=n.geometry,{metadata:i}=t,a=i.getExternalSourcesOnService(s),o=n.getAttribute(r);if(0===a.length){p.A.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=a.find(x.dK)??a[0];for(const t of u.assets)1===t.parts.length?e.push({globalId:(0,m.yS)(),parentGlobalId:o,assetName:t.assetName,assetHash:t.parts[0].partHash,flags:[]}):p.A.getLogger(this).error(`Skipping asset ${t.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return e}_createEditsResult(t){const e=t.data,{layerId:r}=this.layer,s=[];let n=null;if(Array.isArray(e))for(const t of e)s.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===r&&(n={addResults:t.addResults??[],updateResults:t.updateResults??[],deleteResults:t.deleteResults??[],attachments:t.attachments,editMoment:t.editMoment});else n=e;const i=function(t){const e=t?.assetMaps;if(e){for(const t of e.addResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`);for(const t of e.updateResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`)}const r=t?.attachments,s={addFeatureResults:t?.addResults?.map(D)??[],updateFeatureResults:t?.updateResults?.map(D)??[],deleteFeatureResults:t?.deleteResults?.map(D)??[],addAttachmentResults:r?.addResults?r.addResults.map(D):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(D):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(D):[]};return t?.editMoment&&(s.editMoment=t.editMoment),s}(n);if(s.length>0){i.editedFeatureResults=[];for(const t of s){const{editedFeatures:e}=t,r=e?.spatialReference?new b.A(e.spatialReference):null;i.editedFeatureResults.push({layerId:t.id,editedFeatures:j(e,r)})}}return i}_createAttachmentErrorResult(t,e){const r=e.details.messages?.[0]||e.message,s=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new o.A("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(t,e){const r=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(r)for(const t in e){const s=e[t];null!=s&&(r.set?r.set(t,s):r.append(t,s))}return r}_getLayerRequestOptions(t={}){const{layer:e,layer:{parsedUrl:r,gdbVersion:s}}=this;return{...t,query:{gdbVersion:s,layer:"dynamicDataSource"in e&&e.dynamicDataSource?JSON.stringify({source:e.dynamicDataSource}):void 0,...r.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}async _areAllAssetsAlreadyMapped(t){const{layer:e}=this,{globalIdField:r,parsedUrl:s}=e,n="infoFor3D"in e?e.infoFor3D:null;if(null==n||null==r)return!1;const i=(0,k.JZ)(n);if(null==i)return!1;const o=(0,f.fj)(s.path,`../${i.id}`),u=new Array;for(const e of t){if(!(e.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(e)}const l=u.map(t=>t.getAttribute(r)).filter(a.Ru);if(0===l.length)return!1;const{assetMapFieldRoles:{parentGlobalId:c,assetHash:p}}=n,h=new B.A({where:`${c} IN (${l.map(t=>`'${t}'`)})`,outFields:[p,c],returnGeometry:!1}),d=await(0,G.s)(o,h),{features:y}=d;return 0!==y.length&&!u.some(t=>{const e=t.getAttribute(r);if(!e)return!0;const{metadata:n}=t.geometry,i=y.filter(t=>t.getAttribute(c)===e);if(0===i.length)return!0;const a=i.map(t=>t.getAttribute(p));return n.getExternalSourcesOnService(s).flatMap(({source:t})=>t.assets.flatMap(t=>t.parts.map(t=>t.partHash))).some(t=>a.every(e=>t!==e))})}};(0,s.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,s.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,s.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(t,e,r){r.d(e,{A:()=>M});var s=r(5482),n=r(69622),i=r(49186),a=r(44208),o=r(17676),u=r(84952),l=r(91429),c=r(21325),p=r(20557),h=r(2272),d=r(65615),y=r(20615),f=r(74910),m=r(78286),g=r(99199),A=r(62815),b=r(63746);class S{constructor(t){this._options=t,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=S._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(t){"string"==typeof t&&(this.featureSet.objectIdFieldName=t)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);const{spatialReference:t,features:e}=this.featureSet;if(t)for(const{geometry:r}of e)r&&(r.spatialReference=t)}feature(){this._attributesClass??=(0,b._7)(this.featureSet.fields?.map(t=>t.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([t,e]){this.featureSet.features.at(-1).centroid={x:t,y:e}}geometry(t,e,r){this._previousX=this._previousY=0,this._lengths=r;let s,{hasZ:n,hasM:i}=this.featureSet;switch(n??=!1,i??=!1,this._i=0,this._vertex=[0,0],n&&this._vertex.push(0),i&&this._vertex.push(0),this._finishVertex=S._finishVertexNonPoint,e){case"esriGeometryPoint":this._point={x:0,y:0},s=this._point,this._finishVertex=n?i?S._finishVertexPointXYZM:S._finishVertexPointXYZ:i?S._finishVertexPointXYM:S._finishVertexPointXY;break;case"esriGeometryMultipoint":s={points:[],hasZ:n,hasM:i},this._part=s.points,this._parts=[];break;case"esriGeometryPolyline":s={paths:[],hasZ:n,hasM:i},this._parts=s.paths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],hasZ:n,hasM:i},this._parts=s.rings,this._part=[]}1===t?(this.featureSet.queryGeometry=s,this.featureSet.queryGeometryType=e,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=s}coord(t){const e=this._vertex;e[this._i++]=t,this._i<e.length||(this._i=0,this._transformInPlace&&(e[0]+=this._previousX,e[1]+=this._previousY,[this._previousX,this._previousY]=e,this._transformInPlace(e)),this._finishVertex(this))}curvedGeometry(t,e,r,s){let n,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,t){case"esriGeometryPoint":case"esriGeometryMultipoint":throw new Error(`Curved ${t} does not make sense`);case"esriGeometryPolyline":n={paths:[],curvePaths:[],hasZ:i,hasM:a},this._parts=n.curvePaths,this._part=[];break;case"esriGeometryPolygon":n={rings:[],curveRings:[],hasZ:i,hasM:a},this._parts=n.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=n}startCurvedPart(t){this._part.push(this._transform(t))}finishCurvedPart(t){this._parts.push(this._part),this._part=[]}lineSegment(t,e){this._part.push(this._transform(e))}bezierSegment(t,e,r,s){this._part.push({b:[this._transform(e),this._transformXY(r),this._transformXY(s)]})}circularArcSegment(t,e,r){this._part.push({c:[this._transform(e),this._transformXY(r)]})}ellipticArcSegment(t,e,r,s,n,i,a,o){this._part.push({a:[this._transform(e),this._transformXY(r),s,n,i,a,o]})}static _finishVertexPointXY({_point:t,_vertex:e}){[t.x,t.y]=e}static _finishVertexPointXYZ({_point:t,_vertex:e}){[t.x,t.y,t.z]=e}static _finishVertexPointXYM({_point:t,_vertex:e}){[t.x,t.y,t.m]=e}static _finishVertexPointXYZM({_point:t,_vertex:e}){[t.x,t.y,t.z,t.m]=e}static _finishVertexNonPoint(t){const{_part:e,_parts:r,_lengths:s,_vertex:n}=t;e.push([...n]),e.length<s[r.length]||(t._previousX=t._previousY=0,t._part=[],r.push(e))}_setVertexTransformer(){const{sourceSpatialReference:t}=this._options,{spatialReference:e,hasZ:r,transform:s}=this.featureSet,n=r?(0,A.d)(t,e):1;this._transformInPlace??=(0,b.Mv)(this.featureSet,n),this._transformInPlaceXY??=(0,b.Mv)({transform:s})}_transform(t){const e=[...t];return this._transformInPlace?.(e),e}_transformXY(t){const e=[t[0],t[1]];return this._transformInPlaceXY?.(e),e}}var v=r(80893),x=r(22671),_=r(61956);async function w(t,e,r,s){const n=(0,h.Dl)(t),i={...r},a=_.A.from(e),o=!a.quantizationParameters;return await(0,v.IJ)(n,a,new S({sourceSpatialReference:a.sourceSpatialReference,applyTransform:o}),i,s)}let M=class extends n.A{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(t,e){const r=await this.executeJSON(t,e);return this.featureSetFromJSON(t,r,e)}async executeJSON(t,e){const r=this._normalizeQuery(t),s=null!=t.outStatistics?.[0],n=(0,a.A)("featurelayer-pbf-statistics");let i;if(this.pbfSupported&&(!s||n)&&(!t.returnTrueCurves||this.pbfSupportedWithCurves))try{i=await w(this.url,r,e,{uniqueIdFields:this.uniqueIdFields})}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.pbfSupported=!1}return i??=await(0,g.e)(this.url,r,e,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,s){if(!this._queryGet3DObjectFormat(t)||null==this.infoFor3D||!e.features)return x.A.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,o.qr)(Promise.all([r.e(6860),r.e(6439),r.e(8366)]).then(r.bind(r,40050)),s);return n(t,this.infoFor3D,e)}executeForCount(t,e){return(0,y.I)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(t,e){return(0,f.L)(this.url,this._normalizeQuery(t),e)}executeForIds(t,e){return(0,m.V)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(t,e){const[{default:s},{executeRelationshipQuery:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let i=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeRelationshipQueryForCount(t,e){const[{default:s},{executeRelationshipQueryForCount:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),e);let i=s.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeAttachmentQuery(t,e){const{executeAttachmentQuery:s,fetchAttachments:n,processAttachmentQueryResult:i}=await(0,o.qr)(r.e(9239).then(r.bind(r,9239)),e),a=(0,h.Dl)(this.url);return i(a,await(this.queryAttachmentsSupported?s(a,t,e):n(a,t,e)))}async executeAttributeBinsQuery(t,e){const{executeAttributeBinsQuery:s}=await(0,o.qr)(r.e(3103).then(r.bind(r,33103)),e);return s(this.parsedUrl,t,e)}async executePivotQuery(t,e){const{executePivotQuery:s}=await(0,o.qr)(r.e(566).then(r.bind(r,80566)),e);return s(this.parsedUrl,t,e)}async executeTopFeaturesQuery(t,e){const{executeTopFeaturesQuery:s}=await(0,o.qr)(r.e(1273).then(r.bind(r,11273)),e);return s(this.parsedUrl,t,this.sourceSpatialReference,e)}async executeForTopIds(t,e){const{executeForTopIds:s}=await(0,o.qr)(r.e(1277).then(r.bind(r,21277)),e);return s(this.parsedUrl,t,e)}async executeForTopExtents(t,e){const{executeForTopExtents:s}=await(0,o.qr)(r.e(8018).then(r.bind(r,8018)),e);return s(this.parsedUrl,t,e)}async executeForTopCount(t,e){const{executeForTopCount:s}=await(0,o.qr)(r.e(980).then(r.bind(r,10980)),e);return s(this.parsedUrl,t,e)}_normalizeQuery(t){let e=_.A.from(t);e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?d.A.from(t.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this,s=this._queryGet3DObjectFormat(t);if(null!=r&&s){if(e=e===t?e.clone():e,e.formatOf3DObjects=s,e.outSpatialReference&&!(0,c.aI)(e.outSpatialReference,this.sourceSpatialReference))throw new i.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==e.outFields||!e.outFields.includes("*")){e=e===t?e.clone():e,null==e.outFields&&(e.outFields=[]);const{originX:s,originY:n,originZ:i,translationX:a,translationY:o,translationZ:u,scaleX:l,scaleY:c,scaleZ:p,rotationX:h,rotationY:d,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;e.outFields.push(s,n,i,a,o,u,l,c,p,h,d,y,f)}}return e}_normalizeFields(t){if(null!=this.fieldsIndex&&null!=t)for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryGet3DObjectFormat({returnGeometry:t,multipatchOption:e,outStatistics:r}){return!0!==t||"xyFootprint"===e||r?null:(0,p.Hz)(this.infoFor3D)}};(0,s.Cg)([(0,l.MZ)({type:d.A})],M.prototype,"dynamicDataSource",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"infoFor3D",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],M.prototype,"parsedUrl",null),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupportedWithCurves",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"queryAttachmentsSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"relativeTimeBinWindow",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"sourceSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"uniqueIdFields",void 0),(0,s.Cg)([(0,l.MZ)({type:String})],M.prototype,"url",void 0),M=(0,s.Cg)([(0,l.$K)("esri.layers.graphics.sources.support.QueryTask")],M)},64714(t,e,r){r.d(e,{F0:()=>o,Vx:()=>c,e2:()=>h,f:()=>d});var s=r(44208),n=r(4718),i=r(99352),a=r(93470);function o(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.Cb:"esriGeometryPolyline"===t?a.yM:a.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function c(t,e){if((0,s.A)("esri-csp-restrictions"))return()=>({[e]:null,...t});try{let r=`this${p(e)} = null;`;for(const e in t)r+=`this${p(e)} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[e]:null,...t})}}function p(t){return u.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function h(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(t)}}]}function d(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:e,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},92300(t,e,r){r.d(e,{V:()=>a,X:()=>i});var s=r(60408),n=r(65864);function i(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function a(t,e,r){const s=(0,n.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=r,e})}},20615(t,e,r){r.d(e,{I:()=>a});var s=r(2272),n=r(80893),i=r(61956);function a(t,e,r,a){return(0,n.gW)((0,s.Dl)(t),i.A.from(e),r,a)}},74910(t,e,r){r.d(e,{L:()=>o});var s=r(5443),n=r(2272),i=r(80893),a=r(61956);async function o(t,e,r){const o=(0,n.Dl)(t),u=await(0,i.Jf)(o,a.A.from(e),{...r}),l=u.extent;return!l||isNaN(l.xmin)||isNaN(l.ymin)||isNaN(l.xmax)||isNaN(l.ymax)?{count:u.count,extent:null}:{count:u.count,extent:s.A.fromJSON(l)}}},78286(t,e,r){r.d(e,{V:()=>a});var s=r(2272),n=r(80893),i=r(61956);async function a(t,e,r,a){const o=(0,s.Dl)(t),u=await(0,n.Pk)(o,i.A.from(e),r,a);return u.objectIds??function(t){if(t)return function(t){return!Array.isArray(t[0])}(t)?t:t.map(t=>JSON.stringify(t))}(u.uniqueIds)??[]}},99199(t,e,r){r.d(e,{e:()=>u,s:()=>o});var s=r(2272),n=r(80893),i=r(22671),a=r(61956);async function o(t,e,r,s){const n=await u(t,e,r,s);return i.A.fromJSON(n)}function u(t,e,r,i){const o=(0,s.Dl)(t),u={...r},l=a.A.from(e);return(0,n.eW)(o,l,l.sourceSpatialReference,u,i)}},63746(t,e,r){function s(t){return class{constructor(){for(const e of t)this[e]=null}}}function n(t,e=1){const{transform:r,hasZ:s,hasM:n}=t;if(null==r)return s&&1!==e?t=>{t[2]*=e}:null;const[i,a]=function(t,e,r,s){let{scale:n,translate:i,originPosition:a}=t;return"upperLeft"===a&&(n=n.map((t,e)=>1===e?-t:t)),e&&(n=n.map((t,e)=>2===e?t*s:t),i=i.map((t,e)=>2===e?t*s:t)),!e&&r&&(n=n.filter((t,e)=>2!==e),i=i.filter((t,e)=>2!==e)),[n,i]}(r,s,n,e),o=t.hasZ?3:2;return t=>{for(let e=0;e<t.length&&(e!==o||0!==t[e]);++e)t[e]=t[e]*i[e]+a[e]}}r.d(e,{Mv:()=>n,_7:()=>s}),r(53966)}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 888f6387e795d45a7ad3.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3620],{38568(e,t,i){i.d(t,{g:()=>a});const a=()=>[2,1,1,1,3].map(e=>{let t="";for(let i=0;i<e;i++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}).join("-")},31910(e,t,i){i.d(t,{t:()=>r});var a=i(27617);function n(e){return e[e.openProp||"open"]}async function r(e){await e.updateComplete,n(e)?e.onBeforeOpen():e.onBeforeClose(),await e.updateComplete;const t=function(e){return!!e.transitionRef}(e)?e.transitionRef.value:e.transitionEl;t&&await(0,a.p)(t,e.transitionProp),n(e)?e.onOpen():e.onClose()}},4256(e,t,i){i.d(t,{C:()=>a,I:()=>r,i:()=>o});const a={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",indicatorText:"indicator-text",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},n="calcite-action",r={button:e=>`${n}-${e}-button`,indicator:e=>`${n}-${e}-indicator`};function o(e){return"CALCITE-ACTION"===e?.tagName}},20107(e,t,i){i(76572),i(7659);var a=i(50917),n=i(34857),r=i(56590),o=i(11758),c=i(67145),l=i(38568),s=i(75206),d=i(53250),h=i(9223),u=i(5918),v=i(32491),p=i(3032),b=i(4256);const g=n.AH`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-action-font-size: var(--calcite-font-size--2);--calcite-internal-action-height: var(--calcite-size-sm);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-font-size: var(--calcite-font-size--1);--calcite-internal-action-height: var(--calcite-size-md);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-font-size: var(--calcite-font-size-0);--calcite-internal-action-height: var(--calcite-size-lg);--calcite-internal-action-line-height: 1.25rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm-plus)}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius-xs)))}.interaction-container{border-radius:inherit}:host([width=full]){flex:1 0 auto}:host([width=full]) .button{justify-content:center}:host([width=full]) .button .text-container--visible{flex:none}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));border-radius:inherit;color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));cursor:inherit;flex:1 0 auto;font-family:inherit;font-size:var(--calcite-internal-action-font-size);font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-internal-action-line-height);min-block-size:var(--calcite-internal-action-height);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-internal-action-spacing));padding-inline:var(--calcite-internal-action-padding-inline, var(--calcite-internal-action-spacing));text-align:start}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.button--text-visible{gap:var(--calcite-internal-action-spacing);inline-size:100%}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition-property:opacity;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-3));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}:host([active]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([appearance=transparent]) .button{transition-property:box-shadow;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);background-color:var(--calcite-action-background-color, var(--calcite-color-transparent))}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}:host([appearance=transparent]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([selection-appearance=highlight]):host([active]) .button{background-color:var(--calcite-color-surface-highlight);color:var(--calcite-color-text-highlight)}:host([active-descendant]) .button{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}:host([scale=s]) .indicator-with-icon{position:relative}:host([scale=s]) .indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.125rem;inset-inline-end:-.125rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([scale=s]) .indicator-without-icon{position:relative}:host([scale=s]) .indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.175rem;inset-inline-end:-.175rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;class m extends c.WF{constructor(){super(...arguments),this.guid=(0,l.g)(),this.buttonRef=(0,o._)(),this.buttonId=b.I.button(this.guid),this.mutationObserver=(0,s.c)("mutation",()=>this.requestUpdate()),this.messages=(0,h.u)({blocking:!0}),this.focusSetter=(0,u.u)()(this),this.indicatorRef=(0,o._)(),this.interactiveContainer=(0,p.u)(this),this.active=!1,this.activeDescendant=!1,this.appearance="transparent",this.compact=!1,this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.scale="m",this.width="auto",this.textEnabled=!1,this.type="button"}static{this.properties={aria:[0,{},{attribute:!1}],active:[7,{},{reflect:!0,type:Boolean}],activeDescendant:[7,{},{reflect:!0,type:Boolean}],alignment:[3,{},{reflect:!0}],appearance:[3,{},{reflect:!0}],compact:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],dragHandle:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],icon:[3,{type:String},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],indicator:[7,{},{reflect:!0,type:Boolean}],label:1,loading:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],scale:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}],text:1,textEnabled:[7,{},{reflect:!0,type:Boolean}],type:[3,{},{reflect:!0}],selectionAppearance:[3,{},{reflect:!0}]}}static{this.styles=g}async setFocus(e){return this.focusSetter(()=>this.buttonRef.value,e)}connectedCallback(){super.connectedCallback(),this.formEl=(0,v.f)(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.formEl=null,this.mutationObserver?.disconnect()}handleClick(){const{type:e}=this;"submit"===e?(0,v.s)(this):"reset"===e&&(0,v.r)(this)}renderTextContainer(){const{text:e,textEnabled:t}=this,i={[b.C.textContainer]:!0,[b.C.textContainerVisible]:t};return e?(0,r.D)("text-container",n.qy`<div class=${(0,c.CP)(i)}>${e}</div>`):null}renderIndicatorText(){const{indicator:e,messages:t,buttonId:i}=this;return n.qy`<div aria-labelledby=${i??c.s6} aria-live=polite class=${(0,c.CP)(b.C.indicatorText)} role=region ${(0,o.K)(this.indicatorRef)}>${e?t.indicator:null}</div>`}renderIconContainer(){const{loading:e,icon:t,scale:i,el:a,iconFlipRtl:o,indicator:l}=this,s="l"===i?"l":"m",h=e?n.qy`<calcite-loader inline .label=${this.messages.loading} .scale=${s}></calcite-loader>`:null,u=t?n.qy`<calcite-icon class=${(0,c.CP)({[b.C.indicatorWithIcon]:l})} .flipRtl=${o} .icon=${t} .scale=${(0,d.g)(this.scale)}></calcite-icon>`:null,v=h||u,p=v||a.children?.length,g=n.qy`<div class=${(0,c.CP)({[b.C.slotContainer]:!0,[b.C.slotContainerHidden]:e})}><slot></slot></div>`;return p?(0,r.D)("icon-container",n.qy`<div aria-hidden=true class=${(0,c.CP)(b.C.iconContainer)}>${v}${g}</div>`):null}renderButton(){const{compact:e,disabled:t,icon:i,loading:a,textEnabled:l,label:s,text:d,indicator:h,indicatorRef:u,buttonId:v,messages:p}=this,g=s||d||"",m=h?p.indicatorLabel.replace("{label}",g):g,f={[b.C.button]:!0,[b.C.buttonTextVisible]:l,[b.C.buttonCompact]:e},x=n.qy`${this.renderIconContainer()}${this.renderTextContainer()}${!i&&h&&(0,r.D)("indicator-no-icon",n.qy`<div class=${(0,c.CP)(b.C.indicatorWithoutIcon)}></div>`)||""}`,z=h&&u.value?[u.value]:[],y=[...this.aria?.controlsElements??[],...z];return this.dragHandle?n.qy`<span .ariaBusy=${a} .ariaControlsElements=${y} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${m} .ariaLabelledByElements=${this.aria?.labelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${(0,c.CP)(f)} id=${v??c.s6} role=button tabindex=${(this.disabled?null:0)??c.s6} ${(0,o.K)(this.buttonRef)}>${x}</span>`:n.qy`<button .ariaBusy=${a} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${y} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${m} .ariaLabelledByElements=${this.aria?.labelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${(0,c.CP)(f)} .disabled=${t} id=${v??c.s6} @click=${this.handleClick} .role=${this.aria?.role} ${(0,o.K)(this.buttonRef)}>${x}</button>`}render(){return this.interactiveContainer({disabled:this.disabled,children:n.qy`${this.renderButton()}${this.renderIndicatorText()}`})}}(0,a.c)("calcite-action",m)},76572(e,t,i){var a=i(50917),n=i(34857),r=i(67145),o=i(38568),c=i(9223);const l="ring--progress",s="ring",d="ring--track",h=n.AH`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-md);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class u extends r.WF{constructor(){super(...arguments),this.messages=(0,c.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=h}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:i,text:a,type:c,value:l}=this,s=e.id||(0,o.g)(),d="indeterminate"!==c,h=Math.floor(l);return this.el.ariaLabel=i,this.el.ariaValueMax=d?"100":void 0,this.el.ariaValueMin=d?"0":void 0,this.el.ariaValueNow=d?h.toString():void 0,(0,r.Bq)(this.el,"id",s),this.el.role="progressbar",n.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&n.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&a&&n.qy`<div class=${(0,r.CP)("text")}>${a}</div>`||""}`}renderRing(e){const{inline:t,scale:i,value:a}=this,o=t?this.getInlineSize(i):this.getSize(i),c=.45*o;let h;if("progress"===e){const e=2*c*Math.PI,t=(this.type.startsWith("determinate")?a:24)/100*e;h={"stroke-dasharray":`${t} ${e-t}`}}return n.qy`<svg aria-hidden=true class=${(0,r.CP)({[s]:!0,[d]:"track"===e,[l]:"progress"===e})} style=${(0,r.zl)(h)} viewBox=${`0 0 ${o} ${o}`}>${n.JW`<circle cx=${o/2} cy=${o/2} r=${c??n.s6} />`}</svg>`}}(0,a.c)("calcite-loader",u)},56590(e,t,i){i.d(t,{D:()=>o});var a=i(95862),n=i(57106),r=i(27654);const o=(0,n.u$)(class extends n.WL{constructor(){super(...arguments),this.key=a.s6}render(e,t){return this.key=e,t}update(e,[t,i]){return t!==this.key&&((0,r.mY)(e),this.key=t),i}})}}]);