@arcgis/core 4.25.0-next.20220920 → 4.25.0-next.20220921

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 (460) hide show
  1. package/AggregateGraphic.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{9f31ab2247c9defb882c.js → 01ac91fc0bc6b4d4e3c6.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{8588cbecb8e808f451fe.js → 249e32af1f2d433fae4c.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{5b16b30ac3166f33e81e.js → 26690f4ec1f3cb8099c2.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{be93b0cef85665446944.js → 274b4cdf6c8d77e8a2e6.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{d5650f455ce5ba15ad10.js → 2cae0ec5f60ab42a49aa.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{f436c86f86236ea7ea04.js → 4641e10e0e8e9d257521.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{7a45333de9ded92619c2.js → 466008f793c2e11e854c.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{c9d655675552dcf6cef7.js → 4a699b41072ee88f0956.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{14ea96e398f4842abe4e.js → 4fdd18f5cdaa0d82ebc1.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{9662da3e1e37f3445186.js → 562b9619b8ee13734813.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{8bab21bc6164a593278f.js → 771b92e524802de840ba.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{4969b64dc17378d7781f.js → 7ce250cc6fbe68aef50d.js} +3 -3
  15. package/assets/esri/core/workers/chunks/{2c4938512dd726a177dd.js → 7fab18074b130b71a648.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{f67357b3c6c591c9da5e.js → 872f1cb3596fb80e387f.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{31de71018575457155e5.js → 8ee3da8677255b8c8709.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{2e44aee22e70857b893c.js → 93631b10452b0e0189b3.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{cb2dc84d972469445da6.js → 95cd9edca50ea163d50f.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{d31bbb13af45ce8e45dc.js → acf9f753741b677afb44.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{1455944edeba1560eb07.js → afdafa77f5ca1b9e3acc.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{cf3e1ac63580bc495ea6.js → b4da35f1093f3731f9ac.js} +1 -1
  23. package/assets/esri/core/workers/chunks/bb0d86937faf0cd7d16d.js +1 -0
  24. package/assets/esri/core/workers/chunks/bf3e80023e156d5906c7.js +1 -0
  25. package/assets/esri/core/workers/chunks/{8ba83fee56dd4f306d87.js → c2a6ac7046134f725cf3.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{5d3fabe66e1bce1b30fb.js → cc7569489b572b8b3b53.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{fddd4ea487788e003fb1.js → d09f06eb4157a7c2c8ab.js} +1 -1
  28. package/assets/esri/core/workers/chunks/e064035f959d68e9603f.js +1 -0
  29. package/assets/esri/core/workers/chunks/{d92975e56a1290255252.js → e09df62cf35d636b0975.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{674fa5b93704ef08c9e8.js → e0c763e05feb1c2093ba.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{51289d2f5277af4023e9.js → ed33e019bc7775db2e50.js} +1 -1
  32. package/assets/esri/core/workers/chunks/ef95d6ab7b1c032ab4ad.js +1 -0
  33. package/assets/esri/core/workers/chunks/{169f4354a375db5de121.js → ffcbcb928b6cb8c596ad.js} +1 -1
  34. package/assets/esri/t9n/common_ar.json +1 -1
  35. package/assets/esri/t9n/common_bg.json +1 -1
  36. package/assets/esri/t9n/common_bs.json +1 -1
  37. package/assets/esri/t9n/common_ca.json +1 -1
  38. package/assets/esri/t9n/common_cs.json +1 -1
  39. package/assets/esri/t9n/common_da.json +1 -1
  40. package/assets/esri/t9n/common_de.json +1 -1
  41. package/assets/esri/t9n/common_el.json +1 -1
  42. package/assets/esri/t9n/common_es.json +1 -1
  43. package/assets/esri/t9n/common_et.json +1 -1
  44. package/assets/esri/t9n/common_fi.json +1 -1
  45. package/assets/esri/t9n/common_fr.json +1 -1
  46. package/assets/esri/t9n/common_he.json +1 -1
  47. package/assets/esri/t9n/common_hr.json +1 -1
  48. package/assets/esri/t9n/common_hu.json +1 -1
  49. package/assets/esri/t9n/common_id.json +1 -1
  50. package/assets/esri/t9n/common_it.json +1 -1
  51. package/assets/esri/t9n/common_ja.json +1 -1
  52. package/assets/esri/t9n/common_ko.json +1 -1
  53. package/assets/esri/t9n/common_lt.json +1 -1
  54. package/assets/esri/t9n/common_lv.json +1 -1
  55. package/assets/esri/t9n/common_nb.json +1 -1
  56. package/assets/esri/t9n/common_nl.json +1 -1
  57. package/assets/esri/t9n/common_pl.json +1 -1
  58. package/assets/esri/t9n/common_pt-BR.json +1 -1
  59. package/assets/esri/t9n/common_pt-PT.json +1 -1
  60. package/assets/esri/t9n/common_ro.json +1 -1
  61. package/assets/esri/t9n/common_ru.json +1 -1
  62. package/assets/esri/t9n/common_sk.json +1 -1
  63. package/assets/esri/t9n/common_sl.json +1 -1
  64. package/assets/esri/t9n/common_sr.json +1 -1
  65. package/assets/esri/t9n/common_sv.json +1 -1
  66. package/assets/esri/t9n/common_th.json +1 -1
  67. package/assets/esri/t9n/common_tr.json +1 -1
  68. package/assets/esri/t9n/common_uk.json +1 -1
  69. package/assets/esri/t9n/common_vi.json +1 -1
  70. package/assets/esri/t9n/common_zh-CN.json +1 -1
  71. package/assets/esri/t9n/common_zh-HK.json +1 -1
  72. package/assets/esri/t9n/common_zh-TW.json +1 -1
  73. package/assets/esri/widgets/Feature/t9n/Feature_ar.json +1 -1
  74. package/assets/esri/widgets/Feature/t9n/Feature_bg.json +1 -1
  75. package/assets/esri/widgets/Feature/t9n/Feature_bs.json +1 -1
  76. package/assets/esri/widgets/Feature/t9n/Feature_ca.json +1 -1
  77. package/assets/esri/widgets/Feature/t9n/Feature_cs.json +1 -1
  78. package/assets/esri/widgets/Feature/t9n/Feature_da.json +1 -1
  79. package/assets/esri/widgets/Feature/t9n/Feature_de.json +1 -1
  80. package/assets/esri/widgets/Feature/t9n/Feature_el.json +1 -1
  81. package/assets/esri/widgets/Feature/t9n/Feature_es.json +1 -1
  82. package/assets/esri/widgets/Feature/t9n/Feature_et.json +1 -1
  83. package/assets/esri/widgets/Feature/t9n/Feature_fi.json +1 -1
  84. package/assets/esri/widgets/Feature/t9n/Feature_fr.json +1 -1
  85. package/assets/esri/widgets/Feature/t9n/Feature_he.json +1 -1
  86. package/assets/esri/widgets/Feature/t9n/Feature_hr.json +1 -1
  87. package/assets/esri/widgets/Feature/t9n/Feature_hu.json +1 -1
  88. package/assets/esri/widgets/Feature/t9n/Feature_id.json +1 -1
  89. package/assets/esri/widgets/Feature/t9n/Feature_it.json +1 -1
  90. package/assets/esri/widgets/Feature/t9n/Feature_ja.json +1 -1
  91. package/assets/esri/widgets/Feature/t9n/Feature_ko.json +1 -1
  92. package/assets/esri/widgets/Feature/t9n/Feature_lt.json +1 -1
  93. package/assets/esri/widgets/Feature/t9n/Feature_lv.json +1 -1
  94. package/assets/esri/widgets/Feature/t9n/Feature_nb.json +1 -1
  95. package/assets/esri/widgets/Feature/t9n/Feature_nl.json +1 -1
  96. package/assets/esri/widgets/Feature/t9n/Feature_pl.json +1 -1
  97. package/assets/esri/widgets/Feature/t9n/Feature_pt-BR.json +1 -1
  98. package/assets/esri/widgets/Feature/t9n/Feature_pt-PT.json +1 -1
  99. package/assets/esri/widgets/Feature/t9n/Feature_ro.json +1 -1
  100. package/assets/esri/widgets/Feature/t9n/Feature_ru.json +1 -1
  101. package/assets/esri/widgets/Feature/t9n/Feature_sk.json +1 -1
  102. package/assets/esri/widgets/Feature/t9n/Feature_sl.json +1 -1
  103. package/assets/esri/widgets/Feature/t9n/Feature_sr.json +1 -1
  104. package/assets/esri/widgets/Feature/t9n/Feature_sv.json +1 -1
  105. package/assets/esri/widgets/Feature/t9n/Feature_th.json +1 -1
  106. package/assets/esri/widgets/Feature/t9n/Feature_tr.json +1 -1
  107. package/assets/esri/widgets/Feature/t9n/Feature_uk.json +1 -1
  108. package/assets/esri/widgets/Feature/t9n/Feature_vi.json +1 -1
  109. package/assets/esri/widgets/Feature/t9n/Feature_zh-CN.json +1 -1
  110. package/assets/esri/widgets/Feature/t9n/Feature_zh-HK.json +1 -1
  111. package/assets/esri/widgets/Feature/t9n/Feature_zh-TW.json +1 -1
  112. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  113. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  114. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  115. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  116. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  117. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  118. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  119. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  120. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  121. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  122. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  123. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  124. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  125. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  126. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  127. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  128. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  129. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  130. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  131. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  132. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  133. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nb.json +1 -1
  134. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  135. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  136. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  137. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  138. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  139. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  140. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  141. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  142. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  143. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  144. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  145. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  146. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  147. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  148. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  149. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  150. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  151. package/assets/esri/widgets/Popup/t9n/Popup_ar.json +1 -1
  152. package/assets/esri/widgets/Popup/t9n/Popup_bg.json +1 -1
  153. package/assets/esri/widgets/Popup/t9n/Popup_bs.json +1 -1
  154. package/assets/esri/widgets/Popup/t9n/Popup_ca.json +1 -1
  155. package/assets/esri/widgets/Popup/t9n/Popup_cs.json +1 -1
  156. package/assets/esri/widgets/Popup/t9n/Popup_da.json +1 -1
  157. package/assets/esri/widgets/Popup/t9n/Popup_de.json +1 -1
  158. package/assets/esri/widgets/Popup/t9n/Popup_el.json +1 -1
  159. package/assets/esri/widgets/Popup/t9n/Popup_es.json +1 -1
  160. package/assets/esri/widgets/Popup/t9n/Popup_et.json +1 -1
  161. package/assets/esri/widgets/Popup/t9n/Popup_fi.json +1 -1
  162. package/assets/esri/widgets/Popup/t9n/Popup_fr.json +1 -1
  163. package/assets/esri/widgets/Popup/t9n/Popup_he.json +1 -1
  164. package/assets/esri/widgets/Popup/t9n/Popup_hr.json +1 -1
  165. package/assets/esri/widgets/Popup/t9n/Popup_hu.json +1 -1
  166. package/assets/esri/widgets/Popup/t9n/Popup_id.json +1 -1
  167. package/assets/esri/widgets/Popup/t9n/Popup_it.json +1 -1
  168. package/assets/esri/widgets/Popup/t9n/Popup_ja.json +1 -1
  169. package/assets/esri/widgets/Popup/t9n/Popup_ko.json +1 -1
  170. package/assets/esri/widgets/Popup/t9n/Popup_lt.json +1 -1
  171. package/assets/esri/widgets/Popup/t9n/Popup_lv.json +1 -1
  172. package/assets/esri/widgets/Popup/t9n/Popup_nb.json +1 -1
  173. package/assets/esri/widgets/Popup/t9n/Popup_nl.json +1 -1
  174. package/assets/esri/widgets/Popup/t9n/Popup_pl.json +1 -1
  175. package/assets/esri/widgets/Popup/t9n/Popup_pt-BR.json +1 -1
  176. package/assets/esri/widgets/Popup/t9n/Popup_pt-PT.json +1 -1
  177. package/assets/esri/widgets/Popup/t9n/Popup_ro.json +1 -1
  178. package/assets/esri/widgets/Popup/t9n/Popup_ru.json +1 -1
  179. package/assets/esri/widgets/Popup/t9n/Popup_sk.json +1 -1
  180. package/assets/esri/widgets/Popup/t9n/Popup_sl.json +1 -1
  181. package/assets/esri/widgets/Popup/t9n/Popup_sr.json +1 -1
  182. package/assets/esri/widgets/Popup/t9n/Popup_sv.json +1 -1
  183. package/assets/esri/widgets/Popup/t9n/Popup_th.json +1 -1
  184. package/assets/esri/widgets/Popup/t9n/Popup_tr.json +1 -1
  185. package/assets/esri/widgets/Popup/t9n/Popup_uk.json +1 -1
  186. package/assets/esri/widgets/Popup/t9n/Popup_vi.json +1 -1
  187. package/assets/esri/widgets/Popup/t9n/Popup_zh-CN.json +1 -1
  188. package/assets/esri/widgets/Popup/t9n/Popup_zh-HK.json +1 -1
  189. package/assets/esri/widgets/Popup/t9n/Popup_zh-TW.json +1 -1
  190. package/assets/esri/widgets/support/t9n/DatePicker_ar.json +1 -1
  191. package/assets/esri/widgets/support/t9n/DatePicker_bg.json +1 -1
  192. package/assets/esri/widgets/support/t9n/DatePicker_bs.json +1 -1
  193. package/assets/esri/widgets/support/t9n/DatePicker_ca.json +1 -1
  194. package/assets/esri/widgets/support/t9n/DatePicker_cs.json +1 -1
  195. package/assets/esri/widgets/support/t9n/DatePicker_da.json +1 -1
  196. package/assets/esri/widgets/support/t9n/DatePicker_de.json +1 -1
  197. package/assets/esri/widgets/support/t9n/DatePicker_el.json +1 -1
  198. package/assets/esri/widgets/support/t9n/DatePicker_es.json +1 -1
  199. package/assets/esri/widgets/support/t9n/DatePicker_et.json +1 -1
  200. package/assets/esri/widgets/support/t9n/DatePicker_fi.json +1 -1
  201. package/assets/esri/widgets/support/t9n/DatePicker_fr.json +1 -1
  202. package/assets/esri/widgets/support/t9n/DatePicker_he.json +1 -1
  203. package/assets/esri/widgets/support/t9n/DatePicker_hr.json +1 -1
  204. package/assets/esri/widgets/support/t9n/DatePicker_hu.json +1 -1
  205. package/assets/esri/widgets/support/t9n/DatePicker_id.json +1 -1
  206. package/assets/esri/widgets/support/t9n/DatePicker_it.json +1 -1
  207. package/assets/esri/widgets/support/t9n/DatePicker_ja.json +1 -1
  208. package/assets/esri/widgets/support/t9n/DatePicker_ko.json +1 -1
  209. package/assets/esri/widgets/support/t9n/DatePicker_lt.json +1 -1
  210. package/assets/esri/widgets/support/t9n/DatePicker_lv.json +1 -1
  211. package/assets/esri/widgets/support/t9n/DatePicker_nb.json +1 -1
  212. package/assets/esri/widgets/support/t9n/DatePicker_nl.json +1 -1
  213. package/assets/esri/widgets/support/t9n/DatePicker_pl.json +1 -1
  214. package/assets/esri/widgets/support/t9n/DatePicker_pt-BR.json +1 -1
  215. package/assets/esri/widgets/support/t9n/DatePicker_pt-PT.json +1 -1
  216. package/assets/esri/widgets/support/t9n/DatePicker_ro.json +1 -1
  217. package/assets/esri/widgets/support/t9n/DatePicker_ru.json +1 -1
  218. package/assets/esri/widgets/support/t9n/DatePicker_sk.json +1 -1
  219. package/assets/esri/widgets/support/t9n/DatePicker_sl.json +1 -1
  220. package/assets/esri/widgets/support/t9n/DatePicker_sr.json +1 -1
  221. package/assets/esri/widgets/support/t9n/DatePicker_sv.json +1 -1
  222. package/assets/esri/widgets/support/t9n/DatePicker_th.json +1 -1
  223. package/assets/esri/widgets/support/t9n/DatePicker_tr.json +1 -1
  224. package/assets/esri/widgets/support/t9n/DatePicker_uk.json +1 -1
  225. package/assets/esri/widgets/support/t9n/DatePicker_vi.json +1 -1
  226. package/assets/esri/widgets/support/t9n/DatePicker_zh-CN.json +1 -1
  227. package/assets/esri/widgets/support/t9n/DatePicker_zh-HK.json +1 -1
  228. package/assets/esri/widgets/support/t9n/DatePicker_zh-TW.json +1 -1
  229. package/assets/esri/widgets/support/t9n/TimePicker_ar.json +1 -1
  230. package/assets/esri/widgets/support/t9n/TimePicker_bg.json +1 -1
  231. package/assets/esri/widgets/support/t9n/TimePicker_bs.json +1 -1
  232. package/assets/esri/widgets/support/t9n/TimePicker_ca.json +1 -1
  233. package/assets/esri/widgets/support/t9n/TimePicker_cs.json +1 -1
  234. package/assets/esri/widgets/support/t9n/TimePicker_da.json +1 -1
  235. package/assets/esri/widgets/support/t9n/TimePicker_de.json +1 -1
  236. package/assets/esri/widgets/support/t9n/TimePicker_el.json +1 -1
  237. package/assets/esri/widgets/support/t9n/TimePicker_es.json +1 -1
  238. package/assets/esri/widgets/support/t9n/TimePicker_et.json +1 -1
  239. package/assets/esri/widgets/support/t9n/TimePicker_fi.json +1 -1
  240. package/assets/esri/widgets/support/t9n/TimePicker_fr.json +1 -1
  241. package/assets/esri/widgets/support/t9n/TimePicker_he.json +1 -1
  242. package/assets/esri/widgets/support/t9n/TimePicker_hr.json +1 -1
  243. package/assets/esri/widgets/support/t9n/TimePicker_hu.json +1 -1
  244. package/assets/esri/widgets/support/t9n/TimePicker_id.json +1 -1
  245. package/assets/esri/widgets/support/t9n/TimePicker_it.json +1 -1
  246. package/assets/esri/widgets/support/t9n/TimePicker_ja.json +1 -1
  247. package/assets/esri/widgets/support/t9n/TimePicker_ko.json +1 -1
  248. package/assets/esri/widgets/support/t9n/TimePicker_lt.json +1 -1
  249. package/assets/esri/widgets/support/t9n/TimePicker_lv.json +1 -1
  250. package/assets/esri/widgets/support/t9n/TimePicker_nb.json +1 -1
  251. package/assets/esri/widgets/support/t9n/TimePicker_nl.json +1 -1
  252. package/assets/esri/widgets/support/t9n/TimePicker_pl.json +1 -1
  253. package/assets/esri/widgets/support/t9n/TimePicker_pt-BR.json +1 -1
  254. package/assets/esri/widgets/support/t9n/TimePicker_pt-PT.json +1 -1
  255. package/assets/esri/widgets/support/t9n/TimePicker_ro.json +1 -1
  256. package/assets/esri/widgets/support/t9n/TimePicker_ru.json +1 -1
  257. package/assets/esri/widgets/support/t9n/TimePicker_sk.json +1 -1
  258. package/assets/esri/widgets/support/t9n/TimePicker_sl.json +1 -1
  259. package/assets/esri/widgets/support/t9n/TimePicker_sr.json +1 -1
  260. package/assets/esri/widgets/support/t9n/TimePicker_sv.json +1 -1
  261. package/assets/esri/widgets/support/t9n/TimePicker_th.json +1 -1
  262. package/assets/esri/widgets/support/t9n/TimePicker_tr.json +1 -1
  263. package/assets/esri/widgets/support/t9n/TimePicker_uk.json +1 -1
  264. package/assets/esri/widgets/support/t9n/TimePicker_vi.json +1 -1
  265. package/assets/esri/widgets/support/t9n/TimePicker_zh-CN.json +1 -1
  266. package/assets/esri/widgets/support/t9n/TimePicker_zh-HK.json +1 -1
  267. package/assets/esri/widgets/support/t9n/TimePicker_zh-TW.json +1 -1
  268. package/chunks/Compositing.glsl.js +4 -19
  269. package/chunks/HUDCompositing.glsl.js +7 -0
  270. package/chunks/Laserlines.glsl.js +5 -5
  271. package/chunks/OITCompositing.glsl.js +13 -0
  272. package/chunks/OverlayCompositing.glsl.js +8 -0
  273. package/chunks/Precipitation.glsl.js +1 -1
  274. package/chunks/ShadowHighlight.glsl.js +1 -1
  275. package/chunks/boundedPlane.js +1 -1
  276. package/chunks/cameraUtilsPlanar.js +1 -1
  277. package/chunks/cameraUtilsSpherical.js +1 -1
  278. package/chunks/mat3.js +1 -1
  279. package/chunks/quat.js +1 -1
  280. package/chunks/quat2.js +1 -1
  281. package/chunks/quatf64.js +1 -1
  282. package/chunks/sphere.js +1 -1
  283. package/chunks/vec3.js +1 -1
  284. package/chunks/vec3f32.js +1 -1
  285. package/chunks/vec4f64.js +1 -1
  286. package/core/VectorStack.js +1 -1
  287. package/core/libs/gl-matrix-2/factories/quatf64.js +1 -1
  288. package/core/libs/gl-matrix-2/factories/vec3f32.js +1 -1
  289. package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
  290. package/core/libs/gl-matrix-2/math/mat3.js +1 -1
  291. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  292. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  293. package/core/perspectiveUtils.js +1 -1
  294. package/geohash/GeohashTree.js +1 -1
  295. package/geometry/support/MeshTransform.js +1 -1
  296. package/geometry/support/axisAngle.js +1 -1
  297. package/geometry/support/axisAngleDegrees.js +1 -1
  298. package/geometry/support/lineSegment.js +1 -1
  299. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  300. package/geometry/support/meshUtils/exporters/gltf/node.js +1 -1
  301. package/geometry/support/meshUtils/georeference.js +1 -1
  302. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  303. package/geometry/support/meshUtils/projection.js +1 -1
  304. package/geometry/support/meshUtils/rotate.js +1 -1
  305. package/geometry/support/plane.js +1 -1
  306. package/interfaces.d.ts +70 -0
  307. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  308. package/layers/graphics/featureConversionUtils.js +1 -1
  309. package/layers/mixins/EditBusLayer.js +1 -1
  310. package/layers/support/AggregateField.js +1 -1
  311. package/layers/support/ControlPointsGeoreference.js +1 -1
  312. package/layers/support/OutStatistic.js +1 -1
  313. package/layers/support/VoxelVolume.js +1 -1
  314. package/layers/support/voxelPlaneUtils.js +1 -1
  315. package/package.json +1 -1
  316. package/rest/support/AggregateFeatureSet.js +5 -0
  317. package/support/revision.js +1 -1
  318. package/views/2d/ViewState.js +1 -1
  319. package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
  320. package/views/2d/engine/imagery/RasterVFTile.js +1 -1
  321. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  322. package/views/2d/engine/webgl/OverlayContainer.js +1 -1
  323. package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
  324. package/views/2d/engine/webgl/WGLTile.js +1 -1
  325. package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
  326. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  327. package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
  328. package/views/2d/layers/features/schemaUtils.js +1 -1
  329. package/views/2d/layers/features/support/BinStore.js +1 -1
  330. package/views/2d/layers/features/support/ClusterStore.js +1 -1
  331. package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
  332. package/views/2d/layers/support/DebugOverlay.js +1 -1
  333. package/views/2d/layers/support/FeatureLayerProxy.js +1 -1
  334. package/views/2d/layers/support/clusterUtils.js +1 -1
  335. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  336. package/views/3d/analysis/Dimensioning/LengthDimensionSubTool.js +1 -1
  337. package/views/3d/analysis/Dimensioning/LengthDimensionVisualization.js +1 -1
  338. package/views/3d/analysis/Dimensioning/lengthDimensionUtils.js +1 -1
  339. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  340. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  341. package/views/3d/analysis/Slice/sliceToolConfig.js +1 -1
  342. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  343. package/views/3d/camera/constraintUtils/distance.js +1 -1
  344. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  345. package/views/3d/environment/PanoramicAtmosphere.js +1 -1
  346. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  347. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  348. package/views/3d/glTF/internal/Resource.js +1 -1
  349. package/views/3d/interactive/Manipulator3D.js +1 -1
  350. package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
  351. package/views/3d/interactive/editingTools/settings.js +1 -1
  352. package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
  353. package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
  354. package/views/3d/interactive/manipulatorUtils.js +1 -1
  355. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  356. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  357. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  358. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  359. package/views/3d/layers/I3SMeshView3D.js +1 -1
  360. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  361. package/views/3d/layers/PointCloudWorker.js +1 -1
  362. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  363. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  364. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  365. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  366. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  367. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  368. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  369. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  370. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  371. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  372. package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
  373. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  374. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  375. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  376. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  377. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  378. package/views/3d/layers/support/I3STreeDebugger.js +1 -1
  379. package/views/3d/layers/support/edgeUtils.js +1 -1
  380. package/views/3d/layers/support/uvUtils.js +1 -1
  381. package/views/3d/state/Frustum.js +1 -1
  382. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  383. package/views/3d/state/controllers/RotateController.js +1 -1
  384. package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
  385. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  386. package/views/3d/state/controllers/local/ZoomController.js +1 -1
  387. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  388. package/views/3d/state/utils/navigationUtils.js +1 -1
  389. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  390. package/views/3d/support/orientedBoundingBox.js +1 -1
  391. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  392. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  393. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  394. package/views/3d/support/sunUtils.js +1 -1
  395. package/views/3d/terrain/OverlayRenderer.js +1 -1
  396. package/views/3d/terrain/PatchRenderData.js +1 -1
  397. package/views/3d/terrain/TerrainSurface.js +1 -1
  398. package/views/3d/terrain/Tile.js +1 -1
  399. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  400. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  401. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  402. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  403. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +1 -1
  404. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +2 -2
  405. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  406. package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
  407. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  408. package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
  409. package/views/3d/webgl-engine/lib/GeometryRecord.js +1 -1
  410. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  411. package/views/3d/webgl-engine/lib/Highlight.js +1 -1
  412. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  413. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  414. package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
  415. package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
  416. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  417. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  418. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  419. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  420. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  421. package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
  422. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  423. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  424. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  425. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  426. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  427. package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
  428. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  429. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  430. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  431. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  432. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  433. package/views/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
  434. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  435. package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
  436. package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +5 -0
  437. package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +5 -0
  438. package/views/3d/webgl-engine/shaders/OITCompositing.glsl.js +5 -0
  439. package/views/3d/webgl-engine/shaders/OITCompositingTechnique.js +5 -0
  440. package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +5 -0
  441. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +5 -0
  442. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  443. package/views/interactive/coordinateHelper.js +1 -1
  444. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  445. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  446. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  447. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  448. package/views/layers/FeatureLayerView.js +1 -1
  449. package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
  450. package/views/support/Scheduler.js +1 -1
  451. package/views/support/euclideanAreaMeasurementUtils.js +1 -1
  452. package/views/support/geometry3dUtils.js +1 -1
  453. package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
  454. package/widgets/ElevationProfile/support/constants.js +1 -1
  455. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  456. package/widgets/Feature/FeatureRelationship.js +1 -1
  457. package/assets/esri/core/workers/chunks/0059699bf824f851d51c.js +0 -1
  458. package/assets/esri/core/workers/chunks/36dd5654df5c7f00406d.js +0 -1
  459. package/assets/esri/core/workers/chunks/de128d8a643b4297940b.js +0 -1
  460. package/assets/esri/core/workers/chunks/e00327925ca82b63fded.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1387],{95401:(e,t,n)=>{n.d(t,{e:()=>a});var r,o,i,s={exports:{}};r=s,o=function(){function e(e,n,o){o=o||2;var i,s,a,c,u,p,h,f=n&&n.length,g=f?n[0]*o:e.length,x=t(e,0,g,o,!0),d=[];if(!x||x.next===x.prev)return d;if(f&&(x=l(e,n,x,o)),e.length>80*o){i=a=e[0],s=c=e[1];for(var m=o;m<g;m+=o)(u=e[m])<i&&(i=u),(p=e[m+1])<s&&(s=p),u>a&&(a=u),p>c&&(c=p);h=0!==(h=Math.max(a-i,c-s))?1/h:0}return r(x,d,o,i,s,h),d}function t(e,t,n,r,o){var i,s;if(o===F(e,t,n,r)>0)for(i=t;i<n;i+=r)s=Z(i,e[i],e[i+1],s);else for(i=n-r;i>=t;i-=r)s=Z(i,e[i],e[i+1],s);if(s&&v(s,s.next)){var a=s.next;_(s),s=a}return s}function n(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(_(r),(r=t=o)===r.next)break;n=!0}}while(n||r!==t);return t}function r(e,t,l,c,u,p,h){if(e){!h&&p&&f(e,c,u,p);for(var g,x,d=e;e.prev!==e.next;)if(g=e.prev,x=e.next,p?i(e,c,u,p):o(e))t.push(g.i/l),t.push(e.i/l),t.push(x.i/l),_(e),e=x.next,d=x.next;else if((e=x)===d){h?1===h?r(e=s(n(e),t,l),t,l,c,u,p,2):2===h&&a(e,t,l,c,u,p):r(n(e),t,l,c,u,p,1);break}}}function o(e){var t=e.prev,n=e,r=e.next;if(y(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(d(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&y(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(e,t,n,r){var o=e.prev,i=e,s=e.next;if(y(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,c=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,u=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,p=g(a,l,t,n,r),h=g(c,u,t,n,r),f=e.prevZ,x=e.nextZ;f&&f.z>=p&&x&&x.z<=h;){if(f!==e.prev&&f!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,x!==e.prev&&x!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;f&&f.z>=p;){if(f!==e.prev&&f!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;x&&x.z<=h;){if(x!==e.prev&&x!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function s(e,t,r){var o=e;do{var i=o.prev,s=o.next.next;!v(i,s)&&w(i,o,o.next,s)&&A(i,s)&&A(s,i)&&(t.push(i.i/r),t.push(o.i/r),t.push(s.i/r),_(o),_(o.next),o=e=s),o=o.next}while(o!==e);return n(o)}function a(e,t,o,i,s,a){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=T(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,t,o,i,s,a),void r(u,t,o,i,s,a)}c=c.next}l=l.next}while(l!==e)}function l(e,r,o,i){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=t(e,r[s]*i,s<a-1?r[s+1]*i:e.length,i,!1))===l.next&&(l.steiner=!0),u.push(x(l));for(u.sort(c),s=0;s<u.length;s++)o=n(o=p(u[s],o),o.next);return o}function c(e,t){return e.x-t.x}function u(e){if(e.next.prev===e)return e;let t=e;for(;;){const n=t.next;if(n.prev===t||n===t||n===e)break;t=n}return t}function p(e,t){var r=function(e,t){var n,r=t,o=e.x,i=e.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===s)return n;var l,c=n,u=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=u&&o!==r.x&&d(i<p?o:s,i,u,p,i<p?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),A(r,e)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(e,t);if(!r)return t;var o=T(r,e),i=n(r,r.next);let s=u(o);return n(s,s.next),i=u(i),u(t===r?i:t)}function h(e,t){return y(e.prev,e,t.prev)<0&&y(t.next,e,e.next)<0}function f(e,t,n,r){var o=e;do{null===o.z&&(o.z=g(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,s,a,l,c=1;do{for(n=e,e=null,i=null,s=0;n;){for(s++,r=n,a=0,t=0;t<c&&(a++,r=r.nextZ);t++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,c*=2}while(s>1)}(o)}function g(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function x(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function d(e,t,n,r,o,i,s,a){return(o-s)*(t-a)-(e-s)*(i-a)>=0&&(e-s)*(r-a)-(n-s)*(t-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function m(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&w(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(A(e,t)&&A(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(y(e.prev,e,t.prev)||y(e,t.prev,t))||v(e,t)&&y(e.prev,e,e.next)>0&&y(t.prev,t,t.next)>0)}function y(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function v(e,t){return e.x===t.x&&e.y===t.y}function w(e,t,n,r){var o=C(y(e,t,n)),i=C(y(e,t,r)),s=C(y(n,r,e)),a=C(y(n,r,t));return o!==i&&s!==a||!(0!==o||!b(e,n,t))||!(0!==i||!b(e,r,t))||!(0!==s||!b(n,e,r))||!(0!==a||!b(n,t,r))}function b(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function C(e){return e>0?1:e<0?-1:0}function A(e,t){return y(e.prev,e,e.next)<0?y(e,t,e.next)>=0&&y(e,e.prev,t)>=0:y(e,t,e.prev)<0||y(e,e.next,t)<0}function T(e,t){var n=new M(e.i,e.x,e.y),r=new M(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Z(e,t,n,r){var o=new M(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function _(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function M(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(e,t,n,r){for(var o=0,i=t,s=n-r;i<n;i+=r)o+=(e[s]-e[i])*(e[i+1]+e[s+1]),s=i;return o}return e.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,s=Math.abs(F(e,0,i,n));if(o)for(var a=0,l=t.length;a<l;a++){var c=t[a]*n,u=a<l-1?t[a+1]*n:e.length;s-=Math.abs(F(e,c,u,n))}var p=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,f=r[a+1]*n,g=r[a+2]*n;p+=Math.abs((e[h]-e[g])*(e[f+1]-e[h+1])-(e[h]-e[f])*(e[g+1]-e[h+1]))}return 0===s&&0===p?0:Math.abs((p-s)/s)},e.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var s=0;s<t;s++)n.vertices.push(e[o][i][s]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n},e},void 0!==(i=o())&&(r.exports=i);const a=s.exports},62540:(e,t,n)=>{n.d(t,{Z:()=>y});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),p=n(75215),h=n(65542),f=n(60746),g=n(71630);const x="esri.geometry.support.MeshComponent",d=a.Z.getLogger(x);let m=r=class extends i.wq{constructor(e){super(e),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(e){return(0,p.TJ)(r,e)}castFaces(e){return(0,g.X)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},d)}castMaterial(e){return(0,p.TJ)(e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?f.Z:h.Z,e)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(e,t){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(e,t):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}};(0,o._)([(0,l.Cb)({json:{write:!0}})],m.prototype,"faces",void 0),(0,o._)([(0,c.p)("faces")],m.prototype,"castFaces",null),(0,o._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],m.prototype,"material",void 0),(0,o._)([(0,c.p)("material")],m.prototype,"castMaterial",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"shading",void 0),(0,o._)([(0,l.Cb)({type:Boolean})],m.prototype,"trustSourceNormals",void 0),m=r=(0,o._)([(0,u.j)(x)],m);const y=m},65542:(e,t,n)=>{n.d(t,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(96674),a=n(70586),l=n(5600),c=(n(67676),n(80442),n(75215),n(52011)),u=n(91024);let p=r=class extends s.wq{constructor(e){super(e),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=(0,a.pC)(e)?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return(0,a.pC)(e)&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{color:(0,a.pC)(this.color)?this.color.clone():null,colorTexture:(0,a.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(e):null,normalTexture:(0,a.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(e):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:(0,a.pC)(this.colorTextureTransform)?this.colorTextureTransform:null,normalTextureTransform:(0,a.pC)(this.normalTextureTransform)?this.normalTextureTransform:null}}};(0,o._)([(0,l.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),(0,o._)([(0,l.Cb)()],p.prototype,"colorTextureTransform",void 0),(0,o._)([(0,l.Cb)()],p.prototype,"normalTextureTransform",void 0),p=r=(0,o._)([(0,c.j)("esri.geometry.support.MeshMaterial")],p);const h=p},60746:(e,t,n)=>{n.d(t,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(70586),a=n(5600),l=(n(67676),n(80442),n(75215),n(52011)),c=n(65542),u=n(91024);let p=r=class extends c.Z{constructor(e){super(e),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=(0,s.pC)(e)?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return(0,s.pC)(e)&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{...super.clonePropertiesWithDeduplication(e),emissiveColor:(0,s.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,s.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(e):null,occlusionTexture:(0,s.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(e):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,s.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(e):null,occlusionTextureTransform:(0,s.pC)(this.occlusionTextureTransform)?this.occlusionTextureTransform:null,emissiveTextureTransform:(0,s.pC)(this.emissiveTextureTransform)?this.emissiveTextureTransform:null,metallicRoughnessTextureTransform:(0,s.pC)(this.metallicRoughnessTextureTransform)?this.metallicRoughnessTextureTransform:null}}};(0,o._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,a.Cb)()],p.prototype,"occlusionTextureTransform",void 0),(0,o._)([(0,a.Cb)()],p.prototype,"emissiveTextureTransform",void 0),(0,o._)([(0,a.Cb)()],p.prototype,"metallicRoughnessTextureTransform",void 0),p=r=(0,o._)([(0,l.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const h=p},91024:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(43697);n(80442);let o=null,i=!0;function s(){return o||(o=document.createElement("canvas"),o.width=1,o.height=1),o}function a(e,t,n){return n||(n=s()),n.getContext("2d").createImageData(e,t)}var l,c=n(96674),u=n(5600),p=(n(67676),n(75215)),h=n(71715),f=n(52011),g=n(30556),x=n(25929);const d=new WeakMap;let m=0,y=l=class extends c.wq{constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,n,r){if(e instanceof HTMLImageElement){const o={type:"image-element",src:(0,x.t)(e.src,r),crossOrigin:e.crossOrigin};t[n]=o}else if(e instanceof HTMLCanvasElement){const r=e.getContext("2d").getImageData(0,0,e.width,e.height),o={type:"canvas-element",imageData:this._encodeImageData(r)};t[n]=o}else if(e instanceof HTMLVideoElement){const o={type:"video-element",src:(0,x.t)(e.src,r),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload};t[n]=o}else{const r={type:"image-data",imageData:this._encodeImageData(e)};t[n]=r}}readData(e){switch(e.type){case"image-element":{const t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{const t=this._decodeImageData(e.imageData),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t,0,0),n}case"image-data":return this._decodeImageData(e.imageData);case"video-element":{const t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){const e=this.data,t=this.url;if(e instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(e.getContext("2d").getImageData(0,0,e.width,e.height));if(e instanceof ImageData)return this._imageDataContainsTransparent(e);if(t){const e=t.substr(t.length-4,4).toLowerCase(),n=t.substr(0,15).toLocaleLowerCase();if(".png"===e||"data:image/png;"===n)return!0}return!1}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){const e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null!=this.url?t(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(d.has(this.data)||d.set(this.data,++m),t(d.get(this.data))):t()}clone(){const e={url:this.url,data:this.data,wrap:this._cloneWrap()};return new l(e)}cloneWithDeduplication(e){const t=e.get(this);if(t)return t;const n=this.clone();return e.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(e){let t="";for(let n=0;n<e.data.length;n++)t+=String.fromCharCode(e.data[n]);return{data:btoa(t),width:e.width,height:e.height}}_decodeImageData(e){const t=atob(e.data),n=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return function(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(i)try{return new ImageData(e,t,n)}catch(e){i=!1}const o=a(t,n,void 0);return o.data.set(e,0),o}(n,e.width,e.height)}_imageDataContainsTransparent(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}static from(e){return"string"==typeof e?new l({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new l({data:e}):(0,p.TJ)(l,e)}};(0,r._)([(0,u.Cb)({type:String,json:{write:x.w}})],y.prototype,"url",null),(0,r._)([(0,u.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,u.Cb)()],y.prototype,"data",null),(0,r._)([(0,g.c)("data")],y.prototype,"writeData",null),(0,r._)([(0,h.r)("data")],y.prototype,"readData",null),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,r._)([(0,u.Cb)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],y.prototype,"contentHash",null),y=l=(0,r._)([(0,f.j)("esri.geometry.support.MeshTexture")],y);const v=y},71630:(e,t,n)=>{n.d(t,{Q:()=>f,X:()=>x});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const p="esri.geometry.support.MeshVertexAttributes",h=a.Z.getLogger(p);let f=r=class extends i.wq{constructor(e){super(e),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(e){return x(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},h)}castPosition(e){return e&&e instanceof Float32Array&&h.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),x(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},h)}castUv(e){return x(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},h)}castNormal(e){return x(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},h)}castTangent(e){return x(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},h)}clone(){const e={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(e)}clonePositional(){const e={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(e)}};function g(e,t,n,r){const{loggerTag:o,stride:i}=t;return e.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):e}function x(e,t,n,r,o){if(!e)return e;if(e instanceof t)return g(e,r,t,o);for(const i of n)if(e instanceof i)return g(new t(e),r,t,o);if(Array.isArray(e))return g(new t(e),r,t,o);{const r=n.map((e=>`'${e.name}'`));return o.error(`Failed to set property, expected one of ${r}, but got ${e.constructor.name}`),new t([])}}function d(e,t,n){t[n]=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n];return t}(e)}(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"color",void 0),(0,o._)([(0,c.p)("color")],f.prototype,"castColor",null),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:d}})],f.prototype,"position",void 0),(0,o._)([(0,c.p)("position")],f.prototype,"castPosition",null),(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"uv",void 0),(0,o._)([(0,c.p)("uv")],f.prototype,"castUv",null),(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"normal",void 0),(0,o._)([(0,c.p)("normal")],f.prototype,"castNormal",null),(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"tangent",void 0),(0,o._)([(0,c.p)("tangent")],f.prototype,"castTangent",null),f=r=(0,o._)([(0,u.j)(p)],f)},47545:(e,t,n)=>{n.d(t,{d:()=>o});var r=n(22021);function o(e,t,n){const o=e.byteLength/(4*t),c=new Uint32Array(e,0,o*t);let u=new Uint32Array(o);const p=n?.minReduction??0,h=n?.originalIndices||null,f=h?h.length:0,g=n?.componentOffsets||null;let x=0;if(g)for(let e=0;e<g.length-1;e++){const t=g[e+1]-g[e];t>x&&(x=t)}else x=o;const d=Math.floor(1.1*x)+1;(null==l||l.length<2*d)&&(l=new Uint32Array((0,r.Sf)(2*d)));for(let e=0;e<2*d;e++)l[e]=0;let m=0;const y=!!g&&!!h,v=y?f:o,w=y?new Uint32Array(f):null,b=1.96;let C=0!==p?Math.ceil(4*b*b/(p*p)*p*(1-p)):v,A=1,T=g?g[1]:v;for(let e=0;e<v;e++){if(e===C){const t=1-m/e;if(t+b*Math.sqrt(t*(1-t)/e)<p)return null;C*=2}if(e===T){for(let e=0;e<2*d;e++)l[e]=0;if(h)for(let e=g[A-1];e<g[A];e++)w[e]=u[h[e]];T=g[++A]}const n=y?h[e]:e,r=n*t,o=a(c,r,t);let s=o%d,f=m;for(;0!==l[2*s+1];){if(l[2*s]===o){const e=l[2*s+1]-1;if(i(c,r,e*t,t)){f=u[e];break}}s++,s>=d&&(s-=d)}f===m&&(l[2*s]=o,l[2*s+1]=n+1,m++),u[n]=f}if(0!==p&&1-m/o<p)return null;if(y){for(let e=g[A-1];e<w.length;e++)w[e]=u[h[e]];u=w}const Z=new Uint32Array(t*m);m=0;for(let e=0;e<v;e++)u[e]===m&&(s(c,(y?h[e]:e)*t,Z,m*t,t),m++);if(h&&!y){const e=new Uint32Array(f);for(let t=0;t<e.length;t++)e[t]=u[h[t]];u=e}return{buffer:Z.buffer,indices:u,uniqueCount:m}}function i(e,t,n,r){for(let o=0;o<r;o++)if(e[t+o]!==e[n+o])return!1;return!0}function s(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}function a(e,t,n){let r=0;for(let o=0;o<n;o++)r=e[t+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null},31387:(e,t,n)=>{n.r(t),n.d(t,{meshFeatureSetFromJSON:()=>Le});var r,o,i=n(38171),s=n(70586),a=n(6570),l=n(43697),c=n(20102),u=n(3920),p=n(83379),h=n(92604),f=n(609),g=n(95330),x=n(17445),d=n(5600),m=(n(67676),n(80442),n(75215),n(52011)),y=n(65617),v=n(9361),w=n(94139),b=n(38913),C=n(3709),A=n(62540),T=n(2674),Z=n(71630),_=n(95401),M=n(86662),F=n(47545);function R(e,t,n){const o=e.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0,c=0,u=0,p=0;for(let t=0;t<o;++t)p+=e[t].length;const h=new Float64Array(3*p);let f=0;for(let p=o-1;p>=0;p--){const g=e[p],x=n===r.CCW_IS_HOLE&&I(g);if(x&&1!==o)i[l++]=g;else{let e=g.length;for(let t=0;t<l;++t)e+=i[t].length;const n={index:f,pathLengths:new Array(l+1),count:e,holeIndices:new Array(l)};n.pathLengths[0]=g.length,g.length>0&&(a[u++]={index:f,count:g.length}),f=x?L(g,g.length-1,-1,h,f,g.length,t):L(g,0,1,h,f,g.length,t);for(let e=0;e<l;++e){const r=i[e];n.holeIndices[e]=f,n.pathLengths[e+1]=r.length,r.length>0&&(a[u++]={index:f,count:r.length}),f=L(r,0,1,h,f,r.length,t)}l=0,n.count>0&&(s[c++]=n)}}for(let e=0;e<l;++e){const n=i[e];n.length>0&&(a[u++]={index:f,count:n.length}),f=L(n,0,1,h,f,n.length,t)}return s.length=c,a.length=u,{position:h,polygons:s,outlines:a}}function L(e,t,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=e[t];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,t+=n}return o/3}function I(e){return!(0,M.bu)(e,!1,!1)}(o=r||(r={}))[o.NONE=0]="NONE",o[o.CCW_IS_HOLE=1]="CCW_IS_HOLE";var D=n(44547),O=n(13442),E=n(66459);const P=h.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const j=(0,y.c)(),S=(0,y.c)();var z=n(17452);function N(e){const t=(0,z.Yd)(e.url);return n=>{const r=(0,z.PF)(n,t,t),o=r?r.replace(/^ *\.\//,""):null;return(o?e.files.get(o):null)??n}}async function W(e,t){return e instanceof Blob?U.fromBlob(e):"string"==typeof e?new U(e):Array.isArray(e)?async function(e,t){const n=new Map;let r=null;const o=await(0,g.WW)(e.map((async e=>({name:e.name,source:await W(e instanceof Blob?e:e.source,t)})))),i=[];for(const e of o)e&&((0,g.Hc)(t)?e.source.dispose():i.push(e));(0,g.k_)(t);for(const{name:e,source:t}of i)((0,s.Wi)(r)||/\.(gltf|glb)/i.test(e))&&(r=t.url),n.set(e,t.url),t.files&&t.files.forEach(((e,t)=>n.set(t,e)));if((0,s.Wi)(r))throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new U(r,(()=>i.forEach((({source:e})=>e.dispose()))),n)}(e,t):async function(e,t){const{default:r}=await(0,g.Hl)(Promise.resolve().then(n.bind(n,3172)),t),o="string"==typeof e.multipart[0]?await Promise.all(e.multipart.map((async e=>(await r(e,{responseType:"array-buffer"})).data))):e.multipart;return U.fromBlob(new Blob(o))}(e,t)}class U{constructor(e,t=(()=>{}),n=new Map){this.url=e,this.dispose=t,this.files=n}static fromBlob(e){const t=URL.createObjectURL(e);return new U(t,(()=>URL.revokeObjectURL(t)))}}var k=n(21787),$=n(46521),H=n(13598),B=n(17896),G=n(24678),Y=n(56493);function q(e,t){if(e)for(let n=0;n<e.length;n+=3)for(let r=0;r<3;r++)e[n+r]+=t[r]}const V=(0,y.c)(),X=(0,H.c)(),K=(0,$.c)(),J={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function Q(e,t,n){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null==t)return;const n="number"==typeof t?[t,t,t]:[null!=t.width?t.width:1,null!=t.depth?t.depth:1,null!=t.height?t.height:1];re[0]=n[0],re[4]=n[1],re[8]=n[2];for(let t=0;t<e.position.length;t+=3){for(let n=0;n<3;n++)ne[n]=e.position[t+n];(0,B.t)(ne,ne,re);for(let n=0;n<3;n++)e.position[t+n]=ne[n]}if(n[0]!==n[1]||n[1]!==n[2]){re[0]=1/n[0],re[4]=1/n[1],re[8]=1/n[2];for(let t=0;t<e.normal.length;t+=3){for(let n=0;n<3;n++)ne[n]=e.normal[t+n];(0,B.t)(ne,ne,re),(0,B.n)(ne,ne);for(let n=0;n<3;n++)e.normal[t+n]=ne[n]}}}(e,n?.size);const{vertexAttributes:r,transform:o}=(0,E.w1)(e,t,n);return{vertexAttributes:new Z.Q({...r,uv:e.uv}),transform:o,components:[new A.Z({faces:e.faces,material:n&&n.material||null})],spatialReference:t.spatialReference}}const ee={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},te={south:0,east:1,north:2,west:3,up:4,down:5},ne=(0,y.c)(),re=(0,$.c)();var oe=n(52138);const ie=h.Z.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,n,r=y.Z){if(!(0,s.Wi)(e)){(0,oe.d)(ue,(0,C.WH)(t),(0,C.ZZ)(t));for(let t=0;t<e.length;t+=n){for(let n=0;n<3;n++)ae[n]=e[t+n]-r[n];(0,B.m)(ae,ae,ue);for(let n=0;n<3;n++)e[t+n]=ae[n]+r[n]}}}const ae=(0,y.c)(),le=(0,y.c)(),ce=(0,C.Ue)(),ue=(0,H.c)(),pe=(0,$.c)(),he=(0,y.c)(),fe=h.Z.getLogger("esri.geometry.support.meshUtils.scale");function ge(e,t,n=y.Z){if(e)for(let r=0;r<e.length;r+=3){for(let t=0;t<3;t++)xe[t]=e[r+t]-n[t];(0,B.g)(xe,xe,t);for(let t=0;t<3;t++)e[r+t]=xe[t]+n[t]}}const xe=(0,y.c)(),de=(0,y.c)(),me=(0,y.c)();var ye;const ve="esri.geometry.Mesh";let we=ye=class extends((0,u.p)(p.Z.LoadableMixin((0,f.v)(v.Z)))){constructor(e){super(e),this.components=null,this.transform=null,this.external=null,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Z.Q,this.type="mesh"}initialize(){((0,s.Wi)(this.external)||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add((0,x.YP)((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((e=>e.clone())),transform:(0,s.pC)(this.transform)?this.transform.clone():null})),(()=>this._set("external",null)),{once:!0,sync:!0}))}))}get hasExtent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get _boundingInfo(){const e=this.vertexAttributes.position,t=this.spatialReference;if(0===e.length||this.components&&0===this.components.length)return{extent:new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:t}),center:new w.Z({x:0,y:0,z:0,spatialReference:t})};const n=(0,s.pC)(this.transform)?this.transform.project(e,t):e;let r=1/0,o=1/0,i=1/0,l=-1/0,c=-1/0,u=-1/0,p=0,h=0,f=0;const g=n.length,x=1/(g/3);let d=0;for(;d<g;){const e=n[d++],t=n[d++],s=n[d++];r=Math.min(r,e),o=Math.min(o,t),i=Math.min(i,s),l=Math.max(l,e),c=Math.max(c,t),u=Math.max(u,s),p+=x*e,h+=x*t,f+=x*s}return{extent:new a.Z({xmin:r,ymin:o,zmin:i,xmax:l,ymax:c,zmax:u,spatialReference:t}),center:new w.Z({x:p,y:h,z:f,spatialReference:t})}}get anchor(){if((0,s.pC)(this.transform))return this.transform.getOriginPoint(this.spatialReference);const e=this._boundingInfo;return new w.Z({x:e.center.x,y:e.center.y,z:e.extent.zmin,spatialReference:this.spatialReference})}get origin(){return(0,s.pC)(this.transform)?this.transform.getOriginPoint(this.spatialReference):this._boundingInfo.center}get extent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)?this.external.extent.clone():this._boundingInfo.extent}addComponent(e){this.loaded?(this.components||(this.components=[]),this.components.push(A.Z.from(e)),this.notifyChange("components")):h.Z.getLogger(this.declaredClass).error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(e){if(this.loaded){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}h.Z.getLogger(this.declaredClass).error("removeComponent()","Provided component is not part of the list of components")}else h.Z.getLogger(this.declaredClass).error("removeComponent()","Mesh must be loaded before applying operations")}rotate(e,t,n,r){return(0,C.uT)(be.x,e,Ce),(0,C.uT)(be.y,t,Ae),(0,C.uT)(be.z,n,Te),(0,C.qC)(Ce,Ae,Ce),(0,C.qC)(Ce,Te,Ce),function(e,t,n){if(!e.vertexAttributes||!e.vertexAttributes.position||0===t[3])return;const r=e.spatialReference;if((0,s.pC)(e.transform)){null!=n?.geographic&&n.geographic!==e.transform.geographic&&ie.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`);const o=n?.origin??e.transform.getOriginPoint(r);!function(e,t,n){const r=(0,B.s)(ae,n.x,n.y,n.z),o=(0,B.b)(ae,r,e.origin);e.applyLocalInverse(o,le),e.rotation=(0,C.qC)(e.rotation,t,(0,C.Ue)()),e.applyLocalInverse(o,o),(0,B.b)(o,o,le),e.translation=(0,B.a)((0,y.c)(),e.translation,o)}(e.transform,t,o)}else{const r=n?.origin??e.origin;(0,O.h)(e.spatialReference,n)?function(e,t,n){const r=e.spatialReference,o=(0,G.rS)(r),i=he;(0,D.KC)(n,i,o)||(0,D.KC)(e.origin,i,o);const a=e.vertexAttributes.position,l=e.vertexAttributes.normal,c=e.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,D.Bm)(o,i,ue,o),(0,k.f)(pe,ue);const f=ce;(0,B.t)((0,C.ZZ)(ce),(0,C.ZZ)(t),pe),f[3]=t[3],(0,Y.XO)(a,r,u),(0,s.pC)(l)&&(0,s.pC)(p)&&(0,Y.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,s.pC)(h)&&(0,Y.wi)(c,a,u,r,h),se(u,f,3,i),(0,Y.To)(u,a,r),(0,s.pC)(l)&&(0,s.pC)(p)&&(se(p,f,3),(0,Y.Yk)(p,a,u,r,l)),(0,s.pC)(c)&&(0,s.pC)(h)&&(se(h,f,4),(0,Y.M2)(h,a,u,r,c)),e.vertexAttributesChanged()}(e,t,r):function(e,t,n){const r=he;if(!(0,D.KC)(n,r,e.spatialReference)){const t=e.origin;r[0]=t.x,r[1]=t.y,r[2]=t.z,ie.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}).`)}se(e.vertexAttributes.position,t,3,r),se(e.vertexAttributes.normal,t,3),se(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,r)}}(this,Ce,r),this}offset(e,t,n,r){return this.loaded?(Ze[0]=e,Ze[1]=t,Ze[2]=n,function(e,t,n){e.vertexAttributes&&e.vertexAttributes.position&&((0,s.pC)(e.transform)?(null!=n?.geographic&&n.geographic!==e.transform.geographic&&h.Z.getLogger("esri.geometry.support.meshUtils.offset").warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`),function(e,t){const n=e.origin;e.origin=(0,B.a)((0,y.c)(),n,t)}(e.transform,t)):(0,O.h)(e.spatialReference,n)?function(e,t){const n=e.spatialReference,r=e.vertexAttributes.position,o=e.vertexAttributes.normal,i=e.vertexAttributes.tangent,a=new Float64Array(r.length),l=(0,s.pC)(o)?new Float32Array(o.length):null,c=(0,s.pC)(i)?new Float32Array(i.length):null,u=e.extent.center,p=V;(0,D.Bm)(n,[u.x,u.y,u.z],X,(0,G.rS)(n)),(0,k.f)(K,X),(0,B.t)(p,t,K),(0,Y.XO)(r,n,a),(0,s.pC)(o)&&(0,s.pC)(l)&&(0,Y.Iz)(o,r,a,n,l),(0,s.pC)(i)&&(0,s.pC)(c)&&(0,Y.wi)(i,r,a,n,c),q(a,p),(0,Y.To)(a,r,n),(0,s.pC)(o)&&(0,s.pC)(l)&&(0,Y.Yk)(l,r,a,n,o),(0,s.pC)(i)&&(0,s.pC)(c)&&(0,Y.M2)(c,r,a,n,i),e.vertexAttributesChanged()}(e,t):function(e,t){q(e.vertexAttributes.position,t),e.vertexAttributesChanged()}(e,t))}(this,Ze,r),this):(h.Z.getLogger(this.declaredClass).error("offset()","Mesh must be loaded before applying operations"),this)}scale(e,t){return this.loaded?(function(e,t,n){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const r=e.spatialReference;if((0,s.pC)(e.transform)){null!=n?.geographic&&n.geographic!==e.transform.geographic&&fe.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`);const o=n?.origin??e.transform.getOriginPoint(r);!function(e,t,n){const r=(0,B.s)(xe,n.x,n.y,n.z),o=(0,B.b)(xe,r,e.origin);e.applyLocalInverse(o,de);const i=(0,B.g)((0,y.c)(),e.scale,t);e.scale=i,e.applyLocalInverse(o,o),(0,B.b)(o,o,de),e.translation=(0,B.a)((0,y.c)(),e.translation,o)}(e.transform,t,o)}else{const r=(0,O.h)(e.spatialReference,n),o=n&&n.origin||e.origin;r?function(e,t,n){const r=e.spatialReference,o=(0,G.rS)(r),i=me;(0,D.KC)(n,i,o)||(0,D.KC)(e.origin,i,o);const a=e.vertexAttributes.position,l=e.vertexAttributes.normal,c=e.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,Y.XO)(a,r,u),(0,s.pC)(l)&&(0,s.pC)(p)&&(0,Y.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,s.pC)(h)&&(0,Y.wi)(c,a,u,r,h),ge(u,t,i),(0,Y.To)(u,a,r),(0,s.pC)(l)&&(0,s.pC)(p)&&(0,Y.Yk)(p,a,u,r,l),(0,s.pC)(c)&&(0,s.pC)(h)&&(0,Y.M2)(h,a,u,r,c),e.vertexAttributesChanged()}(e,t,o):function(e,t,n){const r=me;if(!(0,D.KC)(n,r,e.spatialReference)){const t=e.origin;r[0]=t.x,r[1]=t.y,r[2]=t.z,fe.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}).`)}ge(e.vertexAttributes.position,t,r),e.vertexAttributesChanged()}(e,t,o)}}(this,e,t),this):(h.Z.getLogger(this.declaredClass).error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(e,t){return this.loaded?(function(e,t,n){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const r=n?.origin??e.origin;(0,s.pC)(e.transform)?(null!=n?.geographic&&n.geographic!==e.transform.geographic&&P.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`),function(e,t,n){const r=t.x-n.x,o=t.y-n.y,i=t.hasZ&&n.hasZ?t.z-n.z:0,s=e.origin;e.origin=[s[0]+r,s[1]+o,s[2]+i]}(e.transform,t,r)):(0,O.h)(e.spatialReference,n)?function(e,t,n){const r=(0,E.FF)(e.vertexAttributes,n,{geographic:!0}),{position:o,normal:i,tangent:s}=(0,E.iv)(r,t,{geographic:!0});e.vertexAttributes.position=o,e.vertexAttributes.normal=i,e.vertexAttributes.tangent=s,e.vertexAttributesChanged()}(e,t,r):function(e,t,n){const r=S,o=j;if((0,D.KC)(t,o,e.spatialReference)){if(!(0,D.KC)(n,r,e.spatialReference)){const t=e.origin;r[0]=t.x,r[1]=t.y,r[2]=t.z,P.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}).`)}(function(e,t,n){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-n[o]})(e.vertexAttributes.position,o,r),e.vertexAttributesChanged()}else P.error(`Failed to project centerAt location (wkid:${t.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid})`)}(e,t,r)}(this,e,t),this):(h.Z.getLogger(this.declaredClass).error("centerAt()","Mesh must be loaded before applying operations"),this)}load(e){return(0,s.pC)(this.external)&&this.addResolvingPromise(async function(e,t,r){const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r),i=await W(t,r),a=o(new w.Z({x:0,y:0,z:0,spatialReference:e.spatialReference}),i.url,{resolveFile:N(i),useTransform:!0,signal:(0,s.pC)(r)?r.signal:null});a.then((()=>i.dispose()),(()=>i.dispose()));const{vertexAttributes:l,components:c}=await a;e.vertexAttributes=l,e.components=c}(this,this.external.source,e)),Promise.resolve(this)}clone(){let e=null;if(this.components){const t=new Map,n=new Map;e=this.components.map((e=>e.cloneWithDeduplication(t,n)))}const t={components:e,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,s.pC)(this.transform)?this.transform.clone():null,external:(0,s.pC)(this.external)?{source:this.external.source,extent:(0,s.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new ye(t)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const{toBinaryGLTF:t}=await n.e(7277).then(n.bind(n,7277));return t(this,e)}static createBox(e,t){if(!(e instanceof w.Z))return h.Z.getLogger(ve).error(".createBox()","expected location to be a Point instance"),null;const n=new ye(Q(function(){const{faceDescriptions:e,faceVertexOffsets:t,uvScales:n}=ee,r=4*e.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*e.length*3);let l=0,c=0,u=0,p=0;for(let r=0;r<e.length;r++){const h=e[r],f=l/3;for(const e of t)a[p++]=f+e;const g=h.corners;for(let e=0;e<4;e++){const t=g[e];let r=0;s[u++]=.25*n[e][0]+h.uvOrigin[0],s[u++]=h.uvOrigin[1]-.25*n[e][1];for(let e=0;e<3;e++)0!==h.axis[e]?(o[l++]=.5*h.axis[e],i[c++]=h.axis[e]):(o[l++]=.5*t[r++],i[c++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),e,t));return t&&t.imageFace&&"all"!==t.imageFace?function(e,t){const n=e.components[0],r=n.faces,o=te[t],i=6*o,a=new Array(6),l=new Array(r.length-6);let c=0,u=0;for(let e=0;e<r.length;e++)e>=i&&e<i+6?a[c++]=r[e]:l[u++]=r[e];if((0,s.pC)(e.vertexAttributes.uv)){const t=new Float32Array(e.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let e=0;e<r.length;e++)t[n+e]=r[e];e.vertexAttributes.uv=t}return e.components=[new A.Z({faces:a,material:n.material}),new A.Z({faces:l})],e}(n,t.imageFace):n}static createSphere(e,t){return e instanceof w.Z?new ye(Q(function(e=0){const t=Math.round(8*2**e),n=2*t,r=(t-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((t-1)*n*2*3);let l=0,c=0,u=0,p=0;for(let e=0;e<=t;e++){const r=e/t*Math.PI+.5*Math.PI,h=Math.cos(r),f=Math.sin(r);ne[2]=f;const g=0===e||e===t,x=g?n-1:n;for(let r=0;r<=x;r++){const f=r/x*2*Math.PI;ne[0]=-Math.sin(f)*h,ne[1]=Math.cos(f)*h;for(let e=0;e<3;e++)o[l]=.5*ne[e],i[l]=ne[e],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=e/t,0!==e&&r!==n&&(e!==t&&(a[u++]=p,a[u++]=p+1,a[u++]=p-n),1!==e&&(a[u++]=p,a[u++]=p-n,a[u++]=p-n-1)),p++}}return{position:o,normal:i,uv:s,faces:a}}(t&&t.densificationFactor||0),e,t)):(h.Z.getLogger(ve).error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(e,t){return e instanceof w.Z?new ye(Q(function(e=0){const t=Math.round(16*2**e),n=4*(t+1)+2*t,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*t*3);let a=0,l=0,c=0,u=0,p=0;for(let e=0;e<=5;e++){const n=0===e||5===e,h=e<=1||e>=4,f=2===e||4===e,g=n?t-1:t;for(let x=0;x<=g;x++){const d=x/g*2*Math.PI,m=n?0:.5;ne[0]=m*Math.sin(d),ne[1]=m*-Math.cos(d),ne[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)r[a++]=ne[t],o[l++]=h?2===t?e<=1?1:-1:0:2===t?0:ne[t]/m;i[c++]=(x+(n?.5:0))/t,i[c++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,f||0===e||x===t||(5!==e&&(s[u++]=p,s[u++]=p+1,s[u++]=p-t),1!==e&&(s[u++]=p,s[u++]=p-t,s[u++]=p-t-1)),p++}}return{position:r,normal:o,uv:i,faces:s}}(t&&t.densificationFactor||0),e,t)):(h.Z.getLogger(ve).error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(e,t){if(!(e instanceof w.Z))return h.Z.getLogger(ve).error(".createPlane()","expected location to be a Point instance"),null;const n=t?.facing??"up",r=function(e,t){const n="number"==typeof t?t:null!=t?t.width:1,r="number"==typeof t?t:null!=t?t.height:1;switch(e){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(n,t?.size);return new ye(Q(function(e){const t=J.facingAxisOrderSwap[e],n=J.position,r=J.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let e=0;e<4;e++){const e=s;for(let a=0;a<3;a++){const l=t[a],c=Math.abs(l)-1,u=l>=0?1:-1;o[s]=n[e+c]*u,i[s]=r[e+c]*u,s++}}return{position:o,normal:i,uv:new Float32Array(J.uv),faces:new Uint32Array(J.faces),isPlane:!0}}(n),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof b.Z))return h.Z.getLogger(ve).error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(e){const t=R(e.rings,e.hasZ,r.CCW_IS_HOLE),n=new Array;let o=0,i=0;for(const e of t.polygons){const r=e.count,s=e.index,a=new Float64Array(t.position.buffer,3*s*t.position.BYTES_PER_ELEMENT,3*r),l=e.holeIndices.map((e=>e-s)),c=new Uint32Array((0,_.e)(a,l,3));n.push({position:a,faces:c}),o+=a.length,i+=c.length}const s=function(e,t,n){if(1===e.length)return e[0];const r=new Float64Array(t),o=new Uint32Array(n);let i=0,s=0,a=0;for(const t of e){for(let e=0;e<t.position.length;e++)r[i++]=t.position[e];for(let e=0;e<t.faces.length;e++)o[s++]=t.faces[e]+a;a=i/3}return{position:r,faces:o}}(n,o,i),a=(0,F.d)(s.position.buffer,6,{originalIndices:s.faces});return s.position=new Float64Array(a.buffer),s.faces=a.indices,s}(e);return new ye({vertexAttributes:new Z.Q({position:n.position}),components:[new A.Z({faces:n.faces,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference})}static async createFromGLTF(e,t,r){if(!(e instanceof w.Z))throw h.Z.getLogger(ve).error(".createfromGLTF()","expected location to be a Point instance"),new c.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r);return new ye(await o(e,t,r))}static createWithExternalSource(e,t,n){const r=n?.extent??null,o=n?.transform?.clone()??new T.Z;o.origin=[e.x,e.y,e.z??0];const i=e.spatialReference;return new ye({external:{source:t,extent:r},transform:o,spatialReference:i})}static createIncomplete(e,t){const n=t?.transform?.clone()??new T.Z;n.origin=[e.x,e.y,e.z??0];const r=e.spatialReference,o=new ye({transform:n,spatialReference:r});return o.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),o}};(0,l._)([(0,d.Cb)({type:[A.Z],json:{write:!0}})],we.prototype,"components",void 0),(0,l._)([(0,d.Cb)({type:T.Z,json:{write:!0}})],we.prototype,"transform",void 0),(0,l._)([(0,d.Cb)({constructOnly:!0})],we.prototype,"external",void 0),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"hasExtent",null),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"_boundingInfo",null),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"anchor",null),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"origin",null),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],we.prototype,"extent",null),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],we.prototype,"hasZ",void 0),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],we.prototype,"hasM",void 0),(0,l._)([(0,d.Cb)({type:Z.Q,nonNullable:!0,json:{write:!0}})],we.prototype,"vertexAttributes",void 0),we=ye=(0,l._)([(0,m.j)(ve)],we);const be={x:(0,y.f)(1,0,0),y:(0,y.f)(0,1,0),z:(0,y.f)(0,0,1)},Ce=(0,C.Ue)(),Ae=(0,C.Ue)(),Te=(0,C.Ue)(),Ze=(0,y.c)(),_e=we;var Me,Fe,Re=n(74889);function Le(e,t,n){const r=n.features;n.features=[],delete n.geometryType;const o=Re.default.fromJSON(n);if(o.geometryType="mesh",!n.assetMaps)return o;const a=function(e,t){const n=new Map;for(const e of t){const t=e.parentGlobalId;if(null==t)continue;const r=e.assetName,o=e.assetURL,i=e.conversionStatus;let s=n.get(t);if(null!=s)throw new Error("multiple asset parts not expected.");switch(s={name:r,status:Me.FAILED,url:o,geographic:De(e.flags).projectVertices},n.set(t,s),i){case"COMPLETED":case"SUBMITTED":s.status=Me.COMPLETED;break;case"INPROGRESS":s.status=Me.PENDING;break;default:s.status=Me.FAILED}}return n}(0,n.assetMaps),l=o.spatialReference,c=n.globalIdFieldName,u=(0,s.Wi)(e.outFields)||!e.outFields.length?()=>({}):(p=e.outFields.includes("*")?null:new Set(e.outFields),({attributes:e})=>{if(!e)return{};if(!p)return e;for(const t in e)p.has(t)||delete e[t];return e});var p;for(const e of r){const n=Ie(e,c,l,t,a);(0,s.pC)(n)&&o.features.push(new i.Z({geometry:n,attributes:u(e)}))}return o}function Ie(e,t,n,r,o){const i=e.attributes[t],s=o.get(i);if(null==s||s.status===Me.FAILED||null==s.url)return null;const l=function({attributes:e},t,{transformFieldRoles:n}){return new w.Z({x:e[n.originX],y:e[n.originY],z:e[n.originZ],spatialReference:t})}(e,n,r),c=a.Z.fromJSON(e.geometry);c.spatialReference=n;const u=function(e,{transformFieldRoles:t},n){return new T.Z({translation:[e[t.translationX],e[t.translationY],e[t.translationZ]],rotation:(0,C.uT)([e[t.rotationX],e[t.rotationY],e[t.rotationZ]],e[t.rotationDeg]),scale:[e[t.scaleX],e[t.scaleY],e[t.scaleZ]],geographic:n})}(e.attributes,r,s.geographic);return s.status===Me.PENDING?_e.createIncomplete(l,{extent:c,transform:u}):_e.createWithExternalSource(l,[{name:s.name,source:s.url}],{extent:c,transform:u})}function De(e){return{projectVertices:e.includes("PROJECT_VERTICES")}}(Fe=Me||(Me={}))[Fe.FAILED=0]="FAILED",Fe[Fe.PENDING=1]="PENDING",Fe[Fe.COMPLETED=2]="COMPLETED"}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1387],{95401:(e,t,n)=>{n.d(t,{e:()=>a});var r,o,i,s={exports:{}};r=s,o=function(){function e(e,n,o){o=o||2;var i,s,a,c,u,p,h,f=n&&n.length,g=f?n[0]*o:e.length,x=t(e,0,g,o,!0),d=[];if(!x||x.next===x.prev)return d;if(f&&(x=l(e,n,x,o)),e.length>80*o){i=a=e[0],s=c=e[1];for(var m=o;m<g;m+=o)(u=e[m])<i&&(i=u),(p=e[m+1])<s&&(s=p),u>a&&(a=u),p>c&&(c=p);h=0!==(h=Math.max(a-i,c-s))?1/h:0}return r(x,d,o,i,s,h),d}function t(e,t,n,r,o){var i,s;if(o===F(e,t,n,r)>0)for(i=t;i<n;i+=r)s=Z(i,e[i],e[i+1],s);else for(i=n-r;i>=t;i-=r)s=Z(i,e[i],e[i+1],s);if(s&&v(s,s.next)){var a=s.next;_(s),s=a}return s}function n(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(_(r),(r=t=o)===r.next)break;n=!0}}while(n||r!==t);return t}function r(e,t,l,c,u,p,h){if(e){!h&&p&&f(e,c,u,p);for(var g,x,d=e;e.prev!==e.next;)if(g=e.prev,x=e.next,p?i(e,c,u,p):o(e))t.push(g.i/l),t.push(e.i/l),t.push(x.i/l),_(e),e=x.next,d=x.next;else if((e=x)===d){h?1===h?r(e=s(n(e),t,l),t,l,c,u,p,2):2===h&&a(e,t,l,c,u,p):r(n(e),t,l,c,u,p,1);break}}}function o(e){var t=e.prev,n=e,r=e.next;if(y(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(d(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&y(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(e,t,n,r){var o=e.prev,i=e,s=e.next;if(y(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,c=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,u=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,p=g(a,l,t,n,r),h=g(c,u,t,n,r),f=e.prevZ,x=e.nextZ;f&&f.z>=p&&x&&x.z<=h;){if(f!==e.prev&&f!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,x!==e.prev&&x!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;f&&f.z>=p;){if(f!==e.prev&&f!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;x&&x.z<=h;){if(x!==e.prev&&x!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function s(e,t,r){var o=e;do{var i=o.prev,s=o.next.next;!v(i,s)&&w(i,o,o.next,s)&&A(i,s)&&A(s,i)&&(t.push(i.i/r),t.push(o.i/r),t.push(s.i/r),_(o),_(o.next),o=e=s),o=o.next}while(o!==e);return n(o)}function a(e,t,o,i,s,a){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=T(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,t,o,i,s,a),void r(u,t,o,i,s,a)}c=c.next}l=l.next}while(l!==e)}function l(e,r,o,i){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=t(e,r[s]*i,s<a-1?r[s+1]*i:e.length,i,!1))===l.next&&(l.steiner=!0),u.push(x(l));for(u.sort(c),s=0;s<u.length;s++)o=n(o=p(u[s],o),o.next);return o}function c(e,t){return e.x-t.x}function u(e){if(e.next.prev===e)return e;let t=e;for(;;){const n=t.next;if(n.prev===t||n===t||n===e)break;t=n}return t}function p(e,t){var r=function(e,t){var n,r=t,o=e.x,i=e.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===s)return n;var l,c=n,u=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=u&&o!==r.x&&d(i<p?o:s,i,u,p,i<p?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),A(r,e)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(e,t);if(!r)return t;var o=T(r,e),i=n(r,r.next);let s=u(o);return n(s,s.next),i=u(i),u(t===r?i:t)}function h(e,t){return y(e.prev,e,t.prev)<0&&y(t.next,e,e.next)<0}function f(e,t,n,r){var o=e;do{null===o.z&&(o.z=g(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,s,a,l,c=1;do{for(n=e,e=null,i=null,s=0;n;){for(s++,r=n,a=0,t=0;t<c&&(a++,r=r.nextZ);t++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,c*=2}while(s>1)}(o)}function g(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function x(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function d(e,t,n,r,o,i,s,a){return(o-s)*(t-a)-(e-s)*(i-a)>=0&&(e-s)*(r-a)-(n-s)*(t-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function m(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&w(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(A(e,t)&&A(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(y(e.prev,e,t.prev)||y(e,t.prev,t))||v(e,t)&&y(e.prev,e,e.next)>0&&y(t.prev,t,t.next)>0)}function y(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function v(e,t){return e.x===t.x&&e.y===t.y}function w(e,t,n,r){var o=C(y(e,t,n)),i=C(y(e,t,r)),s=C(y(n,r,e)),a=C(y(n,r,t));return o!==i&&s!==a||!(0!==o||!b(e,n,t))||!(0!==i||!b(e,r,t))||!(0!==s||!b(n,e,r))||!(0!==a||!b(n,t,r))}function b(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function C(e){return e>0?1:e<0?-1:0}function A(e,t){return y(e.prev,e,e.next)<0?y(e,t,e.next)>=0&&y(e,e.prev,t)>=0:y(e,t,e.prev)<0||y(e,e.next,t)<0}function T(e,t){var n=new M(e.i,e.x,e.y),r=new M(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Z(e,t,n,r){var o=new M(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function _(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function M(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(e,t,n,r){for(var o=0,i=t,s=n-r;i<n;i+=r)o+=(e[s]-e[i])*(e[i+1]+e[s+1]),s=i;return o}return e.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,s=Math.abs(F(e,0,i,n));if(o)for(var a=0,l=t.length;a<l;a++){var c=t[a]*n,u=a<l-1?t[a+1]*n:e.length;s-=Math.abs(F(e,c,u,n))}var p=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,f=r[a+1]*n,g=r[a+2]*n;p+=Math.abs((e[h]-e[g])*(e[f+1]-e[h+1])-(e[h]-e[f])*(e[g+1]-e[h+1]))}return 0===s&&0===p?0:Math.abs((p-s)/s)},e.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var s=0;s<t;s++)n.vertices.push(e[o][i][s]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n},e},void 0!==(i=o())&&(r.exports=i);const a=s.exports},62540:(e,t,n)=>{n.d(t,{Z:()=>y});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),p=n(75215),h=n(65542),f=n(60746),g=n(71630);const x="esri.geometry.support.MeshComponent",d=a.Z.getLogger(x);let m=r=class extends i.wq{constructor(e){super(e),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(e){return(0,p.TJ)(r,e)}castFaces(e){return(0,g.X)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},d)}castMaterial(e){return(0,p.TJ)(e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?f.Z:h.Z,e)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(e,t){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(e,t):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}};(0,o._)([(0,l.Cb)({json:{write:!0}})],m.prototype,"faces",void 0),(0,o._)([(0,c.p)("faces")],m.prototype,"castFaces",null),(0,o._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],m.prototype,"material",void 0),(0,o._)([(0,c.p)("material")],m.prototype,"castMaterial",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"shading",void 0),(0,o._)([(0,l.Cb)({type:Boolean})],m.prototype,"trustSourceNormals",void 0),m=r=(0,o._)([(0,u.j)(x)],m);const y=m},65542:(e,t,n)=>{n.d(t,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(96674),a=n(70586),l=n(5600),c=(n(67676),n(80442),n(75215),n(52011)),u=n(91024);let p=r=class extends s.wq{constructor(e){super(e),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=(0,a.pC)(e)?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return(0,a.pC)(e)&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{color:(0,a.pC)(this.color)?this.color.clone():null,colorTexture:(0,a.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(e):null,normalTexture:(0,a.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(e):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:(0,a.pC)(this.colorTextureTransform)?this.colorTextureTransform:null,normalTextureTransform:(0,a.pC)(this.normalTextureTransform)?this.normalTextureTransform:null}}};(0,o._)([(0,l.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),(0,o._)([(0,l.Cb)()],p.prototype,"colorTextureTransform",void 0),(0,o._)([(0,l.Cb)()],p.prototype,"normalTextureTransform",void 0),p=r=(0,o._)([(0,c.j)("esri.geometry.support.MeshMaterial")],p);const h=p},60746:(e,t,n)=>{n.d(t,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(70586),a=n(5600),l=(n(67676),n(80442),n(75215),n(52011)),c=n(65542),u=n(91024);let p=r=class extends c.Z{constructor(e){super(e),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=(0,s.pC)(e)?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return(0,s.pC)(e)&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{...super.clonePropertiesWithDeduplication(e),emissiveColor:(0,s.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,s.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(e):null,occlusionTexture:(0,s.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(e):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,s.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(e):null,occlusionTextureTransform:(0,s.pC)(this.occlusionTextureTransform)?this.occlusionTextureTransform:null,emissiveTextureTransform:(0,s.pC)(this.emissiveTextureTransform)?this.emissiveTextureTransform:null,metallicRoughnessTextureTransform:(0,s.pC)(this.metallicRoughnessTextureTransform)?this.metallicRoughnessTextureTransform:null}}};(0,o._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,a.Cb)()],p.prototype,"occlusionTextureTransform",void 0),(0,o._)([(0,a.Cb)()],p.prototype,"emissiveTextureTransform",void 0),(0,o._)([(0,a.Cb)()],p.prototype,"metallicRoughnessTextureTransform",void 0),p=r=(0,o._)([(0,l.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const h=p},91024:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(43697);n(80442);let o=null,i=!0;function s(){return o||(o=document.createElement("canvas"),o.width=1,o.height=1),o}function a(e,t,n){return n||(n=s()),n.getContext("2d").createImageData(e,t)}var l,c=n(96674),u=n(5600),p=(n(67676),n(75215)),h=n(71715),f=n(52011),g=n(30556),x=n(25929);const d=new WeakMap;let m=0,y=l=class extends c.wq{constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,n,r){if(e instanceof HTMLImageElement){const o={type:"image-element",src:(0,x.t)(e.src,r),crossOrigin:e.crossOrigin};t[n]=o}else if(e instanceof HTMLCanvasElement){const r=e.getContext("2d").getImageData(0,0,e.width,e.height),o={type:"canvas-element",imageData:this._encodeImageData(r)};t[n]=o}else if(e instanceof HTMLVideoElement){const o={type:"video-element",src:(0,x.t)(e.src,r),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload};t[n]=o}else{const r={type:"image-data",imageData:this._encodeImageData(e)};t[n]=r}}readData(e){switch(e.type){case"image-element":{const t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{const t=this._decodeImageData(e.imageData),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t,0,0),n}case"image-data":return this._decodeImageData(e.imageData);case"video-element":{const t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){const e=this.data,t=this.url;if(e instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(e.getContext("2d").getImageData(0,0,e.width,e.height));if(e instanceof ImageData)return this._imageDataContainsTransparent(e);if(t){const e=t.substr(t.length-4,4).toLowerCase(),n=t.substr(0,15).toLocaleLowerCase();if(".png"===e||"data:image/png;"===n)return!0}return!1}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){const e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null!=this.url?t(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(d.has(this.data)||d.set(this.data,++m),t(d.get(this.data))):t()}clone(){const e={url:this.url,data:this.data,wrap:this._cloneWrap()};return new l(e)}cloneWithDeduplication(e){const t=e.get(this);if(t)return t;const n=this.clone();return e.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(e){let t="";for(let n=0;n<e.data.length;n++)t+=String.fromCharCode(e.data[n]);return{data:btoa(t),width:e.width,height:e.height}}_decodeImageData(e){const t=atob(e.data),n=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return function(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(i)try{return new ImageData(e,t,n)}catch(e){i=!1}const o=a(t,n,void 0);return o.data.set(e,0),o}(n,e.width,e.height)}_imageDataContainsTransparent(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}static from(e){return"string"==typeof e?new l({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new l({data:e}):(0,p.TJ)(l,e)}};(0,r._)([(0,u.Cb)({type:String,json:{write:x.w}})],y.prototype,"url",null),(0,r._)([(0,u.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,u.Cb)()],y.prototype,"data",null),(0,r._)([(0,g.c)("data")],y.prototype,"writeData",null),(0,r._)([(0,h.r)("data")],y.prototype,"readData",null),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,r._)([(0,u.Cb)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],y.prototype,"contentHash",null),y=l=(0,r._)([(0,f.j)("esri.geometry.support.MeshTexture")],y);const v=y},71630:(e,t,n)=>{n.d(t,{Q:()=>f,X:()=>x});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const p="esri.geometry.support.MeshVertexAttributes",h=a.Z.getLogger(p);let f=r=class extends i.wq{constructor(e){super(e),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(e){return x(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},h)}castPosition(e){return e&&e instanceof Float32Array&&h.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),x(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},h)}castUv(e){return x(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},h)}castNormal(e){return x(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},h)}castTangent(e){return x(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},h)}clone(){const e={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(e)}clonePositional(){const e={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(e)}};function g(e,t,n,r){const{loggerTag:o,stride:i}=t;return e.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):e}function x(e,t,n,r,o){if(!e)return e;if(e instanceof t)return g(e,r,t,o);for(const i of n)if(e instanceof i)return g(new t(e),r,t,o);if(Array.isArray(e))return g(new t(e),r,t,o);{const r=n.map((e=>`'${e.name}'`));return o.error(`Failed to set property, expected one of ${r}, but got ${e.constructor.name}`),new t([])}}function d(e,t,n){t[n]=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n];return t}(e)}(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"color",void 0),(0,o._)([(0,c.p)("color")],f.prototype,"castColor",null),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:d}})],f.prototype,"position",void 0),(0,o._)([(0,c.p)("position")],f.prototype,"castPosition",null),(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"uv",void 0),(0,o._)([(0,c.p)("uv")],f.prototype,"castUv",null),(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"normal",void 0),(0,o._)([(0,c.p)("normal")],f.prototype,"castNormal",null),(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"tangent",void 0),(0,o._)([(0,c.p)("tangent")],f.prototype,"castTangent",null),f=r=(0,o._)([(0,u.j)(p)],f)},47545:(e,t,n)=>{n.d(t,{d:()=>o});var r=n(22021);function o(e,t,n){const o=e.byteLength/(4*t),c=new Uint32Array(e,0,o*t);let u=new Uint32Array(o);const p=n?.minReduction??0,h=n?.originalIndices||null,f=h?h.length:0,g=n?.componentOffsets||null;let x=0;if(g)for(let e=0;e<g.length-1;e++){const t=g[e+1]-g[e];t>x&&(x=t)}else x=o;const d=Math.floor(1.1*x)+1;(null==l||l.length<2*d)&&(l=new Uint32Array((0,r.Sf)(2*d)));for(let e=0;e<2*d;e++)l[e]=0;let m=0;const y=!!g&&!!h,v=y?f:o,w=y?new Uint32Array(f):null,b=1.96;let C=0!==p?Math.ceil(4*b*b/(p*p)*p*(1-p)):v,A=1,T=g?g[1]:v;for(let e=0;e<v;e++){if(e===C){const t=1-m/e;if(t+b*Math.sqrt(t*(1-t)/e)<p)return null;C*=2}if(e===T){for(let e=0;e<2*d;e++)l[e]=0;if(h)for(let e=g[A-1];e<g[A];e++)w[e]=u[h[e]];T=g[++A]}const n=y?h[e]:e,r=n*t,o=a(c,r,t);let s=o%d,f=m;for(;0!==l[2*s+1];){if(l[2*s]===o){const e=l[2*s+1]-1;if(i(c,r,e*t,t)){f=u[e];break}}s++,s>=d&&(s-=d)}f===m&&(l[2*s]=o,l[2*s+1]=n+1,m++),u[n]=f}if(0!==p&&1-m/o<p)return null;if(y){for(let e=g[A-1];e<w.length;e++)w[e]=u[h[e]];u=w}const Z=new Uint32Array(t*m);m=0;for(let e=0;e<v;e++)u[e]===m&&(s(c,(y?h[e]:e)*t,Z,m*t,t),m++);if(h&&!y){const e=new Uint32Array(f);for(let t=0;t<e.length;t++)e[t]=u[h[t]];u=e}return{buffer:Z.buffer,indices:u,uniqueCount:m}}function i(e,t,n,r){for(let o=0;o<r;o++)if(e[t+o]!==e[n+o])return!1;return!0}function s(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}function a(e,t,n){let r=0;for(let o=0;o<n;o++)r=e[t+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null},31387:(e,t,n)=>{n.r(t),n.d(t,{meshFeatureSetFromJSON:()=>Le});var r,o,i=n(38171),s=n(70586),a=n(6570),l=n(43697),c=n(20102),u=n(3920),p=n(83379),h=n(92604),f=n(609),g=n(95330),x=n(17445),d=n(5600),m=(n(67676),n(80442),n(75215),n(52011)),y=n(65617),v=n(9361),w=n(94139),b=n(38913),C=n(3709),A=n(62540),T=n(2674),Z=n(71630),_=n(95401),M=n(86662),F=n(47545);function R(e,t,n){const o=e.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0,c=0,u=0,p=0;for(let t=0;t<o;++t)p+=e[t].length;const h=new Float64Array(3*p);let f=0;for(let p=o-1;p>=0;p--){const g=e[p],x=n===r.CCW_IS_HOLE&&I(g);if(x&&1!==o)i[l++]=g;else{let e=g.length;for(let t=0;t<l;++t)e+=i[t].length;const n={index:f,pathLengths:new Array(l+1),count:e,holeIndices:new Array(l)};n.pathLengths[0]=g.length,g.length>0&&(a[u++]={index:f,count:g.length}),f=x?L(g,g.length-1,-1,h,f,g.length,t):L(g,0,1,h,f,g.length,t);for(let e=0;e<l;++e){const r=i[e];n.holeIndices[e]=f,n.pathLengths[e+1]=r.length,r.length>0&&(a[u++]={index:f,count:r.length}),f=L(r,0,1,h,f,r.length,t)}l=0,n.count>0&&(s[c++]=n)}}for(let e=0;e<l;++e){const n=i[e];n.length>0&&(a[u++]={index:f,count:n.length}),f=L(n,0,1,h,f,n.length,t)}return s.length=c,a.length=u,{position:h,polygons:s,outlines:a}}function L(e,t,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=e[t];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,t+=n}return o/3}function I(e){return!(0,M.bu)(e,!1,!1)}(o=r||(r={}))[o.NONE=0]="NONE",o[o.CCW_IS_HOLE=1]="CCW_IS_HOLE";var D=n(44547),O=n(13442),E=n(66459);const P=h.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const j=(0,y.c)(),S=(0,y.c)();var z=n(17452);function N(e){const t=(0,z.Yd)(e.url);return n=>{const r=(0,z.PF)(n,t,t),o=r?r.replace(/^ *\.\//,""):null;return(o?e.files.get(o):null)??n}}async function W(e,t){return e instanceof Blob?U.fromBlob(e):"string"==typeof e?new U(e):Array.isArray(e)?async function(e,t){const n=new Map;let r=null;const o=await(0,g.WW)(e.map((async e=>({name:e.name,source:await W(e instanceof Blob?e:e.source,t)})))),i=[];for(const e of o)e&&((0,g.Hc)(t)?e.source.dispose():i.push(e));(0,g.k_)(t);for(const{name:e,source:t}of i)((0,s.Wi)(r)||/\.(gltf|glb)/i.test(e))&&(r=t.url),n.set(e,t.url),t.files&&t.files.forEach(((e,t)=>n.set(t,e)));if((0,s.Wi)(r))throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new U(r,(()=>i.forEach((({source:e})=>e.dispose()))),n)}(e,t):async function(e,t){const{default:r}=await(0,g.Hl)(Promise.resolve().then(n.bind(n,3172)),t),o="string"==typeof e.multipart[0]?await Promise.all(e.multipart.map((async e=>(await r(e,{responseType:"array-buffer"})).data))):e.multipart;return U.fromBlob(new Blob(o))}(e,t)}class U{constructor(e,t=(()=>{}),n=new Map){this.url=e,this.dispose=t,this.files=n}static fromBlob(e){const t=URL.createObjectURL(e);return new U(t,(()=>URL.revokeObjectURL(t)))}}var k=n(21787),$=n(46521),H=n(13598),B=n(17896),G=n(24678),Y=n(56493);function q(e,t){if(e)for(let n=0;n<e.length;n+=3)for(let r=0;r<3;r++)e[n+r]+=t[r]}const V=(0,y.c)(),X=(0,H.c)(),K=(0,$.c)(),J={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function Q(e,t,n){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null==t)return;const n="number"==typeof t?[t,t,t]:[null!=t.width?t.width:1,null!=t.depth?t.depth:1,null!=t.height?t.height:1];re[0]=n[0],re[4]=n[1],re[8]=n[2];for(let t=0;t<e.position.length;t+=3){for(let n=0;n<3;n++)ne[n]=e.position[t+n];(0,B.t)(ne,ne,re);for(let n=0;n<3;n++)e.position[t+n]=ne[n]}if(n[0]!==n[1]||n[1]!==n[2]){re[0]=1/n[0],re[4]=1/n[1],re[8]=1/n[2];for(let t=0;t<e.normal.length;t+=3){for(let n=0;n<3;n++)ne[n]=e.normal[t+n];(0,B.t)(ne,ne,re),(0,B.n)(ne,ne);for(let n=0;n<3;n++)e.normal[t+n]=ne[n]}}}(e,n?.size);const{vertexAttributes:r,transform:o}=(0,E.w1)(e,t,n);return{vertexAttributes:new Z.Q({...r,uv:e.uv}),transform:o,components:[new A.Z({faces:e.faces,material:n&&n.material||null})],spatialReference:t.spatialReference}}const ee={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},te={south:0,east:1,north:2,west:3,up:4,down:5},ne=(0,y.c)(),re=(0,$.c)();var oe=n(52138);const ie=h.Z.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,n,r=y.Z){if(!(0,s.Wi)(e)){(0,oe.d)(ue,(0,C.WH)(t),(0,C.ZZ)(t));for(let t=0;t<e.length;t+=n){for(let n=0;n<3;n++)ae[n]=e[t+n]-r[n];(0,B.v)(ae,ae,ue);for(let n=0;n<3;n++)e[t+n]=ae[n]+r[n]}}}const ae=(0,y.c)(),le=(0,y.c)(),ce=(0,C.Ue)(),ue=(0,H.c)(),pe=(0,$.c)(),he=(0,y.c)(),fe=h.Z.getLogger("esri.geometry.support.meshUtils.scale");function ge(e,t,n=y.Z){if(e)for(let r=0;r<e.length;r+=3){for(let t=0;t<3;t++)xe[t]=e[r+t]-n[t];(0,B.g)(xe,xe,t);for(let t=0;t<3;t++)e[r+t]=xe[t]+n[t]}}const xe=(0,y.c)(),de=(0,y.c)(),me=(0,y.c)();var ye;const ve="esri.geometry.Mesh";let we=ye=class extends((0,u.p)(p.Z.LoadableMixin((0,f.v)(v.Z)))){constructor(e){super(e),this.components=null,this.transform=null,this.external=null,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Z.Q,this.type="mesh"}initialize(){((0,s.Wi)(this.external)||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add((0,x.YP)((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((e=>e.clone())),transform:(0,s.pC)(this.transform)?this.transform.clone():null})),(()=>this._set("external",null)),{once:!0,sync:!0}))}))}get hasExtent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get _boundingInfo(){const e=this.vertexAttributes.position,t=this.spatialReference;if(0===e.length||this.components&&0===this.components.length)return{extent:new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:t}),center:new w.Z({x:0,y:0,z:0,spatialReference:t})};const n=(0,s.pC)(this.transform)?this.transform.project(e,t):e;let r=1/0,o=1/0,i=1/0,l=-1/0,c=-1/0,u=-1/0,p=0,h=0,f=0;const g=n.length,x=1/(g/3);let d=0;for(;d<g;){const e=n[d++],t=n[d++],s=n[d++];r=Math.min(r,e),o=Math.min(o,t),i=Math.min(i,s),l=Math.max(l,e),c=Math.max(c,t),u=Math.max(u,s),p+=x*e,h+=x*t,f+=x*s}return{extent:new a.Z({xmin:r,ymin:o,zmin:i,xmax:l,ymax:c,zmax:u,spatialReference:t}),center:new w.Z({x:p,y:h,z:f,spatialReference:t})}}get anchor(){if((0,s.pC)(this.transform))return this.transform.getOriginPoint(this.spatialReference);const e=this._boundingInfo;return new w.Z({x:e.center.x,y:e.center.y,z:e.extent.zmin,spatialReference:this.spatialReference})}get origin(){return(0,s.pC)(this.transform)?this.transform.getOriginPoint(this.spatialReference):this._boundingInfo.center}get extent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)?this.external.extent.clone():this._boundingInfo.extent}addComponent(e){this.loaded?(this.components||(this.components=[]),this.components.push(A.Z.from(e)),this.notifyChange("components")):h.Z.getLogger(this.declaredClass).error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(e){if(this.loaded){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}h.Z.getLogger(this.declaredClass).error("removeComponent()","Provided component is not part of the list of components")}else h.Z.getLogger(this.declaredClass).error("removeComponent()","Mesh must be loaded before applying operations")}rotate(e,t,n,r){return(0,C.uT)(be.x,e,Ce),(0,C.uT)(be.y,t,Ae),(0,C.uT)(be.z,n,Te),(0,C.qC)(Ce,Ae,Ce),(0,C.qC)(Ce,Te,Ce),function(e,t,n){if(!e.vertexAttributes||!e.vertexAttributes.position||0===t[3])return;const r=e.spatialReference;if((0,s.pC)(e.transform)){null!=n?.geographic&&n.geographic!==e.transform.geographic&&ie.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`);const o=n?.origin??e.transform.getOriginPoint(r);!function(e,t,n){const r=(0,B.s)(ae,n.x,n.y,n.z),o=(0,B.b)(ae,r,e.origin);e.applyLocalInverse(o,le),e.rotation=(0,C.qC)(e.rotation,t,(0,C.Ue)()),e.applyLocalInverse(o,o),(0,B.b)(o,o,le),e.translation=(0,B.a)((0,y.c)(),e.translation,o)}(e.transform,t,o)}else{const r=n?.origin??e.origin;(0,O.h)(e.spatialReference,n)?function(e,t,n){const r=e.spatialReference,o=(0,G.rS)(r),i=he;(0,D.KC)(n,i,o)||(0,D.KC)(e.origin,i,o);const a=e.vertexAttributes.position,l=e.vertexAttributes.normal,c=e.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,D.Bm)(o,i,ue,o),(0,k.f)(pe,ue);const f=ce;(0,B.t)((0,C.ZZ)(ce),(0,C.ZZ)(t),pe),f[3]=t[3],(0,Y.XO)(a,r,u),(0,s.pC)(l)&&(0,s.pC)(p)&&(0,Y.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,s.pC)(h)&&(0,Y.wi)(c,a,u,r,h),se(u,f,3,i),(0,Y.To)(u,a,r),(0,s.pC)(l)&&(0,s.pC)(p)&&(se(p,f,3),(0,Y.Yk)(p,a,u,r,l)),(0,s.pC)(c)&&(0,s.pC)(h)&&(se(h,f,4),(0,Y.M2)(h,a,u,r,c)),e.vertexAttributesChanged()}(e,t,r):function(e,t,n){const r=he;if(!(0,D.KC)(n,r,e.spatialReference)){const t=e.origin;r[0]=t.x,r[1]=t.y,r[2]=t.z,ie.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}).`)}se(e.vertexAttributes.position,t,3,r),se(e.vertexAttributes.normal,t,3),se(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,r)}}(this,Ce,r),this}offset(e,t,n,r){return this.loaded?(Ze[0]=e,Ze[1]=t,Ze[2]=n,function(e,t,n){e.vertexAttributes&&e.vertexAttributes.position&&((0,s.pC)(e.transform)?(null!=n?.geographic&&n.geographic!==e.transform.geographic&&h.Z.getLogger("esri.geometry.support.meshUtils.offset").warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`),function(e,t){const n=e.origin;e.origin=(0,B.a)((0,y.c)(),n,t)}(e.transform,t)):(0,O.h)(e.spatialReference,n)?function(e,t){const n=e.spatialReference,r=e.vertexAttributes.position,o=e.vertexAttributes.normal,i=e.vertexAttributes.tangent,a=new Float64Array(r.length),l=(0,s.pC)(o)?new Float32Array(o.length):null,c=(0,s.pC)(i)?new Float32Array(i.length):null,u=e.extent.center,p=V;(0,D.Bm)(n,[u.x,u.y,u.z],X,(0,G.rS)(n)),(0,k.f)(K,X),(0,B.t)(p,t,K),(0,Y.XO)(r,n,a),(0,s.pC)(o)&&(0,s.pC)(l)&&(0,Y.Iz)(o,r,a,n,l),(0,s.pC)(i)&&(0,s.pC)(c)&&(0,Y.wi)(i,r,a,n,c),q(a,p),(0,Y.To)(a,r,n),(0,s.pC)(o)&&(0,s.pC)(l)&&(0,Y.Yk)(l,r,a,n,o),(0,s.pC)(i)&&(0,s.pC)(c)&&(0,Y.M2)(c,r,a,n,i),e.vertexAttributesChanged()}(e,t):function(e,t){q(e.vertexAttributes.position,t),e.vertexAttributesChanged()}(e,t))}(this,Ze,r),this):(h.Z.getLogger(this.declaredClass).error("offset()","Mesh must be loaded before applying operations"),this)}scale(e,t){return this.loaded?(function(e,t,n){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const r=e.spatialReference;if((0,s.pC)(e.transform)){null!=n?.geographic&&n.geographic!==e.transform.geographic&&fe.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`);const o=n?.origin??e.transform.getOriginPoint(r);!function(e,t,n){const r=(0,B.s)(xe,n.x,n.y,n.z),o=(0,B.b)(xe,r,e.origin);e.applyLocalInverse(o,de);const i=(0,B.g)((0,y.c)(),e.scale,t);e.scale=i,e.applyLocalInverse(o,o),(0,B.b)(o,o,de),e.translation=(0,B.a)((0,y.c)(),e.translation,o)}(e.transform,t,o)}else{const r=(0,O.h)(e.spatialReference,n),o=n&&n.origin||e.origin;r?function(e,t,n){const r=e.spatialReference,o=(0,G.rS)(r),i=me;(0,D.KC)(n,i,o)||(0,D.KC)(e.origin,i,o);const a=e.vertexAttributes.position,l=e.vertexAttributes.normal,c=e.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,Y.XO)(a,r,u),(0,s.pC)(l)&&(0,s.pC)(p)&&(0,Y.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,s.pC)(h)&&(0,Y.wi)(c,a,u,r,h),ge(u,t,i),(0,Y.To)(u,a,r),(0,s.pC)(l)&&(0,s.pC)(p)&&(0,Y.Yk)(p,a,u,r,l),(0,s.pC)(c)&&(0,s.pC)(h)&&(0,Y.M2)(h,a,u,r,c),e.vertexAttributesChanged()}(e,t,o):function(e,t,n){const r=me;if(!(0,D.KC)(n,r,e.spatialReference)){const t=e.origin;r[0]=t.x,r[1]=t.y,r[2]=t.z,fe.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}).`)}ge(e.vertexAttributes.position,t,r),e.vertexAttributesChanged()}(e,t,o)}}(this,e,t),this):(h.Z.getLogger(this.declaredClass).error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(e,t){return this.loaded?(function(e,t,n){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const r=n?.origin??e.origin;(0,s.pC)(e.transform)?(null!=n?.geographic&&n.geographic!==e.transform.geographic&&P.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`),function(e,t,n){const r=t.x-n.x,o=t.y-n.y,i=t.hasZ&&n.hasZ?t.z-n.z:0,s=e.origin;e.origin=[s[0]+r,s[1]+o,s[2]+i]}(e.transform,t,r)):(0,O.h)(e.spatialReference,n)?function(e,t,n){const r=(0,E.FF)(e.vertexAttributes,n,{geographic:!0}),{position:o,normal:i,tangent:s}=(0,E.iv)(r,t,{geographic:!0});e.vertexAttributes.position=o,e.vertexAttributes.normal=i,e.vertexAttributes.tangent=s,e.vertexAttributesChanged()}(e,t,r):function(e,t,n){const r=S,o=j;if((0,D.KC)(t,o,e.spatialReference)){if(!(0,D.KC)(n,r,e.spatialReference)){const t=e.origin;r[0]=t.x,r[1]=t.y,r[2]=t.z,P.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}).`)}(function(e,t,n){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-n[o]})(e.vertexAttributes.position,o,r),e.vertexAttributesChanged()}else P.error(`Failed to project centerAt location (wkid:${t.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid})`)}(e,t,r)}(this,e,t),this):(h.Z.getLogger(this.declaredClass).error("centerAt()","Mesh must be loaded before applying operations"),this)}load(e){return(0,s.pC)(this.external)&&this.addResolvingPromise(async function(e,t,r){const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r),i=await W(t,r),a=o(new w.Z({x:0,y:0,z:0,spatialReference:e.spatialReference}),i.url,{resolveFile:N(i),useTransform:!0,signal:(0,s.pC)(r)?r.signal:null});a.then((()=>i.dispose()),(()=>i.dispose()));const{vertexAttributes:l,components:c}=await a;e.vertexAttributes=l,e.components=c}(this,this.external.source,e)),Promise.resolve(this)}clone(){let e=null;if(this.components){const t=new Map,n=new Map;e=this.components.map((e=>e.cloneWithDeduplication(t,n)))}const t={components:e,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,s.pC)(this.transform)?this.transform.clone():null,external:(0,s.pC)(this.external)?{source:this.external.source,extent:(0,s.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new ye(t)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const{toBinaryGLTF:t}=await n.e(7277).then(n.bind(n,7277));return t(this,e)}static createBox(e,t){if(!(e instanceof w.Z))return h.Z.getLogger(ve).error(".createBox()","expected location to be a Point instance"),null;const n=new ye(Q(function(){const{faceDescriptions:e,faceVertexOffsets:t,uvScales:n}=ee,r=4*e.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*e.length*3);let l=0,c=0,u=0,p=0;for(let r=0;r<e.length;r++){const h=e[r],f=l/3;for(const e of t)a[p++]=f+e;const g=h.corners;for(let e=0;e<4;e++){const t=g[e];let r=0;s[u++]=.25*n[e][0]+h.uvOrigin[0],s[u++]=h.uvOrigin[1]-.25*n[e][1];for(let e=0;e<3;e++)0!==h.axis[e]?(o[l++]=.5*h.axis[e],i[c++]=h.axis[e]):(o[l++]=.5*t[r++],i[c++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),e,t));return t&&t.imageFace&&"all"!==t.imageFace?function(e,t){const n=e.components[0],r=n.faces,o=te[t],i=6*o,a=new Array(6),l=new Array(r.length-6);let c=0,u=0;for(let e=0;e<r.length;e++)e>=i&&e<i+6?a[c++]=r[e]:l[u++]=r[e];if((0,s.pC)(e.vertexAttributes.uv)){const t=new Float32Array(e.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let e=0;e<r.length;e++)t[n+e]=r[e];e.vertexAttributes.uv=t}return e.components=[new A.Z({faces:a,material:n.material}),new A.Z({faces:l})],e}(n,t.imageFace):n}static createSphere(e,t){return e instanceof w.Z?new ye(Q(function(e=0){const t=Math.round(8*2**e),n=2*t,r=(t-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((t-1)*n*2*3);let l=0,c=0,u=0,p=0;for(let e=0;e<=t;e++){const r=e/t*Math.PI+.5*Math.PI,h=Math.cos(r),f=Math.sin(r);ne[2]=f;const g=0===e||e===t,x=g?n-1:n;for(let r=0;r<=x;r++){const f=r/x*2*Math.PI;ne[0]=-Math.sin(f)*h,ne[1]=Math.cos(f)*h;for(let e=0;e<3;e++)o[l]=.5*ne[e],i[l]=ne[e],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=e/t,0!==e&&r!==n&&(e!==t&&(a[u++]=p,a[u++]=p+1,a[u++]=p-n),1!==e&&(a[u++]=p,a[u++]=p-n,a[u++]=p-n-1)),p++}}return{position:o,normal:i,uv:s,faces:a}}(t&&t.densificationFactor||0),e,t)):(h.Z.getLogger(ve).error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(e,t){return e instanceof w.Z?new ye(Q(function(e=0){const t=Math.round(16*2**e),n=4*(t+1)+2*t,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*t*3);let a=0,l=0,c=0,u=0,p=0;for(let e=0;e<=5;e++){const n=0===e||5===e,h=e<=1||e>=4,f=2===e||4===e,g=n?t-1:t;for(let x=0;x<=g;x++){const d=x/g*2*Math.PI,m=n?0:.5;ne[0]=m*Math.sin(d),ne[1]=m*-Math.cos(d),ne[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)r[a++]=ne[t],o[l++]=h?2===t?e<=1?1:-1:0:2===t?0:ne[t]/m;i[c++]=(x+(n?.5:0))/t,i[c++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,f||0===e||x===t||(5!==e&&(s[u++]=p,s[u++]=p+1,s[u++]=p-t),1!==e&&(s[u++]=p,s[u++]=p-t,s[u++]=p-t-1)),p++}}return{position:r,normal:o,uv:i,faces:s}}(t&&t.densificationFactor||0),e,t)):(h.Z.getLogger(ve).error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(e,t){if(!(e instanceof w.Z))return h.Z.getLogger(ve).error(".createPlane()","expected location to be a Point instance"),null;const n=t?.facing??"up",r=function(e,t){const n="number"==typeof t?t:null!=t?t.width:1,r="number"==typeof t?t:null!=t?t.height:1;switch(e){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(n,t?.size);return new ye(Q(function(e){const t=J.facingAxisOrderSwap[e],n=J.position,r=J.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let e=0;e<4;e++){const e=s;for(let a=0;a<3;a++){const l=t[a],c=Math.abs(l)-1,u=l>=0?1:-1;o[s]=n[e+c]*u,i[s]=r[e+c]*u,s++}}return{position:o,normal:i,uv:new Float32Array(J.uv),faces:new Uint32Array(J.faces),isPlane:!0}}(n),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof b.Z))return h.Z.getLogger(ve).error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(e){const t=R(e.rings,e.hasZ,r.CCW_IS_HOLE),n=new Array;let o=0,i=0;for(const e of t.polygons){const r=e.count,s=e.index,a=new Float64Array(t.position.buffer,3*s*t.position.BYTES_PER_ELEMENT,3*r),l=e.holeIndices.map((e=>e-s)),c=new Uint32Array((0,_.e)(a,l,3));n.push({position:a,faces:c}),o+=a.length,i+=c.length}const s=function(e,t,n){if(1===e.length)return e[0];const r=new Float64Array(t),o=new Uint32Array(n);let i=0,s=0,a=0;for(const t of e){for(let e=0;e<t.position.length;e++)r[i++]=t.position[e];for(let e=0;e<t.faces.length;e++)o[s++]=t.faces[e]+a;a=i/3}return{position:r,faces:o}}(n,o,i),a=(0,F.d)(s.position.buffer,6,{originalIndices:s.faces});return s.position=new Float64Array(a.buffer),s.faces=a.indices,s}(e);return new ye({vertexAttributes:new Z.Q({position:n.position}),components:[new A.Z({faces:n.faces,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference})}static async createFromGLTF(e,t,r){if(!(e instanceof w.Z))throw h.Z.getLogger(ve).error(".createfromGLTF()","expected location to be a Point instance"),new c.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r);return new ye(await o(e,t,r))}static createWithExternalSource(e,t,n){const r=n?.extent??null,o=n?.transform?.clone()??new T.Z;o.origin=[e.x,e.y,e.z??0];const i=e.spatialReference;return new ye({external:{source:t,extent:r},transform:o,spatialReference:i})}static createIncomplete(e,t){const n=t?.transform?.clone()??new T.Z;n.origin=[e.x,e.y,e.z??0];const r=e.spatialReference,o=new ye({transform:n,spatialReference:r});return o.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),o}};(0,l._)([(0,d.Cb)({type:[A.Z],json:{write:!0}})],we.prototype,"components",void 0),(0,l._)([(0,d.Cb)({type:T.Z,json:{write:!0}})],we.prototype,"transform",void 0),(0,l._)([(0,d.Cb)({constructOnly:!0})],we.prototype,"external",void 0),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"hasExtent",null),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"_boundingInfo",null),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"anchor",null),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"origin",null),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],we.prototype,"extent",null),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],we.prototype,"hasZ",void 0),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],we.prototype,"hasM",void 0),(0,l._)([(0,d.Cb)({type:Z.Q,nonNullable:!0,json:{write:!0}})],we.prototype,"vertexAttributes",void 0),we=ye=(0,l._)([(0,m.j)(ve)],we);const be={x:(0,y.f)(1,0,0),y:(0,y.f)(0,1,0),z:(0,y.f)(0,0,1)},Ce=(0,C.Ue)(),Ae=(0,C.Ue)(),Te=(0,C.Ue)(),Ze=(0,y.c)(),_e=we;var Me,Fe,Re=n(74889);function Le(e,t,n){const r=n.features;n.features=[],delete n.geometryType;const o=Re.default.fromJSON(n);if(o.geometryType="mesh",!n.assetMaps)return o;const a=function(e,t){const n=new Map;for(const e of t){const t=e.parentGlobalId;if(null==t)continue;const r=e.assetName,o=e.assetURL,i=e.conversionStatus;let s=n.get(t);if(null!=s)throw new Error("multiple asset parts not expected.");switch(s={name:r,status:Me.FAILED,url:o,geographic:De(e.flags).projectVertices},n.set(t,s),i){case"COMPLETED":case"SUBMITTED":s.status=Me.COMPLETED;break;case"INPROGRESS":s.status=Me.PENDING;break;default:s.status=Me.FAILED}}return n}(0,n.assetMaps),l=o.spatialReference,c=n.globalIdFieldName,u=(0,s.Wi)(e.outFields)||!e.outFields.length?()=>({}):(p=e.outFields.includes("*")?null:new Set(e.outFields),({attributes:e})=>{if(!e)return{};if(!p)return e;for(const t in e)p.has(t)||delete e[t];return e});var p;for(const e of r){const n=Ie(e,c,l,t,a);(0,s.pC)(n)&&o.features.push(new i.Z({geometry:n,attributes:u(e)}))}return o}function Ie(e,t,n,r,o){const i=e.attributes[t],s=o.get(i);if(null==s||s.status===Me.FAILED||null==s.url)return null;const l=function({attributes:e},t,{transformFieldRoles:n}){return new w.Z({x:e[n.originX],y:e[n.originY],z:e[n.originZ],spatialReference:t})}(e,n,r),c=a.Z.fromJSON(e.geometry);c.spatialReference=n;const u=function(e,{transformFieldRoles:t},n){return new T.Z({translation:[e[t.translationX],e[t.translationY],e[t.translationZ]],rotation:(0,C.uT)([e[t.rotationX],e[t.rotationY],e[t.rotationZ]],e[t.rotationDeg]),scale:[e[t.scaleX],e[t.scaleY],e[t.scaleZ]],geographic:n})}(e.attributes,r,s.geographic);return s.status===Me.PENDING?_e.createIncomplete(l,{extent:c,transform:u}):_e.createWithExternalSource(l,[{name:s.name,source:s.url}],{extent:c,transform:u})}function De(e){return{projectVertices:e.includes("PROJECT_VERTICES")}}(Fe=Me||(Me={}))[Fe.FAILED=0]="FAILED",Fe[Fe.PENDING=1]="PENDING",Fe[Fe.COMPLETED=2]="COMPLETED"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[223],{57435:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),s=r(46791),o=r(3920),n=r(70586),l=(r(80442),r(20102),r(92604),r(26258),r(87538)),a=r(5600),p=(r(67676),r(75215),r(52011));let y=class extends((0,o.p)(s.Z)){constructor(e){super(e),this.getCollections=null}initialize(){this.handles.add((0,l.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=(0,n.pC)(this.getCollections)?this.getCollections():null;if((0,n.Wi)(e))return void this.removeAll();let t=0;for(const r of e)(0,n.pC)(r)&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new s.Z(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction?this.itemFilterFunction:e=>!!e;for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,a.Cb)()],y.prototype,"getCollections",void 0),(0,i._)([(0,a.Cb)()],y.prototype,"getChildrenFunction",void 0),(0,i._)([(0,a.Cb)()],y.prototype,"itemFilterFunction",void 0),y=(0,i._)([(0,p.j)("esri.core.CollectionFlattener")],y);const d=y},68668:(e,t,r)=>{r.d(t,{G:()=>l,w:()=>a});var i=r(66643),s=r(46791),o=r(83379),n=r(70586);async function l(e,t){return await e.load(),a(e,t)}async function a(e,t){const r=[],l=(...e)=>{for(const t of e)(0,n.Wi)(t)||(Array.isArray(t)?l(...t):s.Z.isCollection(t)?t.forEach((e=>l(e))):o.Z.isLoadable(t)&&r.push(t))};t(l);let a=null;if(await(0,i.UI)(r,(async e=>{!1!==(await(0,i.q6)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load())).ok||a||(a=e)})),a)throw a.loadError;return e}},30223:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Xe});var i=r(43697),s=r(46791),o=r(57435),n=r(20102),l=r(22974),a=r(68668),p=r(92604),y=r(70586),d=r(16453),u=r(95330),c=r(17452),h=r(5600),b=r(75215),f=r(71715),g=r(52011),v=r(82971),_=r(87085),m=r(38171),C=r(51773),w=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423),r(32400)),S=r(3172),j=r(35454),F=r(83379),x=r(609),I=(r(67676),r(80442),r(36030)),O=r(6570),L=r(3121),T=r(10699),A=r(21506);let Z=class extends((0,T.IG)(d.w)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,i._)([(0,h.Cb)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],Z.prototype,"title",void 0),(0,i._)([(0,f.r)("service","title",["alias","name"])],Z.prototype,"readTitle",null),(0,i._)([(0,h.Cb)()],Z.prototype,"layer",void 0),(0,i._)([(0,h.Cb)({type:b.z8,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],Z.prototype,"id",void 0),(0,i._)([(0,f.r)("service","id")],Z.prototype,"readIdOnlyOnce",null),(0,i._)([(0,h.Cb)((0,A.Lx)(String))],Z.prototype,"modelName",void 0),(0,i._)([(0,h.Cb)((0,A.Lx)(Boolean))],Z.prototype,"isEmpty",void 0),(0,i._)([(0,h.Cb)({type:Boolean,json:{name:"visibility",write:!0}})],Z.prototype,"visible",void 0),(0,i._)([(0,h.Cb)({type:Number,json:{write:!0}})],Z.prototype,"opacity",void 0),Z=(0,i._)([(0,g.j)("esri.layers.buildingSublayers.BuildingSublayer")],Z);const q=Z;var B=r(15506),E=r(53518),R=r(99514),k=r(35671),N=r(61064),P=r(51161),M=r(57444),U=r(32163),Q=r(86787),V=r(77397),D=r(19833);const K="esri.layers.buildingSublayers.BuildingComponentSublayer",J=p.Z.getLogger(K),G=(0,E.v)();let H=class extends(F.Z.LoadableMixin((0,x.v)(q))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl.path}/sublayers/${this.id}`,query:this.layer.parsedUrl.query}:{path:""}}get fieldsIndex(){return new R.Z(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return(0,y.pC)(r)&&"number"==typeof i?new L.default({portalItem:r,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return null}get displayField(){return(0,y.pC)(this.associatedLayer)?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=(0,y.pC)(e)?e.signal:null,r=this._fetchService(t).then((()=>{this.indexInfo=(0,N.T)(this.parsedUrl.path,this.rootNode,this.nodePages,this.apiKey,J,t)}));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,U.eZ)(this,e)}async _fetchService(e){const t=(await(0,S.default)(this.parsedUrl.path,{query:{f:"json",token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&(0,y.pC)(this.associatedLayer)?this.associatedLayer.getFeatureType(e):null}get types(){return(0,y.pC)(this.associatedLayer)?this.associatedLayer.types:[]}get typeIdField(){return(0,y.pC)(this.associatedLayer)?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=(0,y.pC)(this.associatedLayer)&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:B.C,{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}=e;return{query:t,data:{supportsZ:r,supportsM:i,isVersioned:s}}}createQuery(){const e=new M.Z;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}async queryCachedFeature(e,t){const r=(0,k.Lk)(this.fieldsIndex,await(0,D.e)(this,(0,D.V)(this))),i=await(0,V.xe)(this.parsedUrl.path,this.attributeStorageInfo,e,[t],r);if(!i||0===i.length)throw new n.Z("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const s=new m.Z;return s.attributes=i[0],s.layer=this,s.sourceLayer=this,s}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:(0,y.pC)(this.associatedLayer)}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return(0,y.pC)(e)&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),(0,y.Wi)(this.associatedLayer))throw new n.Z("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.Z("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i._)([(0,h.Cb)({readOnly:!0})],H.prototype,"parsedUrl",null),(0,i._)([(0,h.Cb)({type:P.U4,readOnly:!0})],H.prototype,"nodePages",void 0),(0,i._)([(0,h.Cb)({type:[P.QI],readOnly:!0})],H.prototype,"materialDefinitions",void 0),(0,i._)([(0,h.Cb)({type:[P.Yh],readOnly:!0})],H.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,h.Cb)({type:[P.H3],readOnly:!0})],H.prototype,"geometryDefinitions",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],H.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],H.prototype,"store",void 0),(0,i._)([(0,h.Cb)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],H.prototype,"rootNode",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],H.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,h.Cb)(G.fields)],H.prototype,"fields",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],H.prototype,"fieldsIndex",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:L.default})],H.prototype,"associatedLayer",void 0),(0,i._)([(0,f.r)("service","associatedLayer",["associatedLayerID"])],H.prototype,"readAssociatedLayer",null),(0,i._)([(0,h.Cb)(G.outFields)],H.prototype,"outFields",void 0),(0,i._)([(0,h.Cb)({type:String,readOnly:!0})],H.prototype,"objectIdField",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:String,json:{read:!1}})],H.prototype,"displayField",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:String})],H.prototype,"apiKey",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:O.Z})],H.prototype,"fullExtent",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:v.Z})],H.prototype,"spatialReference",null),(0,i._)([(0,h.Cb)({readOnly:!0})],H.prototype,"version",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:Q.Z})],H.prototype,"elevationInfo",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:Number})],H.prototype,"minScale",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:Number})],H.prototype,"maxScale",null),(0,i._)([(0,h.Cb)({readOnly:!0,type:Number})],H.prototype,"effectiveScaleRange",null),(0,i._)([(0,h.Cb)({type:["hide","show"],json:{write:!0}})],H.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({types:w.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],H.prototype,"renderer",void 0),(0,i._)([(0,h.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],H.prototype,"definitionExpression",void 0),(0,i._)([(0,h.Cb)(A.C_)],H.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:C.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],H.prototype,"popupTemplate",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],H.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],H.prototype,"defaultPopupTemplate",null),(0,i._)([(0,h.Cb)()],H.prototype,"types",null),(0,i._)([(0,h.Cb)()],H.prototype,"typeIdField",null),(0,i._)([(0,h.Cb)({json:{write:!1}}),(0,I.J)(new j.X({"3DObject":"3d-object",Point:"point"}))],H.prototype,"layerType",void 0),(0,i._)([(0,h.Cb)()],H.prototype,"geometryType",null),(0,i._)([(0,h.Cb)()],H.prototype,"profile",null),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],H.prototype,"capabilities",null),H=(0,i._)([(0,g.j)(K)],H);const W=H;var z,X=r(20941);const Y={type:s.Z,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:$}}},read:!1}};function $(e,t,r){if(e&&Array.isArray(e))return new s.Z(e.map((e=>{const t=function(e){return"group"===e.layerType?ee:W}(e);if(t){const i=new t;return i.read(e,r),i}return r&&r.messages&&e&&r.messages.push(new X.Z("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null})))}let ee=z=class extends q{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,a.w)(this,(e=>z.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)}))))}};var te;(0,i._)([(0,h.Cb)({type:["hide","show","hide-children"],json:{write:!0}})],ee.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)(Y)],ee.prototype,"sublayers",void 0),ee=z=(0,i._)([(0,g.j)("esri.layers.buildingSublayers.BuildingGroupSublayer")],ee),(te=ee||(ee={})).sublayersProperty=Y,te.readSublayers=$,te.forEachSublayer=function e(t,r){t.forEach((t=>{r(t),"building-group"===t.type&&e(t.sublayers,r)}))};const re=ee;var ie=r(54295),se=r(17287),oe=r(38009),ne=r(16859),le=r(72965),ae=r(32271),pe=r(96674),ye=r(41123);let de=class extends pe.wq{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,h.Cb)({type:String,readOnly:!0,json:{write:!0}})],de.prototype,"type",void 0),de=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilterAuthoringInfo")],de);const ue=de;var ce;let he=ce=class extends pe.wq{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new ce({filterType:this.filterType,filterValues:(0,l.d9)(this.filterValues)})}};(0,i._)([(0,h.Cb)({type:String,json:{write:!0}})],he.prototype,"filterType",void 0),(0,i._)([(0,h.Cb)({type:[String],json:{write:!0}})],he.prototype,"filterValues",void 0),he=ce=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilterAuthoringInfoType")],he);const be=he;var fe;const ge=s.Z.ofType(be);let ve=fe=class extends pe.wq{clone(){return new fe({filterTypes:(0,l.d9)(this.filterTypes)})}};(0,i._)([(0,h.Cb)({type:ge,json:{write:!0}})],ve.prototype,"filterTypes",void 0),ve=fe=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],ve);const _e=ve;var me;const Ce=s.Z.ofType(_e);let we=me=class extends ue{constructor(){super(...arguments),this.type="checkbox"}clone(){return new me({filterBlocks:(0,l.d9)(this.filterBlocks)})}};(0,i._)([(0,h.Cb)({type:["checkbox"]})],we.prototype,"type",void 0),(0,i._)([(0,h.Cb)({type:Ce,json:{write:!0}})],we.prototype,"filterBlocks",void 0),we=me=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],we);const Se=we;let je=class extends pe.wq{};(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],je.prototype,"type",void 0),je=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilterMode")],je);const Fe=je;var xe;let Ie=xe=class extends Fe{constructor(){super(...arguments),this.type="solid"}clone(){return new xe}};(0,i._)([(0,h.Cb)({type:["solid"],readOnly:!0,json:{write:!0}})],Ie.prototype,"type",void 0),Ie=xe=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilterModeSolid")],Ie);const Oe=Ie;var Le,Te=r(56332);let Ae=Le=class extends Fe{constructor(){super(...arguments),this.type="wire-frame",this.edges=null}clone(){return new Le({edges:(0,l.d9)(this.edges)})}};(0,i._)([(0,I.J)({wireFrame:"wire-frame"})],Ae.prototype,"type",void 0),(0,i._)([(0,h.Cb)(Te.Z)],Ae.prototype,"edges",void 0),Ae=Le=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilterModeWireFrame")],Ae);const Ze=Ae;var qe;let Be=qe=class extends Fe{constructor(){super(...arguments),this.type="x-ray"}clone(){return new qe}};(0,i._)([(0,h.Cb)({type:["x-ray"],readOnly:!0,json:{write:!0}})],Be.prototype,"type",void 0),Be=qe=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilterModeXRay")],Be);const Ee=Be;var Re;const ke={nonNullable:!0,types:{key:"type",base:Fe,typeMap:{solid:Oe,"wire-frame":Ze,"x-ray":Ee}},json:{read:e=>{switch(e&&e.type){case"solid":return Oe.fromJSON(e);case"wireFrame":return Ze.fromJSON(e);case"x-ray":return Ee.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}};let Ne=Re=class extends pe.wq{constructor(){super(...arguments),this.filterExpression=null,this.filterMode=new Oe,this.title=""}clone(){return new Re({filterExpression:this.filterExpression,filterMode:(0,l.d9)(this.filterMode),title:this.title})}};(0,i._)([(0,h.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"filterExpression",void 0),(0,i._)([(0,h.Cb)(ke)],Ne.prototype,"filterMode",void 0),(0,i._)([(0,h.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"title",void 0),Ne=Re=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilterBlock")],Ne);const Pe=Ne;var Me;const Ue=s.Z.ofType(Pe);let Qe=Me=class extends pe.wq{constructor(){super(...arguments),this.description=null,this.filterBlocks=null,this.id=(0,ye.D)(),this.name=null}clone(){return new Me({description:this.description,filterBlocks:(0,l.d9)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,l.d9)(this.filterAuthoringInfo)})}};(0,i._)([(0,h.Cb)({type:String,json:{write:!0}})],Qe.prototype,"description",void 0),(0,i._)([(0,h.Cb)({type:Ue,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"filterBlocks",void 0),(0,i._)([(0,h.Cb)({types:{key:"type",base:ue,typeMap:{checkbox:Se}},json:{read:e=>"checkbox"===(e&&e.type)?Se.fromJSON(e):null,write:!0}})],Qe.prototype,"filterAuthoringInfo",void 0),(0,i._)([(0,h.Cb)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"id",void 0),(0,i._)([(0,h.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Qe.prototype,"name",void 0),Qe=Me=(0,i._)([(0,g.j)("esri.layers.support.BuildingFilter")],Qe);const Ve=Qe;let De=class extends pe.wq{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i._)([(0,h.Cb)({type:String})],De.prototype,"fieldName",void 0),(0,i._)([(0,h.Cb)({type:String})],De.prototype,"modelName",void 0),(0,i._)([(0,h.Cb)({type:String})],De.prototype,"label",void 0),(0,i._)([(0,h.Cb)({type:Number})],De.prototype,"min",void 0),(0,i._)([(0,h.Cb)({type:Number})],De.prototype,"max",void 0),(0,i._)([(0,h.Cb)({json:{read:e=>Array.isArray(e)&&(e.every((e=>"string"==typeof e))||e.every((e=>"number"==typeof e)))?e.slice():null}})],De.prototype,"mostFrequentValues",void 0),(0,i._)([(0,h.Cb)({type:[Number]})],De.prototype,"subLayerIds",void 0),De=(0,i._)([(0,g.j)("esri.layers.support.BuildingFieldStatistics")],De);let Ke=class extends(F.Z.LoadableMixin((0,x.v)(pe.wq))){constructor(){super(...arguments),this.url=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(p.Z.getLogger(this.declaredClass).error("building summary statistics are not loaded"),null)}load(e){const t=(0,y.pC)(e)?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,S.default)(this.url,{query:{f:"json"},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i._)([(0,h.Cb)({constructOnly:!0,type:String})],Ke.prototype,"url",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,type:[De],json:{read:{source:"summary"}}})],Ke.prototype,"fields",null),Ke=(0,i._)([(0,g.j)("esri.layers.support.BuildingSummaryStatistics")],Ke);const Je=Ke;var Ge=r(14147);const He=s.Z.ofType(Ve),We=(0,l.d9)(re.sublayersProperty);We.json.origins["web-scene"]={type:[W],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},We.json.origins["portal-item"]={type:[W],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}};let ze=class extends((0,ae.Vt)((0,se.Y)((0,oe.q)((0,ne.I)((0,le.M)((0,d.R)((0,ie.V)(_.Z)))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new o.Z({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._sublayerOverrides=null,this.filters=new He,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const i=re.readSublayers(e,t,r);return re.forEachSublayer(i,(e=>e.layer=this)),this._sublayerOverrides&&(this.applySublayerOverrides(i,this._sublayerOverrides),this._sublayerOverrides=null),i}applySublayerOverrides(e,{overrides:t,context:r}){re.forEachSublayer(e,(e=>e.read(t.get(e.id),r)))}readSublayerOverrides(e,t){const r=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new n.Z("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}writeSublayerOverrides(e,t,r){const i=[];re.forEachSublayer(this.sublayers,(e=>{const t=e.write({},r);Object.keys(t).length>1&&i.push(t)})),i.length>0&&(t.sublayers=i)}writeUnappliedOverrides(e,t){t.sublayers=[],e.overrides.forEach((e=>{t.sublayers.push((0,l.d9)(e))}))}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?this.writeSublayerOverrides(this.sublayers,e,t):this._sublayerOverrides&&this.writeUnappliedOverrides(this._sublayerOverrides,e)),e}read(e,t){if(super.read(e,t),t&&("web-scene"===t.origin||"portal-item"===t.origin)&&null!=e&&Array.isArray(e.sublayers)){const r=this.readSublayerOverrides(e.sublayers,t);this.sublayers?this.applySublayerOverrides(this.sublayers,r):this._sublayerOverrides=r}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef){const e=(0,c.v_)(this.parsedUrl.path,t.statisticsHRef);return new Je({url:e})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const t=(0,y.pC)(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.r9).then((()=>this._fetchService(t))).then((()=>this._fetchAssociatedFeatureService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,a.G)(this,(e=>{re.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,t){return this._debouncedSaveOperations(ae.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(ae.xp.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.Z("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}_validateElevationInfo(){const e=this.elevationInfo;e&&("absolute-height"!==e.mode&&p.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Building scene layers only support absolute-height elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&p.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Building scene layers do not support featureExpressionInfo"))}async _fetchAssociatedFeatureService(e){const t=new Ge.W(this.parsedUrl,this.portalItem,this.apiKey,e);try{this.associatedFeatureServiceItem=await t.fetchPortalItem()}catch(e){p.Z.getLogger(this.declaredClass).warn("Associated feature service item could not be loaded",e)}}};(0,i._)([(0,h.Cb)({type:["BuildingSceneLayer"]})],ze.prototype,"operationalLayerType",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],ze.prototype,"allSublayers",void 0),(0,i._)([(0,h.Cb)(We)],ze.prototype,"sublayers",void 0),(0,i._)([(0,f.r)("service","sublayers")],ze.prototype,"readSublayers",null),(0,i._)([(0,h.Cb)({type:He,nonNullable:!0,json:{write:!0}})],ze.prototype,"filters",void 0),(0,i._)([(0,h.Cb)({type:String,json:{write:!0}})],ze.prototype,"activeFilterId",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,type:Je})],ze.prototype,"summaryStatistics",void 0),(0,i._)([(0,f.r)("summaryStatistics",["statisticsHRef"])],ze.prototype,"readSummaryStatistics",null),(0,i._)([(0,h.Cb)({type:[String],json:{read:!1}})],ze.prototype,"outFields",void 0),(0,i._)([(0,h.Cb)(A.vg)],ze.prototype,"fullExtent",void 0),(0,i._)([(0,h.Cb)({type:["show","hide","hide-children"]})],ze.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)((0,A.Lx)(v.Z))],ze.prototype,"spatialReference",void 0),(0,i._)([(0,h.Cb)(A.PV)],ze.prototype,"elevationInfo",null),(0,i._)([(0,h.Cb)({json:{read:!1},readOnly:!0})],ze.prototype,"type",void 0),(0,i._)([(0,h.Cb)()],ze.prototype,"associatedFeatureServiceItem",void 0),ze=(0,i._)([(0,g.j)("esri.layers.BuildingSceneLayer")],ze);const Xe=ze}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1412,3172,9880],{99880:(t,e,n)=>{n.d(e,{V:()=>u});var r=n(68773),o=(n(3172),n(20102)),a=n(92604),s=n(17452);const i=a.Z.getLogger("esri.assets");function u(t){if(!r.Z.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,s.v_)(r.Z.assetsPath,t)}},46851:(t,e,n)=>{n.d(e,{R:()=>a,a:()=>c,g:()=>o,t:()=>u});let r=1e-6;function o(){return r}const a=Math.random,s=Math.PI/180,i=180/Math.PI;function u(t){return t*s}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,getEpsilon:o,setEpsilon:function(t){r=t},RANDOM:a,toRadian:u,toDegree:c,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>o,c:()=>r}),Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},fromValues:function(t,e,n,r,o,a,s,i,u){return[t,e,n,r,o,a,s,i,u]},createView:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{a:()=>u,d:()=>m,e:()=>h,f:()=>d,g:()=>g,h:()=>_,i:()=>s,j:()=>w,k:()=>l,m:()=>c,s:()=>a,t:()=>i,v:()=>f,x:()=>P,y:()=>M});var r=n(65617),o=n(46851);function a(t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M,b){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t[6]=i,t[7]=u,t[8]=c,t[9]=f,t[10]=l,t[11]=h,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],a=e[6],s=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=o,t[13]=s,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function u(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],m=e[12],M=e[13],b=e[14],p=e[15],g=n*i-r*s,y=n*u-o*s,w=n*c-a*s,_=r*u-o*i,P=r*c-a*i,T=o*c-a*u,E=f*M-l*m,S=f*b-h*m,v=f*p-d*m,O=l*b-h*M,q=l*p-d*M,x=h*p-d*b;let C=g*x-y*q+w*O+_*v-P*S+T*E;return C?(C=1/C,t[0]=(i*x-u*q+c*O)*C,t[1]=(o*q-r*x-a*O)*C,t[2]=(M*T-b*P+p*_)*C,t[3]=(h*P-l*T-d*_)*C,t[4]=(u*v-s*x-c*S)*C,t[5]=(n*x-o*v+a*S)*C,t[6]=(b*w-m*T-p*y)*C,t[7]=(f*T-h*w+d*y)*C,t[8]=(s*q-i*v+c*E)*C,t[9]=(r*v-n*q-a*E)*C,t[10]=(m*P-M*w+p*g)*C,t[11]=(l*w-f*P-d*g)*C,t[12]=(i*S-s*O-u*E)*C,t[13]=(n*O-r*S+o*E)*C,t[14]=(M*y-m*_-b*g)*C,t[15]=(f*_-l*y+h*g)*C,t):null}function c(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3],i=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=e[9],d=e[10],m=e[11],M=e[12],b=e[13],p=e[14],g=e[15];let y=n[0],w=n[1],_=n[2],P=n[3];return t[0]=y*r+w*i+_*l+P*M,t[1]=y*o+w*u+_*h+P*b,t[2]=y*a+w*c+_*d+P*p,t[3]=y*s+w*f+_*m+P*g,y=n[4],w=n[5],_=n[6],P=n[7],t[4]=y*r+w*i+_*l+P*M,t[5]=y*o+w*u+_*h+P*b,t[6]=y*a+w*c+_*d+P*p,t[7]=y*s+w*f+_*m+P*g,y=n[8],w=n[9],_=n[10],P=n[11],t[8]=y*r+w*i+_*l+P*M,t[9]=y*o+w*u+_*h+P*b,t[10]=y*a+w*c+_*d+P*p,t[11]=y*s+w*f+_*m+P*g,y=n[12],w=n[13],_=n[14],P=n[15],t[12]=y*r+w*i+_*l+P*M,t[13]=y*o+w*u+_*h+P*b,t[14]=y*a+w*c+_*d+P*p,t[15]=y*s+w*f+_*m+P*g,t}function f(t,e,n){const r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{const n=e[0],s=e[1],i=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=e[7],d=e[8],m=e[9],M=e[10],b=e[11];t[0]=n,t[1]=s,t[2]=i,t[3]=u,t[4]=c,t[5]=f,t[6]=l,t[7]=h,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=n*r+c*o+d*a+e[12],t[13]=s*r+f*o+m*a+e[13],t[14]=i*r+l*o+M*a+e[14],t[15]=u*r+h*o+b*a+e[15]}return t}function l(t,e,n){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function h(t,e,n,r){let a,s,i,u,c,f,l,h,d,m,M,b,p,g,y,w,_,P,T,E,S,v,O,q,x=r[0],C=r[1],L=r[2],A=Math.sqrt(x*x+C*C+L*L);return A<(0,o.g)()?null:(A=1/A,x*=A,C*=A,L*=A,a=Math.sin(n),s=Math.cos(n),i=1-s,u=e[0],c=e[1],f=e[2],l=e[3],h=e[4],d=e[5],m=e[6],M=e[7],b=e[8],p=e[9],g=e[10],y=e[11],w=x*x*i+s,_=C*x*i+L*a,P=L*x*i-C*a,T=x*C*i-L*a,E=C*C*i+s,S=L*C*i+x*a,v=x*L*i+C*a,O=C*L*i-x*a,q=L*L*i+s,t[0]=u*w+h*_+b*P,t[1]=c*w+d*_+p*P,t[2]=f*w+m*_+g*P,t[3]=l*w+M*_+y*P,t[4]=u*T+h*E+b*S,t[5]=c*T+d*E+p*S,t[6]=f*T+m*E+g*S,t[7]=l*T+M*E+y*S,t[8]=u*v+h*O+b*q,t[9]=c*v+d*O+p*q,t[10]=f*v+m*O+g*q,t[11]=l*v+M*O+y*q,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,n){if(0===e)return s(t);let r,a,i,u=n[0],c=n[1],f=n[2],l=Math.sqrt(u*u+c*c+f*f);return l<(0,o.g)()?null:(l=1/l,u*=l,c*=l,f*=l,r=Math.sin(e),a=Math.cos(e),i=1-a,t[0]=u*u*i+a,t[1]=c*u*i+f*r,t[2]=f*u*i-c*r,t[3]=0,t[4]=u*c*i-f*r,t[5]=c*c*i+a,t[6]=f*c*i+u*r,t[7]=0,t[8]=u*f*i+c*r,t[9]=c*f*i-u*r,t[10]=f*f*i+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3],i=r+r,u=o+o,c=a+a,f=r*i,l=r*u,h=r*c,d=o*u,m=o*c,M=a*c,b=s*i,p=s*u,g=s*c;return t[0]=1-(d+M),t[1]=l+g,t[2]=h-p,t[3]=0,t[4]=l-g,t[5]=1-(f+M),t[6]=m+b,t[7]=0,t[8]=h+p,t[9]=m-b,t[10]=1-(f+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const p=(0,r.c)();function g(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=e[3],u=o+o,c=a+a,f=s+s,l=o*u,h=o*c,d=o*f,m=a*c,M=a*f,b=s*f,p=i*u,g=i*c,y=i*f,w=r[0],_=r[1],P=r[2];return t[0]=(1-(m+b))*w,t[1]=(h+y)*w,t[2]=(d-g)*w,t[3]=0,t[4]=(h-y)*_,t[5]=(1-(l+b))*_,t[6]=(M+p)*_,t[7]=0,t[8]=(d+g)*P,t[9]=(M-p)*P,t[10]=(1-(l+m))*P,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function y(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function _(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],s=t[3],i=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=t[9],d=t[10],m=t[11],M=t[12],b=t[13],p=t[14],g=t[15],y=e[0],w=e[1],_=e[2],P=e[3],T=e[4],E=e[5],S=e[6],v=e[7],O=e[8],q=e[9],x=e[10],C=e[11],L=e[12],A=e[13],I=e[14],k=e[15],R=(0,o.g)();return Math.abs(n-y)<=R*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=R*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-_)<=R*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(s-P)<=R*Math.max(1,Math.abs(s),Math.abs(P))&&Math.abs(i-T)<=R*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(u-E)<=R*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(c-S)<=R*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(f-v)<=R*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(l-O)<=R*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(h-q)<=R*Math.max(1,Math.abs(h),Math.abs(q))&&Math.abs(d-x)<=R*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(m-C)<=R*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(M-L)<=R*Math.max(1,Math.abs(M),Math.abs(L))&&Math.abs(b-A)<=R*Math.max(1,Math.abs(b),Math.abs(A))&&Math.abs(p-I)<=R*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(g-k)<=R*Math.max(1,Math.abs(g),Math.abs(k))}function P(t){const e=(0,o.g)(),n=t[0],r=t[1],a=t[2],s=t[4],i=t[5],u=t[6],c=t[8],f=t[9],l=t[10];return Math.abs(1-(n*n+s*s+c*c))<=e&&Math.abs(1-(r*r+i*i+f*f))<=e&&Math.abs(1-(a*a+u*u+l*l))<=e}const T=c,E=y;Object.freeze(Object.defineProperty({__proto__:null,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},set:a,identity:s,transpose:i,invert:u,adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],m=e[12],M=e[13],b=e[14],p=e[15];return t[0]=i*(h*p-d*b)-l*(u*p-c*b)+M*(u*d-c*h),t[1]=-(r*(h*p-d*b)-l*(o*p-a*b)+M*(o*d-a*h)),t[2]=r*(u*p-c*b)-i*(o*p-a*b)+M*(o*c-a*u),t[3]=-(r*(u*d-c*h)-i*(o*d-a*h)+l*(o*c-a*u)),t[4]=-(s*(h*p-d*b)-f*(u*p-c*b)+m*(u*d-c*h)),t[5]=n*(h*p-d*b)-f*(o*p-a*b)+m*(o*d-a*h),t[6]=-(n*(u*p-c*b)-s*(o*p-a*b)+m*(o*c-a*u)),t[7]=n*(u*d-c*h)-s*(o*d-a*h)+f*(o*c-a*u),t[8]=s*(l*p-d*M)-f*(i*p-c*M)+m*(i*d-c*l),t[9]=-(n*(l*p-d*M)-f*(r*p-a*M)+m*(r*d-a*l)),t[10]=n*(i*p-c*M)-s*(r*p-a*M)+m*(r*c-a*i),t[11]=-(n*(i*d-c*l)-s*(r*d-a*l)+f*(r*c-a*i)),t[12]=-(s*(l*b-h*M)-f*(i*b-u*M)+m*(i*h-u*l)),t[13]=n*(l*b-h*M)-f*(r*b-o*M)+m*(r*h-o*l),t[14]=-(n*(i*b-u*M)-s*(r*b-o*M)+m*(r*u-o*i)),t[15]=n*(i*h-u*l)-s*(r*h-o*l)+f*(r*u-o*i),t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],s=t[5],i=t[6],u=t[7],c=t[8],f=t[9],l=t[10],h=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(e*s-n*a)*(l*b-h*M)-(e*i-r*a)*(f*b-h*m)+(e*u-o*a)*(f*M-l*m)+(n*i-r*s)*(c*b-h*d)-(n*u-o*s)*(c*M-l*d)+(r*u-o*i)*(c*m-f*d)},multiply:c,translate:f,scale:l,rotate:h,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[4],s=e[5],i=e[6],u=e[7],c=e[8],f=e[9],l=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+c*r,t[5]=s*o+f*r,t[6]=i*o+l*r,t[7]=u*o+h*r,t[8]=c*o-a*r,t[9]=f*o-s*r,t[10]=l*o-i*r,t[11]=h*o-u*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[0],s=e[1],i=e[2],u=e[3],c=e[8],f=e[9],l=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-c*r,t[1]=s*o-f*r,t[2]=i*o-l*r,t[3]=u*o-h*r,t[8]=a*r+c*o,t[9]=s*r+f*o,t[10]=i*r+l*o,t[11]=u*r+h*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[0],s=e[1],i=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+c*r,t[1]=s*o+f*r,t[2]=i*o+l*r,t[3]=u*o+h*r,t[4]=c*o-a*r,t[5]=f*o-s*r,t[6]=l*o-i*r,t[7]=h*o-u*r,t},fromTranslation:d,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotation:m,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:b,fromQuat2:function(t,e){const n=p,r=-e[0],o=-e[1],a=-e[2],s=e[3],i=e[4],u=e[5],c=e[6],f=e[7],l=r*r+o*o+a*a+s*s;return l>0?(n[0]=2*(i*s+f*r+u*a-c*o)/l,n[1]=2*(u*s+f*o+c*r-i*a)/l,n[2]=2*(c*s+f*a+i*o-u*r)/l):(n[0]=2*(i*s+f*r+u*a-c*o),n[1]=2*(u*s+f*o+c*r-i*a),n[2]=2*(c*s+f*a+i*o-u*r)),b(t,e,n),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[4],s=e[5],i=e[6],u=e[8],c=e[9],f=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+s*s+i*i),t[2]=Math.sqrt(u*u+c*c+f*f),t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},fromRotationTranslationScale:g,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const a=e[0],s=e[1],i=e[2],u=e[3],c=a+a,f=s+s,l=i+i,h=a*c,d=a*f,m=a*l,M=s*f,b=s*l,p=i*l,g=u*c,y=u*f,w=u*l,_=r[0],P=r[1],T=r[2],E=o[0],S=o[1],v=o[2],O=(1-(M+p))*_,q=(d+w)*_,x=(m-y)*_,C=(d-w)*P,L=(1-(h+p))*P,A=(b+g)*P,I=(m+y)*T,k=(b-g)*T,R=(1-(h+M))*T;return t[0]=O,t[1]=q,t[2]=x,t[3]=0,t[4]=C,t[5]=L,t[6]=A,t[7]=0,t[8]=I,t[9]=k,t[10]=R,t[11]=0,t[12]=n[0]+E-(O*E+C*S+I*v),t[13]=n[1]+S-(q*E+L*S+k*v),t[14]=n[2]+v-(x*E+A*S+R*v),t[15]=1,t},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=n+n,i=r+r,u=o+o,c=n*s,f=r*s,l=r*i,h=o*s,d=o*i,m=o*u,M=a*s,b=a*i,p=a*u;return t[0]=1-l-m,t[1]=f+p,t[2]=h-b,t[3]=0,t[4]=f-p,t[5]=1-c-m,t[6]=d+M,t[7]=0,t[8]=h+b,t[9]=d-M,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,o,a,s){const i=1/(n-e),u=1/(o-r),c=1/(a-s);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*u,t[10]=(s+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*a*2*c,t[15]=0,t},perspective:function(t,e,n,r,o){const a=1/Math.tan(e/2);let s;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(s=1/(r-o),t[10]=(o+r)*s,t[14]=2*o*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),u=2/(s+i),c=2/(o+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(s-i)*u*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},ortho:function(t,e,n,r,o,a,s){const i=1/(e-n),u=1/(r-o),c=1/(a-s);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*u,t[14]=(s+a)*c,t[15]=1,t},lookAt:function(t,e,n,r){let a,i,u,c,f,l,h,d,m,M;const b=e[0],p=e[1],g=e[2],y=r[0],w=r[1],_=r[2],P=n[0],T=n[1],E=n[2],S=(0,o.g)();return Math.abs(b-P)<S&&Math.abs(p-T)<S&&Math.abs(g-E)<S?s(t):(h=b-P,d=p-T,m=g-E,M=1/Math.sqrt(h*h+d*d+m*m),h*=M,d*=M,m*=M,a=w*m-_*d,i=_*h-y*m,u=y*d-w*h,M=Math.sqrt(a*a+i*i+u*u),M?(M=1/M,a*=M,i*=M,u*=M):(a=0,i=0,u=0),c=d*u-m*i,f=m*a-h*u,l=h*i-d*a,M=Math.sqrt(c*c+f*f+l*l),M?(M=1/M,c*=M,f*=M,l*=M):(c=0,f=0,l=0),t[0]=a,t[1]=c,t[2]=h,t[3]=0,t[4]=i,t[5]=f,t[6]=d,t[7]=0,t[8]=u,t[9]=l,t[10]=m,t[11]=0,t[12]=-(a*b+i*p+u*g),t[13]=-(c*b+f*p+l*g),t[14]=-(h*b+d*p+m*g),t[15]=1,t)},targetTo:function(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=r[0],u=r[1],c=r[2];let f=o-n[0],l=a-n[1],h=s-n[2],d=f*f+l*l+h*h;d>0&&(d=1/Math.sqrt(d),f*=d,l*=d,h*=d);let m=u*h-c*l,M=c*f-i*h,b=i*l-u*f;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=l*b-h*M,t[5]=h*m-f*b,t[6]=f*M-l*m,t[7]=0,t[8]=f,t[9]=l,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=s,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},subtract:y,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},exactEquals:w,equals:_,isOrthoNormal:P,mul:T,sub:E},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function a(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>a,b:()=>o,c:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:o,fromValues:function(t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M){return[t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M]},createView:a,IDENTITY:s},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function a(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>r,b:()=>o,c:()=>a});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:o,fromValues:function(t,e,n,r){return[t,e,n,r]},createView:a,IDENTITY:s},Symbol.toStringTag,{value:"Module"}))},29268:(t,e,n)=>{n.d(e,{a:()=>g,c:()=>b,g:()=>y,h:()=>p,j:()=>P,m:()=>x}),n(80442);var r,o,a=n(92604),s=n(22021),i=n(70586),u=n(52138),c=n(17896),f=n(65617),l=n(98766),h=n(88669);(o=r||(r={}))[o.X=0]="X",o[o.Y=1]="Y",o[o.Z=2]="Z";var d=n(78341),m=n(61277),M=n(12981);function b(){return(0,h.c)()}function p(t,e=b()){return(0,l.c)(e,t)}function g(t){return t[3]}function y(t){return t}function w(t,e,n){if((0,i.Wi)(e))return!1;const{origin:r,direction:o}=e,a=_;a[0]=r[0]-t[0],a[1]=r[1]-t[1],a[2]=r[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2],u=2*(o[0]*a[0]+o[1]*a[1]+o[2]*a[2]),c=u*u-4*s*(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]-t[3]*t[3]);if(c<0)return!1;const f=Math.sqrt(c);let l=(-u-f)/(2*s);const h=(-u+f)/(2*s);return(l<0||h<l&&h>0)&&(l=h),!(l<0||(n&&(n[0]=r[0]+o[0]*l,n[1]=r[1]+o[1]*l,n[2]=r[2]+o[2]*l),0))}const _=(0,f.c)();function P(t,e){return w(t,e,null)}function T(t,e,n){const r=M.WM.get(),o=M.MP.get();(0,c.f)(r,e.origin,e.direction);const a=g(t);(0,c.f)(n,r,e.origin),(0,c.g)(n,n,1/(0,c.l)(n)*a);const s=S(t,e.origin),i=(0,m.EU)(e.origin,n);return(0,u.d)(o,i+s,r),(0,c.m)(n,n,o),n}function E(t,e,n){const r=(0,c.b)(M.WM.get(),e,t),o=(0,c.g)(M.WM.get(),r,t[3]/(0,c.l)(r));return(0,c.a)(n,o,t)}function S(t,e){const n=(0,c.b)(M.WM.get(),e,t),r=(0,c.l)(n),o=g(t),a=o+Math.abs(o-r);return(0,s.ZF)(o/a)}const v=(0,f.c)();function O(t,e,n,o){const a=(0,c.b)(v,e,t);switch(n){case r.X:{const t=(0,s.jE)(a,v)[2];return(0,c.s)(o,-Math.sin(t),Math.cos(t),0)}case r.Y:{const t=(0,s.jE)(a,v),e=t[1],n=t[2],r=Math.sin(e);return(0,c.s)(o,-r*Math.cos(n),-r*Math.sin(n),Math.cos(e))}case r.Z:return(0,c.n)(o,a);default:return}}function q(t,e){const n=(0,c.b)(C,e,t);return(0,c.l)(n)-t[3]}function x(t,e){const n=(0,c.d)(t,e),r=g(t);return n<=r*r}const C=(0,f.c)(),L=b();Object.freeze(Object.defineProperty({__proto__:null,create:b,copy:p,fromCenterAndRadius:function(t,e){return(0,h.f)(t[0],t[1],t[2],e)},wrap:function(t){return t},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},getRadius:g,getCenter:y,fromValues:function(t,e,n,r){return(0,h.f)(t,e,n,r)},elevate:function(t,e,n){return t!==n&&(0,c.c)(n,t),n[3]=t[3]+e,n},setExtent:function(t,e,n){return a.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:p(t,n)},intersectRay:w,intersectsRay:P,intersectRayClosestSilhouette:function(t,e,n){if(w(t,e,n))return n;const r=T(t,e,M.WM.get());return(0,c.a)(n,e.origin,(0,c.g)(M.WM.get(),e.direction,(0,c.i)(e.origin,r)/(0,c.l)(e.direction))),n},closestPointOnSilhouette:T,closestPoint:function(t,e,n){return w(t,e,n)?n:((0,d.JI)(e,t,n),E(t,n,n))},projectPoint:E,distanceToSilhouette:function(t,e){const n=(0,c.b)(M.WM.get(),e,t),r=(0,c.p)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(r-o))},angleToSilhouette:S,axisAt:O,altitudeAt:q,setAltitudeAt:function(t,e,n,o){const a=q(t,e),s=O(t,e,r.Z,C),i=(0,c.g)(C,s,n-a);return(0,c.a)(o,e,i)},containsPoint:x,tmpSphere:L},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function o(t,e){return[t,e]}function a(t,e){return new Float64Array(t,e,2)}function s(){return o(1,1)}function i(){return o(1,0)}function u(){return o(0,1)}n.d(e,{Z:()=>c,a:()=>r,c:()=>a});const c=[0,0],f=s(),l=i(),h=u();Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:function(t){return[t[0],t[1]]},fromValues:o,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},createView:a,zeros:function(){return[0,0]},ones:s,unitX:i,unitY:u,ZEROS:c,ONES:f,UNIT_X:l,UNIT_Y:h},Symbol.toStringTag,{value:"Module"}))},17896:(t,e,n)=>{n.d(e,{B:()=>f,C:()=>l,a:()=>u,b:()=>c,c:()=>s,d:()=>M,e:()=>g,f:()=>y,g:()=>h,h:()=>w,i:()=>m,k:()=>v,l:()=>a,m:()=>_,n:()=>p,p:()=>b,q:()=>T,r:()=>O,s:()=>i,t:()=>P,u:()=>I,z:()=>d});var r=n(65617),o=n(46851);function a(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function d(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function m(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function p(t,e){const n=e[0],r=e[1],o=e[2];let a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function g(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function y(t,e,n){const r=e[0],o=e[1],a=e[2],s=n[0],i=n[1],u=n[2];return t[0]=o*u-a*i,t[1]=a*s-r*u,t[2]=r*i-o*s,t}function w(t,e,n,r){const o=e[0],a=e[1],s=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=s+r*(n[2]-s),t}function _(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function P(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function T(t,e,n){const r=n[0],o=n[1],a=n[2],s=n[3],i=e[0],u=e[1],c=e[2];let f=o*c-a*u,l=a*i-r*c,h=r*u-o*i,d=o*h-a*l,m=a*f-r*h,M=r*l-o*f;const b=2*s;return f*=b,l*=b,h*=b,d*=2,m*=2,M*=2,t[0]=i+f+d,t[1]=u+l+m,t[2]=c+h+M,t}const E=(0,r.c)(),S=(0,r.c)();function v(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function O(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2];let s=r*r+o*o+a*a;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=o*s,t[2]=a*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=c,x=f,C=l,L=m,A=M,I=a,k=b;Object.freeze(Object.defineProperty({__proto__:null,length:a,copy:s,set:i,add:u,subtract:c,multiply:f,divide:l,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},abs:function(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t},sign:function(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:h,scaleAndAdd:d,distance:m,squaredDistance:M,squaredLength:b,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},normalize:p,dot:g,cross:y,lerp:w,hermite:function(t,e,n,r,o,a){const s=a*a,i=s*(2*a-3)+1,u=s*(a-2)+a,c=s*(a-1),f=s*(3-2*a);return t[0]=e[0]*i+n[0]*u+r[0]*c+o[0]*f,t[1]=e[1]*i+n[1]*u+r[1]*c+o[1]*f,t[2]=e[2]*i+n[2]*u+r[2]*c+o[2]*f,t},bezier:function(t,e,n,r,o,a){const s=1-a,i=s*s,u=a*a,c=i*s,f=3*a*i,l=3*u*s,h=u*a;return t[0]=e[0]*c+n[0]*f+r[0]*l+o[0]*h,t[1]=e[1]*c+n[1]*f+r[1]*l+o[1]*h,t[2]=e[2]*c+n[2]*f+r[2]*l+o[2]*h,t},random:function(t,e){e=e||1;const n=o.R,r=2*n()*Math.PI,a=2*n()-1,s=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=a*e,t},transformMat4:_,transformMat3:P,transformQuat:T,rotateX:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},angle:function(t,e){s(E,t),s(S,e),p(E,E),p(S,S);const n=g(E,S);return n>1?0:n<-1?Math.PI:Math.acos(n)},str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:v,equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],s=e[0],i=e[1],u=e[2],c=(0,o.g)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-u)<=c*Math.max(1,Math.abs(a),Math.abs(u))},direction:O,sub:q,mul:x,div:C,dist:L,sqrDist:A,len:I,sqrLen:k},Symbol.toStringTag,{value:"Module"}))},65617:(t,e,n)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function s(t){const e=[0,0,0],n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function i(t,e){return new Float64Array(t,e,3)}function u(){return a(1,1,1)}function c(){return a(1,0,0)}function f(){return a(0,1,0)}function l(){return a(0,0,1)}n.d(e,{O:()=>d,Z:()=>h,a:()=>o,b:()=>i,c:()=>r,d:()=>s,f:()=>a});const h=[0,0,0],d=u(),m=c(),M=f(),b=l();Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:o,fromValues:a,fromArray:s,createView:i,zeros:function(){return[0,0,0]},ones:u,unitX:c,unitY:f,unitZ:l,ZEROS:h,ONES:d,UNIT_X:m,UNIT_Y:M,UNIT_Z:b},Symbol.toStringTag,{value:"Module"}))},98766:(t,e,n)=>{n.d(e,{a:()=>s,b:()=>f,c:()=>o,d:()=>b,e:()=>d,f:()=>m,g:()=>g,h:()=>y,l:()=>p,n:()=>M,s:()=>a});var r=n(46851);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function f(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function h(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function d(t){const e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function m(t){const e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function M(t,e){const n=e[0],r=e[1],o=e[2],a=e[3];let s=n*n+r*r+o*o+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=n*s,t[1]=r*s,t[2]=o*s,t[3]=a*s),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function p(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=s+r*(n[2]-s),t[3]=i+r*(n[3]-i),t}function g(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function y(t,e){const n=t[0],o=t[1],a=t[2],s=t[3],i=e[0],u=e[1],c=e[2],f=e[3],l=(0,r.g)();return Math.abs(n-i)<=l*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-u)<=l*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(a-c)<=l*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(s-f)<=l*Math.max(1,Math.abs(s),Math.abs(f))}const w=i,_=u,P=c,T=l,E=h,S=d,v=m;Object.freeze(Object.defineProperty({__proto__:null,copy:o,set:a,add:s,subtract:i,multiply:u,divide:c,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},scale:f,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},distance:l,squaredDistance:h,length:d,squaredLength:m,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},normalize:M,dot:b,lerp:p,random:function(t,e){const n=r.R;let o,a,s,i,u,c;e=e||1;do{o=2*n()-1,a=2*n()-1,u=o*o+a*a}while(u>=1);do{s=2*n()-1,i=2*n()-1,c=s*s+i*i}while(c>=1);const f=Math.sqrt((1-u)/c);return t[0]=e*o,t[1]=e*a,t[2]=e*s*f,t[3]=e*i*f,t},transformMat4:function(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*s,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*s,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*s,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*s,t},transformQuat:function(t,e,n){const r=e[0],o=e[1],a=e[2],s=n[0],i=n[1],u=n[2],c=n[3],f=c*r+i*a-u*o,l=c*o+u*r-s*a,h=c*a+s*o-i*r,d=-s*r-i*o-u*a;return t[0]=f*c+d*-s+l*-u-h*-i,t[1]=l*c+d*-i+h*-s-f*-u,t[2]=h*c+d*-u+f*-i-l*-s,t[3]=e[3],t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:g,equals:y,sub:w,mul:_,div:P,dist:T,sqrDist:E,len:S,sqrLen:v},Symbol.toStringTag,{value:"Module"}))},88669:(t,e,n)=>{function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(t,e){return new Float64Array(t,e,4)}function s(){return o(1,1,1,1)}function i(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}n.d(e,{a:()=>a,c:()=>r,f:()=>o});const l=s(),h=i(),d=u(),m=c(),M=f();Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:function(t){return[t[0],t[1],t[2],t[3]]},fromValues:o,fromArray:function(t){const e=[0,0,0,0],n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},createView:a,zeros:function(){return[0,0,0,0]},ones:s,unitX:i,unitY:u,unitZ:c,unitW:f,ZEROS:[0,0,0,0],ONES:l,UNIT_X:h,UNIT_Y:d,UNIT_Z:m,UNIT_W:M},Symbol.toStringTag,{value:"Module"}))},22807:(t,e,n)=>{n.d(e,{x:()=>o});var r=n(41213);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*a);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,a));t++)this._items.push(this._allocator())}}const a=1024},43090:(t,e,n)=>{function r(t){return 32+t.length}function o(t){if(!t)return 0;let e=u;for(const n in t)if(t.hasOwnProperty(n)){const o=t[n];switch(typeof o){case"string":e+=r(o);break;case"number":e+=16;break;case"boolean":e+=4}}return e}function a(t){if(!t)return 0;if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return 32+8*e;let n=c;for(let r=0;r<e;r++)n+=s(t[r]);return n}(t);let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=s(t[n]));return e}function s(t){switch(typeof t){case"object":return a(t);case"string":return r(t);case"number":return 16;case"boolean":return 4;default:return 8}}function i(t,e){return c+t.length*e}n.d(e,{Ul:()=>a,Y8:()=>f,do:()=>i,f2:()=>o});const u=32,c=32;var f;!function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(f||(f={}))},22021:(t,e,n)=>{n.d(e,{BV:()=>f,Kt:()=>h,Sf:()=>a,Vl:()=>c,ZF:()=>l,jE:()=>b,oK:()=>m,oc:()=>p,t7:()=>u,uZ:()=>s,wt:()=>i});var r=n(17896);n(98766);const o=new Float32Array(1);function a(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function s(t,e,n){return Math.min(Math.max(t,e),n)}function i(t){return 0==(t&t-1)}function u(t,e,n){return t+(e-t)*n}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function l(t){return Math.acos(s(t,-1,1))}function h(t){return Math.asin(s(t,-1,1))}function d(t,e,n=1e-6){return!isNaN(t)&&!isNaN(e)&&(t>e?t-e:e-t)<=n}function m(t){return M(Math.max(-g,Math.min(t,g)))}function M(t){return o[0]=t,o[0]}function b(t,e){const n=(0,r.l)(t),o=h(t[2]/n),a=Math.atan2(t[1]/n,t[0]/n);return(0,r.s)(e,n,o,a),e}function p(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(n,1)&&d(r,1))}const g=M(34028234663852886e22)},41213:(t,e,n)=>{n.d(e,{Y:()=>o});const r=[];function o(t){r.push(t),1===r.length&&queueMicrotask((()=>{const t=r.slice();r.length=0;for(const e of t)e()}))}},78341:(t,e,n)=>{n.d(e,{JI:()=>c,Ue:()=>s,re:()=>u}),n(67676);var r=n(22807),o=n(17896),a=n(65617);function s(t){return t?i((0,a.a)(t.origin),(0,a.a)(t.direction)):i((0,a.c)(),(0,a.c)())}function i(t,e){return{origin:t,direction:e}}function u(t,e){const n=f.get();return n.origin=t,n.direction=e,n}function c(t,e,n){const r=(0,o.e)(t.direction,(0,o.b)(n,e,t.origin));return(0,o.a)(n,t.origin,(0,o.g)(n,t.direction,r)),n}n(12981);const f=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),o=n(17896),a=n(65617);function s(t,e){const n=(0,o.e)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,r.ZF)(n)}(0,a.c)(),(0,a.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>m,WM:()=>d});var r=n(43090),o=n(41213),a=n(46521),s=n(13598),i=n(94961),u=n(97323),c=n(65617),f=n(88669);class l{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,o.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=h){return new l(16,u.c,t)}static createVec3f64(t=h){return new l(24,c.b,t)}static createVec4f64(t=h){return new l(32,f.a,t)}static createMat3f64(t=h){return new l(72,a.a,t)}static createMat4f64(t=h){return new l(128,s.a,t)}static createQuatf64(t=h){return new l(32,i.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const h=4*r.Y8.KILOBYTES,d=(l.createVec2f64(),l.createVec3f64()),m=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64());l.createQuatf64()},3172:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var r=n(68773),o=n(40330),a=n(20102),s=n(80442),i=n(22974),u=n(70586),c=n(95330),f=n(17452),l=n(71058),h=n(85958);async function d(t,e){const i=(0,f.HK)(t),p=(0,f.jc)(t);p||i||(t=(0,f.Fv)(t));const g={url:t,requestOptions:{...(0,u.Wg)(e)}};let y=(0,f.oh)(t);if(y){const t=await async function(t,e){if(null!=t.responseData)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let n,r;try{r=await t.before(e)}catch(t){n=T("request:interceptor",t,e)}if((r instanceof Error||r instanceof a.Z)&&(n=T("request:interceptor",r,e)),n)throw t.error&&t.error(n),n;return r}}(y,g);if(null!=t)return{data:t,getHeader:w,requestOptions:g.requestOptions,url:g.url};y.after||y.error||(y=null)}if(t=g.url,"image"===(e=g.requestOptions).responseType){if((0,s.Z)("host-webworker")||(0,s.Z)("host-node"))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g)}else if(i)throw T("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+e.responseType),g);if("head"===e.method){if(e.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(i||p)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,s.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(t,e);const _=new AbortController;(0,c.fu)(e,(()=>_.abort()));const P={controller:_,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:y,params:g,redoRequest:!1,useIdentity:M.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},O=await async function(t){let e,n;await async function(t){const e=t.params.url,n=t.params.requestOptions,a=t.controller.signal,s=n.body;let i=null,u=null;if(b&&"HTMLFormElement"in globalThis&&(s instanceof FormData?i=s:s instanceof HTMLFormElement&&(i=new FormData(s))),"string"==typeof s&&(u=s),t.fetchOptions={cache:n.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:M.priority,redirect:"follow",signal:a},(i||u)&&(t.fetchOptions.body=i||u),"anonymous"===n.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||n.query?.token||i?.get("token")),!t.hasToken&&r.Z.apiKey&&(0,l.r)(e)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!S(e)&&!(0,c.Hc)(a)){let r;"immediate"===n.authMode?(await E(),r=await o.id.getCredential(e,{signal:a}),t.credential=r):"no-prompt"===n.authMode?(await E(),r=await o.id.getCredential(e,{prompt:!1,signal:a}).catch((()=>{})),t.credential=r):o.id&&(r=o.id.findCredential(e)),r&&(t.credentialToken=r.token,t.useSSL=!!r.ssl)}}(t);try{do{[e,n]=await v(t)}while(!await q(t,e,n))}catch(n){const r=T("request:server",n,t.params,e);throw r.details.ssl=t.useSSL,t.interceptor&&t.interceptor.error&&t.interceptor.error(r),r}const a=t.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!t.hasToken&&!t.credentialToken&&n.user?.username&&!(0,f.kl)(a)){const t=(0,f.P$)(a,!0);t&&M.trustedServers.push(t)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(n.authorizedCrossOriginNoCorsDomains)}const s=t.credential;if(s&&o.id){const t=o.id.findServerInfo(s.server);let e=t&&t.owningSystemUrl;if(e){e=e.replace(/\/?$/,"/sharing");const t=o.id.findCredential(e,s.userId);t&&-1===o.id._getIdenticalSvcIdx(e,t)&&t.resources.unshift(e)}}return{data:n,getHeader:e?t=>e?.headers.get(t):w,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}(P);return y?.after?.(O),O}let m;const M=r.Z.request,b="FormData"in globalThis,p=[499,498,403,401],g=["COM_0056","COM_0057","SB_0008"],y=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],w=()=>null,_=Symbol();function P(t){const e=(0,f.P$)(t);return!e||e.endsWith(".arcgis.com")||d._corsServers.includes(e)||(0,f.kl)(e)}function T(t,e,n,r){let o="Error";const s={url:n.url,requestOptions:n.requestOptions,getHeader:w,ssl:!1};if(e instanceof a.Z)return e.details?(e.details=(0,i.d9)(e.details),e.details.url=n.url,e.details.requestOptions=n.requestOptions):e.details=s,e;if(e){const t=r&&(t=>r.headers.get(t)),n=r&&r.status,a=e.message;a&&(o=a),t&&(s.getHeader=t),s.httpStatus=(null!=e.httpCode?e.httpCode:e.code)||n||0,s.subCode=e.subcode,s.messageCode=e.messageCode,"string"==typeof e.details?s.messages=[e.details]:s.messages=e.details,s.raw=_ in e?e[_]:e}return(0,c.D_)(e)?(0,c.zE)():new a.Z(t,o,s)}async function E(){o.id||await Promise.all([n.e(812),n.e(1400),n.e(1761)]).then(n.bind(n,55142))}function S(t){return y.some((e=>e.test(t)))}async function v(t){let e=t.params.url;const n=t.params.requestOptions,r=t.fetchOptions??{},a=(0,f.jc)(e)||(0,f.HK)(e),i=n.responseType||"json",u=a?0:null!=n.timeout?n.timeout:M.timeout;let l=!1;if(!a){t.useSSL&&(e=(0,f.hO)(e)),n.cacheBust&&"default"===r.cache&&(e=(0,f.ZN)(e,"request.preventCache",Date.now()));let a={...n.query};t.credentialToken&&(a.token=t.credentialToken);let i=(0,f.B7)(a);(0,s.Z)("esri-url-encodes-apostrophe")&&(i=i.replace(/'/g,"%27"));const u=e.length+1+i.length;let c;l="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||u>M.maxUrlLength;const d=n.useProxy||!!(0,f.ed)(e);if(d){const t=(0,f.b7)(e);c=t.path,!l&&c.length+1+u>M.maxUrlLength&&(l=!0),t.query&&(a={...t.query,...a})}if("HEAD"===r.method&&(l||d)){if(l){if(u>M.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params)}if(d)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}if(l?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?e=(0,f.fl)(e,a):(r.body=(0,f.B7)(a),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):e=(0,f.fl)(e,a),d&&(t.useProxy=!0,e=`${c}?${e}`),a.token&&b&&r.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)&&r.body.set("token",a.token),n.hasOwnProperty("withCredentials"))t.withCredentials=n.withCredentials;else if(!(0,f.D6)(e,(0,f.TI)()))if((0,f.kl)(e))t.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(e);n&&n.webTierAuth&&(t.withCredentials=!0)}t.withCredentials&&(r.credentials="include",(0,h.jH)(e)&&await(0,h.jz)(l?(0,f.fl)(e,a):e))}let m,p,g=0,y=!1;u>0&&(g=setTimeout((()=>{y=!0,t.controller.abort()}),u));try{if("native-request-init"===n.responseType)p=r,p.url=e;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||l||function(t){if(t)for(const e of Object.getOwnPropertyNames(t))if(t[e])return!0;return!1}(n.headers)||!a&&!t.useProxy&&M.proxyUrl&&!P(e)){if(m=await d._abortableFetch(e,r),t.useProxy||function(t){const e=(0,f.P$)(t);e&&!d._corsServers.includes(e)&&d._corsServers.push(e)}(e),"native"===n.responseType)p=m;else if("HEAD"!==r.method)if(m.ok){switch(i){case"array-buffer":p=await m.arrayBuffer();break;case"blob":case"image":p=await m.blob();break;default:p=await m.text()}if(g&&(clearTimeout(g),g=0),"json"===i||"xml"===i||"document"===i)if(p)switch(i){case"json":p=JSON.parse(p);break;case"xml":p=O(p,"application/xml");break;case"document":p=O(p,"text/html")}else p=null;if(p){if("array-buffer"===i||"blob"===i){const t=m.headers.get("Content-Type");if(t&&/application\/json|text\/plain/i.test(t)&&p["blob"===i?"size":"byteLength"]<=750)try{const t=await new Response(p).json();t.error&&(p=t)}catch{}}"image"===i&&p instanceof Blob&&(p=await x(URL.createObjectURL(p),t,!0))}}else p=await m.text()}else p=await x(e,t)}catch(r){if("AbortError"===r.name){if(y)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!m&&r instanceof TypeError&&M.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||t.useProxy||P(e))throw r;t.redoRequest=!0,(0,f.tD)({proxyUrl:M.proxyUrl,urlPrefix:(0,f.P$)(e)??""})}finally{g&&clearTimeout(g)}return[m,p]}function O(t,e){let n;try{n=(new DOMParser).parseFromString(t,e)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function q(t,e,n){if(t.redoRequest)return t.redoRequest=!1,!1;const r=t.params.requestOptions;if(!e||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let a,s;if(!e.ok)throw a=new Error(`Unable to load ${e.url} status: ${e.status}`),a[_]=n,a;n&&(n.error?a=n.error:"error"===n.status&&Array.isArray(n.messages)&&(a={...n},a[_]=n,a.details=n.messages));let i,u=null;a&&(s=Number(a.code),u=a.hasOwnProperty("subcode")?Number(a.subcode):null,i=a.messageCode,i=i&&i.toUpperCase());const c=r.authMode;if(403===s&&(4===u||a.message&&a.message.toLowerCase().includes("ssl")&&!a.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&("no-prompt"!==c||498===s)&&void 0!==s&&p.includes(s)&&!S(t.params.url)&&(403!==s||i&&!g.includes(i)&&(null==u||2===u&&t.credentialToken))){await E();try{const e=await o.id.getCredential(t.params.url,{error:T("request:server",a,t.params),prompt:"no-prompt"!==c,signal:t.controller.signal,token:t.credentialToken});return t.credential=e,t.credentialToken=e.token,t.useSSL=t.useSSL||e.ssl,!1}catch(e){if("no-prompt"===c)return t.credential=void 0,t.credentialToken=void 0,!1;a=e}}if(a)throw a;return!0}function x(t,e,n=!1){const r=e.controller.signal,o=new Image;return e.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=M.priority,o.src=t,(0,h.fY)(o,t,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(t,e,n)=>{n.d(e,{r:()=>a});var r=n(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function a(t){const e=(0,r.P$)(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!o.includes(e)&&!t.endsWith("/sharing/rest/generateToken")}},85958:(t,e,n)=>{n.d(e,{Hu:()=>f,fY:()=>u,jH:()=>l,jz:()=>h});var r=n(68773),o=n(80442),a=n(70586),s=n(95330),i=n(17452);function u(t,e,n=!1,r){return new Promise(((i,u)=>{if((0,s.Hc)(r))return void u(c());let f=()=>{d(),u(new Error(`Unable to load ${e}`))},l=()=>{const e=t;d(),i(e)},h=()=>{if(!t)return;const e=t;d(),e.src="",u(c())};const d=()=>{(0,o.Z)("esri-image-decode")||(t.removeEventListener("error",f),t.removeEventListener("load",l)),f=null,l=null,t=null,(0,a.pC)(r)&&r.removeEventListener("abort",h),h=null,n&&URL.revokeObjectURL(e)};(0,a.pC)(r)&&r.addEventListener("abort",h),(0,o.Z)("esri-image-decode")?t.decode().then(l,f):(t.addEventListener("error",f),t.addEventListener("load",l))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error;return t.name="AbortError",t}}function f(t){r.Z.request.crossOriginNoCorsDomains||(r.Z.request.crossOriginNoCorsDomains={});const e=r.Z.request.crossOriginNoCorsDomains;for(let n of t)n=n.toLowerCase(),/^https?:\/\//.test(n)?e[(0,i.P$)(n)??""]=0:(e[(0,i.P$)("http://"+n)??""]=0,e[(0,i.P$)("https://"+n)??""]=0)}function l(t){const e=r.Z.request.crossOriginNoCorsDomains;if(e){let n=(0,i.P$)(t);if(n)return n=n.toLowerCase(),!(0,i.D6)(n,(0,i.TI)())&&e[n]<Date.now()-36e5}return!1}async function h(t){const e=r.Z.request.crossOriginNoCorsDomains,n=(0,i.P$)(t);e&&n&&(e[n.toLowerCase()]=Date.now());const o=(0,i.mN)(t);t=o.path,"json"===o.query?.f&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}}},31412:(t,e,n)=>{n.r(e),n.d(e,{destroyContext:()=>_,dracoDecompressPointCloudData:()=>p,filterObbsForModifications:()=>g,filterObbsForModificationsSync:()=>O,initialize:()=>C,interpretObbModificationResults:()=>v,process:()=>b,setLegacySchema:()=>w,setModifications:()=>y,setModificationsSync:()=>E,test:()=>L});var r,o,a=n(70586),s=n(1533);!function(t){t[t.None=0]="None",t[t.Int16=1]="Int16",t[t.Int32=2]="Int32"}(r||(r={})),function(t){t[t.Replace=0]="Replace",t[t.Outside=1]="Outside",t[t.Inside=2]="Inside",t[t.Finished=3]="Finished"}(o||(o={}));var i=n(99880);function u(t){return(0,i.V)(`esri/libs/i3s/${t}`)}let c;var f,l,h,d,m,M;async function b(t){await C();const e=[t.geometryBuffer];return{result:S(t,e),transferList:e}}async function p(t){await C();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=T._malloc(r),a=new Uint8Array(T.HEAPU8.buffer,o,r);a.set(new Uint8Array(n));const i=T.dracoDecompressPointCloudData(o,a.byteLength);if(T._free(o),i.error.length>0)throw`i3s.wasm: ${i.error}`;const u=i.featureIds?.length>0?(0,s.tP)(i.featureIds):null,c=(0,s.tP)(i.positions);return u&&e.push(u.buffer),e.push(c.buffer),{result:{positions:c,featureIds:u},transferList:e}}async function g(t){await C(),O(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function y(t){await C(),E(t)}async function w(t){await C(),T.setLegacySchema(t.context,t.jsonSchema)}function _(t){q(t)}let P,T;function E(t){const e=t.modifications,n=T._malloc(8*e.length),r=new Float64Array(T.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];T.setModifications(t.context,n,e.length,t.isGeodetic),T._free(n)}function S(t,e){if(!T)return null;const{context:n,localOrigin:o,globalTrafo:i,mbs:u,obb:c,elevationOffset:f,geometryBuffer:l,geometryDescriptor:h,indexToVertexProjector:d,vertexToRenderProjector:m}=t,M=T._malloc(l.byteLength),b=T._malloc(33*Float64Array.BYTES_PER_ELEMENT),p=new Uint8Array(T.HEAPU8.buffer,M,l.byteLength);p.set(new Uint8Array(l));const g=new Float64Array(T.HEAPU8.buffer,b,33);x(g,o);let y=g.byteOffset+3*g.BYTES_PER_ELEMENT,w=new Float64Array(g.buffer,y);x(w,i),y+=16*g.BYTES_PER_ELEMENT,w=new Float64Array(g.buffer,y),x(w,u),y+=4*g.BYTES_PER_ELEMENT,(0,a.pC)(c)&&(w=new Float64Array(g.buffer,y),x(w,c.center),y+=3*g.BYTES_PER_ELEMENT,w=new Float64Array(g.buffer,y),x(w,c.halfSize),y+=3*g.BYTES_PER_ELEMENT,w=new Float64Array(g.buffer,y),x(w,c.quaternion));const _=h,P={isDraco:!1,isLegacy:!1,color:t.layouts.some((t=>t.some((t=>"color"===t.name)))),normal:t.needNormals&&t.layouts.some((t=>t.some((t=>"normalCompressed"===t.name)))),uv0:t.layouts.some((t=>t.some((t=>"uv0"===t.name)))),uvRegion:t.layouts.some((t=>t.some((t=>"uvRegion"===t.name)))),featureIndex:_.featureIndex},E=T.process(n,!!t.obb,M,p.byteLength,_,P,b,f,d,m,t.normalReferenceFrame);if(T._free(b),T._free(M),E.error.length>0)throw`i3s.wasm: ${E.error}`;if(E.discarded)return null;const S=E.componentOffsets.length>0?(0,s.tP)(E.componentOffsets):null,v=E.featureIds.length>0?(0,s.tP)(E.featureIds):null,O=(0,s.tP)(E.interleavedVertedData).buffer,q=E.indicesType===r.Int16?(0,s.tP)(new Uint16Array(E.indices.buffer,E.indices.byteOffset,E.indices.byteLength/2)):(0,s.tP)(new Uint32Array(E.indices.buffer,E.indices.byteOffset,E.indices.byteLength/4)),C=(0,s.tP)(E.positions),L=E.positionIndicesType===r.Int16?(0,s.tP)(new Uint16Array(E.positionIndices.buffer,E.positionIndices.byteOffset,E.positionIndices.byteLength/2)):(0,s.tP)(new Uint32Array(E.positionIndices.buffer,E.positionIndices.byteOffset,E.positionIndices.byteLength/4)),A={layout:t.layouts[0],interleavedVertexData:O,indices:q,hasColors:E.hasColors,hasModifications:E.hasModifications,positionData:{data:C,indices:L}};return v&&e.push(v.buffer),S&&e.push(S.buffer),e.push(O),e.push(q.buffer),e.push(C.buffer),e.push(L.buffer),{componentOffsets:S,featureIds:v,transformedGeometry:A,obb:E.obb}}function v(t){return 0===t?l.Unmodified:1===t?l.PotentiallyModified:2===t?l.Culled:l.Unknown}function O(t){const{context:e,buffer:n}=t,r=T._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,a=new Float64Array(T.HEAPU8.buffer,r,o),s=new Float64Array(n);a.set(s),T.filterOBBs(e,r,o),s.set(a),T._free(r)}function q(t){T&&T.destroy(t)}function x(t,e){for(let n=0;n<e.length;++n)t[n]=e[n]}function C(){return T?Promise.resolve():(P||(P=(c||(c=new Promise((t=>n.e(6710).then(n.bind(n,26710)).then((t=>t.i)).then((({default:e})=>{const n=e({locateFile:u,onRuntimeInitialized:()=>t(n)});delete n.then})))).catch((t=>{throw t}))),c).then((t=>{T=t,P=null}))),P)}n(29268),(M=f||(f={}))[M.Unmodified=0]="Unmodified",M[M.Culled=1]="Culled",M[M.NotChecked=2]="NotChecked",function(t){t[t.Unmodified=0]="Unmodified",t[t.PotentiallyModified=1]="PotentiallyModified",t[t.Culled=2]="Culled",t[t.Unknown=3]="Unknown",t[t.NotChecked=4]="NotChecked"}(l||(l={})),function(t){t[t.Unknown=0]="Unknown",t[t.Uncached=1]="Uncached",t[t.Cached=2]="Cached"}(h||(h={})),function(t){t[t.None=0]="None",t[t.MaxScreenThreshold=1]="MaxScreenThreshold",t[t.ScreenSpaceRelative=2]="ScreenSpaceRelative",t[t.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",t[t.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(d||(d={})),function(t){t[t.Hole=0]="Hole",t[t.Leaf=1]="Leaf"}(m||(m={}));const L={transform:S,destroy:q}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1412,3172,9880],{99880:(t,e,n)=>{n.d(e,{V:()=>u});var r=n(68773),o=(n(3172),n(20102)),a=n(92604),s=n(17452);const i=a.Z.getLogger("esri.assets");function u(t){if(!r.Z.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,s.v_)(r.Z.assetsPath,t)}},46851:(t,e,n)=>{n.d(e,{R:()=>a,a:()=>c,g:()=>o,t:()=>u});let r=1e-6;function o(){return r}const a=Math.random,s=Math.PI/180,i=180/Math.PI;function u(t){return t*s}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,getEpsilon:o,setEpsilon:function(t){r=t},RANDOM:a,toRadian:u,toDegree:c,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>o,c:()=>r}),Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},fromValues:function(t,e,n,r,o,a,s,i,u){return[t,e,n,r,o,a,s,i,u]},createView:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{a:()=>u,d:()=>m,e:()=>h,f:()=>d,g:()=>g,h:()=>_,i:()=>s,j:()=>w,k:()=>l,m:()=>c,s:()=>a,t:()=>i,v:()=>f,x:()=>P,y:()=>M});var r=n(65617),o=n(46851);function a(t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M,b){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t[6]=i,t[7]=u,t[8]=c,t[9]=f,t[10]=l,t[11]=h,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],a=e[6],s=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=o,t[13]=s,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function u(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],m=e[12],M=e[13],b=e[14],p=e[15],g=n*i-r*s,y=n*u-o*s,w=n*c-a*s,_=r*u-o*i,P=r*c-a*i,T=o*c-a*u,v=f*M-l*m,E=f*b-h*m,S=f*p-d*m,O=l*b-h*M,q=l*p-d*M,x=h*p-d*b;let C=g*x-y*q+w*O+_*S-P*E+T*v;return C?(C=1/C,t[0]=(i*x-u*q+c*O)*C,t[1]=(o*q-r*x-a*O)*C,t[2]=(M*T-b*P+p*_)*C,t[3]=(h*P-l*T-d*_)*C,t[4]=(u*S-s*x-c*E)*C,t[5]=(n*x-o*S+a*E)*C,t[6]=(b*w-m*T-p*y)*C,t[7]=(f*T-h*w+d*y)*C,t[8]=(s*q-i*S+c*v)*C,t[9]=(r*S-n*q-a*v)*C,t[10]=(m*P-M*w+p*g)*C,t[11]=(l*w-f*P-d*g)*C,t[12]=(i*E-s*O-u*v)*C,t[13]=(n*O-r*E+o*v)*C,t[14]=(M*y-m*_-b*g)*C,t[15]=(f*_-l*y+h*g)*C,t):null}function c(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3],i=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=e[9],d=e[10],m=e[11],M=e[12],b=e[13],p=e[14],g=e[15];let y=n[0],w=n[1],_=n[2],P=n[3];return t[0]=y*r+w*i+_*l+P*M,t[1]=y*o+w*u+_*h+P*b,t[2]=y*a+w*c+_*d+P*p,t[3]=y*s+w*f+_*m+P*g,y=n[4],w=n[5],_=n[6],P=n[7],t[4]=y*r+w*i+_*l+P*M,t[5]=y*o+w*u+_*h+P*b,t[6]=y*a+w*c+_*d+P*p,t[7]=y*s+w*f+_*m+P*g,y=n[8],w=n[9],_=n[10],P=n[11],t[8]=y*r+w*i+_*l+P*M,t[9]=y*o+w*u+_*h+P*b,t[10]=y*a+w*c+_*d+P*p,t[11]=y*s+w*f+_*m+P*g,y=n[12],w=n[13],_=n[14],P=n[15],t[12]=y*r+w*i+_*l+P*M,t[13]=y*o+w*u+_*h+P*b,t[14]=y*a+w*c+_*d+P*p,t[15]=y*s+w*f+_*m+P*g,t}function f(t,e,n){const r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{const n=e[0],s=e[1],i=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=e[7],d=e[8],m=e[9],M=e[10],b=e[11];t[0]=n,t[1]=s,t[2]=i,t[3]=u,t[4]=c,t[5]=f,t[6]=l,t[7]=h,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=n*r+c*o+d*a+e[12],t[13]=s*r+f*o+m*a+e[13],t[14]=i*r+l*o+M*a+e[14],t[15]=u*r+h*o+b*a+e[15]}return t}function l(t,e,n){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function h(t,e,n,r){let a,s,i,u,c,f,l,h,d,m,M,b,p,g,y,w,_,P,T,v,E,S,O,q,x=r[0],C=r[1],A=r[2],L=Math.sqrt(x*x+C*C+A*A);return L<(0,o.g)()?null:(L=1/L,x*=L,C*=L,A*=L,a=Math.sin(n),s=Math.cos(n),i=1-s,u=e[0],c=e[1],f=e[2],l=e[3],h=e[4],d=e[5],m=e[6],M=e[7],b=e[8],p=e[9],g=e[10],y=e[11],w=x*x*i+s,_=C*x*i+A*a,P=A*x*i-C*a,T=x*C*i-A*a,v=C*C*i+s,E=A*C*i+x*a,S=x*A*i+C*a,O=C*A*i-x*a,q=A*A*i+s,t[0]=u*w+h*_+b*P,t[1]=c*w+d*_+p*P,t[2]=f*w+m*_+g*P,t[3]=l*w+M*_+y*P,t[4]=u*T+h*v+b*E,t[5]=c*T+d*v+p*E,t[6]=f*T+m*v+g*E,t[7]=l*T+M*v+y*E,t[8]=u*S+h*O+b*q,t[9]=c*S+d*O+p*q,t[10]=f*S+m*O+g*q,t[11]=l*S+M*O+y*q,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,n){if(0===e)return s(t);let r,a,i,u=n[0],c=n[1],f=n[2],l=Math.sqrt(u*u+c*c+f*f);return l<(0,o.g)()?null:(l=1/l,u*=l,c*=l,f*=l,r=Math.sin(e),a=Math.cos(e),i=1-a,t[0]=u*u*i+a,t[1]=c*u*i+f*r,t[2]=f*u*i-c*r,t[3]=0,t[4]=u*c*i-f*r,t[5]=c*c*i+a,t[6]=f*c*i+u*r,t[7]=0,t[8]=u*f*i+c*r,t[9]=c*f*i-u*r,t[10]=f*f*i+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3],i=r+r,u=o+o,c=a+a,f=r*i,l=r*u,h=r*c,d=o*u,m=o*c,M=a*c,b=s*i,p=s*u,g=s*c;return t[0]=1-(d+M),t[1]=l+g,t[2]=h-p,t[3]=0,t[4]=l-g,t[5]=1-(f+M),t[6]=m+b,t[7]=0,t[8]=h+p,t[9]=m-b,t[10]=1-(f+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const p=(0,r.c)();function g(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=e[3],u=o+o,c=a+a,f=s+s,l=o*u,h=o*c,d=o*f,m=a*c,M=a*f,b=s*f,p=i*u,g=i*c,y=i*f,w=r[0],_=r[1],P=r[2];return t[0]=(1-(m+b))*w,t[1]=(h+y)*w,t[2]=(d-g)*w,t[3]=0,t[4]=(h-y)*_,t[5]=(1-(l+b))*_,t[6]=(M+p)*_,t[7]=0,t[8]=(d+g)*P,t[9]=(M-p)*P,t[10]=(1-(l+m))*P,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function y(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function _(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],s=t[3],i=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=t[9],d=t[10],m=t[11],M=t[12],b=t[13],p=t[14],g=t[15],y=e[0],w=e[1],_=e[2],P=e[3],T=e[4],v=e[5],E=e[6],S=e[7],O=e[8],q=e[9],x=e[10],C=e[11],A=e[12],L=e[13],I=e[14],k=e[15],R=(0,o.g)();return Math.abs(n-y)<=R*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=R*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-_)<=R*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(s-P)<=R*Math.max(1,Math.abs(s),Math.abs(P))&&Math.abs(i-T)<=R*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(u-v)<=R*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(c-E)<=R*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(f-S)<=R*Math.max(1,Math.abs(f),Math.abs(S))&&Math.abs(l-O)<=R*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(h-q)<=R*Math.max(1,Math.abs(h),Math.abs(q))&&Math.abs(d-x)<=R*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(m-C)<=R*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(M-A)<=R*Math.max(1,Math.abs(M),Math.abs(A))&&Math.abs(b-L)<=R*Math.max(1,Math.abs(b),Math.abs(L))&&Math.abs(p-I)<=R*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(g-k)<=R*Math.max(1,Math.abs(g),Math.abs(k))}function P(t){const e=(0,o.g)(),n=t[0],r=t[1],a=t[2],s=t[4],i=t[5],u=t[6],c=t[8],f=t[9],l=t[10];return Math.abs(1-(n*n+s*s+c*c))<=e&&Math.abs(1-(r*r+i*i+f*f))<=e&&Math.abs(1-(a*a+u*u+l*l))<=e}const T=c,v=y;Object.freeze(Object.defineProperty({__proto__:null,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},set:a,identity:s,transpose:i,invert:u,adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],i=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],m=e[12],M=e[13],b=e[14],p=e[15];return t[0]=i*(h*p-d*b)-l*(u*p-c*b)+M*(u*d-c*h),t[1]=-(r*(h*p-d*b)-l*(o*p-a*b)+M*(o*d-a*h)),t[2]=r*(u*p-c*b)-i*(o*p-a*b)+M*(o*c-a*u),t[3]=-(r*(u*d-c*h)-i*(o*d-a*h)+l*(o*c-a*u)),t[4]=-(s*(h*p-d*b)-f*(u*p-c*b)+m*(u*d-c*h)),t[5]=n*(h*p-d*b)-f*(o*p-a*b)+m*(o*d-a*h),t[6]=-(n*(u*p-c*b)-s*(o*p-a*b)+m*(o*c-a*u)),t[7]=n*(u*d-c*h)-s*(o*d-a*h)+f*(o*c-a*u),t[8]=s*(l*p-d*M)-f*(i*p-c*M)+m*(i*d-c*l),t[9]=-(n*(l*p-d*M)-f*(r*p-a*M)+m*(r*d-a*l)),t[10]=n*(i*p-c*M)-s*(r*p-a*M)+m*(r*c-a*i),t[11]=-(n*(i*d-c*l)-s*(r*d-a*l)+f*(r*c-a*i)),t[12]=-(s*(l*b-h*M)-f*(i*b-u*M)+m*(i*h-u*l)),t[13]=n*(l*b-h*M)-f*(r*b-o*M)+m*(r*h-o*l),t[14]=-(n*(i*b-u*M)-s*(r*b-o*M)+m*(r*u-o*i)),t[15]=n*(i*h-u*l)-s*(r*h-o*l)+f*(r*u-o*i),t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],s=t[5],i=t[6],u=t[7],c=t[8],f=t[9],l=t[10],h=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(e*s-n*a)*(l*b-h*M)-(e*i-r*a)*(f*b-h*m)+(e*u-o*a)*(f*M-l*m)+(n*i-r*s)*(c*b-h*d)-(n*u-o*s)*(c*M-l*d)+(r*u-o*i)*(c*m-f*d)},multiply:c,translate:f,scale:l,rotate:h,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[4],s=e[5],i=e[6],u=e[7],c=e[8],f=e[9],l=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+c*r,t[5]=s*o+f*r,t[6]=i*o+l*r,t[7]=u*o+h*r,t[8]=c*o-a*r,t[9]=f*o-s*r,t[10]=l*o-i*r,t[11]=h*o-u*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[0],s=e[1],i=e[2],u=e[3],c=e[8],f=e[9],l=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-c*r,t[1]=s*o-f*r,t[2]=i*o-l*r,t[3]=u*o-h*r,t[8]=a*r+c*o,t[9]=s*r+f*o,t[10]=i*r+l*o,t[11]=u*r+h*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),a=e[0],s=e[1],i=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+c*r,t[1]=s*o+f*r,t[2]=i*o+l*r,t[3]=u*o+h*r,t[4]=c*o-a*r,t[5]=f*o-s*r,t[6]=l*o-i*r,t[7]=h*o-u*r,t},fromTranslation:d,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotation:m,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:b,fromQuat2:function(t,e){const n=p,r=-e[0],o=-e[1],a=-e[2],s=e[3],i=e[4],u=e[5],c=e[6],f=e[7],l=r*r+o*o+a*a+s*s;return l>0?(n[0]=2*(i*s+f*r+u*a-c*o)/l,n[1]=2*(u*s+f*o+c*r-i*a)/l,n[2]=2*(c*s+f*a+i*o-u*r)/l):(n[0]=2*(i*s+f*r+u*a-c*o),n[1]=2*(u*s+f*o+c*r-i*a),n[2]=2*(c*s+f*a+i*o-u*r)),b(t,e,n),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[4],s=e[5],i=e[6],u=e[8],c=e[9],f=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+s*s+i*i),t[2]=Math.sqrt(u*u+c*c+f*f),t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},fromRotationTranslationScale:g,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const a=e[0],s=e[1],i=e[2],u=e[3],c=a+a,f=s+s,l=i+i,h=a*c,d=a*f,m=a*l,M=s*f,b=s*l,p=i*l,g=u*c,y=u*f,w=u*l,_=r[0],P=r[1],T=r[2],v=o[0],E=o[1],S=o[2],O=(1-(M+p))*_,q=(d+w)*_,x=(m-y)*_,C=(d-w)*P,A=(1-(h+p))*P,L=(b+g)*P,I=(m+y)*T,k=(b-g)*T,R=(1-(h+M))*T;return t[0]=O,t[1]=q,t[2]=x,t[3]=0,t[4]=C,t[5]=A,t[6]=L,t[7]=0,t[8]=I,t[9]=k,t[10]=R,t[11]=0,t[12]=n[0]+v-(O*v+C*E+I*S),t[13]=n[1]+E-(q*v+A*E+k*S),t[14]=n[2]+S-(x*v+L*E+R*S),t[15]=1,t},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],s=n+n,i=r+r,u=o+o,c=n*s,f=r*s,l=r*i,h=o*s,d=o*i,m=o*u,M=a*s,b=a*i,p=a*u;return t[0]=1-l-m,t[1]=f+p,t[2]=h-b,t[3]=0,t[4]=f-p,t[5]=1-c-m,t[6]=d+M,t[7]=0,t[8]=h+b,t[9]=d-M,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,o,a,s){const i=1/(n-e),u=1/(o-r),c=1/(a-s);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*u,t[10]=(s+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*a*2*c,t[15]=0,t},perspective:function(t,e,n,r,o){const a=1/Math.tan(e/2);let s;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(s=1/(r-o),t[10]=(o+r)*s,t[14]=2*o*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),u=2/(s+i),c=2/(o+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(s-i)*u*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},ortho:function(t,e,n,r,o,a,s){const i=1/(e-n),u=1/(r-o),c=1/(a-s);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*u,t[14]=(s+a)*c,t[15]=1,t},lookAt:function(t,e,n,r){let a,i,u,c,f,l,h,d,m,M;const b=e[0],p=e[1],g=e[2],y=r[0],w=r[1],_=r[2],P=n[0],T=n[1],v=n[2],E=(0,o.g)();return Math.abs(b-P)<E&&Math.abs(p-T)<E&&Math.abs(g-v)<E?s(t):(h=b-P,d=p-T,m=g-v,M=1/Math.sqrt(h*h+d*d+m*m),h*=M,d*=M,m*=M,a=w*m-_*d,i=_*h-y*m,u=y*d-w*h,M=Math.sqrt(a*a+i*i+u*u),M?(M=1/M,a*=M,i*=M,u*=M):(a=0,i=0,u=0),c=d*u-m*i,f=m*a-h*u,l=h*i-d*a,M=Math.sqrt(c*c+f*f+l*l),M?(M=1/M,c*=M,f*=M,l*=M):(c=0,f=0,l=0),t[0]=a,t[1]=c,t[2]=h,t[3]=0,t[4]=i,t[5]=f,t[6]=d,t[7]=0,t[8]=u,t[9]=l,t[10]=m,t[11]=0,t[12]=-(a*b+i*p+u*g),t[13]=-(c*b+f*p+l*g),t[14]=-(h*b+d*p+m*g),t[15]=1,t)},targetTo:function(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=r[0],u=r[1],c=r[2];let f=o-n[0],l=a-n[1],h=s-n[2],d=f*f+l*l+h*h;d>0&&(d=1/Math.sqrt(d),f*=d,l*=d,h*=d);let m=u*h-c*l,M=c*f-i*h,b=i*l-u*f;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=l*b-h*M,t[5]=h*m-f*b,t[6]=f*M-l*m,t[7]=0,t[8]=f,t[9]=l,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=s,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},subtract:y,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},exactEquals:w,equals:_,isOrthoNormal:P,mul:T,sub:v},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function a(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>a,b:()=>o,c:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:o,fromValues:function(t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M){return[t,e,n,r,o,a,s,i,u,c,f,l,h,d,m,M]},createView:a,IDENTITY:s},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function a(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>a,b:()=>o,c:()=>r});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:o,fromValues:function(t,e,n,r){return[t,e,n,r]},createView:a,IDENTITY:s},Symbol.toStringTag,{value:"Module"}))},29268:(t,e,n)=>{n.d(e,{a:()=>g,c:()=>b,g:()=>y,h:()=>p,j:()=>P,m:()=>x}),n(80442);var r,o,a=n(92604),s=n(22021),i=n(70586),u=n(52138),c=n(17896),f=n(65617),l=n(98766),h=n(88669);(o=r||(r={}))[o.X=0]="X",o[o.Y=1]="Y",o[o.Z=2]="Z";var d=n(78341),m=n(61277),M=n(12981);function b(){return(0,h.c)()}function p(t,e=b()){return(0,l.c)(e,t)}function g(t){return t[3]}function y(t){return t}function w(t,e,n){if((0,i.Wi)(e))return!1;const{origin:r,direction:o}=e,a=_;a[0]=r[0]-t[0],a[1]=r[1]-t[1],a[2]=r[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2],u=2*(o[0]*a[0]+o[1]*a[1]+o[2]*a[2]),c=u*u-4*s*(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]-t[3]*t[3]);if(c<0)return!1;const f=Math.sqrt(c);let l=(-u-f)/(2*s);const h=(-u+f)/(2*s);return(l<0||h<l&&h>0)&&(l=h),!(l<0||(n&&(n[0]=r[0]+o[0]*l,n[1]=r[1]+o[1]*l,n[2]=r[2]+o[2]*l),0))}const _=(0,f.c)();function P(t,e){return w(t,e,null)}function T(t,e,n){const r=M.WM.get(),o=M.MP.get();(0,c.f)(r,e.origin,e.direction);const a=g(t);(0,c.f)(n,r,e.origin),(0,c.g)(n,n,1/(0,c.l)(n)*a);const s=E(t,e.origin),i=(0,m.EU)(e.origin,n);return(0,u.d)(o,i+s,r),(0,c.v)(n,n,o),n}function v(t,e,n){const r=(0,c.b)(M.WM.get(),e,t),o=(0,c.g)(M.WM.get(),r,t[3]/(0,c.l)(r));return(0,c.a)(n,o,t)}function E(t,e){const n=(0,c.b)(M.WM.get(),e,t),r=(0,c.l)(n),o=g(t),a=o+Math.abs(o-r);return(0,s.ZF)(o/a)}const S=(0,f.c)();function O(t,e,n,o){const a=(0,c.b)(S,e,t);switch(n){case r.X:{const t=(0,s.jE)(a,S)[2];return(0,c.s)(o,-Math.sin(t),Math.cos(t),0)}case r.Y:{const t=(0,s.jE)(a,S),e=t[1],n=t[2],r=Math.sin(e);return(0,c.s)(o,-r*Math.cos(n),-r*Math.sin(n),Math.cos(e))}case r.Z:return(0,c.n)(o,a);default:return}}function q(t,e){const n=(0,c.b)(C,e,t);return(0,c.l)(n)-t[3]}function x(t,e){const n=(0,c.d)(t,e),r=g(t);return n<=r*r}const C=(0,f.c)(),A=b();Object.freeze(Object.defineProperty({__proto__:null,create:b,copy:p,fromCenterAndRadius:function(t,e){return(0,h.f)(t[0],t[1],t[2],e)},wrap:function(t){return t},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},getRadius:g,getCenter:y,fromValues:function(t,e,n,r){return(0,h.f)(t,e,n,r)},elevate:function(t,e,n){return t!==n&&(0,c.c)(n,t),n[3]=t[3]+e,n},setExtent:function(t,e,n){return a.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:p(t,n)},intersectRay:w,intersectsRay:P,intersectRayClosestSilhouette:function(t,e,n){if(w(t,e,n))return n;const r=T(t,e,M.WM.get());return(0,c.a)(n,e.origin,(0,c.g)(M.WM.get(),e.direction,(0,c.i)(e.origin,r)/(0,c.l)(e.direction))),n},closestPointOnSilhouette:T,closestPoint:function(t,e,n){return w(t,e,n)?n:((0,d.JI)(e,t,n),v(t,n,n))},projectPoint:v,distanceToSilhouette:function(t,e){const n=(0,c.b)(M.WM.get(),e,t),r=(0,c.z)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(r-o))},angleToSilhouette:E,axisAt:O,altitudeAt:q,setAltitudeAt:function(t,e,n,o){const a=q(t,e),s=O(t,e,r.Z,C),i=(0,c.g)(C,s,n-a);return(0,c.a)(o,e,i)},containsPoint:x,tmpSphere:A},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function o(t,e){return[t,e]}function a(t,e){return new Float64Array(t,e,2)}function s(){return o(1,1)}function i(){return o(1,0)}function u(){return o(0,1)}n.d(e,{Z:()=>c,a:()=>r,c:()=>a});const c=[0,0],f=s(),l=i(),h=u();Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:function(t){return[t[0],t[1]]},fromValues:o,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},createView:a,zeros:function(){return[0,0]},ones:s,unitX:i,unitY:u,ZEROS:c,ONES:f,UNIT_X:l,UNIT_Y:h},Symbol.toStringTag,{value:"Module"}))},17896:(t,e,n)=>{n.d(e,{A:()=>O,C:()=>l,a:()=>u,b:()=>c,c:()=>s,d:()=>M,e:()=>g,f:()=>y,g:()=>h,h:()=>w,i:()=>m,k:()=>T,l:()=>a,n:()=>p,q:()=>d,s:()=>i,t:()=>P,u:()=>f,v:()=>_,w:()=>S,y:()=>I,z:()=>b});var r=n(65617),o=n(46851);function a(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function d(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function m(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function p(t,e){const n=e[0],r=e[1],o=e[2];let a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function g(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function y(t,e,n){const r=e[0],o=e[1],a=e[2],s=n[0],i=n[1],u=n[2];return t[0]=o*u-a*i,t[1]=a*s-r*u,t[2]=r*i-o*s,t}function w(t,e,n,r){const o=e[0],a=e[1],s=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=s+r*(n[2]-s),t}function _(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function P(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function T(t,e,n){const r=n[0],o=n[1],a=n[2],s=n[3],i=e[0],u=e[1],c=e[2];let f=o*c-a*u,l=a*i-r*c,h=r*u-o*i,d=o*h-a*l,m=a*f-r*h,M=r*l-o*f;const b=2*s;return f*=b,l*=b,h*=b,d*=2,m*=2,M*=2,t[0]=i+f+d,t[1]=u+l+m,t[2]=c+h+M,t}const v=(0,r.c)(),E=(0,r.c)();function S(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function O(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2];let s=r*r+o*o+a*a;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=o*s,t[2]=a*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=c,x=f,C=l,A=m,L=M,I=a,k=b;Object.freeze(Object.defineProperty({__proto__:null,length:a,copy:s,set:i,add:u,subtract:c,multiply:f,divide:l,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},abs:function(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t},sign:function(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:h,scaleAndAdd:d,distance:m,squaredDistance:M,squaredLength:b,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},normalize:p,dot:g,cross:y,lerp:w,hermite:function(t,e,n,r,o,a){const s=a*a,i=s*(2*a-3)+1,u=s*(a-2)+a,c=s*(a-1),f=s*(3-2*a);return t[0]=e[0]*i+n[0]*u+r[0]*c+o[0]*f,t[1]=e[1]*i+n[1]*u+r[1]*c+o[1]*f,t[2]=e[2]*i+n[2]*u+r[2]*c+o[2]*f,t},bezier:function(t,e,n,r,o,a){const s=1-a,i=s*s,u=a*a,c=i*s,f=3*a*i,l=3*u*s,h=u*a;return t[0]=e[0]*c+n[0]*f+r[0]*l+o[0]*h,t[1]=e[1]*c+n[1]*f+r[1]*l+o[1]*h,t[2]=e[2]*c+n[2]*f+r[2]*l+o[2]*h,t},random:function(t,e){e=e||1;const n=o.R,r=2*n()*Math.PI,a=2*n()-1,s=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=a*e,t},transformMat4:_,transformMat3:P,transformQuat:T,rotateX:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},angle:function(t,e){s(v,t),s(E,e),p(v,v),p(E,E);const n=g(v,E);return n>1?0:n<-1?Math.PI:Math.acos(n)},str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:S,equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],s=e[0],i=e[1],u=e[2],c=(0,o.g)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-u)<=c*Math.max(1,Math.abs(a),Math.abs(u))},direction:O,sub:q,mul:x,div:C,dist:A,sqrDist:L,len:I,sqrLen:k},Symbol.toStringTag,{value:"Module"}))},65617:(t,e,n)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function s(t){const e=[0,0,0],n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function i(t,e){return new Float64Array(t,e,3)}function u(){return a(1,1,1)}function c(){return a(1,0,0)}function f(){return a(0,1,0)}function l(){return a(0,0,1)}n.d(e,{O:()=>d,Z:()=>h,a:()=>o,b:()=>i,c:()=>r,d:()=>s,f:()=>a});const h=[0,0,0],d=u(),m=c(),M=f(),b=l();Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:o,fromValues:a,fromArray:s,createView:i,zeros:function(){return[0,0,0]},ones:u,unitX:c,unitY:f,unitZ:l,ZEROS:h,ONES:d,UNIT_X:m,UNIT_Y:M,UNIT_Z:b},Symbol.toStringTag,{value:"Module"}))},98766:(t,e,n)=>{n.d(e,{a:()=>s,b:()=>f,c:()=>o,d:()=>b,e:()=>d,f:()=>m,g:()=>g,h:()=>y,l:()=>p,n:()=>M,s:()=>a});var r=n(46851);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function f(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function h(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function d(t){const e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function m(t){const e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function M(t,e){const n=e[0],r=e[1],o=e[2],a=e[3];let s=n*n+r*r+o*o+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=n*s,t[1]=r*s,t[2]=o*s,t[3]=a*s),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function p(t,e,n,r){const o=e[0],a=e[1],s=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=s+r*(n[2]-s),t[3]=i+r*(n[3]-i),t}function g(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function y(t,e){const n=t[0],o=t[1],a=t[2],s=t[3],i=e[0],u=e[1],c=e[2],f=e[3],l=(0,r.g)();return Math.abs(n-i)<=l*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-u)<=l*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(a-c)<=l*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(s-f)<=l*Math.max(1,Math.abs(s),Math.abs(f))}const w=i,_=u,P=c,T=l,v=h,E=d,S=m;Object.freeze(Object.defineProperty({__proto__:null,copy:o,set:a,add:s,subtract:i,multiply:u,divide:c,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},scale:f,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},distance:l,squaredDistance:h,length:d,squaredLength:m,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},normalize:M,dot:b,lerp:p,random:function(t,e){const n=r.R;let o,a,s,i,u,c;e=e||1;do{o=2*n()-1,a=2*n()-1,u=o*o+a*a}while(u>=1);do{s=2*n()-1,i=2*n()-1,c=s*s+i*i}while(c>=1);const f=Math.sqrt((1-u)/c);return t[0]=e*o,t[1]=e*a,t[2]=e*s*f,t[3]=e*i*f,t},transformMat4:function(t,e,n){const r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*s,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*s,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*s,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*s,t},transformQuat:function(t,e,n){const r=e[0],o=e[1],a=e[2],s=n[0],i=n[1],u=n[2],c=n[3],f=c*r+i*a-u*o,l=c*o+u*r-s*a,h=c*a+s*o-i*r,d=-s*r-i*o-u*a;return t[0]=f*c+d*-s+l*-u-h*-i,t[1]=l*c+d*-i+h*-s-f*-u,t[2]=h*c+d*-u+f*-i-l*-s,t[3]=e[3],t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:g,equals:y,sub:w,mul:_,div:P,dist:T,sqrDist:v,len:E,sqrLen:S},Symbol.toStringTag,{value:"Module"}))},88669:(t,e,n)=>{function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(t,e){return new Float64Array(t,e,4)}function s(){return o(1,1,1,1)}function i(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}n.d(e,{b:()=>a,c:()=>r,f:()=>o});const l=s(),h=i(),d=u(),m=c(),M=f();Object.freeze(Object.defineProperty({__proto__:null,create:r,clone:function(t){return[t[0],t[1],t[2],t[3]]},fromValues:o,fromArray:function(t){const e=[0,0,0,0],n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},createView:a,zeros:function(){return[0,0,0,0]},ones:s,unitX:i,unitY:u,unitZ:c,unitW:f,ZEROS:[0,0,0,0],ONES:l,UNIT_X:h,UNIT_Y:d,UNIT_Z:m,UNIT_W:M},Symbol.toStringTag,{value:"Module"}))},22807:(t,e,n)=>{n.d(e,{x:()=>o});var r=n(41213);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*a);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,a));t++)this._items.push(this._allocator())}}const a=1024},43090:(t,e,n)=>{function r(t){return 32+t.length}function o(t){if(!t)return 0;let e=u;for(const n in t)if(t.hasOwnProperty(n)){const o=t[n];switch(typeof o){case"string":e+=r(o);break;case"number":e+=16;break;case"boolean":e+=4}}return e}function a(t){if(!t)return 0;if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return 32+8*e;let n=c;for(let r=0;r<e;r++)n+=s(t[r]);return n}(t);let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=s(t[n]));return e}function s(t){switch(typeof t){case"object":return a(t);case"string":return r(t);case"number":return 16;case"boolean":return 4;default:return 8}}function i(t,e){return c+t.length*e}n.d(e,{Ul:()=>a,Y8:()=>f,do:()=>i,f2:()=>o});const u=32,c=32;var f;!function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(f||(f={}))},22021:(t,e,n)=>{n.d(e,{BV:()=>f,Kt:()=>h,Sf:()=>a,Vl:()=>c,ZF:()=>l,jE:()=>b,oK:()=>m,oc:()=>p,t7:()=>u,uZ:()=>s,wt:()=>i});var r=n(17896);n(98766);const o=new Float32Array(1);function a(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function s(t,e,n){return Math.min(Math.max(t,e),n)}function i(t){return 0==(t&t-1)}function u(t,e,n){return t+(e-t)*n}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function l(t){return Math.acos(s(t,-1,1))}function h(t){return Math.asin(s(t,-1,1))}function d(t,e,n=1e-6){return!isNaN(t)&&!isNaN(e)&&(t>e?t-e:e-t)<=n}function m(t){return M(Math.max(-g,Math.min(t,g)))}function M(t){return o[0]=t,o[0]}function b(t,e){const n=(0,r.l)(t),o=h(t[2]/n),a=Math.atan2(t[1]/n,t[0]/n);return(0,r.s)(e,n,o,a),e}function p(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(n,1)&&d(r,1))}const g=M(34028234663852886e22)},41213:(t,e,n)=>{n.d(e,{Y:()=>o});const r=[];function o(t){r.push(t),1===r.length&&queueMicrotask((()=>{const t=r.slice();r.length=0;for(const e of t)e()}))}},78341:(t,e,n)=>{n.d(e,{JI:()=>c,Ue:()=>s,re:()=>u}),n(67676);var r=n(22807),o=n(17896),a=n(65617);function s(t){return t?i((0,a.a)(t.origin),(0,a.a)(t.direction)):i((0,a.c)(),(0,a.c)())}function i(t,e){return{origin:t,direction:e}}function u(t,e){const n=f.get();return n.origin=t,n.direction=e,n}function c(t,e,n){const r=(0,o.e)(t.direction,(0,o.b)(n,e,t.origin));return(0,o.a)(n,t.origin,(0,o.g)(n,t.direction,r)),n}n(12981);const f=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),o=n(17896),a=n(65617);function s(t,e){const n=(0,o.e)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,r.ZF)(n)}(0,a.c)(),(0,a.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>m,WM:()=>d});var r=n(43090),o=n(41213),a=n(46521),s=n(13598),i=n(94961),u=n(97323),c=n(65617),f=n(88669);class l{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,o.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=h){return new l(16,u.c,t)}static createVec3f64(t=h){return new l(24,c.b,t)}static createVec4f64(t=h){return new l(32,f.b,t)}static createMat3f64(t=h){return new l(72,a.a,t)}static createMat4f64(t=h){return new l(128,s.a,t)}static createQuatf64(t=h){return new l(32,i.a,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const h=4*r.Y8.KILOBYTES,d=(l.createVec2f64(),l.createVec3f64()),m=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64());l.createQuatf64()},3172:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var r=n(68773),o=n(40330),a=n(20102),s=n(80442),i=n(22974),u=n(70586),c=n(95330),f=n(17452),l=n(71058),h=n(85958);async function d(t,e){const i=(0,f.HK)(t),p=(0,f.jc)(t);p||i||(t=(0,f.Fv)(t));const g={url:t,requestOptions:{...(0,u.Wg)(e)}};let y=(0,f.oh)(t);if(y){const t=await async function(t,e){if(null!=t.responseData)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let n,r;try{r=await t.before(e)}catch(t){n=T("request:interceptor",t,e)}if((r instanceof Error||r instanceof a.Z)&&(n=T("request:interceptor",r,e)),n)throw t.error&&t.error(n),n;return r}}(y,g);if(null!=t)return{data:t,getHeader:w,requestOptions:g.requestOptions,url:g.url};y.after||y.error||(y=null)}if(t=g.url,"image"===(e=g.requestOptions).responseType){if((0,s.Z)("host-webworker")||(0,s.Z)("host-node"))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g)}else if(i)throw T("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+e.responseType),g);if("head"===e.method){if(e.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(i||p)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,s.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(t,e);const _=new AbortController;(0,c.fu)(e,(()=>_.abort()));const P={controller:_,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:y,params:g,redoRequest:!1,useIdentity:M.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},O=await async function(t){let e,n;await async function(t){const e=t.params.url,n=t.params.requestOptions,a=t.controller.signal,s=n.body;let i=null,u=null;if(b&&"HTMLFormElement"in globalThis&&(s instanceof FormData?i=s:s instanceof HTMLFormElement&&(i=new FormData(s))),"string"==typeof s&&(u=s),t.fetchOptions={cache:n.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:M.priority,redirect:"follow",signal:a},(i||u)&&(t.fetchOptions.body=i||u),"anonymous"===n.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||n.query?.token||i?.get("token")),!t.hasToken&&r.Z.apiKey&&(0,l.r)(e)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!E(e)&&!(0,c.Hc)(a)){let r;"immediate"===n.authMode?(await v(),r=await o.id.getCredential(e,{signal:a}),t.credential=r):"no-prompt"===n.authMode?(await v(),r=await o.id.getCredential(e,{prompt:!1,signal:a}).catch((()=>{})),t.credential=r):o.id&&(r=o.id.findCredential(e)),r&&(t.credentialToken=r.token,t.useSSL=!!r.ssl)}}(t);try{do{[e,n]=await S(t)}while(!await q(t,e,n))}catch(n){const r=T("request:server",n,t.params,e);throw r.details.ssl=t.useSSL,t.interceptor&&t.interceptor.error&&t.interceptor.error(r),r}const a=t.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!t.hasToken&&!t.credentialToken&&n.user?.username&&!(0,f.kl)(a)){const t=(0,f.P$)(a,!0);t&&M.trustedServers.push(t)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(n.authorizedCrossOriginNoCorsDomains)}const s=t.credential;if(s&&o.id){const t=o.id.findServerInfo(s.server);let e=t&&t.owningSystemUrl;if(e){e=e.replace(/\/?$/,"/sharing");const t=o.id.findCredential(e,s.userId);t&&-1===o.id._getIdenticalSvcIdx(e,t)&&t.resources.unshift(e)}}return{data:n,getHeader:e?t=>e?.headers.get(t):w,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}(P);return y?.after?.(O),O}let m;const M=r.Z.request,b="FormData"in globalThis,p=[499,498,403,401],g=["COM_0056","COM_0057","SB_0008"],y=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],w=()=>null,_=Symbol();function P(t){const e=(0,f.P$)(t);return!e||e.endsWith(".arcgis.com")||d._corsServers.includes(e)||(0,f.kl)(e)}function T(t,e,n,r){let o="Error";const s={url:n.url,requestOptions:n.requestOptions,getHeader:w,ssl:!1};if(e instanceof a.Z)return e.details?(e.details=(0,i.d9)(e.details),e.details.url=n.url,e.details.requestOptions=n.requestOptions):e.details=s,e;if(e){const t=r&&(t=>r.headers.get(t)),n=r&&r.status,a=e.message;a&&(o=a),t&&(s.getHeader=t),s.httpStatus=(null!=e.httpCode?e.httpCode:e.code)||n||0,s.subCode=e.subcode,s.messageCode=e.messageCode,"string"==typeof e.details?s.messages=[e.details]:s.messages=e.details,s.raw=_ in e?e[_]:e}return(0,c.D_)(e)?(0,c.zE)():new a.Z(t,o,s)}async function v(){o.id||await Promise.all([n.e(812),n.e(1400),n.e(1761)]).then(n.bind(n,55142))}function E(t){return y.some((e=>e.test(t)))}async function S(t){let e=t.params.url;const n=t.params.requestOptions,r=t.fetchOptions??{},a=(0,f.jc)(e)||(0,f.HK)(e),i=n.responseType||"json",u=a?0:null!=n.timeout?n.timeout:M.timeout;let l=!1;if(!a){t.useSSL&&(e=(0,f.hO)(e)),n.cacheBust&&"default"===r.cache&&(e=(0,f.ZN)(e,"request.preventCache",Date.now()));let a={...n.query};t.credentialToken&&(a.token=t.credentialToken);let i=(0,f.B7)(a);(0,s.Z)("esri-url-encodes-apostrophe")&&(i=i.replace(/'/g,"%27"));const u=e.length+1+i.length;let c;l="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||u>M.maxUrlLength;const d=n.useProxy||!!(0,f.ed)(e);if(d){const t=(0,f.b7)(e);c=t.path,!l&&c.length+1+u>M.maxUrlLength&&(l=!0),t.query&&(a={...t.query,...a})}if("HEAD"===r.method&&(l||d)){if(l){if(u>M.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params)}if(d)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}if(l?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?e=(0,f.fl)(e,a):(r.body=(0,f.B7)(a),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):e=(0,f.fl)(e,a),d&&(t.useProxy=!0,e=`${c}?${e}`),a.token&&b&&r.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)&&r.body.set("token",a.token),n.hasOwnProperty("withCredentials"))t.withCredentials=n.withCredentials;else if(!(0,f.D6)(e,(0,f.TI)()))if((0,f.kl)(e))t.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(e);n&&n.webTierAuth&&(t.withCredentials=!0)}t.withCredentials&&(r.credentials="include",(0,h.jH)(e)&&await(0,h.jz)(l?(0,f.fl)(e,a):e))}let m,p,g=0,y=!1;u>0&&(g=setTimeout((()=>{y=!0,t.controller.abort()}),u));try{if("native-request-init"===n.responseType)p=r,p.url=e;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||l||function(t){if(t)for(const e of Object.getOwnPropertyNames(t))if(t[e])return!0;return!1}(n.headers)||!a&&!t.useProxy&&M.proxyUrl&&!P(e)){if(m=await d._abortableFetch(e,r),t.useProxy||function(t){const e=(0,f.P$)(t);e&&!d._corsServers.includes(e)&&d._corsServers.push(e)}(e),"native"===n.responseType)p=m;else if("HEAD"!==r.method)if(m.ok){switch(i){case"array-buffer":p=await m.arrayBuffer();break;case"blob":case"image":p=await m.blob();break;default:p=await m.text()}if(g&&(clearTimeout(g),g=0),"json"===i||"xml"===i||"document"===i)if(p)switch(i){case"json":p=JSON.parse(p);break;case"xml":p=O(p,"application/xml");break;case"document":p=O(p,"text/html")}else p=null;if(p){if("array-buffer"===i||"blob"===i){const t=m.headers.get("Content-Type");if(t&&/application\/json|text\/plain/i.test(t)&&p["blob"===i?"size":"byteLength"]<=750)try{const t=await new Response(p).json();t.error&&(p=t)}catch{}}"image"===i&&p instanceof Blob&&(p=await x(URL.createObjectURL(p),t,!0))}}else p=await m.text()}else p=await x(e,t)}catch(r){if("AbortError"===r.name){if(y)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!m&&r instanceof TypeError&&M.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||t.useProxy||P(e))throw r;t.redoRequest=!0,(0,f.tD)({proxyUrl:M.proxyUrl,urlPrefix:(0,f.P$)(e)??""})}finally{g&&clearTimeout(g)}return[m,p]}function O(t,e){let n;try{n=(new DOMParser).parseFromString(t,e)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function q(t,e,n){if(t.redoRequest)return t.redoRequest=!1,!1;const r=t.params.requestOptions;if(!e||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let a,s;if(!e.ok)throw a=new Error(`Unable to load ${e.url} status: ${e.status}`),a[_]=n,a;n&&(n.error?a=n.error:"error"===n.status&&Array.isArray(n.messages)&&(a={...n},a[_]=n,a.details=n.messages));let i,u=null;a&&(s=Number(a.code),u=a.hasOwnProperty("subcode")?Number(a.subcode):null,i=a.messageCode,i=i&&i.toUpperCase());const c=r.authMode;if(403===s&&(4===u||a.message&&a.message.toLowerCase().includes("ssl")&&!a.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&("no-prompt"!==c||498===s)&&void 0!==s&&p.includes(s)&&!E(t.params.url)&&(403!==s||i&&!g.includes(i)&&(null==u||2===u&&t.credentialToken))){await v();try{const e=await o.id.getCredential(t.params.url,{error:T("request:server",a,t.params),prompt:"no-prompt"!==c,signal:t.controller.signal,token:t.credentialToken});return t.credential=e,t.credentialToken=e.token,t.useSSL=t.useSSL||e.ssl,!1}catch(e){if("no-prompt"===c)return t.credential=void 0,t.credentialToken=void 0,!1;a=e}}if(a)throw a;return!0}function x(t,e,n=!1){const r=e.controller.signal,o=new Image;return e.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=M.priority,o.src=t,(0,h.fY)(o,t,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(t,e,n)=>{n.d(e,{r:()=>a});var r=n(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function a(t){const e=(0,r.P$)(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!o.includes(e)&&!t.endsWith("/sharing/rest/generateToken")}},85958:(t,e,n)=>{n.d(e,{Hu:()=>f,fY:()=>u,jH:()=>l,jz:()=>h});var r=n(68773),o=n(80442),a=n(70586),s=n(95330),i=n(17452);function u(t,e,n=!1,r){return new Promise(((i,u)=>{if((0,s.Hc)(r))return void u(c());let f=()=>{d(),u(new Error(`Unable to load ${e}`))},l=()=>{const e=t;d(),i(e)},h=()=>{if(!t)return;const e=t;d(),e.src="",u(c())};const d=()=>{(0,o.Z)("esri-image-decode")||(t.removeEventListener("error",f),t.removeEventListener("load",l)),f=null,l=null,t=null,(0,a.pC)(r)&&r.removeEventListener("abort",h),h=null,n&&URL.revokeObjectURL(e)};(0,a.pC)(r)&&r.addEventListener("abort",h),(0,o.Z)("esri-image-decode")?t.decode().then(l,f):(t.addEventListener("error",f),t.addEventListener("load",l))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error;return t.name="AbortError",t}}function f(t){r.Z.request.crossOriginNoCorsDomains||(r.Z.request.crossOriginNoCorsDomains={});const e=r.Z.request.crossOriginNoCorsDomains;for(let n of t)n=n.toLowerCase(),/^https?:\/\//.test(n)?e[(0,i.P$)(n)??""]=0:(e[(0,i.P$)("http://"+n)??""]=0,e[(0,i.P$)("https://"+n)??""]=0)}function l(t){const e=r.Z.request.crossOriginNoCorsDomains;if(e){let n=(0,i.P$)(t);if(n)return n=n.toLowerCase(),!(0,i.D6)(n,(0,i.TI)())&&e[n]<Date.now()-36e5}return!1}async function h(t){const e=r.Z.request.crossOriginNoCorsDomains,n=(0,i.P$)(t);e&&n&&(e[n.toLowerCase()]=Date.now());const o=(0,i.mN)(t);t=o.path,"json"===o.query?.f&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}}},31412:(t,e,n)=>{n.r(e),n.d(e,{destroyContext:()=>_,dracoDecompressPointCloudData:()=>p,filterObbsForModifications:()=>g,filterObbsForModificationsSync:()=>O,initialize:()=>C,interpretObbModificationResults:()=>S,process:()=>b,setLegacySchema:()=>w,setModifications:()=>y,setModificationsSync:()=>v,test:()=>A});var r,o,a=n(70586),s=n(1533);!function(t){t[t.None=0]="None",t[t.Int16=1]="Int16",t[t.Int32=2]="Int32"}(r||(r={})),function(t){t[t.Replace=0]="Replace",t[t.Outside=1]="Outside",t[t.Inside=2]="Inside",t[t.Finished=3]="Finished"}(o||(o={}));var i=n(99880);function u(t){return(0,i.V)(`esri/libs/i3s/${t}`)}let c;var f,l,h,d,m,M;async function b(t){await C();const e=[t.geometryBuffer];return{result:E(t,e),transferList:e}}async function p(t){await C();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=T._malloc(r),a=new Uint8Array(T.HEAPU8.buffer,o,r);a.set(new Uint8Array(n));const i=T.dracoDecompressPointCloudData(o,a.byteLength);if(T._free(o),i.error.length>0)throw`i3s.wasm: ${i.error}`;const u=i.featureIds?.length>0?(0,s.tP)(i.featureIds):null,c=(0,s.tP)(i.positions);return u&&e.push(u.buffer),e.push(c.buffer),{result:{positions:c,featureIds:u},transferList:e}}async function g(t){await C(),O(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function y(t){await C(),v(t)}async function w(t){await C(),T.setLegacySchema(t.context,t.jsonSchema)}function _(t){q(t)}let P,T;function v(t){const e=t.modifications,n=T._malloc(8*e.length),r=new Float64Array(T.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];T.setModifications(t.context,n,e.length,t.isGeodetic),T._free(n)}function E(t,e){if(!T)return null;const{context:n,localOrigin:o,globalTrafo:i,mbs:u,obb:c,elevationOffset:f,geometryBuffer:l,geometryDescriptor:h,indexToVertexProjector:d,vertexToRenderProjector:m}=t,M=T._malloc(l.byteLength),b=T._malloc(33*Float64Array.BYTES_PER_ELEMENT),p=new Uint8Array(T.HEAPU8.buffer,M,l.byteLength);p.set(new Uint8Array(l));const g=new Float64Array(T.HEAPU8.buffer,b,33);x(g,o);let y=g.byteOffset+3*g.BYTES_PER_ELEMENT,w=new Float64Array(g.buffer,y);x(w,i),y+=16*g.BYTES_PER_ELEMENT,w=new Float64Array(g.buffer,y),x(w,u),y+=4*g.BYTES_PER_ELEMENT,(0,a.pC)(c)&&(w=new Float64Array(g.buffer,y),x(w,c.center),y+=3*g.BYTES_PER_ELEMENT,w=new Float64Array(g.buffer,y),x(w,c.halfSize),y+=3*g.BYTES_PER_ELEMENT,w=new Float64Array(g.buffer,y),x(w,c.quaternion));const _=h,P={isDraco:!1,isLegacy:!1,color:t.layouts.some((t=>t.some((t=>"color"===t.name)))),normal:t.needNormals&&t.layouts.some((t=>t.some((t=>"normalCompressed"===t.name)))),uv0:t.layouts.some((t=>t.some((t=>"uv0"===t.name)))),uvRegion:t.layouts.some((t=>t.some((t=>"uvRegion"===t.name)))),featureIndex:_.featureIndex},v=T.process(n,!!t.obb,M,p.byteLength,_,P,b,f,d,m,t.normalReferenceFrame);if(T._free(b),T._free(M),v.error.length>0)throw`i3s.wasm: ${v.error}`;if(v.discarded)return null;const E=v.componentOffsets.length>0?(0,s.tP)(v.componentOffsets):null,S=v.featureIds.length>0?(0,s.tP)(v.featureIds):null,O=(0,s.tP)(v.interleavedVertedData).buffer,q=v.indicesType===r.Int16?(0,s.tP)(new Uint16Array(v.indices.buffer,v.indices.byteOffset,v.indices.byteLength/2)):(0,s.tP)(new Uint32Array(v.indices.buffer,v.indices.byteOffset,v.indices.byteLength/4)),C=(0,s.tP)(v.positions),A=v.positionIndicesType===r.Int16?(0,s.tP)(new Uint16Array(v.positionIndices.buffer,v.positionIndices.byteOffset,v.positionIndices.byteLength/2)):(0,s.tP)(new Uint32Array(v.positionIndices.buffer,v.positionIndices.byteOffset,v.positionIndices.byteLength/4)),L={layout:t.layouts[0],interleavedVertexData:O,indices:q,hasColors:v.hasColors,hasModifications:v.hasModifications,positionData:{data:C,indices:A}};return S&&e.push(S.buffer),E&&e.push(E.buffer),e.push(O),e.push(q.buffer),e.push(C.buffer),e.push(A.buffer),{componentOffsets:E,featureIds:S,transformedGeometry:L,obb:v.obb}}function S(t){return 0===t?l.Unmodified:1===t?l.PotentiallyModified:2===t?l.Culled:l.Unknown}function O(t){const{context:e,buffer:n}=t,r=T._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,a=new Float64Array(T.HEAPU8.buffer,r,o),s=new Float64Array(n);a.set(s),T.filterOBBs(e,r,o),s.set(a),T._free(r)}function q(t){T&&T.destroy(t)}function x(t,e){for(let n=0;n<e.length;++n)t[n]=e[n]}function C(){return T?Promise.resolve():(P||(P=(c||(c=new Promise((t=>n.e(6710).then(n.bind(n,26710)).then((t=>t.i)).then((({default:e})=>{const n=e({locateFile:u,onRuntimeInitialized:()=>t(n)});delete n.then})))).catch((t=>{throw t}))),c).then((t=>{T=t,P=null}))),P)}n(29268),(M=f||(f={}))[M.Unmodified=0]="Unmodified",M[M.Culled=1]="Culled",M[M.NotChecked=2]="NotChecked",function(t){t[t.Unmodified=0]="Unmodified",t[t.PotentiallyModified=1]="PotentiallyModified",t[t.Culled=2]="Culled",t[t.Unknown=3]="Unknown",t[t.NotChecked=4]="NotChecked"}(l||(l={})),function(t){t[t.Unknown=0]="Unknown",t[t.Uncached=1]="Uncached",t[t.Cached=2]="Cached"}(h||(h={})),function(t){t[t.None=0]="None",t[t.MaxScreenThreshold=1]="MaxScreenThreshold",t[t.ScreenSpaceRelative=2]="ScreenSpaceRelative",t[t.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",t[t.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(d||(d={})),function(t){t[t.Hole=0]="Hole",t[t.Leaf=1]="Leaf"}(m||(m={}));const A={transform:E,destroy:q}}}]);