@arcgis/core 5.2.0-next.127 → 5.2.0-next.129

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 (405) hide show
  1. package/WebScene.js +1 -1
  2. package/applications/Components/imageryUtils.js +1 -1
  3. package/applications/SceneViewer/sceneViewerUtils.d.ts +14 -1
  4. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  5. package/applications/WebEditor/sketchUtils.js +1 -1
  6. package/arcade/batchExec.js +1 -1
  7. package/arcade/geometry/adapters/dehydrated.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/06da350b4ea25732f52b.js +1 -0
  10. package/assets/esri/core/workers/chunks/{67dcf9b873cb037b2647.js → 081c9ccaa5884c730a91.js} +1 -1
  11. package/assets/esri/core/workers/chunks/094102031cc77b20db74.js +1 -0
  12. package/assets/esri/core/workers/chunks/0b85c844af97b2fb0ba8.js +1 -0
  13. package/assets/esri/core/workers/chunks/{86d7a3ae672a51b75fcc.js → 0d44f793d3b0d33153ac.js} +1 -1
  14. package/assets/esri/core/workers/chunks/0de140199161fcd15a0c.js +1 -0
  15. package/assets/esri/core/workers/chunks/0deceece4b465f653f58.js +1 -0
  16. package/assets/esri/core/workers/chunks/111dc5653daa7f3e1001.js +1 -0
  17. package/assets/esri/core/workers/chunks/139e3da8ea081e21539e.js +1 -0
  18. package/assets/esri/core/workers/chunks/142bedebd37d747f84ba.js +1 -0
  19. package/assets/esri/core/workers/chunks/15dc28b4fa5b5110472b.js +1 -0
  20. package/assets/esri/core/workers/chunks/{dd02cc18ebebb90778c6.js → 17e2bfc7468c23e43bef.js} +1 -1
  21. package/assets/esri/core/workers/chunks/196d33f4d8e3a256ad94.js +1 -0
  22. package/assets/esri/core/workers/chunks/1a02c68de65a67ab6a67.js +1 -0
  23. package/assets/esri/core/workers/chunks/{4165eb86471ea3bbf364.js → 1aecf7106a21320e054e.js} +1 -1
  24. package/assets/esri/core/workers/chunks/1bc03b8065cbbbb06c87.js +1 -0
  25. package/assets/esri/core/workers/chunks/1beb32170d659bc43977.js +1 -0
  26. package/assets/esri/core/workers/chunks/20ee32fee219afbcfee3.js +1 -0
  27. package/assets/esri/core/workers/chunks/{9467744cb7d094a5067a.js → 21d2f5324db0b199060c.js} +1 -1
  28. package/assets/esri/core/workers/chunks/22abb9a74f6594f9db2a.js +1 -0
  29. package/assets/esri/core/workers/chunks/237795866c075880531b.js +1 -0
  30. package/assets/esri/core/workers/chunks/25e4da9c6837ab0fa585.js +1 -0
  31. package/assets/esri/core/workers/chunks/2a5fde737dc99627142e.js +1 -0
  32. package/assets/esri/core/workers/chunks/3412050ae63ff7dcaf36.js +1 -0
  33. package/assets/esri/core/workers/chunks/35316724c8d3cc39cf80.js +1 -0
  34. package/assets/esri/core/workers/chunks/354cc6cd2a56937f1747.js +1 -0
  35. package/assets/esri/core/workers/chunks/365ae479765ca9e47de4.js +1 -0
  36. package/assets/esri/core/workers/chunks/{8190fcb1dd10ad20feed.js → 36ef86701883a20dd6f6.js} +1 -1
  37. package/assets/esri/core/workers/chunks/3759e272a1d43534a190.js +1 -0
  38. package/assets/esri/core/workers/chunks/397ddcf0b8e858a17b70.js +1 -0
  39. package/assets/esri/core/workers/chunks/3a7a558e30b5cb81c801.js +1 -0
  40. package/assets/esri/core/workers/chunks/3c9405d310a1b08c901e.js +1 -0
  41. package/assets/esri/core/workers/chunks/{e10fe4c77b8dc4492092.js → 3ce53562926b05e71af5.js} +1 -1
  42. package/assets/esri/core/workers/chunks/3d174a84b785fc633a5a.js +1 -0
  43. package/assets/esri/core/workers/chunks/3d67fed3e53993c38b58.js +1 -0
  44. package/assets/esri/core/workers/chunks/42bdeeff55fb1a3f735f.js +1 -0
  45. package/assets/esri/core/workers/chunks/48f1532520b76fa7f0c2.js +1 -0
  46. package/assets/esri/core/workers/chunks/{00d9e41deecf5828975c.js → 4adc3822ed9f498f5653.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{d5f0fed415b5b155d57c.js → 51741ef8225d470716fe.js} +1 -1
  48. package/assets/esri/core/workers/chunks/5191e481d0e19a7f3888.js +1 -0
  49. package/assets/esri/core/workers/chunks/{7fcee3a1b900ddc9a5e3.js → 540acf6abdee9dbd453e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{d9b63cf111035b05cd2e.js → 5484b89adc53430226d5.js} +1 -1
  51. package/assets/esri/core/workers/chunks/55361b50ecfc98db2ffb.js +1 -0
  52. package/assets/esri/core/workers/chunks/58da7c41c1bcef2f4141.js +1 -0
  53. package/assets/esri/core/workers/chunks/5979bbefb09d132c008f.js +1 -0
  54. package/assets/esri/core/workers/chunks/{84db05e872dbf35c80a2.js → 5982c6a8459c1237b298.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{0a20f84b5f004a77a9f9.js → 5abfc4f447b01d6bf287.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{4c0dba437de0969a5b63.js → 5b9f88194433410bad5b.js} +1 -1
  57. package/assets/esri/core/workers/chunks/5f794f4e0113d5dd50ba.js +1 -0
  58. package/assets/esri/core/workers/chunks/62a30692e2a7612bafc1.js +1 -0
  59. package/assets/esri/core/workers/chunks/62aa7daad4ca7332854e.js +1 -0
  60. package/assets/esri/core/workers/chunks/66926c3686d5ef2d4692.js +29 -0
  61. package/assets/esri/core/workers/chunks/6994ba168465b77a36af.js +1 -0
  62. package/assets/esri/core/workers/chunks/6d0c6fda9100fe89f3cb.js +1 -0
  63. package/assets/esri/core/workers/chunks/72a898894438f177cd62.js +1 -0
  64. package/assets/esri/core/workers/chunks/78d4455237120103f639.js +1 -0
  65. package/assets/esri/core/workers/chunks/7fccf53aa751cd9dae57.js +1 -0
  66. package/assets/esri/core/workers/chunks/{26995de0c18bef8db590.js → 81327e10200065a0ccef.js} +1 -1
  67. package/assets/esri/core/workers/chunks/84a3fbe5d85a357f4e82.js +1 -0
  68. package/assets/esri/core/workers/chunks/862479729f2d036f606b.js +1 -0
  69. package/assets/esri/core/workers/chunks/89dad6c1bfd81e4d7f8e.js +1 -0
  70. package/assets/esri/core/workers/chunks/8a9aa6db11d0f643961c.js +1 -0
  71. package/assets/esri/core/workers/chunks/8dfea65341991e13ab71.js +1 -0
  72. package/assets/esri/core/workers/chunks/8e92925043dc49ed1018.js +1 -0
  73. package/assets/esri/core/workers/chunks/8f0b2b0ca239b01f44d0.js +1 -0
  74. package/assets/esri/core/workers/chunks/93a89168c18db88f60e7.js +1 -0
  75. package/assets/esri/core/workers/chunks/991c854a4459c82d4d93.js +1 -0
  76. package/assets/esri/core/workers/chunks/{f90cad9f007a11154c0d.js → 9b080d07699b56f06c5f.js} +1 -1
  77. package/assets/esri/core/workers/chunks/9cd69aa3880838a834f8.js +1 -0
  78. package/assets/esri/core/workers/chunks/{2ca49fb4590cc34a02bd.js → 9d87f38b16dda1ff7978.js} +1 -1
  79. package/assets/esri/core/workers/chunks/9fd1e5a2c0a261ed2a33.js +1 -0
  80. package/assets/esri/core/workers/chunks/a0a9c41400ae98df1912.js +1 -0
  81. package/assets/esri/core/workers/chunks/a189e520da39919cdcca.js +1 -0
  82. package/assets/esri/core/workers/chunks/a3a5cb664bdb1db190dd.js +1 -0
  83. package/assets/esri/core/workers/chunks/a63c456ecf018ec06778.js +1 -0
  84. package/assets/esri/core/workers/chunks/{842f993fa60b410cb613.js → a8322a978e33c7349fdf.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{f479b4a4cee4bb2e046c.js → aa96eea0899757ab38c7.js} +1 -1
  86. package/assets/esri/core/workers/chunks/ab0b2a76247dfd56b92d.js +1 -0
  87. package/assets/esri/core/workers/chunks/ab7337b076d152a8eb9e.js +1 -0
  88. package/assets/esri/core/workers/chunks/ac0de274853a42d518a1.js +1 -0
  89. package/assets/esri/core/workers/chunks/ad372e399e20d5a3262d.js +1 -0
  90. package/assets/esri/core/workers/chunks/ae75b3e5320d03dff64c.js +1 -0
  91. package/assets/esri/core/workers/chunks/ae98530d5816306216b3.js +1 -0
  92. package/assets/esri/core/workers/chunks/afc94c4b9bc007fe310f.js +1 -0
  93. package/assets/esri/core/workers/chunks/afe54923339e957b71b9.js +1 -0
  94. package/assets/esri/core/workers/chunks/bbcac00362fef5e3956d.js +1 -0
  95. package/assets/esri/core/workers/chunks/{1302bf9718747cd9fdd9.js → bcee161dd1c4781d1998.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{d1f54b0079fb71a15612.js → bd231bc0624eb889ac14.js} +1 -1
  97. package/assets/esri/core/workers/chunks/c0075715fbe7bec10fc3.js +1 -0
  98. package/assets/esri/core/workers/chunks/c4e1e864fb8c119b2520.js +1 -0
  99. package/assets/esri/core/workers/chunks/c93cedf9e53da5aaa35b.js +1 -0
  100. package/assets/esri/core/workers/chunks/{2d592c935571de80a2e2.js → c9690810b198a97bc16d.js} +1 -1
  101. package/assets/esri/core/workers/chunks/cada517cc25fa37f778c.js +1 -0
  102. package/assets/esri/core/workers/chunks/cd1821bf601949674e02.js +1 -0
  103. package/assets/esri/core/workers/chunks/{1b42d163ef22e3565bb7.js → cf7b7e54cd87422ca62a.js} +1 -1
  104. package/assets/esri/core/workers/chunks/d1187ad6cc4959683819.js +1 -0
  105. package/assets/esri/core/workers/chunks/d195c57fc6de3560653d.js +1 -0
  106. package/assets/esri/core/workers/chunks/d7f830a06ded11f2fc80.js +1 -0
  107. package/assets/esri/core/workers/chunks/d877783815afd21dbe98.js +1 -0
  108. package/assets/esri/core/workers/chunks/db5181fcea96cc2ede3e.js +1 -0
  109. package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js → de28a86775235bd5d3c4.js} +2 -2
  110. package/assets/esri/core/workers/chunks/df6992416cba9539f1ed.js +1 -0
  111. package/assets/esri/core/workers/chunks/e4005d95a396e1af9ac2.js +1 -0
  112. package/assets/esri/core/workers/chunks/{668ec0bdfb2095e90c9e.js → e495697860f7207da4c7.js} +1 -1
  113. package/assets/esri/core/workers/chunks/ec187933b42fe65594b7.js +1 -0
  114. package/assets/esri/core/workers/chunks/eec5a93dbc258a90b6de.js +1 -0
  115. package/assets/esri/core/workers/chunks/f163502c513205c892e7.js +1 -0
  116. package/assets/esri/core/workers/chunks/f287ec0fcb611f82ebb0.js +1 -0
  117. package/assets/esri/core/workers/chunks/{37ae52c71bf9c70fbb92.js → f2d45d15d0ba2537a4eb.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{d507d7d7a7282fc38e8d.js → f652d1db26fbdea1a79b.js} +1 -1
  119. package/assets/esri/core/workers/chunks/f6b38ed75baae198c19b.js +1 -0
  120. package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js → f6cfc901267a229de7a1.js} +2 -2
  121. package/assets/esri/core/workers/chunks/f6d04d14323b926f1025.js +1 -0
  122. package/assets/esri/core/workers/chunks/f7ab606be37373312ebe.js +1 -0
  123. package/assets/esri/core/workers/chunks/{3b7dff15a0058ea29886.js → f92178ac6dc9abff304f.js} +1 -1
  124. package/assets/esri/core/workers/chunks/fc39593febef74a036f1.js +1 -0
  125. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  126. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-arabic.woff2 +0 -0
  127. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-cyrillic.woff2 +0 -0
  128. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-ext.woff2 +0 -0
  129. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-georgian.woff2 +0 -0
  130. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-greek.woff2 +0 -0
  131. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-hebrew.woff2 +0 -0
  132. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-math.woff2 +0 -0
  133. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-thai.woff2 +0 -0
  134. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-vietnamese.woff2 +0 -0
  135. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02.woff2 +0 -0
  136. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-arabic.woff2 +0 -0
  137. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-cyrillic.woff2 +0 -0
  138. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-ext.woff2 +0 -0
  139. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-georgian.woff2 +0 -0
  140. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-greek.woff2 +0 -0
  141. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-hebrew.woff2 +0 -0
  142. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-math.woff2 +0 -0
  143. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-thai.woff2 +0 -0
  144. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-vietnamese.woff2 +0 -0
  145. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7.woff2 +0 -0
  146. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-arabic.woff2 +0 -0
  147. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-cyrillic.woff2 +0 -0
  148. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-ext.woff2 +0 -0
  149. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-georgian.woff2 +0 -0
  150. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-greek.woff2 +0 -0
  151. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-hebrew.woff2 +0 -0
  152. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-math.woff2 +0 -0
  153. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-thai.woff2 +0 -0
  154. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-vietnamese.woff2 +0 -0
  155. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688.woff2 +0 -0
  156. package/assets/esri/themes/base/fonts/fonts/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2 +0 -0
  157. package/assets/esri/themes/base/fonts/fonts/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2 +0 -0
  158. package/assets/esri/themes/base/fonts/fonts/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2 +0 -0
  159. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-arabic.woff2 +0 -0
  160. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-cyrillic.woff2 +0 -0
  161. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-ext.woff2 +0 -0
  162. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-georgian.woff2 +0 -0
  163. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-greek.woff2 +0 -0
  164. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-hebrew.woff2 +0 -0
  165. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-math.woff2 +0 -0
  166. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-thai.woff2 +0 -0
  167. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-vietnamese.woff2 +0 -0
  168. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939.woff2 +0 -0
  169. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-cyrillic.woff2 +0 -0
  170. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-ext.woff2 +0 -0
  171. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-greek.woff2 +0 -0
  172. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-hebrew.woff2 +0 -0
  173. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-math.woff2 +0 -0
  174. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-vietnamese.woff2 +0 -0
  175. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d.woff2 +0 -0
  176. package/assets/esri/themes/base/fonts/fonts.scss +0 -0
  177. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +7 -0
  178. package/assets/esri/themes/base/widgets/_Tooltip.scss +5 -3
  179. package/assets/esri/themes/dark/main.css +1 -1
  180. package/assets/esri/themes/light/main.css +1 -1
  181. package/assets/esri/themes/light/view.css +1 -1
  182. package/assets/esri/views/interactive/tooltip/t9n/messages.ar.json +1 -1
  183. package/assets/esri/views/interactive/tooltip/t9n/messages.bg.json +1 -1
  184. package/assets/esri/views/interactive/tooltip/t9n/messages.bs.json +1 -1
  185. package/assets/esri/views/interactive/tooltip/t9n/messages.ca.json +1 -1
  186. package/assets/esri/views/interactive/tooltip/t9n/messages.cs.json +1 -1
  187. package/assets/esri/views/interactive/tooltip/t9n/messages.da.json +1 -1
  188. package/assets/esri/views/interactive/tooltip/t9n/messages.de.json +1 -1
  189. package/assets/esri/views/interactive/tooltip/t9n/messages.el.json +1 -1
  190. package/assets/esri/views/interactive/tooltip/t9n/messages.es.json +1 -1
  191. package/assets/esri/views/interactive/tooltip/t9n/messages.et.json +1 -1
  192. package/assets/esri/views/interactive/tooltip/t9n/messages.fi.json +1 -1
  193. package/assets/esri/views/interactive/tooltip/t9n/messages.fr.json +1 -1
  194. package/assets/esri/views/interactive/tooltip/t9n/messages.he.json +1 -1
  195. package/assets/esri/views/interactive/tooltip/t9n/messages.hr.json +1 -1
  196. package/assets/esri/views/interactive/tooltip/t9n/messages.hu.json +1 -1
  197. package/assets/esri/views/interactive/tooltip/t9n/messages.id.json +1 -1
  198. package/assets/esri/views/interactive/tooltip/t9n/messages.it.json +1 -1
  199. package/assets/esri/views/interactive/tooltip/t9n/messages.ja.json +1 -1
  200. package/assets/esri/views/interactive/tooltip/t9n/messages.ko.json +1 -1
  201. package/assets/esri/views/interactive/tooltip/t9n/messages.lt.json +1 -1
  202. package/assets/esri/views/interactive/tooltip/t9n/messages.lv.json +1 -1
  203. package/assets/esri/views/interactive/tooltip/t9n/messages.nl.json +1 -1
  204. package/assets/esri/views/interactive/tooltip/t9n/messages.no.json +1 -1
  205. package/assets/esri/views/interactive/tooltip/t9n/messages.pl.json +1 -1
  206. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-BR.json +1 -1
  207. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-PT.json +1 -1
  208. package/assets/esri/views/interactive/tooltip/t9n/messages.ro.json +1 -1
  209. package/assets/esri/views/interactive/tooltip/t9n/messages.ru.json +1 -1
  210. package/assets/esri/views/interactive/tooltip/t9n/messages.sk.json +1 -1
  211. package/assets/esri/views/interactive/tooltip/t9n/messages.sl.json +1 -1
  212. package/assets/esri/views/interactive/tooltip/t9n/messages.sr.json +1 -1
  213. package/assets/esri/views/interactive/tooltip/t9n/messages.sv.json +1 -1
  214. package/assets/esri/views/interactive/tooltip/t9n/messages.th.json +1 -1
  215. package/assets/esri/views/interactive/tooltip/t9n/messages.tr.json +1 -1
  216. package/assets/esri/views/interactive/tooltip/t9n/messages.uk.json +1 -1
  217. package/assets/esri/views/interactive/tooltip/t9n/messages.vi.json +1 -1
  218. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-CN.json +1 -1
  219. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-HK.json +1 -1
  220. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-TW.json +1 -1
  221. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  222. package/chunks/batchExec.js +2 -0
  223. package/config.js +1 -1
  224. package/core/units.js +1 -1
  225. package/geometry/HeightModelInfo.js +1 -1
  226. package/geometry/ellipsoidUtils.js +1 -1
  227. package/geometry/support/heightModelInfoUtils.js +1 -1
  228. package/geometry/support/intersects.js +1 -1
  229. package/geometry/support/intersectsBase.js +1 -1
  230. package/interfaces.d.ts +1 -0
  231. package/kernel.js +1 -1
  232. package/layers/ElevationLayer.js +1 -1
  233. package/layers/GeospatialPDFLayer.js +1 -1
  234. package/layers/ImageryTileLayer.js +1 -1
  235. package/layers/OrientedImageryLayer.js +1 -1
  236. package/layers/graphics/dehydratedFeatures.js +1 -1
  237. package/layers/graphics/hydrateGeometryJSON.js +2 -0
  238. package/layers/graphics/hydratedFeatures.js +1 -1
  239. package/layers/graphics/hydratedSpatialReference.js +2 -0
  240. package/layers/graphics/transferFeatures.js +2 -0
  241. package/layers/mixins/FeatureLayerBase.js +1 -1
  242. package/layers/mixins/HeightModelInfoMixin.js +2 -0
  243. package/layers/mixins/SceneService.js +1 -1
  244. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  245. package/layers/raster/datasets/DBFParser.js +1 -1
  246. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  247. package/layers/raster/datasets/RasterFactory.js +1 -1
  248. package/layers/raster/datasets/TIFFRaster.js +1 -1
  249. package/layers/raster/formats/JpgPlus.js +1 -1
  250. package/layers/raster/formats/RasterCodec.js +1 -1
  251. package/layers/raster/formats/Raw.js +1 -1
  252. package/layers/support/arcadeUtils.js +1 -1
  253. package/package.json +3 -3
  254. package/popup/FeatureContent.js +1 -1
  255. package/popup/FeatureContentCollection.d.ts +2 -0
  256. package/popup/FeatureContentCollection.js +1 -1
  257. package/popup/support/featureUtils.js +1 -1
  258. package/rest/imageService.js +1 -1
  259. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  260. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  261. package/support/arcadeUtils.js +1 -1
  262. package/support/loadArcade.js +1 -1
  263. package/support/revision.js +1 -1
  264. package/symbols/cim/cimAnalyzer.js +1 -1
  265. package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
  266. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  267. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  268. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  269. package/views/2d/engine/vectorTiles/decluttering/util.js +1 -1
  270. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  271. package/views/2d/layerViewModuleImportUtils.js +1 -1
  272. package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
  273. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  274. package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
  275. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  276. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  277. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  278. package/views/2d/support/hitTestUtils.js +1 -1
  279. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  280. package/views/3d/camera/intersectionUtils.js +1 -1
  281. package/views/3d/interactive/Manipulator3D.js +1 -1
  282. package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
  283. package/views/3d/layers/I3SMeshView3D.js +1 -1
  284. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  285. package/views/3d/layers/support/featureReference.js +1 -1
  286. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  287. package/views/3d/state/Constraints.js +1 -1
  288. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  289. package/views/3d/support/PBFDecoder.js +1 -1
  290. package/views/3d/support/PBFDecoderWorker.js +1 -1
  291. package/views/3d/support/QualityProfile.js +1 -1
  292. package/views/3d/terrain/TerrainRenderer.js +1 -1
  293. package/views/3d/terrain/TileCompositor.js +1 -1
  294. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  295. package/views/DOMContainer.d.ts +18 -8
  296. package/views/SceneView.js +1 -1
  297. package/views/ToolViewManager.js +1 -1
  298. package/views/VideoView.d.ts +38 -0
  299. package/views/VideoView.js +1 -1
  300. package/views/View.d.ts +20 -2
  301. package/views/View.js +1 -1
  302. package/views/input/types.d.ts +19 -6
  303. package/views/interactive/dragEventPipeline.js +1 -1
  304. package/views/interactive/options/TooltipVisibleElements.d.ts +11 -1
  305. package/views/interactive/options/TooltipVisibleElements.js +1 -1
  306. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  307. package/views/layers/ImageryTileLayerView.js +1 -1
  308. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  309. package/widgets/BatchAttributeForm.js +1 -1
  310. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  311. package/widgets/OrientedImageryViewer/utils.js +1 -1
  312. package/widgets/Search/SearchViewModel.js +1 -1
  313. package/widgets/Search/support/layerSearchUtils.js +1 -1
  314. package/assets/esri/core/workers/chunks/025da54eef112d7e8f66.js +0 -1
  315. package/assets/esri/core/workers/chunks/02f94f9d704f03ddb5c6.js +0 -1
  316. package/assets/esri/core/workers/chunks/04d4cd66485b622403d0.js +0 -1
  317. package/assets/esri/core/workers/chunks/05afa8c2b5929ce0545a.js +0 -1
  318. package/assets/esri/core/workers/chunks/09676cfa99b90fe0cc63.js +0 -1
  319. package/assets/esri/core/workers/chunks/0a2b7c691a577cb3d189.js +0 -1
  320. package/assets/esri/core/workers/chunks/0aadee0437fa061e4ff5.js +0 -1
  321. package/assets/esri/core/workers/chunks/0ccd4200c5a2a5de6e16.js +0 -1
  322. package/assets/esri/core/workers/chunks/1262918b2161d79851c0.js +0 -1
  323. package/assets/esri/core/workers/chunks/1406a884241809b62bff.js +0 -1
  324. package/assets/esri/core/workers/chunks/1c33aa349beea9a3792f.js +0 -1
  325. package/assets/esri/core/workers/chunks/1f135269aea3931e11b2.js +0 -1
  326. package/assets/esri/core/workers/chunks/2146c25c01c9fc11b16c.js +0 -1
  327. package/assets/esri/core/workers/chunks/24014f3701c31ee74bc2.js +0 -1
  328. package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +0 -1
  329. package/assets/esri/core/workers/chunks/2afce71e8b6ae86e0792.js +0 -1
  330. package/assets/esri/core/workers/chunks/2c7bb5c9751524687002.js +0 -1
  331. package/assets/esri/core/workers/chunks/2c7fc24649d91552e68a.js +0 -1
  332. package/assets/esri/core/workers/chunks/2ebad7e588b26e74cefe.js +0 -1
  333. package/assets/esri/core/workers/chunks/319434415d2c0561bc59.js +0 -1
  334. package/assets/esri/core/workers/chunks/39d71e83261bff46f6bf.js +0 -1
  335. package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +0 -1
  336. package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +0 -1
  337. package/assets/esri/core/workers/chunks/4327d2c39a660bd89da7.js +0 -1
  338. package/assets/esri/core/workers/chunks/462fd57af8ed7921d6ba.js +0 -1
  339. package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +0 -1
  340. package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +0 -1
  341. package/assets/esri/core/workers/chunks/48a2f68e06a2e90b77d0.js +0 -1
  342. package/assets/esri/core/workers/chunks/4a73f73f1698fad2df20.js +0 -1
  343. package/assets/esri/core/workers/chunks/4f464047c6f6c9486efd.js +0 -1
  344. package/assets/esri/core/workers/chunks/50c29d10ec53f0e48e8a.js +0 -1
  345. package/assets/esri/core/workers/chunks/526cc64ae46dec3fbeda.js +0 -1
  346. package/assets/esri/core/workers/chunks/550d4df0732352fa48b5.js +0 -1
  347. package/assets/esri/core/workers/chunks/56e97b98dcb8a3f2bcb7.js +0 -1
  348. package/assets/esri/core/workers/chunks/581285e4d7bbe1b7c27a.js +0 -1
  349. package/assets/esri/core/workers/chunks/58fb92775d668cfd295c.js +0 -1
  350. package/assets/esri/core/workers/chunks/5adf2792416b22cd602f.js +0 -1
  351. package/assets/esri/core/workers/chunks/5aee7739afb5160d4ace.js +0 -1
  352. package/assets/esri/core/workers/chunks/6006bd8a5ed945fa2776.js +0 -1
  353. package/assets/esri/core/workers/chunks/64ee22134fda2f09c094.js +0 -1
  354. package/assets/esri/core/workers/chunks/66ef6c034455abd61f39.js +0 -1
  355. package/assets/esri/core/workers/chunks/67678054342178b601cf.js +0 -1
  356. package/assets/esri/core/workers/chunks/6c82cbcd504c711a7450.js +0 -1
  357. package/assets/esri/core/workers/chunks/6e75f09fb9452bd5f9fb.js +0 -1
  358. package/assets/esri/core/workers/chunks/7441d121f00ce747c08e.js +0 -1
  359. package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +0 -1
  360. package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +0 -1
  361. package/assets/esri/core/workers/chunks/78085f804969c9282700.js +0 -1
  362. package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +0 -1
  363. package/assets/esri/core/workers/chunks/80f16f5f15518013f7d0.js +0 -1
  364. package/assets/esri/core/workers/chunks/82ce034b5ba54de9b970.js +0 -29
  365. package/assets/esri/core/workers/chunks/8465e2c7221125fd3cc4.js +0 -1
  366. package/assets/esri/core/workers/chunks/87aaed3dfa903bdf853c.js +0 -1
  367. package/assets/esri/core/workers/chunks/892dc038d569cffd26dc.js +0 -1
  368. package/assets/esri/core/workers/chunks/8daed13400d9e63e65ae.js +0 -1
  369. package/assets/esri/core/workers/chunks/8f1c5f5e70d4b33d021d.js +0 -1
  370. package/assets/esri/core/workers/chunks/9020bd7a0e488d55ef14.js +0 -1
  371. package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +0 -1
  372. package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +0 -1
  373. package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +0 -1
  374. package/assets/esri/core/workers/chunks/a3a33ffa34f4d645ddfe.js +0 -1
  375. package/assets/esri/core/workers/chunks/b396c4b4bb144200acc7.js +0 -1
  376. package/assets/esri/core/workers/chunks/b9c834e3c0701e9b14a2.js +0 -1
  377. package/assets/esri/core/workers/chunks/ba435cc73956d9c64a11.js +0 -1
  378. package/assets/esri/core/workers/chunks/bbfb80a6983574007ce5.js +0 -1
  379. package/assets/esri/core/workers/chunks/bcf2e5cf6b9c6d0442bb.js +0 -1
  380. package/assets/esri/core/workers/chunks/c35e9dee87937f483a3d.js +0 -1
  381. package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +0 -1
  382. package/assets/esri/core/workers/chunks/c77496c350004ee66eb2.js +0 -1
  383. package/assets/esri/core/workers/chunks/cbeba973ef5593ffbba3.js +0 -1
  384. package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +0 -1
  385. package/assets/esri/core/workers/chunks/d25fb32a233d2128afbe.js +0 -1
  386. package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +0 -1
  387. package/assets/esri/core/workers/chunks/d5ef269ab0ee3744b05d.js +0 -1
  388. package/assets/esri/core/workers/chunks/dc92710a8fdfb9135e55.js +0 -1
  389. package/assets/esri/core/workers/chunks/dd4ecf81250cc001d040.js +0 -1
  390. package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +0 -1
  391. package/assets/esri/core/workers/chunks/e4016ae9cb8f16e3efc3.js +0 -1
  392. package/assets/esri/core/workers/chunks/e5ee64e2fb5bfcb716d8.js +0 -1
  393. package/assets/esri/core/workers/chunks/e6637f9176566382ed3e.js +0 -1
  394. package/assets/esri/core/workers/chunks/e6a4cef0af9be30ffe3d.js +0 -1
  395. package/assets/esri/core/workers/chunks/eaa7cb3ffa8c11706a09.js +0 -1
  396. package/assets/esri/core/workers/chunks/ed31ec586b754241474d.js +0 -1
  397. package/assets/esri/core/workers/chunks/ef6e52f9b656751eebaf.js +0 -1
  398. package/assets/esri/core/workers/chunks/f2fca9a3a40170996ea2.js +0 -1
  399. package/assets/esri/core/workers/chunks/f5d06cd6d30a5f742f73.js +0 -1
  400. package/assets/esri/core/workers/chunks/f71ec8a260405ed07958.js +0 -1
  401. package/assets/esri/core/workers/chunks/f91cab9904020cf25d50.js +0 -1
  402. package/assets/esri/core/workers/chunks/fb11ff3f2eae5f072560.js +0 -1
  403. package/assets/esri/core/workers/chunks/ff0e9f8d323eb1729650.js +0 -1
  404. /package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js.LICENSE.txt → de28a86775235bd5d3c4.js.LICENSE.txt} +0 -0
  405. /package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js.LICENSE.txt → f6cfc901267a229de7a1.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,7582],{92474(t,e,r){r.d(e,{Zm:()=>y});var s=r(32198),o=r(49186),i=r(97768),l=r(61893),n=r(17676),a=r(67076),u=r(10107),p=r(64108);const d="loaded",h=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise((t,e)=>{const s=(0,n.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal}).catch(()=>{})}return t(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},t=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}async load(t){return this}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[a.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},c=h(l.Z);function y(t){return!(!t||!t.load)}r.d(e,["WV",0,h,"x_",0,c])},61893(t,e,r){var s=r(32198),o=r(69622),i=r(36563),l=r(17676),n=r(64108);class a{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=Promise.withResolvers(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},t=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(t)||this._resolver.reject(t)}),t.resolve()}}const u=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then(()=>this).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}addResolvingTask(t){t&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(t)),this._promiseProps.addResolvingPromise(t.promise))}};return r=(0,s.Cg)([(0,n.$)("esri.core.Promise")],r),r},p=u(o.A);r.d(e,["Z",0,p,"g",0,u])},5757(t,e,r){r.d(e,{B:()=>o});const s=Symbol("PopupTemplateInstance");function o(t){return null!=t&&"object"==typeof t&&s in t}r.d(e,["P",0,s])},20655(t,e,r){r.d(e,{A:()=>A});var s=r(32198),o=r(92602),i=r(70333),l=r(56507),n=r(49186),a=r(25482),u=r(92474),p=r(97768),d=r(17676),h=r(91429),c=r(78888),y=r(5443),m=r(73444);let g;var f=r(96360),C=r(16405),v=r(69622);let M=class extends v.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,h.MZ)()],M.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"queryParams",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"results",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"total",void 0),M=(0,s.Cg)([(0,h.$K)("esri.portal.PortalQueryResult")],M);var Z,S=r(41318),P=r(926),w=r(36005);let _;const O={PortalGroup:()=>Promise.resolve({default:f.A}),PortalItem:()=>r.e(812).then(()=>r(80812)),PortalUser:()=>Promise.resolve({default:S.A})};let A=class extends((0,a.T)(u.x_)){static{Z=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){b.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?`orgid:${this.id}`:null}get hasAPIKey(){return(0,P.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=S.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3281),r.e(3116)]).then(()=>r(83116)).then(({default:e})=>{(0,d.Te)(t),_=e}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t)).then(t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==Z.AUTH_MODE_AUTO&&this.authMode!==Z.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),b.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)});return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(812),r.e(8732),r.e(5550)]).then(()=>r(38732))).default;return t?t.map(t=>new e({id:t.id,url:t.url})):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery){const t=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,e);r.unshift(...t)}const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new C.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find(t=>"Web Scene"===t.type);return r?new _({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then(t=>t.categorySchema):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then(t=>t.classificationSchema):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new C.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then(t=>t.results)}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return g&&!g.destroyed||(g=new Z),g}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,c.dp)(C.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then(t=>{const r=o.clone();return r.start=t.nextStart,new M({nextQueryParams:r,queryParams:o,total:t.total,results:Z._resultsToTypedArray(e,{portal:this},t,s)})}).then(t=>Promise.all(t.results.map(e=>"function"==typeof e.when?e.when():t)).then(()=>t,e=>((0,d.QP)(e),t)));return r&&O[r]?O[r]().then(({default:t})=>((0,d.Te)(s),i(t))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new n.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===Z.AUTH_MODE_ANONYMOUS||this.authMode===Z.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new n.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate"))).then(t=>{t&&(this.sourceJSON=t,this.read(t))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==Z.AUTH_MODE_NO_PROMPT}).then(e=>t(e)):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then(t=>{const e=Z._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map(e=>"function"==typeof e.when?e.when():t)).then(()=>e,()=>e)})}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===Z.AUTH_MODE_ANONYMOUS||this.authMode===Z.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:n="auto",responseType:a="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:n,query:r,responseType:a,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then(t=>t.data)}toJSON(){throw new n.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new Z({sourceJSON:t})}_getHelperService(t){const e=this.helperServices?.[t];if(!e)throw new n.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new C.A;r.query=t||((0,P.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter(t=>"Web Map"===t.type).map(t=>new _({portalItem:t})):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,P.Dd)())return[];const s=new C.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter(t=>"Web Scene"===t.type).map(t=>new _({portalItem:t})):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=_.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map(r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,h.MZ)()],A.prototype,"access",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"allSSL",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"authMode",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,w.w)("authorizedCrossOriginDomains")],A.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],A.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],A.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"g3dTilesEnabled"}})],A.prototype,"g3dTilesEnabled",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"bingKey",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListApps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListData",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],A.prototype,"created",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"credential",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"culture",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"currentVersion",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultBasemap")],A.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultDevBasemap")],A.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,h.MZ)({type:y.A})],A.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultVectorBasemap")],A.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"description",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"extraQuery",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"hasAPIKey",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helpBase",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helperServices",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helpMap",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"httpPort",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"httpsPort",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"id",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"isOrganization",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"isPortal",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"itemPageUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],A.prototype,"modified",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"name",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalHostname",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalMode",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalProperties",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"region",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"restUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],A.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],A.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"thumbnail",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"units",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"url",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"urlKey",void 0),(0,s.Cg)([(0,w.w)("urlKey")],A.prototype,"readUrlKey",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"user",void 0),(0,s.Cg)([(0,w.w)("user")],A.prototype,"readUser",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"vectorBasemapGalleryGroupQuery",void 0),A=Z=(0,s.Cg)([(0,h.$K)("esri.portal.Portal")],A);const b=new FinalizationRegistry(t=>{t.remove()})},96360(t,e,r){r.d(e,{A:()=>p});var s,o=r(32198),i=r(49186),l=r(25482),n=r(91429),a=r(78888),u=r(16405);let p=s=class extends l.o{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then(e=>{const r=e.categorySchema||[];return r.some(t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source)?this._fetchCategorySchemaSet("LivingAtlas",t):r})}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,a.dp)(u.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new u.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then(t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new u.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new u.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(t=>t.total?t.results[0].fetchData("json",e).then(t=>{const e=t?.categorySchema;return e?.length?e:[]}):[])}};(0,o.Cg)([(0,n.MZ)()],p.prototype,"access",void 0),(0,o.Cg)([(0,n.MZ)({type:Date})],p.prototype,"created",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"description",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"id",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,n.MZ)({type:Date})],p.prototype,"modified",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"owner",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"portal",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"snippet",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"sortField",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"sortOrder",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"tags",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"thumbnail",void 0),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,n.MZ)()],p.prototype,"title",void 0),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"url",null),p=s=(0,o.Cg)([(0,n.$K)("esri.portal.PortalGroup")],p)},16405(t,e,r){r.d(e,{A:()=>c});var s,o=r(32198),i=r(69622),l=r(66552),n=r(4718),a=r(91429),u=r(5443),p=r(16930),d=r(28735);const h=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,n.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map(t=>Array.isArray(t)?JSON.stringify(t):t));let s="";if(this.extent){const t=(0,d.Cv)(this.extent,p.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;const i=t.extraQuery;!this.disableExtraQuery&&i&&(o=o?"("+o+") AND "+i:i);const l={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(l.sortField=this.sortField.split(",").map(t=>h.toJSON(t.trim())).join(","),l.sortOrder=this.sortOrder),{query:{...e,...l}}}};(0,o.Cg)([(0,a.MZ)()],c.prototype,"categories",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,a.MZ)({type:u.A})],c.prototype,"extent",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"filter",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"num",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"query",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"sortOrder",null),(0,o.Cg)([(0,a.MZ)()],c.prototype,"start",void 0),c=s=(0,o.Cg)([(0,a.$K)("esri.portal.PortalQueryParams")],c)},41318(t,e,r){r.d(e,{A:()=>p});var s=r(32198),o=r(49186),i=r(25482),l=r(91429);let n=class extends i.o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],n.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,s.Cg)([(0,l.$K)("esri.portal.PortalFolder")],n);var a,u=r(96360);let p=a=class extends i.o{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load()))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map(t=>t.id);if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},n=await this.portal.request(r,l);for(const e of n.results){const r=t.find(t=>e.itemId===t.id),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(t=>{let e;return e=t&&t.folders?t.folders.map(t=>{const e=n.fromJSON(t);return e.portal=this.portal,e}):[],e})}fetchGroups(){return this.portal.request(this.url??"").then(t=>{let e;return e=t&&t.groups?t.groups.map(t=>{const e=u.A.fromJSON(t);return e.portal=this.portal,e}):[],e})}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(()=>r(80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map(t=>{const e=s.fromJSON(t);return e.portal=this.portal,e}),await Promise.all(l.map(t=>t.load())),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(t=>t.tags)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new a({sourceJSON:t});return e.read(t),e}};(0,s.Cg)([(0,l.MZ)()],p.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"culture",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"email",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"favGroupId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"fullName",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"orgId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"preferredView",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"privileges",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"region",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"role",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"roleId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"units",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"userContentUrl",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"username",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"userType",void 0),p=a=(0,s.Cg)([(0,l.$K)("esri.portal.PortalUser")],p)},98205(t,e,r){r.d(e,{KZ:()=>n,eh:()=>l,gf:()=>i,of:()=>o});const s=Symbol("SizeVariableInstance");function o(t){return null!=t&&"object"==typeof t&&s in t}function i(t){return null!=t&&!isNaN(t)&&isFinite(t)}function l(t){return t.valueExpression?"expression":t.field&&"string"==typeof t.field?"field":"unknown"}function n(t,e){const r=e||l(t),s=t.valueUnit||"unknown";return"unknown"===r?"constant":t.stops?"stops":null!=t.minSize&&null!=t.maxSize&&null!=t.minDataValue&&null!=t.maxDataValue?"clamped-linear":"unknown"===s?null!=t.minSize&&null!=t.minDataValue?t.minSize&&t.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(e,["uY",0,s])},926(t,e,r){r.d(e,{Dd:()=>h,Jn:()=>c,Qc:()=>y,getApiKey:()=>p,getSessionToken:()=>d});var s=r(92602),o=r(56507),i=r(84952);const l=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,n=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),a=new Map;let u=null;function p(t){if(!y(t))return null;const e=e=>e instanceof RegExp?e.test(t):"string"==typeof e&&t.startsWith(e),r=s.A.apiKeys;if(Array.isArray(r.scopes))for(const t of r.scopes)if(Array.isArray(t.urls)){if(t.urls.some(e))return t.token}else if(e(t.urls))return t.token;return r.basemapStyles&&l.test(t)?r.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(t)?s.A.apiKey:null}async function d(t){if(!s.A.sessions?.basemap?.enabled||!l.test(t))return null;const e=p(t);if(!e)return null;u&&await u;const{styleFamily:r="arcgis",autoRefresh:i,duration:n=43200}=s.A.sessions.basemap,d=`${e}:${r}`,h=a.get(d);if(h&&(!i||h.endTime>Date.now()))return h.sessionToken;let c;u=(0,o.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:n,styleFamily:r,token:e}});try{c=(await u).data,c.endTime-=5e3,a.set(d,c)}finally{u=null}return c.sessionToken}function h(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function c(t,e){return e?y(t):null!=p(t)}function y(t){const e=(0,i.$z)(t,!0);return!!e&&!n.has(e)&&!t.endsWith("/sharing/rest/generateToken")}},94128(t,e,r){r.d(e,{D:()=>o});const s=Symbol("GraphicInstance");function o(t){return null!=t&&"object"==typeof t&&s in t}r.d(e,["Z",0,s])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4054],{68197(e,t,r){r.d(t,{A:()=>c});var n=r(40876),s=r(4576),i=r(34727),o=r(78888);function a(e){return(0,i.qE)((0,o.Vr)(e),0,255)}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function l(e){return.2126*(0,n.Q6)(e.r)+.7152*(0,n.Q6)(e.g)+.0722*(0,n.Q6)(e.b)}class c{static blendColors(e,t,r,n=new c){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?c.fromArray(r,t):null}static fromHex(e,t=new c){const r=(0,n.oW)(e);return r?c.fromArray(r,t):null}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?c.fromArray(r,t):null}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){const r=e instanceof c?e:new c(e),n=l(this),s=l(r);return(Math.max(n,s)+.05)/(Math.min(n,s)+.05)<t}setColor(e){if("string"==typeof e)c.fromString(e,this);else if((0,s.yc)(e))c.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof c||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,s=4===r||8===r,i=`#${u(this.r,n)}${u(this.g,n)}${u(this.b,n)}${s?u(Math.round(255*this.a),n):""}`;return t?i.toUpperCase():i}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),r=a(this.g),n=a(this.b);return 0===e||1!==this.a?[t,r,n,a(255*this.a)]:[t,r,n]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}c.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>y,Q6:()=>_,TS:()=>i,V6:()=>s,Vm:()=>p,ay:()=>u,c1:()=>m,c4:()=>o,j5:()=>l,lT:()=>h,oW:()=>c,xV:()=>b});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function s(e){return!!n[e]||!!n[e.toLowerCase()]}function i(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...i(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function u(e,t,r,n=1){const s=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,o=2*r-i;return[Math.round(255*a(o,i,s+1/3)),Math.round(255*a(o,i,s)),Math.round(255*a(o,i,s-1/3)),n]}function l(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,s=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let u;return i&&(u=o&n,o>>=r,a[3]=s*u/255),u=o&n,o>>=r,a[2]=s*u,u=o&n,o>>=r,a[1]=s*u,u=o&n,o>>=r,a[0]=s*u,a}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),s=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(s+16*s)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),f(t)}return f(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return u(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function f(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?y(e[3]):1,e}function d(e){let t=s(e)?i(e):null;return t??=h(e),t??=c(e),t}function p(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function y(e){return g(e,0,1)}function m(e){return Math.round(g(e,0,255))}function g(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const E=1/2.2;function _(e){return e**2.2}function b(e){return e**E}r.d(t,["iw",0,E])},85334(e,t,r){r.d(t,{$:()=>E,IB:()=>a,Iy:()=>S,KV:()=>v,N2:()=>_,RH:()=>T,ZD:()=>b,sn:()=>R});var n=r(68197),s=r(4576),i=r(4718),o=r(34727);function a(e){return"r"in e&&"g"in e&&"b"in e}function u(e){return"h"in e&&"s"in e&&"v"in e}function l(e){return"l"in e&&"a"in e&&"b"in e}function c(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],f=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function d(e,t){const r=[];let n,s;if(e[0].length!==t.length)throw new Error("dimensions do not match");const i=e.length,o=e[0].length;let a=0;for(n=0;n<i;n++){for(a=0,s=0;s<o;s++)a+=e[n][s]*t[s];r.push(a)}return r}function p(e){const t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=d(h,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function y(e){const t=d(f,[e.x/100,e.y/100,e.z/100]).map(e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function m(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function g(e){const t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function E(e){return a(e)?e:c(e)?function(e){return y(g(function(e){const t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):l(e)?function(e){return y(g(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?y(e):u(e)?function(e){const t=(e.h+360)%360/60,r=e.s/100,n=e.v/100*255,s=n*r,i=s*(1-Math.abs(t%2-1));let o;switch(Math.floor(t)){case 0:o={r:s,g:i,b:0};break;case 1:o={r:i,g:s,b:0};break;case 2:o={r:0,g:s,b:i};break;case 3:o={r:0,g:i,b:s};break;case 4:o={r:i,g:0,b:s};break;case 5:case 6:o={r:s,g:0,b:i};break;default:o={r:0,g:0,b:0}}return o.r=Math.round(o.r+n-s),o.g=Math.round(o.g+n-s),o.b=Math.round(o.b+n-s),o}(e):e}function _(e){return u(e)?e:function(e){const{r:t,g:r,b:n}=e,s=Math.max(t,r,n),i=s-Math.min(t,r,n);let o=s,a=0===i?0:s===t?(r-n)/i%6:s===r?(n-t)/i+2:(t-r)/i+4,u=0===i?0:i/o;return a<0&&(a+=6),a*=60,u*=100,o*=100/255,{h:a,s:u,v:o}}(E(e))}function b(e){return l(e)?e:function(e){return m(p(e))}(E(e))}function T(e){return c(e)?e:function(e){return function(e){const t=e.l,r=e.a,n=e.b,s=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i=i>0?i:i+2*Math.PI,{l:t,c:s,h:i}}(m(p(e)))}(E(e))}function v(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function R(e){return e.length=4,v(e),e[3]??=1,(0,o.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){const r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,s.k4)((0,i.o8)(e),r.seed)),e.length>=t){const r=[],n=(e.length-1)/(t-1);for(let s=0;s<t;s++){const t=Math.round(s*n);r.push(e[t].clone())}return r}return function(e,t,r={}){const n=[],i=e.length-1,o=Math.ceil((t-e.length)/i);e:for(let s=0;s<i;s++){const i=e[s],a=e[s+1];for(let s=1;s<=o;s++){const u=s/(o+1);if(n.push(A(i,a,u,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,s.k4)(n,r.seed??1)]}(e,t,r)}const M=(e,t)=>{const r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function A(e,t,r,i={}){const o=e.r,a=e.g,u=e.b,l=t.r,c=t.g,h=t.b,f=Math.round(o+(l-o)*r),d=Math.round(a+(c-a)*r),p=Math.round(u+(h-u)*r);if(!i.offset)return new n.A([f,d,p]);const y=(0,s.Mo)(i.seed);return new n.A([M(f,y),M(d,y),M(p,y)])}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>s,vt:()=>n});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(e,t,r,n,s,i,o,a,u,l,c,h,f,d,p,y){return[e,t,r,n,s,i,o,a,u,l,c,h,f,d,p,y]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,i])},58083(e,t,r){r.d(t,{$0:()=>g,$h:()=>I,B8:()=>c,C:()=>i,D_:()=>a,N9:()=>_,O7:()=>A,Qw:()=>l,Tl:()=>f,X_:()=>R,e$:()=>p,eL:()=>y,hM:()=>E,hZ:()=>o,hs:()=>d,kN:()=>m,l:()=>S,lw:()=>h,mg:()=>u,o1:()=>M,sC:()=>v,t2:()=>w,t5:()=>x,tZ:()=>C,ut:()=>N});var n=r(51850),s=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function o(e,t,r,n,s,i,o,a,u,l,c,h,f,d,p,y,m){return e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=a,e[7]=u,e[8]=l,e[9]=c,e[10]=h,e[11]=f,e[12]=d,e[13]=p,e[14]=y,e[15]=m,e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function u(e,t){if(e===t){const r=t[1],n=t[2],s=t[3],i=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=s,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){return c(e,t)||a(e),e}function c(e,t){const r=t[0],n=t[1],s=t[2],i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],y=t[13],m=t[14],g=t[15],E=r*a-n*o,_=r*u-s*o,b=r*l-i*o,T=n*u-s*a,v=n*l-i*a,R=s*l-i*u,S=c*y-h*p,M=c*m-f*p,A=c*g-d*p,I=h*m-f*y,x=h*g-d*y,B=f*g-d*m;let w=E*B-_*x+b*I+T*A-v*M+R*S;return w?(w=1/w,e[0]=(a*B-u*x+l*I)*w,e[1]=(s*x-n*B-i*I)*w,e[2]=(y*R-m*v+g*T)*w,e[3]=(f*v-h*R-d*T)*w,e[4]=(u*A-o*B-l*M)*w,e[5]=(r*B-s*A+i*M)*w,e[6]=(m*b-p*R-g*_)*w,e[7]=(c*R-f*b+d*_)*w,e[8]=(o*x-a*A+l*S)*w,e[9]=(n*A-r*x-i*S)*w,e[10]=(p*v-y*b+g*E)*w,e[11]=(h*b-c*v-d*E)*w,e[12]=(a*M-o*I-u*S)*w,e[13]=(r*I-n*M+s*S)*w,e[14]=(y*_-p*T-m*E)*w,e[15]=(c*T-h*_+f*E)*w,e):null}function h(e,t,r){const n=t[0],s=t[1],i=t[2],o=t[3],a=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],y=t[12],m=t[13],g=t[14],E=t[15];let _=r[0],b=r[1],T=r[2],v=r[3];return e[0]=_*n+b*a+T*h+v*y,e[1]=_*s+b*u+T*f+v*m,e[2]=_*i+b*l+T*d+v*g,e[3]=_*o+b*c+T*p+v*E,_=r[4],b=r[5],T=r[6],v=r[7],e[4]=_*n+b*a+T*h+v*y,e[5]=_*s+b*u+T*f+v*m,e[6]=_*i+b*l+T*d+v*g,e[7]=_*o+b*c+T*p+v*E,_=r[8],b=r[9],T=r[10],v=r[11],e[8]=_*n+b*a+T*h+v*y,e[9]=_*s+b*u+T*f+v*m,e[10]=_*i+b*l+T*d+v*g,e[11]=_*o+b*c+T*p+v*E,_=r[12],b=r[13],T=r[14],v=r[15],e[12]=_*n+b*a+T*h+v*y,e[13]=_*s+b*u+T*f+v*m,e[14]=_*i+b*l+T*d+v*g,e[15]=_*o+b*c+T*p+v*E,e}function f(e,t,r){const n=r[0],s=r[1],i=r[2];if(t===e)e[12]=t[0]*n+t[4]*s+t[8]*i+t[12],e[13]=t[1]*n+t[5]*s+t[9]*i+t[13],e[14]=t[2]*n+t[6]*s+t[10]*i+t[14],e[15]=t[3]*n+t[7]*s+t[11]*i+t[15];else{const r=t[0],o=t[1],a=t[2],u=t[3],l=t[4],c=t[5],h=t[6],f=t[7],d=t[8],p=t[9],y=t[10],m=t[11];e[0]=r,e[1]=o,e[2]=a,e[3]=u,e[4]=l,e[5]=c,e[6]=h,e[7]=f,e[8]=d,e[9]=p,e[10]=y,e[11]=m,e[12]=r*n+l*s+d*i+t[12],e[13]=o*n+c*s+p*i+t[13],e[14]=a*n+h*s+y*i+t[14],e[15]=u*n+f*s+m*i+t[15]}return e}function d(e,t,r){const n=r[0],s=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,r,n){let o=n[0],a=n[1],u=n[2],l=Math.sqrt(o*o+a*a+u*u);if(l<=(0,s.FD)())return void i(e,t);l=1/l,o*=l,a*=l,u*=l;const c=Math.sin(r),h=Math.cos(r),f=1-h,d=t[0],p=t[1],y=t[2],m=t[3],g=t[4],E=t[5],_=t[6],b=t[7],T=t[8],v=t[9],R=t[10],S=t[11],M=o*o*f+h,A=a*o*f+u*c,I=u*o*f-a*c,x=o*a*f-u*c,B=a*a*f+h,w=u*a*f+o*c,N=o*u*f+a*c,C=a*u*f-o*c,O=u*u*f+h;e[0]=d*M+g*A+T*I,e[1]=p*M+E*A+v*I,e[2]=y*M+_*A+R*I,e[3]=m*M+b*A+S*I,e[4]=d*x+g*B+T*w,e[5]=p*x+E*B+v*w,e[6]=y*x+_*B+R*w,e[7]=m*x+b*B+S*w,e[8]=d*N+g*C+T*O,e[9]=p*N+E*C+v*O,e[10]=y*N+_*C+R*O,e[11]=m*N+b*C+S*O,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function y(e,t,r){const n=Math.sin(r),s=Math.cos(r),i=t[4],o=t[5],a=t[6],u=t[7],l=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*s+l*n,e[5]=o*s+c*n,e[6]=a*s+h*n,e[7]=u*s+f*n,e[8]=l*s-i*n,e[9]=c*s-o*n,e[10]=h*s-a*n,e[11]=f*s-u*n,e}function m(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function g(e,t,r){if(0===t)return a(e);let n=r[0],i=r[1],o=r[2],u=Math.sqrt(n*n+i*i+o*o);if(u<=(0,s.FD)())return null;u=1/u,n*=u,i*=u,o*=u;const l=Math.sin(t),c=Math.cos(t),h=1-c;return e[0]=n*n*h+c,e[1]=i*n*h+o*l,e[2]=o*n*h-i*l,e[3]=0,e[4]=n*i*h-o*l,e[5]=i*i*h+c,e[6]=o*i*h+n*l,e[7]=0,e[8]=n*o*h+i*l,e[9]=i*o*h-n*l,e[10]=o*o*h+c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function E(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function _(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t,r){const n=t[0],s=t[1],i=t[2],o=t[3],a=n+n,u=s+s,l=i+i,c=n*a,h=n*u,f=n*l,d=s*u,p=s*l,y=i*l,m=o*a,g=o*u,E=o*l;return e[0]=1-(d+y),e[1]=h+E,e[2]=f-g,e[3]=0,e[4]=h-E,e[5]=1-(c+y),e[6]=p+m,e[7]=0,e[8]=f+g,e[9]=p-m,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const T=(0,n.vt)();function v(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function R(e,t){const r=t[0],n=t[1],s=t[2],i=t[4],o=t[5],a=t[6],u=t[8],l=t[9],c=t[10];return e[0]=Math.sqrt(r*r+n*n+s*s),e[1]=Math.sqrt(i*i+o*o+a*a),e[2]=Math.sqrt(u*u+l*l+c*c),e}function S(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e}function M(e,t,r,n){const s=t[0],i=t[1],o=t[2],a=t[3],u=s+s,l=i+i,c=o+o,h=s*u,f=s*l,d=s*c,p=i*l,y=i*c,m=o*c,g=a*u,E=a*l,_=a*c,b=n[0],T=n[1],v=n[2];return e[0]=(1-(p+m))*b,e[1]=(f+_)*b,e[2]=(d-E)*b,e[3]=0,e[4]=(f-_)*T,e[5]=(1-(h+m))*T,e[6]=(y+g)*T,e[7]=0,e[8]=(d+E)*v,e[9]=(y-g)*v,e[10]=(1-(h+p))*v,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function A(e,t,r,n,s){const i=t[0],o=t[1],a=t[2],u=t[3],l=i+i,c=o+o,h=a+a,f=i*l,d=i*c,p=i*h,y=o*c,m=o*h,g=a*h,E=u*l,_=u*c,b=u*h,T=n[0],v=n[1],R=n[2],S=s[0],M=s[1],A=s[2],I=(1-(y+g))*T,x=(d+b)*T,B=(p-_)*T,w=(d-b)*v,N=(1-(f+g))*v,C=(m+E)*v,O=(p+_)*R,L=(m-E)*R,P=(1-(f+y))*R;return e[0]=I,e[1]=x,e[2]=B,e[3]=0,e[4]=w,e[5]=N,e[6]=C,e[7]=0,e[8]=O,e[9]=L,e[10]=P,e[11]=0,e[12]=r[0]+S-(I*S+w*M+O*A),e[13]=r[1]+M-(x*S+N*M+L*A),e[14]=r[2]+A-(B*S+C*M+P*A),e[15]=1,e}function I(e,t,r,n,s,i,o){const a=1/(r-t),u=1/(s-n),l=1/(i-o);return e[0]=2*i*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*u,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(s+n)*u,e[10]=(o+i)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*l,e[15]=0,e}function x(e,t,r,n){const i=t[0],o=t[1],u=t[2];let l=i-r[0],c=o-r[1],h=u-r[2];const f=(0,s.FD)();if(Math.abs(l)<f&&Math.abs(c)<f&&Math.abs(h)<f)return void a(e);let d=1/Math.sqrt(l*l+c*c+h*h);l*=d,c*=d,h*=d;const p=n[0],y=n[1],m=n[2];let g=y*h-m*c,E=m*l-p*h,_=p*c-y*l;d=Math.sqrt(g*g+E*E+_*_),d?(d=1/d,g*=d,E*=d,_*=d):(g=0,E=0,_=0);let b=c*_-h*E,T=h*g-l*_,v=l*E-c*g;d=Math.sqrt(b*b+T*T+v*v),d?(d=1/d,b*=d,T*=d,v*=d):(b=0,T=0,v=0),e[0]=g,e[1]=b,e[2]=l,e[3]=0,e[4]=E,e[5]=T,e[6]=c,e[7]=0,e[8]=_,e[9]=v,e[10]=h,e[11]=0,e[12]=-(g*i+E*o+_*u),e[13]=-(b*i+T*o+v*u),e[14]=-(l*i+c*o+h*u),e[15]=1}function B(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function N(e){const t=(0,s.FD)(),r=e[0],n=e[1],i=e[2],o=e[4],a=e[5],u=e[6],l=e[8],c=e[9],h=e[10];return Math.abs(1-(r*r+o*o+l*l))<=t&&Math.abs(1-(n*n+a*a+c*c))<=t&&Math.abs(1-(i*i+u*u+h*h))<=t}function C(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const O=h,L=B;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],n=t[1],s=t[2],i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],y=t[13],m=t[14],g=t[15];return e[0]=a*(f*g-d*m)-h*(u*g-l*m)+y*(u*d-l*f),e[1]=-(n*(f*g-d*m)-h*(s*g-i*m)+y*(s*d-i*f)),e[2]=n*(u*g-l*m)-a*(s*g-i*m)+y*(s*l-i*u),e[3]=-(n*(u*d-l*f)-a*(s*d-i*f)+h*(s*l-i*u)),e[4]=-(o*(f*g-d*m)-c*(u*g-l*m)+p*(u*d-l*f)),e[5]=r*(f*g-d*m)-c*(s*g-i*m)+p*(s*d-i*f),e[6]=-(r*(u*g-l*m)-o*(s*g-i*m)+p*(s*l-i*u)),e[7]=r*(u*d-l*f)-o*(s*d-i*f)+c*(s*l-i*u),e[8]=o*(h*g-d*y)-c*(a*g-l*y)+p*(a*d-l*h),e[9]=-(r*(h*g-d*y)-c*(n*g-i*y)+p*(n*d-i*h)),e[10]=r*(a*g-l*y)-o*(n*g-i*y)+p*(n*l-i*a),e[11]=-(r*(a*d-l*h)-o*(n*d-i*h)+c*(n*l-i*a)),e[12]=-(o*(h*m-f*y)-c*(a*m-u*y)+p*(a*f-u*h)),e[13]=r*(h*m-f*y)-c*(n*m-s*y)+p*(n*f-s*h),e[14]=-(r*(a*m-u*y)-o*(n*m-s*y)+p*(n*u-s*a)),e[15]=r*(a*f-u*h)-o*(n*f-s*h)+c*(n*u-s*a),e},copy:i,determinant:function(e){const t=e[0],r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],a=e[6],u=e[7],l=e[8],c=e[9],h=e[10],f=e[11],d=e[12],p=e[13],y=e[14],m=e[15];return(t*o-r*i)*(h*m-f*y)-(t*a-n*i)*(c*m-f*p)+(t*u-s*i)*(c*y-h*p)+(r*a-n*o)*(l*m-f*d)-(r*u-s*o)*(l*y-h*d)+(n*u-s*a)*(l*p-c*d)},equals:function(e,t){if(e===t)return!0;const r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],y=e[12],m=e[13],g=e[14],E=e[15],_=t[0],b=t[1],T=t[2],v=t[3],R=t[4],S=t[5],M=t[6],A=t[7],I=t[8],x=t[9],B=t[10],w=t[11],N=t[12],C=t[13],O=t[14],L=t[15],P=(0,s.FD)();return Math.abs(r-_)<=P*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(n-b)<=P*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-T)<=P*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(o-v)<=P*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(a-R)<=P*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(u-S)<=P*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(l-M)<=P*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-A)<=P*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(h-I)<=P*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(f-x)<=P*Math.max(1,Math.abs(f),Math.abs(x))&&Math.abs(d-B)<=P*Math.max(1,Math.abs(d),Math.abs(B))&&Math.abs(p-w)<=P*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(y-N)<=P*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(m-C)<=P*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(g-O)<=P*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(E-L)<=P*Math.max(1,Math.abs(E),Math.abs(L))},exactEquals:w,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],n=t[1],s=t[2],i=t[3],o=r+r,a=n+n,u=s+s,l=r*o,c=n*o,h=n*a,f=s*o,d=s*a,p=s*u,y=i*o,m=i*a,g=i*u;return e[0]=1-h-p,e[1]=c+g,e[2]=f-m,e[3]=0,e[4]=c-g,e[5]=1-l-p,e[6]=d+y,e[7]=0,e[8]=f+m,e[9]=d-y,e[10]=1-l-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=T,n=-t[0],s=-t[1],i=-t[2],o=t[3],a=t[4],u=t[5],l=t[6],c=t[7],h=n*n+s*s+i*i+o*o;return h>0?(r[0]=2*(a*o+c*n+u*i-l*s)/h,r[1]=2*(u*o+c*s+l*n-a*i)/h,r[2]=2*(l*o+c*i+a*s-u*n)/h):(r[0]=2*(a*o+c*n+u*i-l*s),r[1]=2*(u*o+c*s+l*n-a*i),r[2]=2*(l*o+c*i+a*s-u*n)),b(e,t,r),e},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:M,fromRotationTranslationScaleOrigin:A,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:m,fromXRotation:E,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:_,frustum:I,getRotation:S,getScale:R,getTranslation:v,hasIdentityRotation:C,identity:a,invert:c,invertOrIdentity:l,isOrthoNormal:N,lookAt:x,mul:O,multiply:h,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,s,i,o){const a=1/(t-r),u=1/(n-s),l=1/(i-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+r)*a,e[13]=(s+n)*u,e[14]=(o+i)*l,e[15]=1,e},perspective:function(e,t,r,n,s){const i=1/Math.tan(t/2);let o;return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(o=1/(n-s),e[10]=(s+n)*o,e[14]=2*s*n*o):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const s=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+a),l=2/(s+i);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=-(o-a)*u*.5,e[9]=(s-i)*l*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:p,rotateX:y,rotateY:function(e,t,r){const n=Math.sin(r),s=Math.cos(r),i=t[0],o=t[1],a=t[2],u=t[3],l=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s-l*n,e[1]=o*s-c*n,e[2]=a*s-h*n,e[3]=u*s-f*n,e[8]=i*n+l*s,e[9]=o*n+c*s,e[10]=a*n+h*s,e[11]=u*n+f*s,e},rotateZ:function(e,t,r){const n=Math.sin(r),s=Math.cos(r),i=t[0],o=t[1],a=t[2],u=t[3],l=t[4],c=t[5],h=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s+l*n,e[1]=o*s+c*n,e[2]=a*s+h*n,e[3]=u*s+f*n,e[4]=l*s-i*n,e[5]=c*s-o*n,e[6]=h*s-a*n,e[7]=f*s-u*n,e},scale:d,set:o,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:L,subtract:B,targetTo:function(e,t,r,n){const s=t[0],i=t[1],o=t[2],a=n[0],u=n[1],l=n[2];let c=s-r[0],h=i-r[1],f=o-r[2],d=c*c+h*h+f*f;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,f*=d);let p=u*f-l*h,y=l*c-a*f,m=a*h-u*c;return d=p*p+y*y+m*m,d>0&&(d=1/Math.sqrt(d),p*=d,y*=d,m*=d),e[0]=p,e[1]=y,e[2]=m,e[3]=0,e[4]=h*m-f*y,e[5]=f*p-c*m,e[6]=c*y-h*p,e[7]=0,e[8]=c,e[9]=h,e[10]=f,e[11]=0,e[12]=s,e[13]=i,e[14]=o,e[15]=1,e},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},90629(e,t,r){r.d(t,{Lz:()=>s,PN:()=>i,cr:()=>o,gs:()=>u,r_:()=>l,tc:()=>a}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function s(e){return e?e/72*96:0}function i(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(n);if(t){const r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),s=e.startsWith("-"),o="px"===n?i(r):r;return s?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function a(e=0,t=0){return{x:e,y:t}}function u(e=0,t=0){return[e,t]}function l(e=0,t=0,r=0){return[e,t,r]}},4197(e,t,r){r.d(t,{Vj:()=>c,cj:()=>l,jh:()=>i,l5:()=>a,yH:()=>u});var n=r(34275),s=r(9093);function i(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function u(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const r=i(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}function l(e){return[...e]}function c(e){const t=(0,s.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>I,C:()=>o,DC:()=>f,Ej:()=>_,Ie:()=>M,Jt:()=>A,Lu:()=>T,Ne:()=>v,RF:()=>h,TF:()=>g,VL:()=>p,aI:()=>B,fA:()=>a,gE:()=>l,gX:()=>E,hZ:()=>S,iT:()=>d,is:()=>x,pg:()=>b,uJ:()=>m,vI:()=>R,vY:()=>u,vt:()=>i,w1:()=>c,yr:()=>y}),r(35522);var n=r(5443),s=(r(19419),r(4197));function i(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function a(e,t,r,n,s,o,a=i()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=s,a[5]=o,a}function u(e,t=i()){return function(e,t,r,n=i()){return S(n,w),function(e,t,r=0,n=t.length/3){let s=e[0],i=e[1],o=e[2],a=e[3],u=e[4],l=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),i=Math.min(i,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),u=Math.max(u,t[r+3*e+1]),l=Math.max(l,t[r+3*e+2]);e[0]=s,e[1]=i,e[2]=o,e[3]=a,e[4]=u,e[5]=l}(n,e,t,r),n}(e,0,e.length/3,t)}function l(e,t=(0,s.jh)(24)){const[r,n,i,o,a,u]=e;return t[0]=r,t[1]=n,t[2]=i,t[3]=r,t[4]=n,t[5]=u,t[6]=r,t[7]=a,t[8]=i,t[9]=r,t[10]=a,t[11]=u,t[12]=o,t[13]=n,t[14]=i,t[15]=o,t[16]=n,t[17]=u,t[18]=o,t[19]=a,t[20]=i,t[21]=o,t[22]=a,t[23]=u,t}function c(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function p(e){return e[0]>=e[3]?0:e[3]-e[0]}function y(e){return e[1]>=e[4]?0:e[4]-e[1]}function m(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){const t=p(e),r=m(e),n=y(e);return t*t+r*r+n*n}function E(e,t=[0,0,0]){return t[0]=e[0]+p(e)/2,t[1]=e[1]+y(e)/2,t[2]=e[2]+m(e)/2,t}function _(e,t=[0,0,0]){return t[0]=p(e),t[1]=y(e),t[2]=m(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function T(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function v(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function R(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function M(e){return e?S(e,w):i(w)}function A(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function I(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function x(e){return 6===e.length}function B(e,t,r){if(null==e||null==t)return e===t;if(!x(e)||!x(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];i(),r.d(t,["qv",0,w,"v_",0,N])},13030(e,t,r){r.d(t,{Y$:()=>m,XW:()=>y,qB:()=>I,Qt:()=>W,My:()=>X,bf:()=>G,jZ:()=>R,j0:()=>S,Sx:()=>M,E$:()=>A,Qy:()=>ne,h:()=>P,P:()=>U,SL:()=>N,dy:()=>te,ES:()=>se,gH:()=>E,ZD:()=>g,si:()=>x,mJ:()=>z,UL:()=>K,D6:()=>j,Yi:()=>F,An:()=>V,LC:()=>C,xs:()=>b,EC:()=>_,Xm:()=>B,Vp:()=>$,zD:()=>J,m8:()=>Y,nS:()=>D,H$:()=>k,eI:()=>O,td:()=>re,Eq:()=>v,jz:()=>T,Aj:()=>w,E7:()=>H,Y4:()=>ee,TX:()=>Z,Uz:()=>q,ml:()=>Q,XP:()=>L});var n=r(34727),s=r(37585),i=r(48163),o=r(78955),a=r(91829);class u{static{this.ElementCount=9}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;for(let e=0;e<9;++e)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=16}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){this.copyFromTypedBuffer(e,t.typedBuffer,r*t.typedBufferStride)}copyFromTypedBuffer(e,t,r){const n=this.typedBuffer;let s=e*this.typedBufferStride;for(let e=0;e<16;++e)n[s++]=t[r++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=1}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}get(e){return this.typedBuffer[e*this.typedBufferStride]}set(e,t){this.typedBuffer[e*this.typedBufferStride]=t}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=2}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,s.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e]=t[1]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e]=r}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var f=r(35522);class d{static{this.ElementCount=3}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,f.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1],this.typedBuffer[e+2])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e]=t[2]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,n){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e]=n}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,o.hZ)(t,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e++]=t[2],this.typedBuffer[e]=t[3]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,n,s){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e++]=n,this.typedBuffer[e]=s}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class y extends c{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class m extends c{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class g extends h{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="f16"}}class E extends h{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(E,e,t)}static{this.ElementType="f32"}}class _ extends d{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="f16"}}class b extends d{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(b,e,t)}static fromTypedArray(e,t){return new b(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class T extends p{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(T,e,t)}static{this.ElementType="f16"}}class v extends p{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(v,e,t)}static{this.ElementType="f32"}}class R extends u{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(R,e,t)}static{this.ElementType="f32"}}class S extends u{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(S,e,t)}static{this.ElementType="f64"}}class M extends l{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="f32"}}class A extends l{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(A,e,t)}static{this.ElementType="f64"}}class I extends c{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="f64"}}class x extends h{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(x,e,t)}static{this.ElementType="f64"}}class B extends d{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(B,e,t)}static fromTypedArray(e,t){return new B(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class w extends p{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="f64"}}class N extends c{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="u8"}}class C extends h{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="u8"}}class O extends d{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(O,e,t)}static fromTypedArray(e,t){return new O(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class L extends p{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(L,e,t)}static{this.ElementType="u8"}}class P extends c{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="u16"}}class F extends h{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(F,e,t)}static{this.ElementType="u16"}}class D extends d{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="u16"}}class q extends p{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(q,e,t)}static{this.ElementType="u16"}}class U extends c{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(U,e,t)}static{this.ElementType="u32"}}class V extends h{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="u32"}}class k extends d{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="u32"}}class Q extends p{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="u32"}}class G extends c{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="i8"}}class j extends h{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="i8"}}class Y extends d{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Y,e,t)}static{this.ElementType="i8"}}class Z extends p{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Z,e,t)}static{this.ElementType="i8"}}class W extends c{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i16"}}class z extends h{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="i16"}}class $ extends d{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer($,e,t)}static{this.ElementType="i16"}}class H extends p{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="i16"}}class X extends c{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(X,e,t)}static{this.ElementType="i32"}}class K extends h{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="i32"}}class J extends d{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="i32"}}class ee extends p{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(ee,e,t)}static{this.ElementType="i32"}}class te extends N{constructor(e,t=0,r,n){super(e,t,r,n)}get(e){return this.typedBuffer[e*this.typedBufferStride]/255}set(e,t){this.typedBuffer[e*this.typedBufferStride]=Math.round(255*(0,n.qE)(t,0,1))}slice(e,t){return this.sliceBuffer(te,e,t)}}class re extends L{constructor(e,t=0,r,n){super(e,t,r,n)}getVec(e,t){return(0,o.hs)(t,super.getVec(e,t),1/255)}setVec(e,t){(0,o.jk)(oe,(0,o.T9)(oe,t,a.uY),a.Un),(0,o.hs)(oe,oe,255),(0,o.LI)(oe,oe),super.setVec(e,oe)}get(e,t){return super.get(e,t)/255}set(e,t,r){super.set(e,t,Math.round(255*(0,n.qE)(r,0,1)))}setValues(e,t,r,n,s){(0,o.hZ)(oe,t,r,n,s),this.setVec(e,oe)}slice(e,t){return this.sliceBuffer(re,e,t)}}class ne extends W{constructor(e,t=0,r,n){super(e,t,r,n)}get(e){return Math.max(super.get(e)/32767,-1)}set(e,t){super.set(e,Math.round(32767*(0,n.qE)(t,-1,1)))}slice(e,t){return this.sliceBuffer(ne,e,t)}}class se extends z{constructor(e,t=0,r,n){super(e,t,r,n)}getVec(e,t){return(0,s.hZ)(ie,-1,-1),(0,s.T9)(t,(0,s.hs)(t,super.getVec(e,t),1/32767),ie)}setVec(e,t){(0,s.qE)(ie,t,i.IA,i.Un),(0,s.hs)(ie,ie,32767),(0,s.LI)(ie,ie),super.setVec(e,ie)}get(e,t){return Math.max(super.get(e,t)/32767,-1)}set(e,t,r){super.set(e,t,Math.round(32767*(0,n.qE)(r,-1,1)))}setValues(e,t,r){(0,s.hZ)(ie,t,r),this.setVec(e,ie)}slice(e,t){return this.sliceBuffer(se,e,t)}}const ie=(0,i.vt)(),oe=(0,a.vt)()},50498(e,t,r){var n=r(66552),s=r(5443),i=r(91075),o=r(48526),a=r(86738),u=r(39829),l=r(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:i.A,key:"type",typeMap:{extent:s.A,multipoint:o.A,point:a.A,polyline:l.A,polygon:u.A}},d=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,h,"gy",0,c,"iI",0,d,"yR",0,f])},49013(e,t,r){r.r(t),r.d(t,{default:()=>mt});var n=r(32198),s=r(4576),i=r(69540),o=r(49186),a=r(36563),u=r(44208),l=r(53966),c=r(25728),h=r(17676),f=r(36708),d=r(91429),p=r(87024),y=r(4146),m=r(52136),g=r(18768),E=r(69208),_=r(34287),b=r(8303),T=r(25036),v=r(58947),R=r(10873),S=r(10292),M=r(58083),A=r(9093),I=r(35522),x=r(51850),B=r(34727),w=r(49208),N=r(79258);function C(e,t,r,n){const s=n+t;if(s<n/2||r>s)return Number.MAX_VALUE;const i=Math.abs(L*e)+Math.asin(r/s);return i>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(i)}const O=(0,x.vt)(),L=(0,B.kU)(1);var P=r(27993),F=(r(73941),r(16930)),D=r(98764),q=r(4341),U=r(19419),V=r(11964),k=r(27921),Q=r(71351),G=r(44280),j=r(32114);const Y=()=>l.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function Z(e=ce){return{plane:(0,k.vt)(e.plane),origin:(0,x.o8)(e.origin),basis1:(0,x.o8)(e.basis1),basis2:(0,x.o8)(e.basis2)}}function W(e,t=Z()){return z(e.origin,e.basis1,e.basis2,t)}function z(e,t,r,n=Z()){return(0,I.C)(n.origin,e),(0,I.C)(n.basis1,t),(0,I.C)(n.basis2,r),$(n),function(e,t){Math.abs((0,I.Om)(e.basis1,e.basis2)/((0,I.Bw)(e.basis1)*(0,I.Bw)(e.basis2)))>1e-6&&Y().warn(t,"Provided basis vectors are not perpendicular"),Math.abs((0,I.Om)(e.basis1,ie(e)))>1e-6&&Y().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,I.Om)(ie(e),e.origin)-e.plane[3])>1e-6&&Y().warn(t,"Plane offset is not consistent with plane origin")}(n,"fromValues()"),n}function $(e){(0,k.mR)(e.basis2,e.basis1,e.origin,e.plane)}function H(e,t,r){e!==r&&W(e,r);const n=(0,I.hs)(j.rq.get(),ie(e),t);return(0,I.WQ)(r.origin,r.origin,n),r.plane[3]-=t,r}function X(e,t=Z()){const r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return(0,I.hZ)(t.origin,e[0]+r,e[1]+n,0),(0,I.hZ)(t.basis1,r,0,0),(0,I.hZ)(t.basis2,0,n,0),(0,k.fA)(0,0,1,0,t.plane),t}function K(e,t,r){return!!(0,k.Ui)(e.plane,t,r)&&oe(e,r)}function J(e,t,r){const n=he.get();le(e,t,n,he.get());let s=Number.POSITIVE_INFINITY;for(const i of ye){const o=ue(e,i,fe.get()),a=j.rq.get();if((0,k.T7)(n,o,a)){const e=(0,I.oW)(j.rq.get(),t.origin,a),n=Math.abs((0,B.XM)((0,I.Om)(t.direction,e)));n<s&&(s=n,(0,I.C)(r,a))}}return s===Number.POSITIVE_INFINITY?ee(e,t,r):r}function ee(e,t,r){if(K(e,t,r))return r;const n=he.get(),s=he.get();le(e,t,n,s);let i=Number.POSITIVE_INFINITY;for(const o of ye){const a=ue(e,o,fe.get()),u=j.rq.get();if((0,k.gv)(n,a,u)){const e=(0,Q.kb)(t,u);if(!(0,k.BX)(s,u))continue;e<i&&(i=e,(0,I.C)(r,u))}}return ne(e,t.origin)<i&&te(e,t.origin,r),r}function te(e,t,r){const n=(0,k._I)(e.plane,t,j.rq.get()),s=(0,V.H6)(ae(e,e.basis1),n,-1,1,j.rq.get()),i=(0,V.H6)(ae(e,e.basis2),n,-1,1,j.rq.get());return(0,I.Re)(r,(0,I.WQ)(j.rq.get(),s,i),e.origin),r}function re(e,t,r){const{origin:n,basis1:s,basis2:i}=e,o=(0,I.Re)(j.rq.get(),t,n),a=(0,G.gr)(s,o),u=(0,G.gr)(i,o),l=(0,G.gr)(ie(e),o);return(0,I.hZ)(r,a,u,l)}function ne(e,t){const r=re(e,t,j.rq.get()),{basis1:n,basis2:s}=e,i=(0,I.Bw)(n),o=(0,I.Bw)(s),a=Math.max(Math.abs(r[0])-i,0),u=Math.max(Math.abs(r[1])-o,0),l=r[2];return a*a+u*u+l*l}function se(e,t){const r=-e.plane[3];return(0,G.gr)(ie(e),t)-r}function ie(e){return(0,k.Qj)(e.plane)}function oe(e,t){const r=(0,I.Re)(j.rq.get(),t,e.origin),n=(0,I.m3)(e.basis1),s=(0,I.m3)(e.basis2),i=(0,I.Om)(e.basis1,r),o=(0,I.Om)(e.basis2,r);return-i-n<0&&i-n<0&&-o-s<0&&o-s<0}function ae(e,t){const r=fe.get();return(0,I.C)(r.origin,e.origin),(0,I.C)(r.vector,t),r}function ue(e,t,r){const{basis1:n,basis2:s,origin:i}=e,o=(0,I.hs)(j.rq.get(),n,t.origin[0]),a=(0,I.hs)(j.rq.get(),s,t.origin[1]);(0,I.WQ)(r.origin,o,a),(0,I.WQ)(r.origin,r.origin,i);const u=(0,I.hs)(j.rq.get(),n,t.direction[0]),l=(0,I.hs)(j.rq.get(),s,t.direction[1]);return(0,I.hs)(r.vector,(0,I.WQ)(u,u,l),2),r}function le(e,t,r,n){const s=ie(e);(0,k.mR)(s,t.direction,t.origin,r),(0,k.mR)((0,k.Qj)(r),s,t.origin,n)}const ce={plane:(0,k.vt)(),origin:(0,x.fA)(0,0,0),basis1:(0,x.fA)(1,0,0),basis2:(0,x.fA)(0,1,0)},he=new q.I(k.vt),fe=new q.I(V.vt),de=(0,x.vt)(),pe=new q.I(()=>Z()),ye=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],me=(0,A.vt)(),ge=(0,A.vt)();Object.freeze(Object.defineProperty({__proto__:null,altitudeAt:se,axisAt:function(e,t,r,n){return function(e,t,r){switch(t){case 0:(0,I.C)(r,e.basis1),(0,I.S8)(r,r);break;case 1:(0,I.C)(r,e.basis2),(0,I.S8)(r,r);break;case 2:(0,I.C)(r,ie(e))}return r}(e,r,n)},cameraFrustumCoverage:function(e,t){return(t-e)/t},closestPoint:ee,closestPointOnSilhouette:J,copy:W,copyWithoutVerify:function(e,t){(0,I.C)(t.origin,e.origin),(0,I.C)(t.basis1,e.basis1),(0,I.C)(t.basis2,e.basis2),(0,k.C)(t.plane,e.plane)},create:Z,distance:function(e,t){return Math.sqrt(ne(e,t))},distance2:ne,distanceToSilhouette:function(e,t){let r=Number.NEGATIVE_INFINITY;for(const n of ye){const s=ue(e,n,fe.get()),i=(0,V.kb)(s,t);i>r&&(r=i)}return Math.sqrt(r)},elevate:H,equals:function(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&(0,I.t2)(e.basis1,t.basis1)&&(0,I.t2)(e.basis2,t.basis2)&&(0,I.t2)(e.origin,t.origin)},extrusionContainsPoint:function(e,t){return(0,k.mN)(e.plane,t)>0&&oe(e,t)},fromAABoundingRect:X,fromValues:z,getExtent:function(e,t){const r=e.basis1[0],n=e.basis2[1],[s,i]=e.origin;return(0,U.fA)(s-r,i-n,s+r,i+n,t)},intersectRay:K,intersectRayClosestSilhouette:function(e,t,r){if(K(e,t,r))return r;const n=J(e,t,j.rq.get());return(0,I.WQ)(r,t.origin,(0,I.hs)(j.rq.get(),t.direction,(0,I.Io)(t.origin,n)/(0,I.Bw)(t.direction))),r},normal:ie,projectPoint:te,projectPointLocal:re,rotate:function(e,t,r,n){return e!==n&&W(e,n),(0,M.$0)(ge,t,r),(0,I.Z0)(n.basis1,e.basis1,ge),(0,I.Z0)(n.basis2,e.basis2,ge),$(n),n},setAltitudeAt:function(e,t,r,n){const s=se(e,t),i=(0,I.hs)(de,ie(e),r-s);return(0,I.WQ)(n,t,i),n},setExtent:function(e,t,r){return X(t,r),H(r,se(e,e.origin),r),r},transform:function(e,t,r){return e!==r&&W(e,r),(0,M.B8)(me,t),(0,M.mg)(me,me),(0,I.Z0)(r.basis1,e.basis1,me),(0,I.Z0)(r.basis2,e.basis2,me),(0,I.Z0)((0,k.Qj)(r.plane),(0,k.Qj)(e.plane),me),(0,I.Z0)(r.origin,e.origin,t),(0,k.mP)(r.plane,r.plane,r.origin),r},up:ce,updateUnboundedPlane:$,wrap:function(e,t,r){const n=pe.get();return n.origin=e,n.basis1=t,n.basis2=r,n.plane=(0,k.LV)(0,0,0,0),$(n),n}},Symbol.toStringTag,{value:"Module"}));var Ee=r(94008);(0,x.vt)(),(0,x.vt)();var _e=r(89707);class be extends _e.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new Ee.iy(0,0,0,-1),this._serviceMbsInRenderSR=new Ee.iy(0,0,0,-1),this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),this._serviceMbsInRenderSR}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class Te extends be{constructor(e,t,r,n,s,i,o,a,u,l,c){super(e,r),this.index=t,this.childCount=n,this.level=s,this.resources=i,this.version=o,this.lodMetric=a,this.maxError=u,this.numFeatures=l,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new ve,this.serviceObbInIndexSR=c}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class ve{constructor(){this._data=[0,0,0,ve.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=ve.invalidRadius}get valid(){return this._data[3]!==ve.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;const n=this.getAxis(Re),{center:s,radius:i}=e.boundingSphere,o=i+r;return 1===t?this.radius>Se||function(e,t,r,n){const s=(0,I.Bw)(r);if(s<=n)return!0;const i=(0,I.Om)(e,r);if(i<=0)return-i<=n;const o=(0,B.qE)(i/s,-1,1),a=Math.sqrt(1-o*o),u=(0,B.qE)(n/s,0,1);return a*Math.sqrt(1-u*u)-u*o<=t}(n,this.radius,s,o):function(e,t,r,n){const s=r[0]-e[0],i=r[1]-e[1],o=t+n;return s*s+i*i<=o*o}(n,this.radius,s,o)&&function(e,t,r,n,s){for(const i of s){const s=i[0],o=i[1],a=i[2],u=a>0?r:n;if(s*e[0]+o*e[1]+a*u+i[3]-Math.hypot(s,o)*t>0)return!1}return!0}(n,this.radius,s[2]-o,s[2]+o,e.planes)}}const Re=(0,x.vt)(),Se=.9;var Me=r(25992),Ae=r(66480),Ie=r(57005),xe=r(4431),Be=r(62747),we=r(58682),Ne=r(92359);class Ce{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Ae.Rm)(e),this._vertexSpatialReference=(0,Ae.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,D.lO)(t):t.isGeographic?F.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,w.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,w.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(Ne.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){const e={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(e,this.frameTask,!1);try{const e=this._descriptor;if("point"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");const t=await e.project(this._indexSpatialReference,this._signal);(0,h.Te)(this._signal),null==t&&this._throwSpatialReferenceMismatchError();const r=t.coordinates[0],n=function(e,t,r,n,s){const i=(0,x.fA)(e,t,r),o=(0,x.fA)(e,t,r-1e3),a=(0,x.vt)(),u=(0,x.vt)();return(0,P.F)(i,n,a,s)&&(0,P.F)(o,n,u,s)?(0,Q.Cr)(a,u):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return null==n&&this._throwSpatialReferenceMismatchError(),this._queryRay=n,await this.visitRoot(),(0,h.Te)(this._signal),r.z=this._highest===-1/0?Pe:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){const t=this._queryRay,r=new Ie.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;const t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Ie.ab.fromJSON(e.obb));const r=new Ee.iy;return!function(e,t,r,n){if(null==e||null==t||null==n)return!1;const s=(0,w.Tp)(t,n);if(null==s?.projector)return!1;if(s.projector===w.pO)return r.copyFrom(e),!0;const{source:i,dest:o,projector:a}=s;if(3===o.spatialReferenceId){const t=w.w5[i.spatialReferenceId][2];return null!=t&&(t(e.center,0,O,0),(0,w.s7)(O,0,r.center,0),r.radius=C(O[1],e.center[2],e.radius,N.$O.radius),!0)}if(2!==i.spatialReferenceId&&5!==i.spatialReferenceId||11!==o.spatialReferenceId){a(e.center,0,r.center,0);const t=i.metersPerUnit??1,n=o.metersPerUnit??1;r.radius=e.radius*t/n}else{const t=w.w5[i.spatialReferenceId][1],n=w.w5[1][11];let s=e.radius;null!=t&&null!=n&&(s=C(e.center[1],e.center[2],e.radius,N.$O.radius)),a(e.center,0,r.center,0),r.radius=s}return!0}(new Ee.iy(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){const t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,h.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;const r=await this.transformNode(e,t);(0,h.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){const r=e.serviceMbsInIndexSR;if(null==r)return null;const n=(0,Me.C)(r,0,Fe,this._indexSpatialReference,this._intersectionSpaceSpatialReference),s={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[De],globalTrafo:n,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:Fe,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},i=await this._layer.processElevationQueryGeometry(s,this._signal);return(0,h.Te)(this._signal),i}intersectTransformedGeometry(e,t,r){const n=e.globalTrafo;if(null==(0,M.B8)(qe,n))return t;const s=this._queryRay,i=(0,I.Z0)(Ue,s.origin,qe),o=(0,I.WQ)(Ve,s.origin,s.direction),a=(0,I.Z0)(ke,o,qe),u=(0,I.jb)(Qe,a,i),{data:l,indices:c}=e.transformedGeometry.positionData,h=c.length/3;let f=t;return(0,we.h7)(i,u,0,h,c,l,3,!1,e=>{const t=(0,I.hs)(Ge,u,e);(0,I.WQ)(t,t,i);const s=(0,I.Z0)(je,t,n),o=Ye;if((0,P.F)(s,this._intersectionSpaceSpatialReference,o,this._layer.spatialReference)){const e=o[2]+r;f=Math.max(f,e)}}),f}async requestJSON(e){const t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,h.Te)(this._signal),t}}class Oe extends Ce{constructor(e,t,r,n){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=n.pageSize,this._rootIndex=n.rootIndex,this._urlPrefix=n.urlPrefix;const s=this._pageId(this._rootIndex),i=this._rootIndex-s*this._pageSize,o=Ie.ab.fromJSON(n.rootPage.nodes[i].obb);this._rootRayOriginZ=o.centerZ+o.radius+1,this._loadedPages.set(s,n.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){const t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);const r=this._pendingPages.get(e);if(null!=r)return r;const n=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,n),n.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),n}async _visitNode(e){const t=this._pageId(e),r=await this.getPage(t);(0,h.Te)(this._signal);const n=r.nodes[e-t*this._pageSize],s=Ie.ab.fromJSON(n.obb);if(!this._intersectsQueryObb(s))return;const{children:i}=n;if(null!=i&&i.length>0)return await Promise.all(i.map(e=>this._visitNode(e))),void(0,h.Te)(this._signal);const o=this._createNode(e,n,s);null!=o&&(await this._processLeafNode(o),(0,h.Te)(this._signal))}_createNode(e,t,r){const{mesh:n}=t;if(null==n?.geometry)return null;const s=new Ee.iy(r.getCenter((0,x.vt)()),r.radius),{geometry:i,material:o}=n;return new Te(`${e}`,e,s,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${i.resource}`,geometryDefinition:i.definition,materialDefinition:o?.definition??-1},"",0,0,i.featureCount??null,r)}}class Le extends Ce{constructor(e,t,r,n){super(e,t,r),this._rootNode=n.rootNode,this._urlPrefix=n.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){const t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,h.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,h.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Ie.ab.fromJSON(e.obb)))return;const{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,h.Te)(this._signal);const n=this._createNode(e);null!=n&&(await this._processLeafNode(n),(0,h.Te)(this._signal))}_createNode(e){const{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;const n=null==e.obb?null:Ie.ab.fromJSON(e.obb),s=new Ee.iy(e.mbs);return new Te(r,0,s,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,n)}}const Pe=Number.MAX_VALUE,Fe="none",De=(0,xe.U)((0,Be.hH)(new Be.W7(!1,!1,0))),qe=(0,A.vt)(),Ue=(0,x.vt)(),Ve=(0,x.vt)(),ke=(0,x.vt)(),Qe=(0,x.vt)(),Ge=(0,x.vt)(),je=(0,x.vt)(),Ye=(0,x.vt)();var Ze=r(50805),We=r(58325),ze=r(24212),$e=r(80215),He=r(97159),Xe=r(16215),Ke=r(98697),Je=r(56507),et=r(97768),tt=r(50075);class rt{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,tt._i)(e)}request(e,t,r){const n=new AbortController,s=(0,h.NY)(r,()=>n.abort()),i={...tt.Fz,signal:n.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},o=(0,Je.A)(e,i),a={abortController:n,abortHandle:s};return this._activeRequests.add(a),o.then(({data:e})=>e).finally(()=>{a.abortController=null,a.abortHandle=(0,et.xt)(a.abortHandle),this._activeRequests.delete(a)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,et.DC)(e.abortController),e.abortHandle=(0,et.xt)(e.abortHandle)}),this._activeRequests.clear()}}var nt=r(60999),st=r(4718),it=r(84952),ot=r(59418),at=r(85334);r(91829),r(46859);var ut=r(74810),lt=r(49788);function ct(e){return e.sort((e,t)=>e.encoding-t.encoding)}const ht={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},ft={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};class dt{constructor(e,t,r,n,s,i){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=n,this._requiredAttributes=s,this._options=i,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){const t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){const n=new Map,s=(e,t)=>{if(null==e)return-1;const r=n.get(e.id);if(r)return r.usage|=t,r.id;const s=n.size;return n.set(e.id,{id:s,usage:t}),s},i=t.pbrMetallicRoughness,o=i?.baseColorFactor?(0,at.sn)(i.baseColorFactor):null,a=t.emissiveFactor,u=r&&0===i?.metallicFactor||(0,ut.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:i?.metallicRoughnessTexture,metallicFactor:i?.metallicFactor,roughnessFactor:i?.roughnessFactor}),l=u?ut.Bt[0]:i?.metallicFactor??ut.mb[0],c=u?ut.Bt[1]:i?.roughnessFactor??ut.mb[1],h="mask"===t.alphaMode?33:1,f={baseColorFactor:o?[o[0],o[1],o[2],o[3]]:[1,1,1,1],baseColorTextureId:s(i?.baseColorTexture,h),metallicRoughnessTextureId:s(i?.metallicRoughnessTexture,2),metallicFactor:l,roughnessFactor:c},d={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:"front"===t.cullFace?1:0,normalTextureId:s(t.normalTexture,4),emissiveTextureId:s(t.emissiveTexture,16),occlusionTextureId:s(t.occlusionTexture,8),emissiveFactor:a?[a[0],a[1],a[2]]:[0,0,0],metallicRoughness:f,wrapTextures:!1,hasParametersFromSource:u},p=[];return n.forEach(({usage:t},r)=>{const n=null!=e&&e[r]&&e[r].formats,s=n?ct(n.map(({name:e,format:t})=>({name:e,encoding:ht[t]}))):[];p.push({id:r,usage:t,encodings:s})}),{material:d,textures:p}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){const n=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(n,"array-buffer",r).then(e=>(0,ot.m0)(t,e))}async loadAttributes(e,t,r){const n=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),s={};for(let r=0;r<t.length;++r){const i=n[r],o=t[r];if("fulfilled"===i.status){const e=i.value;s[o.name]=e}else{const t=i.reason;(0,h.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${o.name}' on node '${e.id}'`,t)}}return s}async loadNodeData(e,t){const r=null!=this._requiredAttributes&&e.resources.attributes?(0,nt.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:n,bufferIndex:s}=function(e,t){const r={bufferDefinition:null,bufferIndex:0},n=t.resources.geometryDefinition;if(null==e||null==n||n<0)return r;const s=n>=0?e[n].geometryBuffers:null;if(null==s)return r;for(let e=0;e<s.length;e++){const t=s[e];if(null==t.compressedAttributes)r.bufferIndex=e,r.bufferDefinition=s[e];else if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}return r}(this._geometryDefinitions,e),i=!!e.resources.geometry,o=i?(0,nt.Ke)(this._loadGeometry(e.resources.geometry,s,t)):null,a=e.resources.hasSharedResource?await this._loadShared(e,t):null,l=e.resources.materialDefinition,c=this._materialAndTextures&&null!=l&&l>=0?this._materialAndTextures[l]:null!=a?function(e){const t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,n=t?e.materialDefinitions?.[t]:null,s=r?e.textureDefinitions?.[r]:null,i={alphaMode:"opaque",alphaCutoff:lt.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0};if(null!=n){const e=n.params;e.diffuse&&((0,at.KV)(e.diffuse),i.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(i.doubleSided=e.doubleSided,i.cullFace=e.doubleSided?0:2),"none"!==e.cullFace&&"front"!==e.cullFace&&"back"!==e.cullFace||(i.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(i.metallicRoughness.baseColorFactor[3]=(0,B.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||i.metallicRoughness.baseColorFactor[3]<1)&&(i.alphaMode="blend")}const o=[];if(null!=s){const e=0;!s.wrap||"repeat"!==s.wrap[0]&&"repeat"!==s.wrap[1]||(i.wrapTextures=!0);let t=1;"rgba"===s.channels&&(i.alphaMode="blend",t|=32);const r=s.images.length-1,n=s.images[r],a=e=>e?.split("/").pop(),u=Array.isArray(s.encoding)?ct(s.encoding.map((e,t)=>({name:a(n.href[t]),encoding:ft[e]||0}))):[{name:a(n.href),encoding:ft[s.encoding]||0}];o.push({id:e,usage:t,encodings:u}),i.metallicRoughness.baseColorTextureId=e}return{material:i,textures:o}}(a):null,h=c?.material,f=c?.textures??[],d=`${e.id}`,p=!i&&this._options.loadFeatureData,y=p?await this._loadFeatureData(d,t):null,m=p?function(e){if(!e)return null;for(const t of e.featureData){const e=t.geometries;if(null!=e)for(const r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(y):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:h}}],featureDataPosition:[0,0,0]},g=null==m?function(e){if(!e)return null;const t=new Array;for(const r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(y):null,E=f.length>0?(0,nt.Ke)(this.loadTextures(e,f,t)):null;let _=null,b=null;if(o){_=(0,nt.QA)(await o);const e=function(e,t){if(!e||!t?.materialDefinitions)return e;const r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,st.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,a);b=(0,ot.qs)(n,e)}const T=E?(0,nt.QA)(await E):null,v=r?(0,nt.QA)(await r):{},R=v?{attributeData:v,loadedAttributes:this._requiredAttributes}:null;if(null!=m)return{geometryData:m,attributeDataInfo:R,geometryBuffer:_,geometryDescriptor:b,requiredTextures:f,textureData:T};if(null!=g)return{pointData:g,attributeDataInfo:R,geometryBuffer:_,geometryDescriptor:b,requiredTextures:f,textureData:T};throw new Error}static _addAbsoluteHrefTexture(e,t){const r=e.textureDefinitions;if(null!=r)for(const e of Object.keys(r))for(const n of r[e].images)Array.isArray(n.href)?n.hrefConcat=n.href.map(e=>(0,it.s2)(e,t)):n.hrefConcat=(0,it.s2)(n.href,t)}static _fixTextureEncodings(e){const t=e.textureDefinitions;if(null!=t)for(const e in t){const r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){const t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{const e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};const r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,n=await this._requester.request(r,"json",t);return dt._fixTextureEncodings(n),dt._addAbsoluteHrefTexture(n,r),n}_loadTexture(e,t,r,n,s){return 4===n||1===n||2===n?this._requester.request(e,"array-buffer",s).then(e=>({id:t,usage:r,data:e,encoding:n})):this._requester.request(e,"image",s).then(e=>({id:t,usage:r,data:e,encoding:n}))}loadTextures(e,t,r){const n=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&n))return null;const s=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==s)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();const i=e.resources.texture||e.id,o=`${this._layerUrl}/nodes/${i}/textures/${s.name}`;return this._loadTexture(o,t.id,t.usage,s.encoding,r)}))}_loadFeatureData(e,t){const r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){const n=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(n,"array-buffer",r)}}var pt=r(36005);let yt=class extends((0,v.w6)((0,g.b)((0,_.q)((0,b.A)((0,T.j)((0,c.M)((0,E.d)((0,m.p)((0,i.OU)(y.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();const e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,null!=e&&e.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,f.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},f.OH),(0,f.wB)(()=>this.modifications,()=>this._modificationsGeneration++,f.OH),(0,f.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,He.f)(e,r),context:r}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new Ke.Cm((e,t)=>Ne.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){const i={stack:[],error:void 0,hasError:!1};try{const u=r?.noDataValue??Number.MAX_VALUE,l=this._elevationQueryWorker,c=new AbortController;e.addHandles((0,a.rE)(c),c),(0,n.mS)(i,(0,a.Bf)((0,a.hA)(()=>e.removeHandles(c))),!1);const f=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,c.signal].filter(s.Ru));await this.load({signal:f}),(0,h.Te)(f);const d=S.q.fromGeometry(t),p={signal:f,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){const e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=l.setLegacySchema(this._elevationQueryWorkerContext,e))}const y=await async function(e,t,r){const n=await e.indexInfo;if((0,h.Te)(r.signal),null==n)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===n.type?new Oe(e,t,r,n).promise:new Le(e,t,r,n).promise}(this,d,p);(0,h.Te)(f);const m=y.coordinates[0].z===Pe;m&&(y.coordinates[0].z=u);const g=await y.project(t.spatialReference,f);(0,h.Te)(f);const E=g??d.clone(),_={geometry:E.export(),noDataValue:u};return r?.returnSampleInfo&&(_.sampleInfo=E.coordinates.map(()=>({demResolution:m?-1:1}))),_}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}_abortElevationQueriesAfterDependencyChange(){const e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){return await this._elevationQueryWorkerSetup,(0,h.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,h.QP)(e)}if((0,h.Te)(t),await this._fetchService(t),(0,h.Te)(t),null!=this._modificationsSource){const r=await We.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,h.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,h.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,Xe.S)(this.parent)||(0,$e.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new rt(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new dt(this,this.elevationQueryDataRequester,l.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){const t="Integrated mesh layers";(0,ze.XF)(l.A.getLogger(this),(0,ze.B)(t,"absolute-height",e)),(0,ze.XF)(l.A.getLogger(this),(0,ze.tW)(t,e))}};(0,n.Cg)([(0,d.MZ)({type:String,readOnly:!0})],yt.prototype,"geometryType",void 0),(0,n.Cg)([(0,d.MZ)({type:["show","hide"]})],yt.prototype,"listMode",void 0),(0,n.Cg)([(0,d.MZ)({type:["IntegratedMeshLayer"]})],yt.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,d.MZ)({json:{read:!1},readOnly:!0})],yt.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)({type:Ze.W4,readOnly:!0,clonable:!1})],yt.prototype,"nodePages",void 0),(0,n.Cg)([(0,d.MZ)({type:[Ze.uV],readOnly:!0,clonable:!1})],yt.prototype,"materialDefinitions",void 0),(0,n.Cg)([(0,d.MZ)({type:[Ze.Ot],readOnly:!0,clonable:!1})],yt.prototype,"textureSetDefinitions",void 0),(0,n.Cg)([(0,d.MZ)({type:[Ze.L0],readOnly:!0,clonable:!1})],yt.prototype,"geometryDefinitions",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],yt.prototype,"serviceUpdateTimeStamp",void 0),(0,n.Cg)([(0,d.MZ)({type:We.A,clonable:e=>e?.clone()??e}),(0,p.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],yt.prototype,"modifications",void 0),(0,n.Cg)([(0,d.MZ)({clonable:e=>e?{...e}:null})],yt.prototype,"_modificationsSource",void 0),(0,n.Cg)([(0,pt.w)(["web-scene","portal-item"],"modifications")],yt.prototype,"readModifications",null),(0,n.Cg)([(0,d.MZ)(R.Yj)],yt.prototype,"elevationInfo",null),(0,n.Cg)([(0,d.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],yt.prototype,"path",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],yt.prototype,"_elevationQueryWorker",null),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"_modificationsGeneration",void 0),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"isUsedAsGroundLayer",null),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"replacesTerrain",null),(0,n.Cg)([(0,d.MZ)({clonable:!1})],yt.prototype,"elevationQueryDataRequester",null),(0,n.Cg)([(0,d.MZ)({clonable:!1})],yt.prototype,"elevationQueryNodeLoader",null),yt=(0,n.Cg)([(0,d.$K)("esri.layers.IntegratedMeshLayer")],yt);const mt=yt},85707(e,t,r){var n=r(32198),s=r(91429),i=r(54239);r.d(t,["a",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,n.Cg)([(0,s.MZ)({readOnly:!0,type:i.A})],r.prototype,"heightModelInfo",void 0),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},10292(e,t,r){r.d(t,{q:()=>a});var n=r(48526),s=r(86738),i=r(82799),o=r(99917);class a{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new a(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,o.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const r=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),s=(0,o.project)(r,e);if(!s)return null;const i=this.coordinates.map((e,t)=>{const r=e.clone(),n=s.points[t];return r.x=n[0],r.y=n[1],r}),a=this.clone(i);return a.spatialReference=e,a}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,o.project)(t,e);if(!r)return null;const s=this.coordinates.map((e,t)=>{const n=e.clone(),s=r.points[t];return n.x=s[0],n.y=s[1],n}),i=this.clone(s);return i.spatialReference=e,i}static fromGeometry(e){const t=new a(e);if(e instanceof a)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{const n=e.clone(t);return n.spatialReference=r,n},t;switch(e.type){case"point":{const r=e,{hasZ:n,hasM:i}=r;return t.coordinates=n&&i?[new u(r.x,r.y,r.z,r.m)]:n?[new u(r.x,r.y,r.z)]:i?[new u(r.x,r.y,null,r.m)]:[new u(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new s.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new s.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{const r=e,{hasZ:s,hasM:i}=r;return t.coordinates=s&&i?r.points.map(e=>new u(e[0],e[1],e[2],e[3])):s?r.points.map(e=>new u(e[0],e[1],e[2])):i?r.points.map(e=>new u(e[0],e[1],null,e[2])):r.points.map(e=>new u(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{const r=e,n=[],s=[],{hasZ:o,hasM:a}=e;let l=0;for(const e of r.paths)if(s.push([l,l+e.length]),l+=e.length,o&&a)for(const t of e)n.push(new u(t[0],t[1],t[2],t[3]));else if(o)for(const t of e)n.push(new u(t[0],t[1],t[2]));else if(a)for(const t of e)n.push(new u(t[0],t[1],null,t[2]));else for(const t of e)n.push(new u(t[0],t[1]));return t.coordinates=n,t._exporter=(t,r)=>{const n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=s.map(e=>n.slice(e[0],e[1]));return new i.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class u{constructor(e,t,r=null,n=null,s=null,i=null){this.x=e,this.y=t,this.z=r,this.m=n,this.tile=s,this.elevationTile=i}clone(){return new u(this.x,this.y,this.z,this.m)}}},73179(e,t,r){r.d(t,{b:()=>u,h:()=>l});var n=r(4718),s=r(53966),i=r(84952),o=r(60694),a=r(10873);function u(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},i=(0,n.o8)(a.OZ),u=i.json?.write;return"object"==typeof u&&u&&(u.writer=function(e,t,n,s){(0,o.LS)(this,e,r,t,s)}),{...i,set:function(e){if(null==e)return void this._set("url",e);const r=(0,o.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function l(e,t){const{separator:r}=t??{},n=(0,i.An)(e.url);return null!=n&&(null!=e.dynamicDataSource?n.path=(0,i.fj)(n.path,"dynamicLayer"):null!=e.layerId&&(n.path=(0,i.fj)(n.path,r??"",e.layerId.toString()))),n}},89707(e,t,r){r.d(t,{H:()=>n});class n{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){const t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),n=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,n}expandElevationRangeValues(e,t){const r=Math.min(this.minElevation,e),n=Math.max(this.maxElevation,t),s=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,s}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>i,hH:()=>o});var n=r(1843),s=r(65786);s.Y;class i extends s.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function o(e){const t=(0,n.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>f,W6:()=>l}),r(4576),r(71511),r(44208),r(53966);var n=r(17676),s=(r(36708),r(44794),r(78659)),i=r(32198),o=r(69622),a=r(91429);let u=class extends o.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,i.Cg)([(0,a.MZ)()],u.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,i.Cg)([(0,a.MZ)()],u.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),u=(0,i.Cg)([(0,a.$K)("esri.views.support.debugFlags")],u),new u,r(49186),Symbol("Yield");const l={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[l.RESOURCE_CONTROLLER_IMMEDIATE,0],[l.RESOURCE_CONTROLLER,4],[l.SLIDE,0],[l.STREAM_DATA_LOADER,0],[l.ELEVATION_QUERY,0],[l.TERRAIN_SURFACE,1],[l.SURFACE_GEOMETRY_UPDATES,1],[l.LOD_RENDERER,2],[l.GRAPHICS_CORE,2],[l.I3S,2],[l.LYR3D,2],[l.TILES3D,3],[l.POINT_CLOUD_LAYER,2],[l.FEATURE_TILE_FETCHER,2],[l.STREAM_CONTROLLER,2],[l.SCREEN_POLYGON_INTERSECTION,0],[l.CLOUDS_GENERATOR,2],[l.OCCLUSION_QUERY,2],[l.OVERLAY,4],[l.OVERLAY_RENDERER,4],[l.STAGE,4],[l.GRAPHICS_DECONFLICTOR,4],[l.FILTER_VISIBILITY,4],[l.SCALE_VISIBILITY,4],[l.FRUSTUM_VISIBILITY,4],[l.POINT_OF_INTEREST_FREQUENT,6],[l.POINT_OF_INTEREST_INFREQUENT,30],[l.LABELER,8],[l.FEATURE_QUERY_ENGINE,8],[l.FEATURE_TILE_TREE,16],[l.FEATURE_TILE_TREE_ACTIVE,0],[l.ELEVATION_ALIGNMENT,12],[l.ELEVATION_ALIGNMENT_SCENE,14],[l.TEXT_TEXTURE_ATLAS,12],[l.TEXTURE_UNLOAD,12],[l.LINE_OF_SIGHT_TOOL,16],[l.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[l.VOLUME_MEASUREMENT,4],[l.SNAPPING,0],[l.SHADOW_ACCUMULATOR,30],[l.FLOW_GENERATOR,12],[l.GAUSSIAN_SPLAT_SORTING,2],[l.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[l.MAPVIEW_FETCH_QUEUE,0],[l.MAPVIEW_LAYERVIEW_UPDATE,2],[l.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,s.l5)(6.5),(0,s.l5)(1),(0,s.l5)(30),(0,s.l5)(1e3/30),(0,s.l5)(100),Symbol.dispose;const c=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};c.enabled=!1;class h{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,n.G4)(t)){const e=(0,n.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,n.z7)(e(c))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,n.G4)(t)){const e=(0,n.NK)();if(r)return r(e);throw e}const s=e(c);for(;;){const e=s.next(c),i=(0,n.$X)(e)?await e:e;if((0,n.G4)(t)){const e=(0,n.NK)();if(r){const t=r(e),i=s.return(null);return(0,n.$X)(i)&&await(0,n.QZ)(i),t}const t=s.throw(e);throw(0,n.$X)(t)&&await(0,n.QZ)(t),e}if(i.done)return i.value}}}const f=new h}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,6451],{80200(t,e,s){s.d(e,{d:()=>u});const n={Base64:0,Hex:1,String:2,Raw:3};function i(t,e){const s=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(s>>16)<<16|65535&s}function o(t,e,s,n,o,r){return i(function(t,e){return t<<e|t>>>32-e}(i(i(e,t),i(n,r)),o),s)}function r(t,e,s,n,i,r,c){return o(e&s|~e&n,t,e,i,r,c)}function c(t,e,s,n,i,r,c){return o(e&n|s&~n,t,e,i,r,c)}function a(t,e,s,n,i,r,c){return o(e^s^n,t,e,i,r,c)}function l(t,e,s,n,i,r,c){return o(s^(e|~n),t,e,i,r,c)}function h(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;let s=1732584193,n=-271733879,o=-1732584194,h=271733878;for(let e=0;e<t.length;e+=16){const u=s,p=n,f=o,m=h;s=r(s,n,o,h,t[e],7,-680876936),h=r(h,s,n,o,t[e+1],12,-389564586),o=r(o,h,s,n,t[e+2],17,606105819),n=r(n,o,h,s,t[e+3],22,-1044525330),s=r(s,n,o,h,t[e+4],7,-176418897),h=r(h,s,n,o,t[e+5],12,1200080426),o=r(o,h,s,n,t[e+6],17,-1473231341),n=r(n,o,h,s,t[e+7],22,-45705983),s=r(s,n,o,h,t[e+8],7,1770035416),h=r(h,s,n,o,t[e+9],12,-1958414417),o=r(o,h,s,n,t[e+10],17,-42063),n=r(n,o,h,s,t[e+11],22,-1990404162),s=r(s,n,o,h,t[e+12],7,1804603682),h=r(h,s,n,o,t[e+13],12,-40341101),o=r(o,h,s,n,t[e+14],17,-1502002290),n=r(n,o,h,s,t[e+15],22,1236535329),s=c(s,n,o,h,t[e+1],5,-165796510),h=c(h,s,n,o,t[e+6],9,-1069501632),o=c(o,h,s,n,t[e+11],14,643717713),n=c(n,o,h,s,t[e],20,-373897302),s=c(s,n,o,h,t[e+5],5,-701558691),h=c(h,s,n,o,t[e+10],9,38016083),o=c(o,h,s,n,t[e+15],14,-660478335),n=c(n,o,h,s,t[e+4],20,-405537848),s=c(s,n,o,h,t[e+9],5,568446438),h=c(h,s,n,o,t[e+14],9,-1019803690),o=c(o,h,s,n,t[e+3],14,-187363961),n=c(n,o,h,s,t[e+8],20,1163531501),s=c(s,n,o,h,t[e+13],5,-1444681467),h=c(h,s,n,o,t[e+2],9,-51403784),o=c(o,h,s,n,t[e+7],14,1735328473),n=c(n,o,h,s,t[e+12],20,-1926607734),s=a(s,n,o,h,t[e+5],4,-378558),h=a(h,s,n,o,t[e+8],11,-2022574463),o=a(o,h,s,n,t[e+11],16,1839030562),n=a(n,o,h,s,t[e+14],23,-35309556),s=a(s,n,o,h,t[e+1],4,-1530992060),h=a(h,s,n,o,t[e+4],11,1272893353),o=a(o,h,s,n,t[e+7],16,-155497632),n=a(n,o,h,s,t[e+10],23,-1094730640),s=a(s,n,o,h,t[e+13],4,681279174),h=a(h,s,n,o,t[e],11,-358537222),o=a(o,h,s,n,t[e+3],16,-722521979),n=a(n,o,h,s,t[e+6],23,76029189),s=a(s,n,o,h,t[e+9],4,-640364487),h=a(h,s,n,o,t[e+12],11,-421815835),o=a(o,h,s,n,t[e+15],16,530742520),n=a(n,o,h,s,t[e+2],23,-995338651),s=l(s,n,o,h,t[e],6,-198630844),h=l(h,s,n,o,t[e+7],10,1126891415),o=l(o,h,s,n,t[e+14],15,-1416354905),n=l(n,o,h,s,t[e+5],21,-57434055),s=l(s,n,o,h,t[e+12],6,1700485571),h=l(h,s,n,o,t[e+3],10,-1894986606),o=l(o,h,s,n,t[e+10],15,-1051523),n=l(n,o,h,s,t[e+1],21,-2054922799),s=l(s,n,o,h,t[e+8],6,1873313359),h=l(h,s,n,o,t[e+15],10,-30611744),o=l(o,h,s,n,t[e+6],15,-1560198380),n=l(n,o,h,s,t[e+13],21,1309151649),s=l(s,n,o,h,t[e+4],6,-145523070),h=l(h,s,n,o,t[e+11],10,-1120210379),o=l(o,h,s,n,t[e+2],15,718787259),n=l(n,o,h,s,t[e+9],21,-343485551),s=i(s,u),n=i(n,p),o=i(o,f),h=i(h,m)}return[s,n,o,h]}function u(t,e=n.Hex){const s=e||n.Base64,i=h(function(t){const e=[];for(let s=0,n=8*t.length;s<n;s+=8)e[s>>5]|=(255&t.charCodeAt(s/8))<<s%32;return e}(t),8*t.length);switch(s){case n.Raw:return i;case n.Hex:return function(t){const e="0123456789abcdef",s=[];for(let n=0,i=4*t.length;n<i;n++)s.push(e.charAt(t[n>>2]>>n%4*8+4&15)+e.charAt(t[n>>2]>>n%4*8&15));return s.join("")}(i);case n.String:return function(t){const e=[];for(let s=0,n=32*t.length;s<n;s+=8)e.push(String.fromCharCode(t[s>>5]>>>s%32&255));return e.join("")}(i);case n.Base64:return function(t){const e=[];for(let s=0,n=4*t.length;s<n;s+=3){const n=(t[s>>2]>>s%4*8&255)<<16|(t[s+1>>2]>>(s+1)%4*8&255)<<8|t[s+2>>2]>>(s+2)%4*8&255;for(let i=0;i<4;i++)8*s+6*i>32*t.length?e.push("="):e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-i)&63))}return e.join("")}(i)}}s.d(e,["T",0,n])},87024(t,e,s){s.d(e,{P:()=>f});var n=s(49186),i=s(80200),o=s(76553),r=s(84952),c=s(13069),a=s(96156),l=s(35666),h=s(10107),u=s(85648),p=s(97159);function f(t){const e=t?.origins??[void 0];return(s,n)=>{const i=function(t,e,s){if("resource"===t?.type)return function(t,e,s){const n=(0,a.z4)(e,s);return{type:String,read:(t,e,s)=>{const i=(0,p.r)(t,e,s);return n.type===String?i:"function"==typeof n.type?new n.type({url:i}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(e,i,c,a){if(!a?.resources)return"string"==typeof e?void(i[c]=(0,p.t)(e,a)):void(i[c]=e.write({},a));const h=function(t){return null==t?null:"string"==typeof t?t:t.url}(e),f=(0,p.t)(h,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=n.type!==String&&(!(0,o.H)(this)||a?.origin&&this.originIdOf(s)>(0,l.aB)(a.origin)),_={object:this,propertyName:s,value:e,targetUrl:f,dest:i,targetPropertyName:c,context:a,params:t};a?.portalItem&&f&&!(0,r.oP)(f)?y&&t?.contentAddressed?m(_):y?function(t){const{context:e,targetUrl:s,params:n,value:i,dest:o,targetPropertyName:c}=t;if(!e.portalItem)return;const a=e.portalItem.resourceFromPath(s),l=g(i,s,e),h=(0,u.n)(l),p=(0,r.Zo)(a.path),f=n?.compress??!1;h===p?(e.resources&&d({...t,resource:a,content:l,compress:f,updates:e.resources.toUpdate}),o[c]=s):m(t)}(_):function({context:t,targetUrl:e,dest:s,targetPropertyName:n}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(e),compress:!1}),s[n]=e)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,r.w8)(f)||y)?m(_):i[c]=f}}}}(t,e,s);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:e}=p.b;return{read:t,write:e}}}}(t,s,n);for(const t of e){const e=(0,h.rM)(s,t,n);for(const t in i)e[t]=i[t]}}}function m(t){const{targetUrl:e,params:s,value:o,context:a,dest:l,targetPropertyName:h}=t;if(!a.portalItem)return;const f=(0,p.p)(e),m=g(o,e,a);if(s?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${h}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));const y=s?.contentAddressed&&"json"===m.type?(0,i.d)(m.jsonString):f?.filename??(0,c.lk)(),_=(0,r.fj)(s?.prefix??f?.prefix,y),x=`${_}.${(0,u.n)(m)}`;if(s?.contentAddressed&&a.resources&&"json"===m.type){const t=a.resources.toKeep.find(({resource:t})=>t.path===x)??a.resources.toAdd.find(({resource:t})=>t.path===x);if(t)return void(l[h]=t.resource.itemRelativeUrl)}const v=a.portalItem.resourceFromPath(x);(0,r.w8)(e)&&a.resources&&a.resources.pendingOperations.push((0,r.tk)(e).then(t=>{v.path=`${_}.${(0,u.n)({type:"blob",blob:t})}`,l[h]=v.itemRelativeUrl}).catch(()=>{}));const C=s?.compress??!1;a.resources&&d({...t,resource:v,content:m,compress:C,updates:a.resources.toAdd}),l[h]=v.itemRelativeUrl}function d({object:t,propertyName:e,updates:s,resource:n,content:i,compress:o}){s.push({resource:n,content:i,compress:o,finish:s=>{!function(t,e,s){"string"==typeof t[e]?t[e]=s.url:t[e].url=s.url}(t,e,s)}})}function g(t,e,s){return"string"==typeof t?{type:"url",url:e}:{type:"json",jsonString:JSON.stringify(t.toJSON(s))}}},83027(t,e,s){const n=s(29953).ho;s.d(e,["h",0,n])},35982(t,e,s){s.d(e,{B:()=>h});var n=s(4576),i=s(71511),o=s(36563),r=s(53966),c=s(97768),a=s(17676),l=s(83027);class h{constructor(t,e,s,n,i={}){this._mainMethod=e,this._transferLists=s,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,l.h)(t,{...i,schedule:n}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>r.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const s=new u(t,e);return this._listeners.push(s),this._connectListener(s),(0,o.hA)(()=>{(0,n.TF)(this._listeners,s),s.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,c.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,s){return this.invokeMethod(this._mainMethod,t,e,s)}invokeMethod(t,e,s,n){if(this._thread){const i=this._transferLists[t],o=i?i(e):[];return this._thread.invoke(t,e,{transferList:o,signal:s,jobPriority:n})}return this._promise?this._promise.then(()=>((0,a.Te)(s),this.invokeMethod(t,e,s))):Promise.reject((0,a.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(p):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class u{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function p(){}},89056(t,e,s){s.d(e,{b3:()=>u,jZ:()=>h});var n=s(12195),i=s(19419),o=s(537),r=s(95108),c=s(60408),a=s(80754),l=s(21325);function h(t){return p(t,!0)}function u(t){return p(t,!1)}function p(t,e){if(null==t)return null;const s=t.spatialReference,i=(0,l.Vp)(s),r=(0,n.W)(t)?t.toJSON():t;if(!i)return r;const h=(0,l.K8)(s)?102100:4326,u=a.j7[h].maxX,p=a.j7[h].minX;if((0,c.fT)(r))return m(r,u,p);if((0,c.U9)(r))return r.points=r.points.map(t=>m(t,u,p)),r;if((0,c.ZC)(r))return f(r,i);if((0,c.Bi)(r)||(0,c.Rg)(r)){const t=(0,o.Rg)(v,r),s={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},n=(0,a.kd)(s.xmin,p)*(2*u),i=0===n?r:(0,a.kS)(r,n);return s.xmin+=n,s.xmax+=n,s.xmax>u?_(i,u,e):s.xmin<p?_(i,p,e):i}return r}function f(t,e){if(!e)return t;const s=function(t,e){const s=[],{ymin:n,ymax:i,xmin:o,xmax:r}=t,c=t.xmax-t.xmin,[a,l]=e.valid,{x:h,frameId:u}=d(t.xmin,e),{x:p,frameId:f}=d(t.xmax,e),m=h===p&&c>0;if(c>2*l){const t={xmin:o<r?h:p,ymin:n,xmax:l,ymax:i},e={xmin:a,ymin:n,xmax:o<r?p:h,ymax:i},c={xmin:0,ymin:n,xmax:l,ymax:i},m={xmin:a,ymin:n,xmax:0,ymax:i},d=[],y=[];g(t,c)&&d.push(u),g(t,m)&&y.push(u),g(e,c)&&d.push(f),g(e,m)&&y.push(f);for(let t=u+1;t<f;t++)d.push(t),y.push(t);s.push(new x(t,[u]),new x(e,[f]),new x(c,d),new x(m,y))}else h>p||m?s.push(new x({xmin:h,ymin:n,xmax:l,ymax:i},[u]),new x({xmin:a,ymin:n,xmax:p,ymax:i},[f])):s.push(new x({xmin:h,ymin:n,xmax:p,ymax:i},[u]));return s}(t,e).map(t=>t.extent);return s.length<2?s[0]||t:s.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:s.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function m(t,e,s){if(Array.isArray(t)){const n=t[0];if(n>e){const s=(0,a.kd)(n,e);t[0]=n+s*(-2*e)}else if(n<s){const e=(0,a.kd)(n,s);t[0]=n+e*(-2*s)}}else{const n=t.x;if(n>e){const s=(0,a.kd)(n,e);t.x+=s*(-2*e)}else if(n<s){const e=(0,a.kd)(n,s);t.x+=e*(-2*s)}}return t}function d(t,e){const[s,n]=e.valid,i=2*n;let o,r=0;return t>n?(o=Math.ceil(Math.abs(t-n)/i),t-=o*i,r=o):t<s&&(o=Math.ceil(Math.abs(t-s)/i),t+=o*i,r=-o),{x:t,frameId:r}}function g(t,e){const{xmin:s,ymin:n,xmax:i,ymax:o}=e;return y(t,s,n)&&y(t,s,o)&&y(t,i,o)&&y(t,i,n)}function y(t,e,s){return e>=t.xmin&&e<=t.xmax&&s>=t.ymin&&s<=t.ymax}function _(t,e,s=!0){const n=!(0,c.Rg)(t);if(n&&(0,r.m3)(t),s)return(new C).cut(t,e);const i=n?t.rings:t.paths,o=n?4:2,a=i.length,l=-2*e;for(let t=0;t<a;t++){const e=i[t];if(e&&e.length>=o){const t=[];for(const[s,...n]of e)t.push([s+l,...n]);i.push(t)}}return n?t.rings=i:t.paths=i,t}class x{constructor(t,e){this.extent=t,this.frameIds=e}}const v=(0,i.vt)();class C{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let s;if(this._xCut=e,t.rings)this._closed=!0,s=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,s=t.paths,this._minPts=2}for(const t of s){if(!t||t.length<this._minPts)continue;let e=!0;for(const s of t)e?(this.moveTo(s),e=!1):this.lineTo(s);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),s=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&s.push(t);const n=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=n;s.push(t)}return this._closed?t.rings=s:t.paths=s,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const s=this._intersect(this._prevPt,t);this._lineTo(s,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(w(t,e<=0?t[0]:this._xCut)),this._lineOut.push(w(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const s=(this._xCut-t[0])/(e[0]-t[0]),n=[this._xCut,t[1]+s*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let o=2;o<i;o++)n.push(t[o]+s*(e[o]-t[o]));return n}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function w(t,e){const s=t.slice();return s[0]=e,s}function S(t,e,s){const n=t.length;n>1&&t[n-1][0]===s&&t[n-2][0]===s?t[n-1]=w(e,s):t.push(w(e,s))}},58325(t,e,s){s.d(e,{A:()=>S});var n,i=s(32198),o=s(56507),r=s(7762),c=s(25482),a=s(84952),l=s(91429),h=s(4718),u=s(67076),p=s(87024),f=s(39829),m=s(99917),d=s(16930),g=s(21325),y=s(88546),_=s(72772),x=s(98697),v=s(43937);let C=n=class extends c.o{constructor(t){super(t),this.geometry=null,this.type="clip"}writeGeometry(t,e,s,n){if(this._needWGS84Conversion(n))this._doWGS84Conversion(e,s,n);else if(n.layer?.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(t.spatialReference,n.layer.spatialReference))return void(n?.messages&&n.messages.push(new u.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));const i=new f.A;(0,m.projectPolygon)(t,i,n.layer.spatialReference),e[s]=i.toJSON(n)}else e[s]=t.toJSON(n)}_needWGS84Conversion(t){if("integrated-mesh-3dtiles"===t.layer?.type){const e=t.layer;return!e.esriCrsSpatialReference||!(0,g.aI)(e.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(t,e,s){let n=!0;if((0,_.isInitialized)()){const i=(0,x.Ir)(null,[this],d.A.WGS84);if(i.length>1){const o=(0,_.switchMeshModificationPolygonVCSSync)({modifications:i,inVCS:5773});if(o.success&&o.modifications){const i=[this.clone()];(0,x.H1)(o.modifications,i),1===i.length&&i[0].geometry&&(i[0].geometry.spatialReference=y.Zx,t[e]=i[0].geometry.toJSON(s),n=!1)}}}n&&s?.messages&&s.messages.push(new u.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:s}))}clone(){return new n({geometry:(0,h.o8)(this.geometry),type:this.type})}};var w;(0,i.Cg)([(0,l.MZ)({type:f.A}),(0,p.P)()],C.prototype,"geometry",void 0),(0,i.Cg)([(0,v.K)(["web-scene","portal-item"],"geometry")],C.prototype,"writeGeometry",null),(0,i.Cg)([(0,l.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],C.prototype,"type",void 0),C=n=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModification")],C);let S=w=class extends((0,c.T)(r.A.ofType(C))){constructor(t){super(t),this.url=null}clone(){return new w({url:this.url,items:this.items.map(t=>t.clone())})}toJSON(t){return this.toArray().map(e=>e.toJSON(t)).filter(t=>!!t.geometry)}static fromJSON(t,e){const s=new w;for(const n of t)s.add(C.fromJSON(n,e));return s}static async fromUrl(t,e,s,n=!1){const i={url:(0,a.An)(t),origin:"service"},r=await(0,o.A)(t,{responseType:"json",signal:s?.signal}),c=e.toJSON(),l=[];for(const t of r.data){let e=c;n&&t.geometry.spatialReference&&(e=t.geometry.spatialReference),l.push(C.fromJSON({...t,geometry:{spatialReference:e,...t.geometry}},i))}return new w({url:t,items:l})}};(0,i.Cg)([(0,l.MZ)({type:String})],S.prototype,"url",void 0),S=w=(0,i.Cg)([(0,l.$K)("esri.layers.support.SceneModifications")],S)},85648(t,e,s){s.d(e,{n:()=>i});var n=s(84952);function i(t){return o[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,n.Zo)(t);return a[e]||r}(t.url)}(t)]||c}const o={},r="text/plain",c=o[r],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in a)o[a[t]]=t},80215(t,e,s){s.d(e,{Q:()=>i});const n=Symbol("GroundInstance");function i(t){return null!=t&&"object"==typeof t&&n in t}},72772(t,e,s){s.r(e),s.d(e,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>h,initialize:()=>u,isInitialized:()=>p,process:()=>c,switchMeshModificationPolygonVCSSync:()=>l});var n=s(2741);function i(t){return(0,n.s)(`esri/libs/lyr3d/${t}`)}let o,r=null;async function c(t){await u();const e={status:1,error:"",jobDescJson:"",data:new Uint8Array(0),missingInputUrls:[]};if(t.inputs.length<1)return{result:e,transferList:[]};const s={ptrs:[],sizes:[]};for(const e of t.inputs){const t=r._malloc(e.byteLength);new Uint8Array(r.HEAPU8.buffer,t,e.byteLength).set(new Uint8Array(e)),s.ptrs.push(t),s.sizes.push(e.byteLength)}const n=r.process(t.jobDescJson,t.id,s,t.isMissingResourceCase);e.status=n.status,e.missingInputUrls=n.missingInputUrls.slice();const i=0===n.status&&n.data,o=2===e.status&&e.missingInputUrls.length>0;e.jobDescJson=n.jobDescJson.slice(),e.error=n.error.slice(),i?e.data=n.data.slice():o&&(e.originalInputs=t.inputs.slice());for(let t=0;t<s.ptrs.length;++t)r._free(s.ptrs[t]);const c=[];if(i)c.push(e.data.buffer);else if(o)for(const e of t.inputs)c.push(e);return{result:e,transferList:c}}async function a(t){await u(),r.add_spatial_reference_info(t.sr,t.isGCS,t.toMetersXY,t.toMetersZ)}function l(t){if(!r)return{success:!1,modifications:null};const e=r._malloc(8*t.modifications.length),s=new Float64Array(r.HEAPF64.buffer,e,t.modifications.length);s.set(t.modifications);const n=r.switch_mesh_modification_polygon_vcs(e,t.modifications.length,t.inVCS);let i=null;return n&&(i=s.slice()),r._free(e),{success:n,modifications:i}}function h(){r&&(r.uninitialize_lyr3d_worker_wasm(),r=null)}function u(){return p()?Promise.resolve():(o||(o=new Promise(t=>s.e(2343).then(()=>s(2343)).then(({default:e})=>{const s=e({locateFile:i,onRuntimeInitialized:()=>t(s)})})).catch(t=>{throw t}).then(t=>{r=t,r.initialize_lyr3d_worker_wasm(),o=null})),o)}function p(){return null!==r}},98697(t,e,s){s.d(e,{Cm:()=>f,H1:()=>x,Ir:()=>g,_b:()=>u,sQ:()=>p});var n=s(53966),i=s(15142),o=s(51850),r=s(35982),c=s(39829),a=s(99917),l=s(27993),h=s(89056);class u{constructor(t,e,s,n,i,o){this.layout=t,this.interleavedVertexData=e,this.indices=s,this.hasColors=n,this.hasModifications=i,this.positionData=o}}class p{constructor(t,e,s,n,i,o,r,c,a){this.componentOffsets=t,this.featureIds=e,this.anchorIds=s,this.anchors=n,this.transformedGeometry=i,this.globalTrafo=o,this.obb=r,this.geometryMinElevation=c,this.geometryMaxElevation=a}}class f extends r.B{constructor(t){super("SceneLayerWorker","process",{process:t=>[t.geometryBuffer],project:t=>[t.positions.buffer],transformNormals:t=>[t.normals.buffer]},t,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(t){for(const[e,s]of this._schemasByContext)t.invoke("setLegacySchema",{context:e,jsonSchema:s}).catch(()=>{});for(const e of this._modificationsByContext.values())t.invoke("setModifications",e).catch(()=>{})}setModifications(t,e,s){const n={context:t,modifications:e,isGeodetic:s};return this._modificationsByContext.set(t,n),this.broadcast(n,"setModifications")}setLegacySchema(t,e){const s=JSON.stringify(e);return this._schemasByContext.set(t,s),this.broadcast({context:t,jsonSchema:s},"setLegacySchema")}destroyContext(t){return this._schemasByContext.delete(t),this._modificationsByContext.delete(t),this.broadcast(t,"destroyContext")}async destroyContextAndSelf(t){await this.destroyContext(t),this.destroy()}project(t,e){return this.invokeMethod("project",t,e)}transformNormals(t,e){return this.invokeMethod("transformNormals",t,e)}}const m=new i.A({deallocator:null}),d=(0,o.vt)();function g(t,e,s,i=!1){m.clear();let o=1/0,r=1/0,l=-1/0,u=-1/0,p=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,f=t.geometry,d=f.spatialReference??s;if(d!==s&&!(0,a.canProjectWithoutEngine)(d,s)){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}let g=f.rings;if(d!==s){const t=y(f.rings,d,s);if(null==t){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}g=t}const x=g;if(i){const t=(0,h.jZ)(new c.A({rings:g,spatialReference:s}));null!=t&&(g=t.rings)}const v=1===x.length&&g.length>1?[...g.map(t=>[t]),x]:[g];if(v.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!_(t)))))n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:f});else{p||=1===e;for(const t of v){m.push(e),m.push(t.length);for(const e of t){m.push(e.length);for(const t of e){const e=t[2]??0;m.push(t[0]),m.push(t[1]),m.push(e),o=Math.min(o,t[0]),r=Math.min(r,t[1]),l=Math.max(l,t[0]),u=Math.max(u,t[1])}}}}}if(null!=t)if(p){const e=1e-4;m.push(2),m.push(2),m.push(4),m.push(o-e),m.push(r-e),m.push(0),m.push(l+e),m.push(r-e),m.push(0),m.push(l+e),m.push(u+e),m.push(0),m.push(o-e),m.push(u+e),m.push(0),m.push(4),m.push(t[0]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[3]),m.push(0),m.push(t[0]),m.push(t[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(t[0]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[3]),m.push(0),m.push(t[0]),m.push(t[3]),m.push(0);m.push(3);const f=new Float64Array(m.length);for(let t=0;t<m.length;++t)f[t]=m.at(t);return f}function y(t,e,s){const n=[];for(const i of t){const t=[];for(const n of i){if(!(0,l.F)(n,e,d,s)||!_(d))return null;t.push([d[0],d[1],d[2]])}n.push(t)}return n}function _(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function x(t,e){let s=0;for(const n of e){const e=n.geometry,i=e.rings.length,o=e.rings.some(t=>t.length<3);if(0!==i&&!o){s+=1,s+=1;for(let n=0;n<e.rings.length;++n){const i=e.rings[n];s+=1;for(let o=0;o<i.length;++o){const i=[t[s+0],t[s+1],t[s+2]];s+=3,e.setPoint(n,o,i)}}}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[359],{11006(t,e,n){function r(t,e,n,r,o){s(t,e,n||0,r||t.length-1,o||i)}function s(t,e,n,r,i){for(;r>n;){if(r-n>600){var u=r-n+1,l=e-n+1,c=Math.log(u),a=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*a*(u-a)/u)*(l-u/2<0?-1:1);s(t,e,Math.max(n,Math.floor(e-l*a/u+h)),Math.min(r,Math.floor(e+(u-l)*a/u+h)),i)}var f=t[e],d=n,m=r;for(o(t,n,e),i(t[r],f)>0&&o(t,n,r);d<m;){for(o(t,d,m),d++,m--;i(t[d],f)<0;)d++;for(;i(t[m],f)>0;)m--}0===i(t[n],f)?o(t,n,m):o(t,++m,r),m<=e&&(n=m+1),e<=m&&(r=m-1)}}function o(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function i(t,e){return t<e?-1:t>e?1:0}n.d(e,{q:()=>r})},43334(t,e,n){n.d(e,{N3:()=>u,Om:()=>i});var r=n(69397),s=n(27647),o=n(92722);class i{constructor(t,e,n,r,s=0,o=null,i=null){this.geometry=t,this.attributes=e,this.centroid=n,this.objectId=r,this.displayId=s,this.distance=o,this.vertexCount=i}static fromJSON(t){const e=t.geometry?o.A.fromJSON(t.geometry):null,n=t.centroid?o.A.fromJSON(t.centroid):null,r=t.objectId;return new i(e,t.attributes,n,r,void 0,t.distance,t.vertexCount)}weakClone(){return new i(this.geometry,this.attributes,this.centroid,this.objectId,this.displayId,this.distance,this.vertexCount)}clone(){return new i(this.geometry?.clone(),{...this.attributes},this.centroid?.clone(),this.objectId,this.displayId,this.distance,this.vertexCount)}ensureCentroid(t){return this.centroid??=(0,s.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,r.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function u(t){return!!t.geometry?.coords?.length}},58512(t,e,n){n.d(e,{A:()=>r});class r{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const t=new r;return t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const o=n-t,i=r-e;return new s([5],[t,e,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],o=this.coords[r*e+1];for(let i=1;i<n;i+=1){const n=r*(e+i),u=this.coords[n],l=this.coords[n+1];t+=-.5*(u-s)*(l+o),s=u,o=l}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return t?(t.set(o),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}},27647(t,e,n){n.d(e,{Q:()=>o});var r=n(92722);function s(t,e){return t?e?4:3:e?3:2}function o(t){if(null==t)return null;if(!t?.lengths.length)return null;const{lengths:e,coords:n,stride:s,hasZ:o,hasM:l}=t,c=new r.A([],[],o,!1),a=c.coords,h=[],f=o?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];let d=0;for(const t of e){const e=i(f,n,d,t,o,l);e&&h.push(e),d+=t*s}if(h.sort((t,e)=>{let n=t[2]-e[2];return 0===n&&o&&(n=t[4]-e[4]),n}),h.length){let t=6*h[0][2];a[0]=h[0][0]/t,a[1]=h[0][1]/t,o&&(t=6*h[0][4],a[2]=0!==t?h[0][3]/t:0),(a[0]<f[0]||a[0]>f[1]||a[1]<f[2]||a[1]>f[3]||o&&(a[2]<f[4]||a[2]>f[5]))&&(a.length=0)}if(!a.length){const r=t.lengths[0]?u(n,0,e[0],o,l):null;if(!r)return null;a[0]=r[0],a[1]=r[1],o&&(a[2]=r[2]??0)}return c}function i(t,e,n,r,o,i){const u=s(o,i);let l=n,c=n+u,a=0,h=0,f=0,d=0,m=0;for(let n=0,s=r-1;n<s;n++,l+=u,c+=u){const n=e[l],r=e[l+1],s=e[l+2],i=e[c],u=e[c+1],g=e[c+2];let y=n*u-i*r;d+=y,a+=(n+i)*y,h+=(r+u)*y,o&&(y=n*g-i*s,f+=(s+g)*y,m+=y),n<t[0]&&(t[0]=n),n>t[1]&&(t[1]=n),r<t[2]&&(t[2]=r),r>t[3]&&(t[3]=r),o&&(s<t[4]&&(t[4]=s),s>t[5]&&(t[5]=s))}if(d>0&&(d*=-1),m>0&&(m*=-1),!d)return null;const g=[a,h,.5*d];return o&&(g[3]=f,g[4]=.5*m),g}function u(t,e,n,r,o){const i=s(r,o);let u=e,f=e+i,d=0,m=0,g=0,y=0;for(let e=0,s=n-1;e<s;e++,u+=i,f+=i){const e=t[u],n=t[u+1],s=t[u+2],o=t[f],i=t[f+1],p=t[f+2],I=r?c(e,n,s,o,i,p):l(e,n,o,i);if(I)if(d+=I,r){const t=h(e,n,s,o,i,p);m+=I*t[0],g+=I*t[1],y+=I*t[2]}else{const t=a(e,n,o,i);m+=I*t[0],g+=I*t[1]}}return d>0?r?[m/d,g/d,y/d]:[m/d,g/d]:n>0?r?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function l(t,e,n,r){const s=n-t,o=r-e;return Math.sqrt(s*s+o*o)}function c(t,e,n,r,s,o){const i=r-t,u=s-e,l=o-n;return Math.sqrt(i*i+u*u+l*l)}function a(t,e,n,r){return[t+.5*(n-t),e+.5*(r-e)]}function h(t,e,n,r,s,o){return[t+.5*(r-t),e+.5*(s-e),n+.5*(o-n)]}},54339(t,e,n){function r(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{const n=[];for(const r of e.fieldNames)n.push(t.attributes[r]??null);return JSON.stringify(n)}}}function s(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];const n=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(n)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}n.d(e,{W:()=>r,r:()=>s})},51441(t,e,n){n.d(e,{LQ:()=>s,ag:()=>i,pL:()=>o});var r=n(90708);function s(t,e,n,s=t.hasZ,o=t.hasM){if(null==e)return null;const i=t.hasZ&&s,u=t.hasM&&o;if(n){const t=(0,r.Nl)(e,"esriGeometryPoint",n,s,o);return(0,r.DF)(t,i,u)}return(0,r.DF)(e,i,u)}function o(t,e,n,s,o,i){if(null==e)return null;const u="coords"in e?e:e.geometry;if(null==u)return null;const{hasZ:l,hasM:c}=u,a=l&&(o??=l),h=c&&(i??=c);if(n){let e=(0,r.kz)(u,t,n,o,i);return s&&(e=(0,r.Nl)(e,t,s)),(0,r.zv)(e,t,a,h)}if(s){const e=(0,r.Nl)(u,t,s,o,i);return(0,r.zv)(e,t,a,h)}return(0,r.zv)(u,t,a,h)}function i(t){return t&&u in t?JSON.parse(JSON.stringify(t,l)):t}const u="_geVersion",l=(t,e)=>t===u?void 0:e},31464(t,e,n){n.d(e,{Cv:()=>d,Nk:()=>f,lK:()=>g});var r=n(4576),s=n(99917),o=n(60408),i=n(21325),u=n(28735);const l=[0,0];function c(t,e){const n=(0,i.K8)(t)?u.je:u.tD;if((0,o.fT)(e)){const t={x:0,y:0};return[t.x,t.y]=n(e.x,e.y,l),null!=e.z&&(t.z=e.z),null!=e.m&&(t.m=e.m),t}if((0,o.ZC)(e)){const t={xmin:0,ymin:0,xmax:0,ymax:0};return[t.xmin,t.ymin]=n(e.xmin,e.ymin,l),[t.xmax,t.ymax]=n(e.xmax,e.ymax,l),e.hasZ&&(t.zmin=e.zmin,t.zmax=e.zmax,t.hasZ=!0),e.hasM&&(t.mmin=e.mmin,t.mmax=e.mmax,t.hasM=!0),t}if((0,o.Bi)(e))return{rings:a(e.rings,n),hasM:e.hasM,hasZ:e.hasZ};if((0,o.Rg)(e))return{paths:a(e.paths,n),hasM:e.hasM,hasZ:e.hasZ};if((0,o.U9)(e))return{points:h(e.points,n),hasM:e.hasM,hasZ:e.hasZ};throw new Error}function a(t,e){const n=[];for(const r of t)n.push(h(r,e));return n}function h(t,e){const n=[];for(const r of t){const t=e(r[0],r[1],[0,0]);n.push(t),r.length>2&&t.push(r[2]),r.length>3&&t.push(r[3])}return n}async function f(t,e){if(!t||!e)return;const n=Array.isArray(t)?t.map(t=>null!=t.geometry?t.geometry.spatialReference:null).filter(r.Ru):[t];await(0,s.initializeProjection)(n.map(t=>({source:t,dest:e})))}function d(t,e,n,r){if(!t)return null;if(n||(n=e,e=t.spatialReference),!(0,i.fn)(e)||!(0,i.fn)(n)||(0,i.aI)(e,n))return t;if((0,u.y7)(e,n)){const e=c(n,t);return e.spatialReference=n,e}return(0,s.projectMany)([t],e,n,r)[0]}const m=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,n,r){if(!t?.length||!e||!n||(0,i.aI)(e,n))return t;const s={geometries:t,inSpatialReference:e,outSpatialReference:n,options:r,resolve:Promise.withResolvers()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const t=this._jobs.shift();if(!t)return;const{geometries:e,inSpatialReference:n,outSpatialReference:r,resolve:o,options:i}=t,l=e.filter(t=>null!=t);let a;a=(0,u.y7)(n,r)&&null==i?.extendedParams?l.map(t=>c(r,t)):(0,s.projectMany)(l,n,r,i);let h=0;const f=e.map(t=>null==t?null:a[h++]);o.resolve(f),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(t,e,n,r){return m.push(t,e,n,r)}},90708(t,e,n){n.d(e,{Ap:()=>F,B2:()=>y,DF:()=>T,Di:()=>q,E2:()=>E,IE:()=>g,Nl:()=>V,PR:()=>P,Rk:()=>Q,Ux:()=>O,Ye:()=>Z,ZF:()=>j,aQ:()=>U,jH:()=>z,jQ:()=>J,kz:()=>Y,oN:()=>R,q3:()=>k,qN:()=>w,zv:()=>S});var r=n(49186),s=n(53966),o=n(97768),i=n(70328),u=n(19419),l=n(60408),c=n(43334),a=n(58512),h=n(92722),f=n(54339);const d=()=>s.A.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function g({scale:t,translate:e},n){return Math.round((n-e[0])/t[0])}function y({scale:t,translate:e},n){return Math.round((e[1]-n)/t[1])}function p({scale:t,translate:e},n){return Math.round((n-e[0])/t[0])}function I({scale:t,translate:e},n){return Math.round((n-e[1])/t[1])}function N({scale:t,translate:e},n,r){return n*t[r]+e[r]}function M(t,e,n){return e&&(t.hasZ=!0),n&&(t.hasM=!0),t}function b(t,e,n,r){if(e&&r&&t!==n)return(e,n,r,s)=>{r[s++]=e[n++],r[s++]=e[n++],t?n++:r[s++]=0,r[s++]=e[n++]??0};const s=2+(n?1:0)+(r?1:0),o=s-((!t&&n?1:0)+(!e&&r?1:0));return(t,e,n,r)=>{for(let i=0;i<s;++i)n[r++]=i<o?t[e++]??0:0}}function T(t,e,n){if(!t)return null;const{coords:r,hasZ:s,hasM:o}=t,[i,u]=r,l=s?r[2]:0,c=o?r[2+(s?1:0)]:0;return{x:i,y:u,z:e?l:void 0,m:n?c:void 0}}function w(t,e=(0,l.Pv)(t),n=(0,l.W0)(t)){const{x:r,y:s,z:o,m:i}=t,u=[r,s];return e&&u.push(o??0),n&&u.push(i??0),new h.A([],u,e,n)}function v(t,e,n){if(null==t)return null;const{coords:r,stride:s,hasZ:o,hasM:i}=t,u=b(o,i,e,n),l=[];for(let t=0;t<r.length;t+=s){const e=[];u(r,t,e,0),l.push(e)}return M({points:l},e,n)}function P(t,e=(0,l.Pv)(t),n=(0,l.W0)(t)){const{points:r,hasZ:s,hasM:o}=t,i=new h.A([r.length],[],e,n),{coords:u,stride:c}=i;let a=0;const f=b(s??!1,o??!1,e,n);for(const t of r)f(t,0,u,a),a+=c;return i}function x(t,e,n){if(!t)return null;const{coords:r,lengths:s,stride:o,hasZ:i,hasM:u}=t;let l=0;const c=b(i,u,e,n),a=[];for(const t of s){const e=[];for(let n=0;n<t;n++){const t=[];c(r,l,t,0),l+=o,e.push(t)}a.push(e)}return M({paths:a},e,n)}function F(t,e=(0,l.Pv)(t),n=(0,l.W0)(t)){const{paths:r,hasZ:s,hasM:o}=t,i=b(s??!1,o??!1,e,n),u=new h.A([],[],e,n),{lengths:c,coords:a,stride:f}=u;let d=0;for(const t of r){for(const e of t)i(e,0,a,d),d+=f;c.push(t.length)}return u}function G(t,e,n){if(!t)return null;const{coords:r,lengths:s,stride:o,hasZ:i,hasM:u}=t;let l=0;const c=b(i,u,e,n),a=[];for(const t of s){const e=[];for(let n=0;n<t;n++){const t=[];c(r,l,t,0),l+=o,e.push(t)}a.push(e)}return M({rings:a},e,n)}function Z(t,e=(0,l.Pv)(t),n=(0,l.W0)(t)){const{rings:r,hasZ:s,hasM:o}=t,i=new h.A([],[],e,n),{lengths:u,coords:c,stride:a}=i;let f=0;const d=b(s??!1,o??!1,e,n);for(const t of r){for(const e of t)d(e,0,c,f),f+=a;u.push(t.length)}return i}const A=[],_=[];function E(t,e,n,r,s){A[0]=t;const[o]=q(_,A,e,n,r,s);return B(A),B(_),o}function q(t,e,n,s,o,i){if(B(t),!n){for(const n of e){const e=(0,f.W)(n,i);t.push(new c.Om(null,n.attributes,null,e,void 0,n.distance,n.vertexCount))}return t}switch(n){case"esriGeometryPoint":return function(t,e,n,r,s){for(const o of e){const{geometry:e,attributes:i,centroid:u}=o,a=(0,l.Pv)(e),h=(0,l.W0)(e);t.push(new c.Om(e?w(e,n&&a,r&&h):null,i,u?w(u,!1,!1):null,(0,f.W)(o,s),o.displayId,o.distance,o.vertexCount))}return t}(t,e,s,o,i);case"esriGeometryMultipoint":return function(t,e,n,r,s){for(const o of e){const{geometry:e,attributes:i}=o,u=(0,l.Pv)(e),a=(0,l.W0)(e);t.push(new c.Om(e?P(e,n&&u,r&&a):null,i,null,(0,f.W)(o,s),o.displayId,o.distance,o.vertexCount))}return t}(t,e,s,o,i);case"esriGeometryPolyline":return function(t,e,n,r,s){for(const o of e){const{geometry:e,attributes:i,centroid:u}=o,a=(0,l.Pv)(e),h=(0,l.W0)(e);t.push(new c.Om(e?F(e,n&&a,r&&h):null,i,u?w(u,!1,!1):null,(0,f.W)(o,s),o.displayId,o.distance,o.vertexCount))}return t}(t,e,s,o,i);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(t,e,n,r,s){for(const o of e){const{geometry:e,attributes:i,centroid:u}=o,a=(0,l.Pv)(e),h=(0,l.W0)(e);t.push(new c.Om(e?Z(e,n&&a,r&&h):null,i,u?w(u,!1,!1):null,(0,f.W)(o,s),o.displayId,o.distance,o.vertexCount))}return t}(t,e,s,o,i);default:d().error("convertToFeatureSet:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${n}'`)),B(t)}return t}function R(t,e,n,r){_[0]=t,C(A,_,e,n,r);const s=A[0];return B(A),B(_),s}function O(t,e=(0,l.Pv)(t),n=(0,l.W0)(t)){return null==t?null:(0,l.fT)(t)?w(t,e,n):(0,l.Bi)(t)?Z(t,e,n):(0,l.Rg)(t)?F(t,e,n):(0,l.U9)(t)?P(t,e,n):void d().error("convertFromGeometry:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`))}function S(t,e,n,s){if(null==t)return null;const o="coords"in t?t:t.geometry;if(null==o)return null;switch(e){case"esriGeometryPoint":return T(o,n,s);case"esriGeometryMultipoint":return v(o,n,s);case"esriGeometryPolyline":return x(o,n,s);case"esriGeometryPolygon":return G(o,n,s);default:return d().error("convertToGeometry:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`)),null}}function C(t,e,n,s,o){if(B(t),null==n)return function(t,e){for(const n of e)t.push({attributes:n.attributes});return t}(t,e);switch(n){case"esriGeometryPoint":return function(t,e,n,r){for(const{geometry:s,attributes:o}of e)t.push({attributes:o,geometry:T(s,n,r)});return t}(t,e,s,o);case"esriGeometryMultipoint":return function(t,e,n,r){for(const{geometry:s,attributes:o}of e)t.push({geometry:s&&v(s,n,r),attributes:o});return t}(t,e,s,o);case"esriGeometryPolyline":return function(t,e,n,r){for(const{geometry:s,attributes:o}of e)t.push({geometry:s&&x(s,n,r),attributes:o});return t}(t,e,s,o);case"esriGeometryPolygon":return function(t,e,n,r){for(const{geometry:s,attributes:o,centroid:i}of e){const e=G(s,n,r),u=T(i,!1,!1);t.push(i?{geometry:e,attributes:o,centroid:u}:{geometry:e,attributes:o})}return t}(t,e,s,o);default:d().error("convertToFeatureSet:unknown-geometry",new r.A("internal:geometry",`Unable to parse unknown geometry type '${n}'`))}return t}function j(t){const{spatialReference:e,transform:n,fields:r,hasM:s,hasZ:o,features:i,geometryType:u,exceededTransferLimit:l,queryGeometry:c,queryGeometryType:a}=t,h={features:C([],i,u,o,s),fields:r,geometryType:u,spatialReference:e,queryGeometry:S(c,a,o,s)};return n&&(h.transform=n),l&&(h.exceededTransferLimit=l),s&&(h.hasM=s),o&&(h.hasZ=o),h}function k(t,e){const n=new a.A,{hasM:r,hasZ:s,features:o,spatialReference:i,geometryType:u,exceededTransferLimit:l,transform:c,fields:h,globalIdFieldName:f}=t;return h&&(n.fields=h),n.geometryType=u??null,n.spatialReference=i??null,o&&q(n.features,o,u,s,r,e),l&&(n.exceededTransferLimit=l),r&&(n.hasM=r),s&&(n.hasZ=s),c&&(n.transform=c),f&&(n.globalIdFieldName=f),n}function z(t,e){const{geometryType:n,features:r}=e;if(!t)return e;for(let e=0;e<r.length;e++){const s=r[e],o=s.weakClone();o.geometry=V(s.geometry,n,t),o.centroid=V(s.centroid,"esriGeometryPoint",t),r[e]=o}return e.transform=t,e}function V(t,e,n,r,s,o=!1){if(null==t)return null;if(!t?.coords.length)return null;const i=m[e],{coords:u,lengths:l,stride:c,hasZ:a,hasM:f}=t;r??=a,s??=f;const d=new h.A([],[],r,s),N=d.stride,M=b(a,f,r,s);let T=0;const w=[0,0,0,0].slice(N),v=o?p:g,P=o?I:y;function x(){M(u,T,w,0),T+=c,w[0]=v(n,w[0]),w[1]=P(n,w[1])}if(t.isPoint)return x(),d.coords.push(...w),d;let F=0;for(const t of l){if(t<i)continue;let e=1;x(),d.coords.push(...w);let[n,r]=w;for(let s=1;s<t;s++){x();const[t,s]=w;n===t&&r===s||(o||(w[0]-=n,w[1]-=r),d.coords.push(...w),n=t,r=s,e++)}e>=i?(d.lengths.push(e),F=d.coords.length):B(d.coords,F)}return B(d.coords,F),d.coords.length?d:null}function Y(t,e,n,r=t.hasZ,s=t.hasM){if(!t.coords.length)return null;const o=m[e],{coords:i,lengths:u,stride:l,hasZ:c,hasM:a}=t,f=new h.A([],[],r,s),d=f.stride,g=b(c,a,r,s);if(t.isPoint)return g(i,0,f.coords,0),f;let y=0;const p=n*n;for(const t of u){if(t<o){y+=t*l;continue}const e=f.coords.length/d,n=y,r=y+(t-1)*l;g(i,n,f.coords,f.coords.length),L(f.coords,i,l,p,g,n,r),g(i,r,f.coords,f.coords.length);const s=f.coords.length/d-e;s>=o?f.lengths.push(s):B(f.coords,e*d),y+=t*l}return f.coords.length?f:null}function W(t,e,n,r){const s=t[e],o=t[e+1],i=t[n],u=t[n+1],l=t[r],c=t[r+1];let a=i,h=u,f=l-a,d=c-h;if(0!==f||0!==d){const t=((s-a)*f+(o-h)*d)/(f*f+d*d);t>1?(a=l,h=c):t>0&&(a+=f*t,h+=d*t)}return f=s-a,d=o-h,f*f+d*d}function L(t,e,n,r,s,o,i){let u,l=r,c=0;for(let t=o+n;t<i;t+=n)u=W(e,t,o,i),u>l&&(c=t,l=u);l>r&&(c-o>n&&L(t,e,n,r,s,o,c),s(e,c,t,t.length),i-c>n&&L(t,e,n,r,s,c,i))}function J(t,e){if(!e?.coords?.length)return null;let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;const{coords:l,stride:c}=e;for(let t=0;t<l.length;t+=c){const e=l[t],i=l[t+1];n=Math.min(n,e),s=Math.max(s,e),r=Math.min(r,i),o=Math.max(o,i)}return(0,i.is)(t)?(0,i.BI)(t,n,r,s,o):(0,u.fA)(n,r,s,o,t),t}function U(t,e){const{coords:n,lengths:r,stride:s,hasZ:i,hasM:u}=t;if(!n.length)return void(r.length=0);(0,o.Lw)(e);const{originPosition:l,scale:c,translate:a}=e,h=$;h.originPosition=l;const f=h.scale;f[0]=c[0]??1,f[1]=-(c[1]??1),f[2]=c[2]??1,f[3]=c[3]??1;const d=h.translate;if(d[0]=a[0]??0,d[1]=a[1]??0,d[2]=a[2]??0,d[3]=a[3]??0,u&&!i&&(f[2]=f[3],d[2]=d[3]),!r.length){for(let t=0;t<s;++t)n[t]=N(h,n[t],t);return void(r.length=0)}let m=0;for(let t=0;t<r.length;t++){const e=r[t];r[t]=e;for(let t=0;t<s;++t)n[m+t]=N(h,n[m+t],t);let o=n[m],i=n[m+1];m+=s;for(let t=1;t<e;t++,m+=s){o+=n[m]*f[0],i+=n[m+1]*f[1],n[m]=o,n[m+1]=i;for(let t=2;t<s;++t)n[m+t]=N(h,n[m+t],t)}}}function D(t,e,n,r){let s=0,o=t[r*e],i=t[r*(e+1)];for(let u=1;u<n;u++){const n=o+t[r*(e+u)],l=i+t[r*(e+u)+1],c=(n-o)*(l+i);o=n,i=l,s+=c}return.5*s}function Q(t,e){const{coords:n,lengths:r}=t;let s=0,o=0;for(let t=0;t<r.length;t++){const i=r[t];o+=D(n,s,i,e),s+=i}return Math.abs(o)}function B(t,e=0){t.length!==e&&(t.length=e)}const $={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}}}]);