@arcgis/core 5.2.0-next.128 → 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 (300) hide show
  1. package/applications/Components/imageryUtils.js +1 -1
  2. package/arcade/batchExec.js +1 -1
  3. package/arcade/geometry/adapters/dehydrated.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/06da350b4ea25732f52b.js +1 -0
  6. package/assets/esri/core/workers/chunks/{67dcf9b873cb037b2647.js → 081c9ccaa5884c730a91.js} +1 -1
  7. package/assets/esri/core/workers/chunks/094102031cc77b20db74.js +1 -0
  8. package/assets/esri/core/workers/chunks/0b85c844af97b2fb0ba8.js +1 -0
  9. package/assets/esri/core/workers/chunks/{86d7a3ae672a51b75fcc.js → 0d44f793d3b0d33153ac.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0de140199161fcd15a0c.js +1 -0
  11. package/assets/esri/core/workers/chunks/0deceece4b465f653f58.js +1 -0
  12. package/assets/esri/core/workers/chunks/111dc5653daa7f3e1001.js +1 -0
  13. package/assets/esri/core/workers/chunks/139e3da8ea081e21539e.js +1 -0
  14. package/assets/esri/core/workers/chunks/142bedebd37d747f84ba.js +1 -0
  15. package/assets/esri/core/workers/chunks/15dc28b4fa5b5110472b.js +1 -0
  16. package/assets/esri/core/workers/chunks/{dd02cc18ebebb90778c6.js → 17e2bfc7468c23e43bef.js} +1 -1
  17. package/assets/esri/core/workers/chunks/196d33f4d8e3a256ad94.js +1 -0
  18. package/assets/esri/core/workers/chunks/1a02c68de65a67ab6a67.js +1 -0
  19. package/assets/esri/core/workers/chunks/{4165eb86471ea3bbf364.js → 1aecf7106a21320e054e.js} +1 -1
  20. package/assets/esri/core/workers/chunks/1bc03b8065cbbbb06c87.js +1 -0
  21. package/assets/esri/core/workers/chunks/1beb32170d659bc43977.js +1 -0
  22. package/assets/esri/core/workers/chunks/20ee32fee219afbcfee3.js +1 -0
  23. package/assets/esri/core/workers/chunks/{9467744cb7d094a5067a.js → 21d2f5324db0b199060c.js} +1 -1
  24. package/assets/esri/core/workers/chunks/22abb9a74f6594f9db2a.js +1 -0
  25. package/assets/esri/core/workers/chunks/237795866c075880531b.js +1 -0
  26. package/assets/esri/core/workers/chunks/25e4da9c6837ab0fa585.js +1 -0
  27. package/assets/esri/core/workers/chunks/2a5fde737dc99627142e.js +1 -0
  28. package/assets/esri/core/workers/chunks/3412050ae63ff7dcaf36.js +1 -0
  29. package/assets/esri/core/workers/chunks/35316724c8d3cc39cf80.js +1 -0
  30. package/assets/esri/core/workers/chunks/354cc6cd2a56937f1747.js +1 -0
  31. package/assets/esri/core/workers/chunks/365ae479765ca9e47de4.js +1 -0
  32. package/assets/esri/core/workers/chunks/{8190fcb1dd10ad20feed.js → 36ef86701883a20dd6f6.js} +1 -1
  33. package/assets/esri/core/workers/chunks/3759e272a1d43534a190.js +1 -0
  34. package/assets/esri/core/workers/chunks/397ddcf0b8e858a17b70.js +1 -0
  35. package/assets/esri/core/workers/chunks/3a7a558e30b5cb81c801.js +1 -0
  36. package/assets/esri/core/workers/chunks/3c9405d310a1b08c901e.js +1 -0
  37. package/assets/esri/core/workers/chunks/{e10fe4c77b8dc4492092.js → 3ce53562926b05e71af5.js} +1 -1
  38. package/assets/esri/core/workers/chunks/3d174a84b785fc633a5a.js +1 -0
  39. package/assets/esri/core/workers/chunks/3d67fed3e53993c38b58.js +1 -0
  40. package/assets/esri/core/workers/chunks/42bdeeff55fb1a3f735f.js +1 -0
  41. package/assets/esri/core/workers/chunks/48f1532520b76fa7f0c2.js +1 -0
  42. package/assets/esri/core/workers/chunks/{00d9e41deecf5828975c.js → 4adc3822ed9f498f5653.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{d5f0fed415b5b155d57c.js → 51741ef8225d470716fe.js} +1 -1
  44. package/assets/esri/core/workers/chunks/5191e481d0e19a7f3888.js +1 -0
  45. package/assets/esri/core/workers/chunks/{7fcee3a1b900ddc9a5e3.js → 540acf6abdee9dbd453e.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{d9b63cf111035b05cd2e.js → 5484b89adc53430226d5.js} +1 -1
  47. package/assets/esri/core/workers/chunks/55361b50ecfc98db2ffb.js +1 -0
  48. package/assets/esri/core/workers/chunks/58da7c41c1bcef2f4141.js +1 -0
  49. package/assets/esri/core/workers/chunks/5979bbefb09d132c008f.js +1 -0
  50. package/assets/esri/core/workers/chunks/{84db05e872dbf35c80a2.js → 5982c6a8459c1237b298.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{0a20f84b5f004a77a9f9.js → 5abfc4f447b01d6bf287.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{4c0dba437de0969a5b63.js → 5b9f88194433410bad5b.js} +1 -1
  53. package/assets/esri/core/workers/chunks/5f794f4e0113d5dd50ba.js +1 -0
  54. package/assets/esri/core/workers/chunks/62a30692e2a7612bafc1.js +1 -0
  55. package/assets/esri/core/workers/chunks/62aa7daad4ca7332854e.js +1 -0
  56. package/assets/esri/core/workers/chunks/66926c3686d5ef2d4692.js +29 -0
  57. package/assets/esri/core/workers/chunks/6994ba168465b77a36af.js +1 -0
  58. package/assets/esri/core/workers/chunks/6d0c6fda9100fe89f3cb.js +1 -0
  59. package/assets/esri/core/workers/chunks/72a898894438f177cd62.js +1 -0
  60. package/assets/esri/core/workers/chunks/78d4455237120103f639.js +1 -0
  61. package/assets/esri/core/workers/chunks/7fccf53aa751cd9dae57.js +1 -0
  62. package/assets/esri/core/workers/chunks/{6267a1fe1603daa399b4.js → 81327e10200065a0ccef.js} +1 -1
  63. package/assets/esri/core/workers/chunks/84a3fbe5d85a357f4e82.js +1 -0
  64. package/assets/esri/core/workers/chunks/862479729f2d036f606b.js +1 -0
  65. package/assets/esri/core/workers/chunks/8a9aa6db11d0f643961c.js +1 -0
  66. package/assets/esri/core/workers/chunks/8dfea65341991e13ab71.js +1 -0
  67. package/assets/esri/core/workers/chunks/8e92925043dc49ed1018.js +1 -0
  68. package/assets/esri/core/workers/chunks/8f0b2b0ca239b01f44d0.js +1 -0
  69. package/assets/esri/core/workers/chunks/93a89168c18db88f60e7.js +1 -0
  70. package/assets/esri/core/workers/chunks/991c854a4459c82d4d93.js +1 -0
  71. package/assets/esri/core/workers/chunks/{f90cad9f007a11154c0d.js → 9b080d07699b56f06c5f.js} +1 -1
  72. package/assets/esri/core/workers/chunks/9cd69aa3880838a834f8.js +1 -0
  73. package/assets/esri/core/workers/chunks/{2ca49fb4590cc34a02bd.js → 9d87f38b16dda1ff7978.js} +1 -1
  74. package/assets/esri/core/workers/chunks/9fd1e5a2c0a261ed2a33.js +1 -0
  75. package/assets/esri/core/workers/chunks/a189e520da39919cdcca.js +1 -0
  76. package/assets/esri/core/workers/chunks/a3a5cb664bdb1db190dd.js +1 -0
  77. package/assets/esri/core/workers/chunks/a63c456ecf018ec06778.js +1 -0
  78. package/assets/esri/core/workers/chunks/{842f993fa60b410cb613.js → a8322a978e33c7349fdf.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{f479b4a4cee4bb2e046c.js → aa96eea0899757ab38c7.js} +1 -1
  80. package/assets/esri/core/workers/chunks/ab0b2a76247dfd56b92d.js +1 -0
  81. package/assets/esri/core/workers/chunks/ab7337b076d152a8eb9e.js +1 -0
  82. package/assets/esri/core/workers/chunks/ac0de274853a42d518a1.js +1 -0
  83. package/assets/esri/core/workers/chunks/ad372e399e20d5a3262d.js +1 -0
  84. package/assets/esri/core/workers/chunks/ae75b3e5320d03dff64c.js +1 -0
  85. package/assets/esri/core/workers/chunks/ae98530d5816306216b3.js +1 -0
  86. package/assets/esri/core/workers/chunks/afc94c4b9bc007fe310f.js +1 -0
  87. package/assets/esri/core/workers/chunks/afe54923339e957b71b9.js +1 -0
  88. package/assets/esri/core/workers/chunks/bbcac00362fef5e3956d.js +1 -0
  89. package/assets/esri/core/workers/chunks/{1302bf9718747cd9fdd9.js → bcee161dd1c4781d1998.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{d1f54b0079fb71a15612.js → bd231bc0624eb889ac14.js} +1 -1
  91. package/assets/esri/core/workers/chunks/c0075715fbe7bec10fc3.js +1 -0
  92. package/assets/esri/core/workers/chunks/c4e1e864fb8c119b2520.js +1 -0
  93. package/assets/esri/core/workers/chunks/c93cedf9e53da5aaa35b.js +1 -0
  94. package/assets/esri/core/workers/chunks/{2d592c935571de80a2e2.js → c9690810b198a97bc16d.js} +1 -1
  95. package/assets/esri/core/workers/chunks/cada517cc25fa37f778c.js +1 -0
  96. package/assets/esri/core/workers/chunks/cd1821bf601949674e02.js +1 -0
  97. package/assets/esri/core/workers/chunks/{1b42d163ef22e3565bb7.js → cf7b7e54cd87422ca62a.js} +1 -1
  98. package/assets/esri/core/workers/chunks/d195c57fc6de3560653d.js +1 -0
  99. package/assets/esri/core/workers/chunks/d7f830a06ded11f2fc80.js +1 -0
  100. package/assets/esri/core/workers/chunks/d877783815afd21dbe98.js +1 -0
  101. package/assets/esri/core/workers/chunks/db5181fcea96cc2ede3e.js +1 -0
  102. package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js → de28a86775235bd5d3c4.js} +2 -2
  103. package/assets/esri/core/workers/chunks/df6992416cba9539f1ed.js +1 -0
  104. package/assets/esri/core/workers/chunks/e4005d95a396e1af9ac2.js +1 -0
  105. package/assets/esri/core/workers/chunks/{668ec0bdfb2095e90c9e.js → e495697860f7207da4c7.js} +1 -1
  106. package/assets/esri/core/workers/chunks/f163502c513205c892e7.js +1 -0
  107. package/assets/esri/core/workers/chunks/f287ec0fcb611f82ebb0.js +1 -0
  108. package/assets/esri/core/workers/chunks/{37ae52c71bf9c70fbb92.js → f2d45d15d0ba2537a4eb.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{d507d7d7a7282fc38e8d.js → f652d1db26fbdea1a79b.js} +1 -1
  110. package/assets/esri/core/workers/chunks/f6b38ed75baae198c19b.js +1 -0
  111. package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js → f6cfc901267a229de7a1.js} +2 -2
  112. package/assets/esri/core/workers/chunks/f6d04d14323b926f1025.js +1 -0
  113. package/assets/esri/core/workers/chunks/f7ab606be37373312ebe.js +1 -0
  114. package/assets/esri/core/workers/chunks/{3b7dff15a0058ea29886.js → f92178ac6dc9abff304f.js} +1 -1
  115. package/assets/esri/core/workers/chunks/fc39593febef74a036f1.js +1 -0
  116. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  117. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +7 -0
  118. package/assets/esri/themes/dark/main.css +1 -1
  119. package/assets/esri/themes/light/main.css +1 -1
  120. package/assets/esri/themes/light/view.css +1 -1
  121. package/assets/esri/views/interactive/tooltip/t9n/messages.ar.json +1 -1
  122. package/assets/esri/views/interactive/tooltip/t9n/messages.bg.json +1 -1
  123. package/assets/esri/views/interactive/tooltip/t9n/messages.bs.json +1 -1
  124. package/assets/esri/views/interactive/tooltip/t9n/messages.ca.json +1 -1
  125. package/assets/esri/views/interactive/tooltip/t9n/messages.cs.json +1 -1
  126. package/assets/esri/views/interactive/tooltip/t9n/messages.da.json +1 -1
  127. package/assets/esri/views/interactive/tooltip/t9n/messages.de.json +1 -1
  128. package/assets/esri/views/interactive/tooltip/t9n/messages.el.json +1 -1
  129. package/assets/esri/views/interactive/tooltip/t9n/messages.es.json +1 -1
  130. package/assets/esri/views/interactive/tooltip/t9n/messages.et.json +1 -1
  131. package/assets/esri/views/interactive/tooltip/t9n/messages.fi.json +1 -1
  132. package/assets/esri/views/interactive/tooltip/t9n/messages.fr.json +1 -1
  133. package/assets/esri/views/interactive/tooltip/t9n/messages.he.json +1 -1
  134. package/assets/esri/views/interactive/tooltip/t9n/messages.hr.json +1 -1
  135. package/assets/esri/views/interactive/tooltip/t9n/messages.hu.json +1 -1
  136. package/assets/esri/views/interactive/tooltip/t9n/messages.id.json +1 -1
  137. package/assets/esri/views/interactive/tooltip/t9n/messages.it.json +1 -1
  138. package/assets/esri/views/interactive/tooltip/t9n/messages.ja.json +1 -1
  139. package/assets/esri/views/interactive/tooltip/t9n/messages.ko.json +1 -1
  140. package/assets/esri/views/interactive/tooltip/t9n/messages.lt.json +1 -1
  141. package/assets/esri/views/interactive/tooltip/t9n/messages.lv.json +1 -1
  142. package/assets/esri/views/interactive/tooltip/t9n/messages.nl.json +1 -1
  143. package/assets/esri/views/interactive/tooltip/t9n/messages.no.json +1 -1
  144. package/assets/esri/views/interactive/tooltip/t9n/messages.pl.json +1 -1
  145. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-BR.json +1 -1
  146. package/assets/esri/views/interactive/tooltip/t9n/messages.pt-PT.json +1 -1
  147. package/assets/esri/views/interactive/tooltip/t9n/messages.ro.json +1 -1
  148. package/assets/esri/views/interactive/tooltip/t9n/messages.ru.json +1 -1
  149. package/assets/esri/views/interactive/tooltip/t9n/messages.sk.json +1 -1
  150. package/assets/esri/views/interactive/tooltip/t9n/messages.sl.json +1 -1
  151. package/assets/esri/views/interactive/tooltip/t9n/messages.sr.json +1 -1
  152. package/assets/esri/views/interactive/tooltip/t9n/messages.sv.json +1 -1
  153. package/assets/esri/views/interactive/tooltip/t9n/messages.th.json +1 -1
  154. package/assets/esri/views/interactive/tooltip/t9n/messages.tr.json +1 -1
  155. package/assets/esri/views/interactive/tooltip/t9n/messages.uk.json +1 -1
  156. package/assets/esri/views/interactive/tooltip/t9n/messages.vi.json +1 -1
  157. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-CN.json +1 -1
  158. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-HK.json +1 -1
  159. package/assets/esri/views/interactive/tooltip/t9n/messages.zh-TW.json +1 -1
  160. package/chunks/batchExec.js +2 -0
  161. package/config.js +1 -1
  162. package/geometry/support/intersects.js +1 -1
  163. package/geometry/support/intersectsBase.js +1 -1
  164. package/kernel.js +1 -1
  165. package/layers/GeospatialPDFLayer.js +1 -1
  166. package/layers/ImageryTileLayer.js +1 -1
  167. package/layers/graphics/hydrateGeometryJSON.js +2 -0
  168. package/layers/graphics/hydratedFeatures.js +1 -1
  169. package/layers/graphics/hydratedSpatialReference.js +2 -0
  170. package/layers/raster/datasets/DBFParser.js +1 -1
  171. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  172. package/layers/raster/datasets/TIFFRaster.js +1 -1
  173. package/layers/raster/formats/JpgPlus.js +1 -1
  174. package/layers/raster/formats/RasterCodec.js +1 -1
  175. package/layers/raster/formats/Raw.js +1 -1
  176. package/layers/support/arcadeUtils.js +1 -1
  177. package/package.json +3 -3
  178. package/popup/FeatureContent.js +1 -1
  179. package/popup/FeatureContentCollection.d.ts +2 -0
  180. package/popup/FeatureContentCollection.js +1 -1
  181. package/popup/support/featureUtils.js +1 -1
  182. package/rest/imageService.js +1 -1
  183. package/support/arcadeUtils.js +1 -1
  184. package/support/loadArcade.js +1 -1
  185. package/support/revision.js +1 -1
  186. package/symbols/cim/cimAnalyzer.js +1 -1
  187. package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
  188. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  189. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  190. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  191. package/views/2d/engine/vectorTiles/decluttering/util.js +1 -1
  192. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  193. package/views/2d/layerViewModuleImportUtils.js +1 -1
  194. package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
  195. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  196. package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
  197. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  198. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  199. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  200. package/views/2d/support/hitTestUtils.js +1 -1
  201. package/views/3d/interactive/Manipulator3D.js +1 -1
  202. package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
  203. package/views/3d/terrain/TileCompositor.js +1 -1
  204. package/views/DOMContainer.d.ts +18 -8
  205. package/views/VideoView.d.ts +38 -0
  206. package/views/VideoView.js +1 -1
  207. package/views/View.d.ts +20 -2
  208. package/views/View.js +1 -1
  209. package/views/input/types.d.ts +19 -6
  210. package/views/interactive/dragEventPipeline.js +1 -1
  211. package/views/layers/ImageryTileLayerView.js +1 -1
  212. package/widgets/Search/SearchViewModel.js +1 -1
  213. package/widgets/Search/support/layerSearchUtils.js +1 -1
  214. package/assets/esri/core/workers/chunks/025da54eef112d7e8f66.js +0 -1
  215. package/assets/esri/core/workers/chunks/02f94f9d704f03ddb5c6.js +0 -1
  216. package/assets/esri/core/workers/chunks/038d2b80d96237c25b6f.js +0 -1
  217. package/assets/esri/core/workers/chunks/04d4cd66485b622403d0.js +0 -1
  218. package/assets/esri/core/workers/chunks/05afa8c2b5929ce0545a.js +0 -1
  219. package/assets/esri/core/workers/chunks/09676cfa99b90fe0cc63.js +0 -1
  220. package/assets/esri/core/workers/chunks/0aadee0437fa061e4ff5.js +0 -1
  221. package/assets/esri/core/workers/chunks/0ccd4200c5a2a5de6e16.js +0 -1
  222. package/assets/esri/core/workers/chunks/1262918b2161d79851c0.js +0 -1
  223. package/assets/esri/core/workers/chunks/1406a884241809b62bff.js +0 -1
  224. package/assets/esri/core/workers/chunks/1c33aa349beea9a3792f.js +0 -1
  225. package/assets/esri/core/workers/chunks/1f135269aea3931e11b2.js +0 -1
  226. package/assets/esri/core/workers/chunks/24014f3701c31ee74bc2.js +0 -1
  227. package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +0 -1
  228. package/assets/esri/core/workers/chunks/2afce71e8b6ae86e0792.js +0 -1
  229. package/assets/esri/core/workers/chunks/2c7bb5c9751524687002.js +0 -1
  230. package/assets/esri/core/workers/chunks/2ebad7e588b26e74cefe.js +0 -1
  231. package/assets/esri/core/workers/chunks/319434415d2c0561bc59.js +0 -1
  232. package/assets/esri/core/workers/chunks/39d71e83261bff46f6bf.js +0 -1
  233. package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +0 -1
  234. package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +0 -1
  235. package/assets/esri/core/workers/chunks/3f045f09ac95e7f22a97.js +0 -1
  236. package/assets/esri/core/workers/chunks/4327d2c39a660bd89da7.js +0 -1
  237. package/assets/esri/core/workers/chunks/462fd57af8ed7921d6ba.js +0 -1
  238. package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +0 -1
  239. package/assets/esri/core/workers/chunks/48a2f68e06a2e90b77d0.js +0 -1
  240. package/assets/esri/core/workers/chunks/4a73f73f1698fad2df20.js +0 -1
  241. package/assets/esri/core/workers/chunks/4f464047c6f6c9486efd.js +0 -1
  242. package/assets/esri/core/workers/chunks/500f6d6f0ffa235cae85.js +0 -1
  243. package/assets/esri/core/workers/chunks/526cc64ae46dec3fbeda.js +0 -1
  244. package/assets/esri/core/workers/chunks/550d4df0732352fa48b5.js +0 -1
  245. package/assets/esri/core/workers/chunks/581285e4d7bbe1b7c27a.js +0 -1
  246. package/assets/esri/core/workers/chunks/58fb92775d668cfd295c.js +0 -1
  247. package/assets/esri/core/workers/chunks/5adf2792416b22cd602f.js +0 -1
  248. package/assets/esri/core/workers/chunks/5aee7739afb5160d4ace.js +0 -1
  249. package/assets/esri/core/workers/chunks/6006bd8a5ed945fa2776.js +0 -1
  250. package/assets/esri/core/workers/chunks/606cca69eaea84bfcdc6.js +0 -1
  251. package/assets/esri/core/workers/chunks/64ee22134fda2f09c094.js +0 -1
  252. package/assets/esri/core/workers/chunks/66ef6c034455abd61f39.js +0 -1
  253. package/assets/esri/core/workers/chunks/67678054342178b601cf.js +0 -1
  254. package/assets/esri/core/workers/chunks/67fd2cdb2e6834bfa710.js +0 -1
  255. package/assets/esri/core/workers/chunks/6c82cbcd504c711a7450.js +0 -1
  256. package/assets/esri/core/workers/chunks/75294f515c7f8393181c.js +0 -1
  257. package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +0 -1
  258. package/assets/esri/core/workers/chunks/761ea719ec1b4d562db2.js +0 -1
  259. package/assets/esri/core/workers/chunks/78085f804969c9282700.js +0 -1
  260. package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +0 -1
  261. package/assets/esri/core/workers/chunks/80f16f5f15518013f7d0.js +0 -1
  262. package/assets/esri/core/workers/chunks/8465e2c7221125fd3cc4.js +0 -1
  263. package/assets/esri/core/workers/chunks/87aaed3dfa903bdf853c.js +0 -1
  264. package/assets/esri/core/workers/chunks/892dc038d569cffd26dc.js +0 -1
  265. package/assets/esri/core/workers/chunks/8a842cde240aef12e417.js +0 -1
  266. package/assets/esri/core/workers/chunks/8f1c5f5e70d4b33d021d.js +0 -1
  267. package/assets/esri/core/workers/chunks/9020bd7a0e488d55ef14.js +0 -1
  268. package/assets/esri/core/workers/chunks/92509dd25996c6390a31.js +0 -1
  269. package/assets/esri/core/workers/chunks/9ccc2c8f7416943cc373.js +0 -29
  270. package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +0 -1
  271. package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +0 -1
  272. package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +0 -1
  273. package/assets/esri/core/workers/chunks/a3a33ffa34f4d645ddfe.js +0 -1
  274. package/assets/esri/core/workers/chunks/b396c4b4bb144200acc7.js +0 -1
  275. package/assets/esri/core/workers/chunks/b9c834e3c0701e9b14a2.js +0 -1
  276. package/assets/esri/core/workers/chunks/bbfb80a6983574007ce5.js +0 -1
  277. package/assets/esri/core/workers/chunks/bcf2e5cf6b9c6d0442bb.js +0 -1
  278. package/assets/esri/core/workers/chunks/c35e9dee87937f483a3d.js +0 -1
  279. package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +0 -1
  280. package/assets/esri/core/workers/chunks/cbeba973ef5593ffbba3.js +0 -1
  281. package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +0 -1
  282. package/assets/esri/core/workers/chunks/d25fb32a233d2128afbe.js +0 -1
  283. package/assets/esri/core/workers/chunks/d5ef269ab0ee3744b05d.js +0 -1
  284. package/assets/esri/core/workers/chunks/d94a2b3b2ef49af9c2e3.js +0 -1
  285. package/assets/esri/core/workers/chunks/dc92710a8fdfb9135e55.js +0 -1
  286. package/assets/esri/core/workers/chunks/dd4ecf81250cc001d040.js +0 -1
  287. package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +0 -1
  288. package/assets/esri/core/workers/chunks/e4016ae9cb8f16e3efc3.js +0 -1
  289. package/assets/esri/core/workers/chunks/e6a4cef0af9be30ffe3d.js +0 -1
  290. package/assets/esri/core/workers/chunks/eaa7cb3ffa8c11706a09.js +0 -1
  291. package/assets/esri/core/workers/chunks/ed31ec586b754241474d.js +0 -1
  292. package/assets/esri/core/workers/chunks/ef6e52f9b656751eebaf.js +0 -1
  293. package/assets/esri/core/workers/chunks/f2fca9a3a40170996ea2.js +0 -1
  294. package/assets/esri/core/workers/chunks/f5d06cd6d30a5f742f73.js +0 -1
  295. package/assets/esri/core/workers/chunks/f71ec8a260405ed07958.js +0 -1
  296. package/assets/esri/core/workers/chunks/f91cab9904020cf25d50.js +0 -1
  297. package/assets/esri/core/workers/chunks/fb11ff3f2eae5f072560.js +0 -1
  298. package/assets/esri/core/workers/chunks/ff0e9f8d323eb1729650.js +0 -1
  299. /package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js.LICENSE.txt → de28a86775235bd5d3c4.js.LICENSE.txt} +0 -0
  300. /package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js.LICENSE.txt → f6cfc901267a229de7a1.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1379],{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:()=>E,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 _=1/2.2;function E(e){return e**2.2}function b(e){return e**_}r.d(t,["iw",0,_])},85334(e,t,r){r.d(t,{$:()=>_,IB:()=>a,Iy:()=>S,KV:()=>v,N2:()=>E,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){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(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))}function b(e){return l(e)?e:function(e){return m(p(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))}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:()=>E,O7:()=>A,Qw:()=>l,Tl:()=>f,X_:()=>R,e$:()=>p,eL:()=>y,hM:()=>_,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],_=r*a-n*o,E=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=_*B-E*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*E)*w,e[7]=(c*R-f*b+d*E)*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*_)*w,e[11]=(h*b-c*v-d*_)*w,e[12]=(a*M-o*I-u*S)*w,e[13]=(r*I-n*M+s*S)*w,e[14]=(y*E-p*T-m*_)*w,e[15]=(c*T-h*E+f*_)*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],_=t[15];let E=r[0],b=r[1],T=r[2],v=r[3];return e[0]=E*n+b*a+T*h+v*y,e[1]=E*s+b*u+T*f+v*m,e[2]=E*i+b*l+T*d+v*g,e[3]=E*o+b*c+T*p+v*_,E=r[4],b=r[5],T=r[6],v=r[7],e[4]=E*n+b*a+T*h+v*y,e[5]=E*s+b*u+T*f+v*m,e[6]=E*i+b*l+T*d+v*g,e[7]=E*o+b*c+T*p+v*_,E=r[8],b=r[9],T=r[10],v=r[11],e[8]=E*n+b*a+T*h+v*y,e[9]=E*s+b*u+T*f+v*m,e[10]=E*i+b*l+T*d+v*g,e[11]=E*o+b*c+T*p+v*_,E=r[12],b=r[13],T=r[14],v=r[15],e[12]=E*n+b*a+T*h+v*y,e[13]=E*s+b*u+T*f+v*m,e[14]=E*i+b*l+T*d+v*g,e[15]=E*o+b*c+T*p+v*_,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],_=t[5],E=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+_*A+v*I,e[2]=y*M+E*A+R*I,e[3]=m*M+b*A+S*I,e[4]=d*x+g*B+T*w,e[5]=p*x+_*B+v*w,e[6]=y*x+E*B+R*w,e[7]=m*x+b*B+S*w,e[8]=d*N+g*C+T*O,e[9]=p*N+_*C+v*O,e[10]=y*N+E*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,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(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,_=o*l;return e[0]=1-(d+y),e[1]=h+_,e[2]=f-g,e[3]=0,e[4]=h-_,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,_=a*l,E=a*c,b=n[0],T=n[1],v=n[2];return e[0]=(1-(p+m))*b,e[1]=(f+E)*b,e[2]=(d-_)*b,e[3]=0,e[4]=(f-E)*T,e[5]=(1-(h+m))*T,e[6]=(y+g)*T,e[7]=0,e[8]=(d+_)*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,_=u*l,E=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-E)*T,w=(d-b)*v,N=(1-(f+g))*v,C=(m+_)*v,O=(p+E)*R,L=(m-_)*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,_=m*l-p*h,E=p*c-y*l;d=Math.sqrt(g*g+_*_+E*E),d?(d=1/d,g*=d,_*=d,E*=d):(g=0,_=0,E=0);let b=c*E-h*_,T=h*g-l*E,v=l*_-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[5]=T,e[6]=c,e[7]=0,e[8]=E,e[9]=v,e[10]=h,e[11]=0,e[12]=-(g*i+_*o+E*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[15],E=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-E)<=P*Math.max(1,Math.abs(r),Math.abs(E))&&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(_-L)<=P*Math.max(1,Math.abs(_),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:_,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:E,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]}},44794(e,t,r){r.d(t,{v:()=>a});var n=r(4718),s=r(62788),i=r(95488);class o{constructor(e,t){this._observable=new i.I,this._value=e,this._equalityFunction=t}get value(){return(0,s.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=n.gh){return new o(e,t)}},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:()=>E,Ie:()=>M,Jt:()=>A,Lu:()=>T,Ne:()=>v,RF:()=>h,TF:()=>g,VL:()=>p,aI:()=>B,fA:()=>a,gE:()=>l,gX:()=>_,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,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(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:()=>Q,jZ:()=>R,j0:()=>S,Sx:()=>M,E$:()=>A,Qy:()=>ne,h:()=>P,P:()=>U,SL:()=>N,dy:()=>te,ES:()=>se,gH:()=>_,ZD:()=>g,si:()=>x,mJ:()=>z,UL:()=>K,D6:()=>j,Yi:()=>F,An:()=>V,LC:()=>C,xs:()=>b,EC:()=>E,Xm:()=>B,Vp:()=>$,zD:()=>J,m8:()=>Y,nS:()=>q,H$:()=>k,eI:()=>O,td:()=>re,Eq:()=>v,jz:()=>T,Aj:()=>w,E7:()=>H,Y4:()=>ee,TX:()=>Z,Uz:()=>D,ml:()=>G,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 _ extends h{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="f32"}}class E extends d{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(E,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 q extends d{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 D extends p{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 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 G extends p{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="u32"}}class Q extends c{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Q,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)()},65864(e,t,r){r.d(t,{rS:()=>c,xD:()=>f});var n=r(5443),s=r(91075),i=r(48526),o=r(86738),a=r(39829),u=r(82799),l=r(60408);function c(e){return null==e?null:e instanceof s.A?e:(0,l.fT)(e)?o.A.fromJSON(e):(0,l.Rg)(e)?u.A.fromJSON(e):(0,l.Bi)(e)?a.A.fromJSON(e):(0,l.U9)(e)?i.A.fromJSON(e):(0,l.ZC)(e)?n.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:u.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:i.A,esriGeometryMultiPatch:a.A};function f(e){return e&&h[e]||null}},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),_=r(69208),E=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)),q=r(98764),D=r(4341),U=r(19419),V=r(11964),k=r(27921),G=r(71351),Q=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,G.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,Q.gr)(s,o),u=(0,Q.gr)(i,o),l=(0,Q.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,Q.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 D.I(k.vt),fe=new D.I(V.vt),de=(0,x.vt)(),pe=new D.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 _e=r(94008);(0,x.vt)(),(0,x.vt)();var Ee=r(89707);class be extends Ee.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new _e.iy(0,0,0,-1),this._serviceMbsInRenderSR=new _e.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,q.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,G.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 _e.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 _e.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:[qe],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)(De,n))return t;const s=this._queryRay,i=(0,I.Z0)(Ue,s.origin,De),o=(0,I.WQ)(Ve,s.origin,s.direction),a=(0,I.Z0)(ke,o,De),u=(0,I.jb)(Ge,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)(Qe,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 _e.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 _e.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",qe=(0,xe.U)((0,Be.hH)(new Be.W7(!1,!1,0))),De=(0,A.vt)(),Ue=(0,x.vt)(),Ve=(0,x.vt)(),ke=(0,x.vt)(),Ge=(0,x.vt)(),Qe=(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,_=f.length>0?(0,nt.Ke)(this.loadTextures(e,f,t)):null;let E=null,b=null;if(o){E=(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=_?(0,nt.QA)(await _):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:E,geometryDescriptor:b,requiredTextures:f,textureData:T};if(null!=g)return{pointData:g,attributeDataInfo:R,geometryBuffer:E,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,E.q)((0,b.A)((0,T.j)((0,c.M)((0,_.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 _=g??d.clone(),E={geometry:_.export(),noDataValue:u};return r?.returnSampleInfo&&(E.sampleInfo=_.coordinates.map(()=>({demResolution:m?-1:1}))),E}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}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8744],{68197(t,e,r){r.d(e,{A:()=>c});var i=r(40876),n=r(4576),a=r(34727),s=r(78888);function o(t){return(0,a.qE)((0,s.Vr)(t),0,255)}function l(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}function u(t){return.2126*(0,i.Q6)(t.r)+.7152*(0,i.Q6)(t.g)+.0722*(0,i.Q6)(t.b)}class c{static blendColors(t,e,r,i=new c){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){const r=(0,i.lT)(t);return r?c.fromArray(r,e):null}static fromHex(t,e=new c){const r=(0,i.oW)(t);return r?c.fromArray(r,e):null}static fromArray(t,e=new c){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,i.Eq)(t);return r?c.fromArray(r,e):null}static fromJSON(t){return null!=t?new c([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(t,e=3){const r=t instanceof c?t:new c(t),i=u(this),n=u(r);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)<e}setColor(t){if("string"==typeof t)c.fromString(t,this);else if((0,n.yc)(t))c.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t 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(t){const e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,n=4===r||8===r,a=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return e?a.toUpperCase():a}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),r=o(this.g),i=o(this.b);return 0===t||1!==this.a?[e,r,i,o(255*this.a)]:[e,r,i]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}c.prototype.declaredClass="esri.Color"},40876(t,e,r){r.d(e,{Eq:()=>y,G1:()=>m,Q6:()=>_,TS:()=>a,V6:()=>n,Vm:()=>f,ay:()=>l,c1:()=>g,c4:()=>s,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>v});const i={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 n(t){return!!i[t]||!!i[t.toLowerCase()]}function a(t){return i[t]??i[t.toLowerCase()]}function s(t){return[...a(t)]}function o(t,e,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?t+(e-t)*i:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,i=1){const n=(t%360+360)%360/360,a=r<=.5?r*(e+1):r+e-r*e,s=2*r-a;return[Math.round(255*o(s,a,n+1/3)),Math.round(255*o(s,a,n)),Math.round(255*o(s,a,n-1/3)),i]}function u(t){const e=t.length>5,r=e?8:4,i=(1<<r)-1,n=e?1:17,a=e?9===t.length:5===t.length;let s=Number("0x"+t.slice(1));if(isNaN(s))return null;const o=[0,0,0,1];let l;return a&&(l=s&i,s>>=r,o[3]=n*l/255),l=s&i,s>>=r,o[2]=n*l,l=s&i,s>>=r,o[1]=n*l,l=s&i,s>>=r,o[0]=n*l,o}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),n=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,r+16*r,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function h(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),r=e[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),p(e)}return p(t.map(t=>parseFloat(t)))}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function p(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function y(t){let e=n(t)?a(t):null;return e??=h(t),e??=c(t),e}function f(t){const e=y(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function m(t){return d(t,0,1)}function g(t){return Math.round(d(t,0,255))}function d(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}const b=1/2.2;function _(t){return t**2.2}function v(t){return t**b}r.d(e,["iw",0,b])},91829(t,e,r){function i(){return[0,0,0,0]}function n(t,e,r,i){return[t,e,r,i]}function a(){return n(1,1,1,1)}function s(){return n(1,0,0,0)}function o(){return n(0,1,0,0)}function l(){return n(0,0,1,0)}function u(){return n(0,0,0,1)}r.d(e,{_Y:()=>u,fA:()=>n,vt:()=>i});const c=[0,0,0,0],h=a(),p=s(),y=o(),f=l(),m=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:p,UNIT_Y:y,UNIT_Z:f,ZEROS:c,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:i,freeze:function(t,e,r,i){return[t,e,r,i]},fromArray:function(t,e=[0,0,0,0]){const r=Math.min(4,t.length);for(let i=0;i<r;++i)e[i]=t[i];return e},fromValues:n,ones:a,unitW:u,unitX:s,unitY:o,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,h,"uY",0,c,"v7",0,m])},78955(t,e,r){r.d(e,{Bw:()=>g,C:()=>n,Cc:()=>v,LI:()=>p,Om:()=>_,S8:()=>b,T9:()=>h,WQ:()=>s,Z0:()=>w,aI:()=>T,hG:()=>m,hZ:()=>a,hs:()=>y,jk:()=>c,m3:()=>d,t2:()=>x});var i=r(34304);function n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function s(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function l(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function u(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function c(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function h(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function p(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function y(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function f(t,e){const r=e[0]-t[0],i=e[1]-t[1],n=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+i*i+n*n+a*a)}function m(t,e){const r=e[0]-t[0],i=e[1]-t[1],n=e[2]-t[2],a=e[3]-t[3];return r*r+i*i+n*n+a*a}function g(t){const e=t[0],r=t[1],i=t[2],n=t[3];return Math.sqrt(e*e+r*r+i*i+n*n)}function d(t){const e=t[0],r=t[1],i=t[2],n=t[3];return e*e+r*r+i*i+n*n}function b(t,e){const r=e[0],i=e[1],n=e[2],a=e[3];let s=r*r+i*i+n*n+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=n*s,t[3]=a*s),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function v(t,e,r,i){const n=e[0],a=e[1],s=e[2],o=e[3];return t[0]=n+i*(r[0]-n),t[1]=a+i*(r[1]-a),t[2]=s+i*(r[2]-s),t[3]=o+i*(r[3]-o),t}function w(t,e,r){const i=e[0],n=e[1],a=e[2],s=e[3];return t[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*s,t[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*s,t[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*s,t[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*s,t}function x(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function T(t,e){const r=t[0],n=t[1],a=t[2],s=t[3],o=e[0],l=e[1],u=e[2],c=e[3],h=(0,i.FD)();return Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-l)<=h*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(a-u)<=h*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(s-c)<=h*Math.max(1,Math.abs(s),Math.abs(c))}const I=o,P=l,E=u,L=f,D=m,A=g,k=d;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:n,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:L,distance:f,div:E,divide:u,dot:_,equals:T,exactEquals:x,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:A,length:g,lerp:v,max:h,min:c,mul:P,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:b,random:function(t,e=1){const r=i.Ov;let n,a,s,o,l,u;do{n=2*r()-1,a=2*r()-1,l=n*n+a*a}while(l>=1);do{s=2*r()-1,o=2*r()-1,u=s*s+o*o}while(u>=1);const c=Math.sqrt((1-l)/u);return t[0]=e*n,t[1]=e*a,t[2]=e*s*c,t[3]=e*o*c,t},round:p,scale:y,scaleAndAdd:function(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t[2]=e[2]+r[2]*i,t[3]=e[3]+r[3]*i,t},set:a,sqrDist:D,sqrLen:k,squaredDistance:m,squaredLength:d,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:o,transformMat4:w,transformQuat:function(t,e,r){const i=e[0],n=e[1],a=e[2],s=r[0],o=r[1],l=r[2],u=r[3],c=u*i+o*a-l*n,h=u*n+l*i-s*a,p=u*a+s*n-o*i,y=-s*i-o*n-l*a;return t[0]=c*u+y*-s+h*-l-p*-o,t[1]=h*u+y*-o+p*-s-c*-l,t[2]=p*u+y*-l+c*-o-h*-s,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>a,lM:()=>n});var i=r(34275);function n(t){if(!t)return 0;let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=s(t[r],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let r=c;for(let i=0;i<e;i++)r+=s(t[i]);return r}(t);let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=s(t[r]));return e}function s(t,e=!0){switch(typeof t){case"object":return e?a(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+h:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return c+t.length*e}const u=32,c=16,h=145},60408(t,e,r){function i(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function n(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function s(t){return void 0!==t.paths||void 0!==t.curvePaths}function o(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?a(t)?"esriGeometryPoint":s(t)?"esriGeometryPolyline":o(t)?"esriGeometryPolygon":i(t)?"esriGeometryEnvelope":n(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function h(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}r.d(e,{$B:()=>u,Bi:()=>o,Pv:()=>c,Rg:()=>s,U9:()=>n,W0:()=>h,ZC:()=>i,fT:()=>a,uW:()=>l})},4264(t,e,r){r.d(e,{lf:()=>At,L:()=>Nt,A4:()=>kt,aR:()=>Ot,tU:()=>St,V1:()=>Mt,uU:()=>Rt});var i=r(19419),n=r(13195),a=r(89518),s=r(68572),o=r(63907),l=r(85079),u=r(74038);class c{constructor(t){this._precisionFactors={},this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildMaterialInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildMaterialInfo(),this._locations}getPrecisionFactors(){return this._precisionFactors||this._buildMaterialInfo(),this._precisionFactors}get geometryLayout(){return this._geometryLayout||this._buildMaterialInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildMaterialInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildMaterialInfo(),this._uniforms}getUsedAttributes(){return this._usedAttributes||this._buildMaterialInfo(),this._usedAttributes}encodeAttributes(t,e,r,i){const n=this.propertyInfos,a=this.getEncodingInfos(),s=[],o=Math.ceil(this._ddStrideInBytes/4);for(let t=0;t<o;t++)s.push(0);for(const o of Object.keys(a)){const l=a[o],{type:u,precisionFactor:c,isLayout:h}=n[o],p=h?r.getLayoutProperty(o):r.getPaintProperty(o),y=p.interpolator?.getInterpolationRange(e);let f=0;for(const r of l){const{offset:n}=r,a=Math.floor(n/4),o=n%4*8,l=i??p.getValue(y?y[f]:e,t),h=c||1;switch(u){case 0:case 1:s[a]|=this._encodeByte(l*h,0)<<o;break;case 2:case 3:s[a]|=this._encodeShort(l*h,0)<<o;break;case 4:case 5:{const t=this._encodeByte(l*h,0),e=this._encodeByte(l*h,8);s[a]|=t<<o,s[a]|=e<<o}break;case 6:case 7:s[a]|=this._encodeShort(l*h,0),s[a]|=this._encodeShort(l*h,16);break;case 8:case 9:s[a]|=this._encodeByte(l*h,0),s[a]|=this._encodeByte(l*h,8),s[a]|=this._encodeByte(l*h,16),s[a]|=this._encodeByte(l*h,24);break;case 10:s[a]=this._encodeColor(l);break;case 11:case 12:this._encodePattern(a,s,l);break;default:throw new Error("Unsupported encoding type")}f++}}return s}getAtributeState(t){let e=0;const r=3+2*t;return e|=this._bit(r),e|=this._bit(r+1)<<1,e}static{this._encodingInfo={0:{dataType:o.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:o.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:o.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:o.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:o.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:o.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:o.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_getLayoutElementsForPropertyState(t,e,r){const i=r[t],n=i.name,{count:a,dataType:s,normalized:o}=c._encodingInfo[i.type],{attribueIdx:l,precisionFactor:u}=i,h=u||1,p=[{location:l[0],name:n,propertyName:t,count:a,type:s,normalized:o,precisionFactor:h}];if(this._precisionFactors[n]=h,2===e){const e=`${n}To`;p.push({location:l[1],name:e,propertyName:t,count:a,type:s,normalized:o,precisionFactor:h}),this._precisionFactors[e]=h}return p}_buildMaterialInfo(){const t=[];this._propertyEncodingInfo={};const e={},r=this.properties,i=this.propertyInfos;let n=-1;for(const a of r){n++;const r=i[a].name;e[r]=!1,e[`${r}To`]=!1;const s=this.getAtributeState(n);if(0===s||3===s)continue;const o=this._getLayoutElementsForPropertyState(a,s,i);t.push(...o)}for(const r of t)e[r.name]=!0;const a=function(t){const e=(0,s.H)(t),r=[];let i=0;for(const t of e)r.push({...t,offset:i}),i+=h(t.type)*t.count;return r}(t);this._buildLayout(a),this._buildShaderUniforms(),this._usedAttributes=e}_buildLayout(t){this.opacityLayout?this._locations=(0,l._u)([this.baseGeometryLayout,this.opacityLayout]):this._locations=(0,l.Xk)(this.baseGeometryLayout);const e=this.baseGeometryLayout;let r=e[0].stride;const i=[];let n=0;for(const e of t)n+=h(e.type)*e.count;r=p(r+n);for(const t of e)i.push(new u._(t.name,t.count,t.type,t.offset,r,t.normalized));let a=0;for(const n of t)i.push(new u._(n.name,n.count,n.type,e[0].stride+a,r,n.normalized)),void 0===this._propertyEncodingInfo[n.propertyName]&&(this._propertyEncodingInfo[n.propertyName]=[]),this._propertyEncodingInfo[n.propertyName].push({offset:a}),a+=h(n.type)*n.count;this._ddStrideInBytes=a,this._geometryLayout=i;const s=this._locations;for(const e of t)s.set(e.name,e.location);this._stride=r}_buildShaderUniforms(){const t=[],e=this.properties,r=this.propertyInfos;let i=-1;for(const n of e){i++;const{name:e,type:a,isLayout:s}=r[n];switch(this.getAtributeState(i)){case 0:t.push({name:e,getValue:(t,e,r,i)=>{const o=s?t.getLayoutValue(n,e):t.getPaintValue(n,e);switch(a){case 11:{const r=t.getDashKey(o,t.getLayoutValue("line-cap",e)),n=i.getMosaicItemPosition(r,!1);if(null==n)return null;const{tl:a,br:s}=n;return[a[0],s[1],s[0],a[1]]}case 12:{const t=i.getMosaicItemPosition(o,!n.includes("line-"));if(null==t)return null;const{tl:e,br:r}=t;return[e[0],r[1],r[0],e[1]]}case 10:{const t=o[3];return[t*o[0],t*o[1],t*o[2],t]}default:return o}}});break;case 2:{const r=`${e}Mix`;t.push({name:r,getValue:(t,e,r,i)=>(s?t.getLayoutProperty(n):t.getPaintProperty(n)).interpolator.interpolationUniformValue(r,e)})}}}this._uniforms=t}_bit(t){return(this._key&1<<t)>>t}_encodeColor(t){const e=255*t[3];return(0,a.Ss)(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,r){if(!r?.rect)return;const i=r.rect,n=r.width,a=r.height;e[t]=this._encodeShort(i.x+2,0),e[t]|=this._encodeShort(i.y+2+a,16),e[t+1]=this._encodeShort(i.x+2+n,0),e[t+1]|=this._encodeShort(i.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const h=t=>{switch(t){case o.pe.FLOAT:case o.pe.INT:case o.pe.UNSIGNED_INT:return 4;case o.pe.SHORT:case o.pe.UNSIGNED_SHORT:case o.pe.HALF_FLOAT:return 2;case o.pe.BYTE:case o.pe.UNSIGNED_BYTE:return 1}},p=t=>t+3&-4;class y extends c{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=y.GEOMETRY_LAYOUT,this.properties=y.ATTRIBUTES,this.propertyInfos=y.ATTRIBUTES_INFO}}class f extends c{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1,attribueIdx:[1,8]},"circle-color":{name:"color",type:10,attribueIdx:[2,9]},"circle-opacity":{name:"opacity",type:1,attribueIdx:[3,10],precisionFactor:100},"circle-stroke-width":{name:"strokeWidth",type:1,attribueIdx:[4,11],precisionFactor:4},"circle-stroke-color":{name:"strokeColor",type:10,attribueIdx:[5,12]},"circle-stroke-opacity":{name:"strokeOpacity",type:1,attribueIdx:[6,13],precisionFactor:100},"circle-blur":{name:"blur",type:1,attribueIdx:[7,14],precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.properties=f.ATTRIBUTES,this.propertyInfos=f.ATTRIBUTES_INFO}}class m extends c{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10,attribueIdx:[1,4]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[2,5]},"fill-pattern":{name:"tlbr",type:12,isOptional:!0,attribueIdx:[3,3]}}}constructor(t){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.properties=m.ATTRIBUTES,this.propertyInfos=m.ATTRIBUTES_INFO}}class g extends c{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,8),new u._("offset",2,o.pe.BYTE,4,8),new u._("normal",2,o.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}constructor(t,e){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.properties=e?g.ATTRIBUTES_FILL:g.ATTRIBUTES_OUTLINE,this.propertyInfos=e?g.ATTRIBUTES_INFO_FILL:g.ATTRIBUTES_INFO_OUTLINE}}class d extends c{static{this.ATTRIBUTES=["line-color","line-width","line-opacity","line-blur","line-offset","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new u._("position",2,o.pe.SHORT,0,16),new u._("extrudeOffset",4,o.pe.BYTE,4,16),new u._("directionNormal",4,o.pe.BYTE,8,16),new u._("accumulatedDistance",2,o.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-color":{name:"color",type:10,attribueIdx:[4,10]},"line-width":{name:"width",type:1,attribueIdx:[5,11],precisionFactor:2},"line-opacity":{name:"opacity",type:1,attribueIdx:[6,12],precisionFactor:100},"line-blur":{name:"blur",type:1,attribueIdx:[7,13],precisionFactor:4},"line-offset":{name:"offset",type:0,attribueIdx:[8,14],precisionFactor:2},"line-pattern":{name:"tlbr",type:12,attribueIdx:[9,9],isOptional:!0},"line-dasharray":{name:"tlbr",type:11,attribueIdx:[9,9],isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=d.GEOMETRY_LAYOUT,this.properties=d.ATTRIBUTES,this.propertyInfos=d.ATTRIBUTES_INFO}}const b=[new u._("positionAndOffset",4,o.pe.SHORT,0,16),new u._("iconInfo",4,o.pe.UNSIGNED_SHORT,8,16)],_=[new u._("opacityInfo",1,o.pe.UNSIGNED_BYTE,0,1)];class v extends c{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10,attribueIdx:[2,8]},"icon-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"icon-halo-color":{name:"haloColor",type:10,attribueIdx:[4,10]},"icon-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[5,11]},"icon-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[6,12]},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0,attribueIdx:[7,13]}}}constructor(t){super(t),this.baseGeometryLayout=b,this.opacityLayout=_,this.properties=v.ATTRIBUTES,this.propertyInfos=v.ATTRIBUTES_INFO}}class w extends c{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10,attribueIdx:[4,10]},"text-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"text-halo-color":{name:"haloColor",type:10,attribueIdx:[5,11]},"text-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[6,12]},"text-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[7,13]},"text-size":{name:"size",type:1,isLayout:!0,attribueIdx:[2,8]}}}constructor(t){super(t),this.baseGeometryLayout=b,this.opacityLayout=_,this.properties=w.ATTRIBUTES,this.propertyInfos=w.ATTRIBUTES_INFO}}var x=r(68197),T=r(85334);function I(t,e,r,i){const n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;function c(t){return((s*t+a)*t+n)*t}function h(t){return(3*s*t+2*a)*t+n}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let r,i,n,a,s,o;for(n=t,o=0;o<8;o++){if(a=c(n)-t,Math.abs(a)<e)return n;if(s=h(n),Math.abs(s)<1e-6)break;n-=a/s}if(r=0,i=1,n=t,n<r)return r;if(n>i)return i;for(;r<i;){if(a=c(n),Math.abs(a-t)<e)return n;t>a?r=n:i=n,n=.5*(i-r)+r}return n}(t,e))}}const P={ease:I(.25,.1,.25,1),linear:I(0,0,1,1),easeIn:I(.42,0,1,1),easeOut:I(0,0,.58,1),easeInOut:I(.42,0,.58,1)};P["ease-in"]=P.easeIn,P["ease-out"]=P.easeOut,P["ease-in-out"]=P.easeInOut;const E={kind:"null"},L={kind:"number"},D={kind:"string"},A={kind:"boolean"},k={kind:"color"},S={kind:"object"},M={kind:"value"};function N(t,e){return{kind:"array",itemType:t,n:e}}const O=[E,L,D,A,k,S,N(M)];function R(t){if("array"===t.kind){const e=R(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function U(t){if(null===t)return E;if("string"==typeof t)return D;if("boolean"==typeof t)return A;if("number"==typeof t)return L;if(t instanceof x.A)return k;if(Array.isArray(t)){let e;for(const r of t){const t=U(r);if(e){if(e!==t){e=M;break}}else e=t}return N(e||M,t.length)}return"object"==typeof t?S:M}function B(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||B(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(const e of O)if(B(t,e))return!0;return e.kind===t.kind}function z(t){if(null===t)return"";const e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof x.A?t.toString():JSON.stringify(t)}class V{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}class F{constructor(){this.type=M}static parse(t){if(t.length>1)throw new Error('"id" does not expect arguments');return new F}evaluate(t,e){return t?.id}}class G{constructor(){this.type=D}static parse(t){if(t.length>1)throw new Error('"geometry-type" does not expect arguments');return new G}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class ${constructor(){this.type=S}static parse(t){if(t.length>1)throw new Error('"properties" does not expect arguments');return new $}evaluate(t,e){return t?.values}}class C{constructor(){this.type=L}static parse(t){if(t.length>1)throw new Error('"zoom" does not expect arguments');return new C}evaluate(t,e){return e}}class Y{constructor(t,e,r){this._lhs=t,this._rhs=e,this._compare=r,this.type=A}static parse(t,e,r){if(3!==t.length&&4!==t.length)throw new Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw new Error(`"${t[0]}" collator not supported`);return new Y(xt(t[1],e),xt(t[2],e),r)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class q{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw new Error('"!" expects 1 argument');return new q(xt(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class j{constructor(t){this._args=t,this.type=A}static parse(t,e){const r=[];for(let i=1;i<t.length;i++)r.push(xt(t[i],e));return new j(r)}evaluate(t,e){for(const r of this._args)if(!r.evaluate(t,e))return!1;return!0}}class W{constructor(t){this._args=t,this.type=A}static parse(t,e){const r=[];for(let i=1;i<t.length;i++)r.push(xt(t[i],e));return new W(r)}evaluate(t,e){for(const r of this._args)if(r.evaluate(t,e))return!0;return!1}}class H{constructor(t){this._args=t,this.type=A}static parse(t,e){const r=[];for(let i=1;i<t.length;i++)r.push(xt(t[i],e));return new H(r)}evaluate(t,e){for(const r of this._args)if(r.evaluate(t,e))return!1;return!0}}class Z{constructor(t,e,r){this.type=t,this._args=e,this._fallback=r}static parse(t,e,r){if(t.length<4)throw new Error('"case" expects at least 3 arguments');if(t.length%2==1)throw new Error('"case" expects an odd number of arguments');let i;const n=[];for(let a=1;a<t.length-1;a+=2){const s=xt(t[a],e),o=xt(t[a+1],e,r);i||(i=o.type),n.push({condition:s,output:o})}const a=xt(t[t.length-1],e,r);return i||(i=a.type),new Z(i,n,a)}evaluate(t,e){for(const r of this._args)if(r.condition.evaluate(t,e))return r.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class K{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw new Error('"coalesce" expects at least 1 argument');let r;const i=[];for(let n=1;n<t.length;n++){const a=xt(t[n],e);r||(r=a.type),i.push(a)}return new K(r,i)}evaluate(t,e){for(const r of this._args){const i=r.evaluate(t,e);if(null!==i)return i}return null}}class Q{constructor(t,e,r,i,n){this.type=t,this._input=e,this._labels=r,this._outputs=i,this._fallback=n}static parse(t,e){if(t.length<3)throw new Error('"match" expects at least 3 arguments');if(t.length%2==0)throw new Error('"case" expects an even number of arguments');let r;const i=xt(t[1],e),n=[],a={};let s;for(let i=2;i<t.length-1;i+=2){let o=t[i];Array.isArray(o)||(o=[o]);for(const t of o){const e=typeof t;if("string"!==e&&"number"!==e)throw new Error('"match" requires string or number literal as labels');if(s){if(e!==s)throw new Error('"match" requires labels to have the same type')}else s=e;a[t]=n.length}const l=xt(t[i+1],e);r||(r=l.type),n.push(l)}return new Q(r,i,a,n,xt(t[t.length-1],e))}evaluate(t,e){const r=this._input.evaluate(t,e);return(this._outputs[this._labels[r]]||this._fallback).evaluate(t,e)}}class X{constructor(t,e,r,i,n){this._operator=t,this.type=e,this.interpolation=r,this.input=i,this._stops=n}static parse(t,e,r){const i=t[0];if(t.length<5)throw new Error(`"${i}" expects at least 4 arguments`);const n=t[1];if(!Array.isArray(n)||0===n.length)throw new Error(`"${n}" is not a valid interpolation`);switch(n[0]){case"linear":if(1!==n.length)throw new Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==n.length||"number"!=typeof n[1])throw new Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==n.length)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){const e=n[t];if("number"!=typeof e||e<0||e>1)throw new Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw new Error(`"${t[0]}" unknown interpolation type "${n[0]}"`)}if(t.length%2!=1)throw new Error(`"${i}" expects an even number of arguments`);const a=xt(t[2],e,L);let s;"interpolate-hcl"===i||"interpolate-lab"===i?s=k:r&&"value"!==r.kind&&(s=r);const o=[];for(let r=3;r<t.length;r+=2){const n=t[r];if("number"!=typeof n)throw new Error(`"${i}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=n)throw new Error(`"${i}" requires strictly ascending stop inputs`);const a=xt(t[r+1],e,s);s||(s=a.type),o.push([n,a])}if(s&&s!==k&&s!==L&&("array"!==s.kind||s.itemType!==L))throw new Error(`"${i}" cannot interpolate type ${R(s)}`);return new X(i,s,n,a,o)}evaluate(t,e){const r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);const i=this.input.evaluate(t,e);if(i<=r[0][0])return r[0][1].evaluate(t,e);if(i>=r[r.length-1][0])return r[r.length-1][1].evaluate(t,e);let a=0;for(;++a<r.length&&!(i<r[a][0]););const s=r[a-1][0],o=r[a][0],l=X.interpolationRatio(this.interpolation,i,s,o),u=r[a-1][1].evaluate(t,e),c=r[a][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(c))return u.map((t,e)=>(0,n.GW)(t,c[e],l));if("color"===this.type.kind&&u instanceof x.A&&c instanceof x.A){const t=new x.A(u),e=new x.A(c);return new x.A([(0,n.GW)(t.r,e.r,l),(0,n.GW)(t.g,e.g,l),(0,n.GW)(t.b,e.b,l),(0,n.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof c)return(0,n.GW)(u,c,l);throw new Error(`"${this._operator}" cannot interpolate type ${R(this.type)}`)}if("interpolate-hcl"===this._operator){const t=(0,T.RH)(u),e=(0,T.RH)(c),r=e.h-t.h,i=(0,T.$)({h:t.h+l*(r>180||r<-180?r-360*Math.round(r/360):r),c:(0,n.GW)(t.c,e.c,l),l:(0,n.GW)(t.l,e.l,l)});return new x.A({a:(0,n.GW)(u.a,c.a,l),...i})}if("interpolate-lab"===this._operator){const t=(0,T.ZD)(u),e=(0,T.ZD)(c),r=(0,T.$)({l:(0,n.GW)(t.l,e.l,l),a:(0,n.GW)(t.a,e.a,l),b:(0,n.GW)(t.b,e.b,l)});return new x.A({a:(0,n.GW)(u.a,c.a,l),...r})}throw new Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){const r=this._stops;if(1===r.length)return 0;if(t>=r[r.length-1][0])return 0;let i=0;for(;++i<r.length&&!(t<r[i][0]););const n=r[i-1][0],a=r[i][0];return X.interpolationRatio(this.interpolation,e,n,a)}getInterpolationRange(t){const e=this._stops;if(1===e.length){const t=e[0][0];return[t,t]}const r=e[e.length-1][0];if(t>=r)return[r,r];let i=0;for(;++i<e.length&&!(t<e[i][0]););return[e[i-1][0],e[i][0]]}static interpolationRatio(t,e,r,i){let n=0;return"linear"===t[0]?n=X._exponentialInterpolationRatio(e,1,r,i):"exponential"===t[0]?n=X._exponentialInterpolationRatio(e,t[1],r,i):"cubic-bezier"===t[0]&&(n=I(t[1],t[2],t[3],t[4])(X._exponentialInterpolationRatio(e,1,r,i),1e-5)),n<0?n=0:n>1&&(n=1),n}static _exponentialInterpolationRatio(t,e,r,i){const n=i-r;if(0===n)return 0;const a=t-r;return 1===e?a/n:(e**a-1)/(e**n-1)}}class J{constructor(t,e,r){this.type=t,this._input=e,this._stops=r}static parse(t,e){if(t.length<5)throw new Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw new Error('"step" expects an even number of arguments');const r=xt(t[1],e,L);let i;const n=[];n.push([-1/0,xt(t[2],e)]);for(let r=3;r<t.length;r+=2){const a=t[r];if("number"!=typeof a)throw new Error('"step" requires stop inputs as literal numbers');if(n.length&&n[n.length-1][0]>=a)throw new Error('"step" requires strictly ascending stop inputs');const s=xt(t[r+1],e);i||(i=s.type),n.push([a,s])}return new J(i,r,n)}evaluate(t,e){const r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);const i=this._input.evaluate(t,e);let n=0;for(;++n<r.length&&!(i<r[n][0]););return this._stops[n-1][1].evaluate(t,e)}}class tt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,r){if(t.length<4)throw new Error('"let" expects at least 3 arguments');if(t.length%2==1)throw new Error('"let" expects an odd number of arguments');const i=new V(e);for(let r=1;r<t.length-1;r+=2){const n=t[r];if("string"!=typeof n)throw new Error(`"let" requires a string to define variable names - found ${n}`);i.add(n,xt(t[r+1],e))}const n=xt(t[t.length-1],i,r);return new tt(n.type,n)}evaluate(t,e){return this._output.evaluate(t,e)}}class et{constructor(t,e){this.type=t,this.output=e}static parse(t,e,r){if(2!==t.length||"string"!=typeof t[1])throw new Error('"var" requires just one literal string argument');const i=e.get(t[1]);if(!i)throw new Error(`${t[1]} must be defined before being used in a "var" expression`);return new et(r||M,i)}evaluate(t,e){return this.output.evaluate(t,e)}}class rt{constructor(t,e,r){this.type=t,this._index=e,this._array=r}static parse(t,e){if(3!==t.length)throw new Error('"at" expects 2 arguments');const r=xt(t[1],e,L),i=xt(t[2],e);return new rt(i.type.itemType,r,i)}evaluate(t,e){const r=this._index.evaluate(t,e),i=this._array.evaluate(t,e);if(r<0||r>=i.length)throw new Error('"at" index out of bounds');if(r!==Math.floor(r))throw new Error('"at" index must be an integer');return i[r]}}class it{constructor(t){this._args=t,this.type=M}static parse(t,e){const r=t.slice(1).map(t=>Array.isArray(t)?xt(t,e):t);return new it(r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r&&r.evaluate?r.evaluate(t,e):r)),!r||r.length<2&&r.length%2==1?"":(t=>Array.from({length:t.length/2},(e,r)=>(t=>t)(t[2*r],t[2*r+1])))(r).join()}}class nt{constructor(t,e){this._key=t,this._obj=e,this.type=M}static parse(t,e){let r,i;switch(t.length){case 2:return r=xt(t[1],e),new nt(r);case 3:return r=xt(t[1],e),i=xt(t[2],e),new nt(r,i);default:throw new Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){const r=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[r]:t?.values[r]}}class at{constructor(t,e){this._key=t,this._obj=e,this.type=A}static parse(t,e){let r,i;switch(t.length){case 2:return r=xt(t[1],e),new at(r);case 3:return r=xt(t[1],e),i=xt(t[2],e),new at(r,i);default:throw new Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){const r=this._key.evaluate(t,e);return this._obj?r in this._obj.evaluate(t,e):!!t?.values[r]}}class st{constructor(t,e){this._key=t,this._vals=e,this.type=A}static parse(t,e){if(3!==t.length)throw new Error('"in" expects 2 arguments');return new st(xt(t[1],e),xt(t[2],e))}evaluate(t,e){const r=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(r)}}class ot{constructor(t,e,r){this._item=t,this._array=e,this._from=r,this.type=L}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"index-of" expects 3 or 4 arguments');const r=xt(t[1],e),i=xt(t[2],e);if(4===t.length){const n=xt(t[3],e,L);return new ot(r,i,n)}return new ot(r,i)}evaluate(t,e){const r=this._item.evaluate(t,e),i=this._array.evaluate(t,e);if(this._from){const n=this._from.evaluate(t,e);if(n!==Math.floor(n))throw new Error('"index-of" index must be an integer');return i.indexOf(r,n)}return i.indexOf(r)}}class lt{constructor(t){this._arg=t,this.type=L}static parse(t,e){if(2!==t.length)throw new Error('"length" expects 2 arguments');const r=xt(t[1],e);return new lt(r)}evaluate(t,e){const r=this._arg.evaluate(t,e);if("string"==typeof r)return r.length;if(Array.isArray(r))return r.length;throw new Error('"length" expects string or array')}}class ut{constructor(t,e,r,i){this.type=t,this._array=e,this._from=r,this._to=i}static parse(t,e){if(t.length<3||t.length>4)throw new Error('"slice" expects 2 or 3 arguments');const r=xt(t[1],e),i=xt(t[2],e,L);if(i.type!==L)throw new Error('"slice" index must return a number');if(4===t.length){const n=xt(t[3],e,L);if(n.type!==L)throw new Error('"slice" index must return a number');return new ut(r.type,r,i,n)}return new ut(r.type,r,i)}evaluate(t,e){const r=this._array.evaluate(t,e);if(!Array.isArray(r)&&"string"!=typeof r)throw new Error('"slice" input must be an array or a string');const i=this._from.evaluate(t,e);if(i<0||i>=r.length)throw new Error('"slice" index out of bounds');if(i!==Math.floor(i))throw new Error('"slice" index must be an integer');if(this._to){const n=this._to.evaluate(t,e);if(n<0||n>=r.length)throw new Error('"slice" index out of bounds');if(n!==Math.floor(n))throw new Error('"slice" index must be an integer');return r.slice(i,n)}return r.slice(i)}}class ct{constructor(){this.type=A}static parse(t){if(1!==t.length)throw new Error('"has-id" expects no arguments');return new ct}evaluate(t,e){return void 0!==t?.id}}class ht{constructor(t,e){this._args=t,this._calculate=e,this.type=L}static parse(t,e,r){const i=t.slice(1).map(t=>xt(t,e));return new ht(i,r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class pt{constructor(t,e){this._args=t,this._calculate=e,this.type=L}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){const r=t.slice(1).map(t=>xt(t,e));return new pt(r,pt.ops[t[0]])}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class yt{constructor(t){this._args=t,this.type=D}static parse(t,e){return new yt(t.slice(1).map(t=>xt(t,e)))}evaluate(t,e){return this._args.map(r=>r.evaluate(t,e)).join("")}}class ft{constructor(t,e){this._arg=t,this._calculate=e,this.type=D}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw new Error(`${t[0]} expects 1 argument`);const r=xt(t[1],e);return new ft(r,ft.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class mt{constructor(t){this._args=t,this.type=k}static parse(t,e){if(4!==t.length)throw new Error('"rgb" expects 3 arguments');const r=t.slice(1).map(t=>xt(t,e));return new mt(r)}evaluate(t,e){const r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e));return new x.A({r,g:i,b:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}}class gt{constructor(t){this._args=t,this.type=k}static parse(t,e){if(5!==t.length)throw new Error('"rgba" expects 4 arguments');const r=t.slice(1).map(t=>xt(t,e));return new gt(r)}evaluate(t,e){const r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),n=this._validate(this._args[2].evaluate(t,e)),a=this._validateAlpha(this._args[3].evaluate(t,e));return new x.A({r,g:i,b:n,a})}_validate(t){if("number"!=typeof t||t<0||t>255)throw new Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw new Error(`${t}: invalid alpha color component`);return t}}class dt{constructor(t){this._color=t,this.type=N(L,4)}static parse(t,e){if(2!==t.length)throw new Error('"to-rgba" expects 1 argument');const r=xt(t[1],e);return new dt(r)}evaluate(t,e){return new x.A(this._color.evaluate(t,e)).toRgba()}}class bt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){const r=t[0];if(t.length<2)throw new Error(`${r} expects at least one argument`);let i,n=1;if("array"===r){if(t.length>2){switch(t[1]){case"string":i=D;break;case"number":i=L;break;case"boolean":i=A;break;default:throw new Error('"array" type argument must be string, number or boolean')}n++}else i=M;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw new Error('"array" length argument must be a positive integer literal');n++}i=N(i,e)}else switch(r){case"string":i=D;break;case"number":i=L;break;case"boolean":i=A;break;case"object":i=S}const a=[];for(;n<t.length;n++){const r=xt(t[n],e);a.push(r)}return new bt(i,a)}evaluate(t,e){let r;for(const i of this._args){const n=i.evaluate(t,e);if(r=U(n),B(r,this.type))return n}throw new Error(`Expected ${R(this.type)} but got ${R(r)}`)}}class _t{static{this.types={"to-boolean":A,"to-color":k,"to-number":L,"to-string":D}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){const r=t[0],i=_t.types[r];if(i===A||i===D){if(2!==t.length)throw new Error(`${r} expects one argument`)}else if(t.length<2)throw new Error(`${r} expects at least one argument`);const n=[];for(let r=1;r<t.length;r++){const i=xt(t[r],e);n.push(i)}return new _t(i,n)}evaluate(t,e){if(this.type===A)return Boolean(this._args[0].evaluate(t,e));if(this.type===D)return z(this._args[0].evaluate(t,e));if(this.type===L){for(const r of this._args){const i=Number(r.evaluate(t,e));if(!isNaN(i))return i}return null}if(this.type===k){for(const r of this._args)try{const i=_t.toColor(r.evaluate(t,e));if(i instanceof x.A)return i}catch{}return null}}static toBoolean(t){return Boolean(t)}static toString(t){return z(t)}static toNumber(t){const e=Number(t);if(isNaN(e))throw new Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof x.A)return t;if("string"==typeof t){const e=x.A.fromString(t);if(e)return e;throw new Error(`"${t}" is not a color`)}if(Array.isArray(t))return x.A.fromArray(t);throw new Error(`"${t}" is not a color`)}}class vt{constructor(t){this._val=t,this.type=U(t)}static parse(t){if(2!==t.length)throw new Error('"literal" expects 1 argument');return new vt(t[1])}evaluate(t,e){return this._val}}class wt{constructor(t){this._arg=t,this.type=D}static parse(t,e){if(2!==t.length)throw new Error('"typeof" expects 1 argument');return new wt(xt(t[1],e))}evaluate(t,e){return R(U(this._arg.evaluate(t,e)))}}function xt(t,e,r){const i=typeof t;if("string"===i||"boolean"===i||"number"===i||null===t){if(r)switch(r.kind){case"string":"string"!==i&&(t=_t.toString(t));break;case"number":"number"!==i&&(t=_t.toNumber(t));break;case"color":t=_t.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw new Error("Expression must be a non empty array");const n=t[0];if("string"!=typeof n)throw new Error("First element of expression must be a string");const a=Tt[n];if(void 0===a)throw new Error(`Invalid expression operator "${n}"`);if(!a)throw new Error(`Unimplemented expression operator "${n}"`);return a.parse(t,e,r)}const Tt={array:bt,boolean:bt,collator:null,format:it,image:null,literal:vt,number:bt,"number-format":null,object:bt,string:bt,"to-boolean":_t,"to-color":_t,"to-number":_t,"to-string":_t,typeof:wt,accumulated:null,"feature-state":null,"geometry-type":G,id:F,"line-progress":null,properties:$,at:rt,get:nt,has:at,in:st,"index-of":ot,length:lt,slice:ut,"!":q,"!=":class extends Y{static parse(t,e){return Y.parse(t,e,(t,e)=>t!==e)}},"<":class extends Y{static parse(t,e){return Y.parse(t,e,(t,e)=>t<e)}},"<=":class extends Y{static parse(t,e){return Y.parse(t,e,(t,e)=>t<=e)}},"==":class extends Y{static parse(t,e){return Y.parse(t,e,(t,e)=>t===e)}},">":class extends Y{static parse(t,e){return Y.parse(t,e,(t,e)=>t>e)}},">=":class extends Y{static parse(t,e){return Y.parse(t,e,(t,e)=>t>=e)}},all:j,any:W,case:Z,coalesce:K,match:Q,within:null,interpolate:X,"interpolate-hcl":X,"interpolate-lab":X,step:J,let:tt,var:et,concat:yt,downcase:ft,"is-supported-script":null,"resolved-locale":null,upcase:ft,rgb:mt,rgba:gt,"to-rgba":dt,"-":class extends ht{static parse(t,e){switch(t.length){case 2:return ht.parse(t,e,t=>-t[0]);case 3:return ht.parse(t,e,t=>t[0]-t[1]);default:throw new Error('"-" expects 1 or 2 arguments')}}},"*":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=1;for(const r of t)e*=r;return e})}},"/":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]/t[1]);throw new Error('"/" expects 2 arguments')}},"%":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]%t[1]);throw new Error('"%" expects 2 arguments')}},"^":class extends ht{static parse(t,e){if(3===t.length)return ht.parse(t,e,t=>t[0]**t[1]);throw new Error('"^" expects 1 or 2 arguments')}},"+":class extends ht{static parse(t,e){return ht.parse(t,e,t=>{let e=0;for(const r of t)e+=r;return e})}},abs:pt,acos:pt,asin:pt,atan:pt,ceil:pt,cos:pt,e:pt,floor:pt,ln:pt,ln2:pt,log10:pt,log2:pt,max:pt,min:pt,pi:pt,round:pt,sin:pt,sqrt:pt,tan:pt,zoom:C,"heatmap-density":null,"has-id":ct,none:H};class It{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{const e=xt(t,null,A);return new It(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t))return!0;if(0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;const e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return It.convertComparison("==",t[1],t[2]);case"!=":return It.negate(It.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return It.convertComparison(e,t[1],t[2]);case"in":return It.convertIn(t[1],t.slice(2));case"!in":return It.negate(It.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return It.convertCombining(e,t.slice(1));case"has":return It.convertHas(t[1]);case"!has":return It.negate(It.convertHas(t[1]));default:throw new Error("Unexpected legacy filter.")}}static convertComparison(t,e,r){switch(e){case"$type":return[t,["geometry-type"],r];case"$id":return[t,["id"],r];default:return[t,["get",e],r]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class Pt{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var Et=r(40876);class Lt{constructor(t,e){let r;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":r=!0;break;case"array":r="number"===t.value;break;default:r=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&Tt[e[0]]){const r={number:L,color:k,string:D,boolean:A,enum:D};try{const i=xt(e,null,"array"===t.type?N(r[t.value]||M,t.length):r[t.type]);this.getValue=this._buildExpression(i,t),this.isDataDriven=!0,i instanceof X&&i.input instanceof C&&(this.interpolator=i)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}r&&"interval"===e.type&&(r=!1);const i=e?.stops&&e.stops.length>0;if(i)for(const r of e.stops)r[1]=this._validate(r[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),i)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=r?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else i?this.getValue=r?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=Lt._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=z(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(r,i)=>{try{const n=t.evaluate(i,r);return void 0===n?e.default:this._validate(n,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(r,i)=>{let n;return i&&(n=i.values[t.property]),void 0!==n&&(n=this._validate(n,e)),null!=n?n:void 0!==t.default?t.default:e.default}}_buildCategorical(t,e){return(r,i)=>{let n;return i&&(n=i.values[t.property]),n=this._categorical(n,t.stops),void 0!==n?n:void 0!==t.default?t.default:e.default}}_buildInterval(t,e){return(r,i)=>{let n;return i&&(n=i.values[t.property]),"number"==typeof n?this._interval(n,t.stops):void 0!==t.default?t.default:e.default}}_buildInterpolate(t,e){return(r,i)=>{let n;return i&&(n=i.values[t.property]),"number"==typeof n?this._interpolate(n,t.stops,t.base||1):void 0!==t.default?t.default:e.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){const r=e.length;for(let i=0;i<r;i++)if(e[i][0]===t)return e[i][1]}_interval(t,e){const r=e.length;let i=0;for(let n=0;n<r&&e[n][0]<=t;n++)i=n;return e[i][1]}_interpolate(t,e,r){let i,a;const s=e.length;for(let r=0;r<s;r++){const n=e[r];if(!(n[0]<=t)){a=n;break}i=n}if(i&&a){const e=a[0]-i[0],s=t-i[0],o=1===r?s/e:(r**s-1)/(r**e-1);if(Array.isArray(i[1])){const t=i[1],e=a[1],r=[];for(let i=0;i<t.length;i++)r.push((0,n.GW)(t[i],e[i],o));return r}return(0,n.GW)(i[1],a[1],o)}return i?i[1]:a?a[1]:void 0}static _isEmpty(t){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,Et.Vm)(t)??void 0:t instanceof x.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}class Dt{constructor(t,e,r,i,n=null){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"]??e.source,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=r,this.uid=i,this.sourceType=n,t){case 0:this._layoutDefinition=Pt.backgroundLayoutDefinition,this._paintDefinition=Pt.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Pt.fillLayoutDefinition,this._paintDefinition=Pt.fillPaintDefinition;break;case 2:this._layoutDefinition=Pt.lineLayoutDefinition,this._paintDefinition=Pt.linePaintDefinition;break;case 3:this._layoutDefinition=Pt.symbolLayoutDefinition,this._paintDefinition=Pt.symbolPaintDefinition;break;case 4:this._layoutDefinition=Pt.circleLayoutDefinition,this._paintDefinition=Pt.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=It.createFilter(this.filter)}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,r){let i;const n=this._layoutProperties[t];return n&&(i=n.getValue(e,r)),void 0===i&&(i=this._layoutDefinition[t].default),i}getPaintValue(t,e,r){let i;const n=this._paintProperties[t];return n&&(i=n.getValue(e,r)),void 0===i&&(i=this._paintDefinition[t].default),i}isPainterDataDriven(){const t=this._paintProperties;if(t)for(const e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,r,i,n,a,s,o){return!1}getFeatureInflatedBounds(t,e,r,i){return null}_parseLayout(t){const e={};for(const r in t){const i=this._layoutDefinition[r];i&&(e[r]=new Lt(i,t[r]))}return e}_parsePaint(t){const e={};for(const r in t){const i=this._paintDefinition[r];i&&(e[r]=new Lt(i,t[r]))}return e}computeAttributesKey(t,e,r,i){let n=0,a=0;for(const t of e){let e=3;if(t&&t!==i){const i=r[t],{isLayout:n,isOptional:a}=i,s=n?this.getLayoutProperty(t):this.getPaintProperty(t);e=s?.interpolator?2:s?.isDataDriven?1:a&&!s?3:0}a|=e<<n,n+=2}return a<<3|t}}class At extends Dt{constructor(t,e,r,i,n=null){super(t,e,r,i,n),this.backgroundMaterial=new y(this.computeAttributesKey(0,y.ATTRIBUTES,y.ATTRIBUTES_INFO))}}class kt extends Dt{constructor(t,e,r,i,n=null){super(t,e,r,i,n);const a=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),o=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=a?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||o?.isDataDriven;const l=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!l,this.hasDataDrivenOutlineColor=l?.isDataDriven,this.hasDataDrivenOutline=l?l.isDataDriven:!!a&&a.isDataDriven,this.hasDataDrivenOutline=(l?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new m(this.computeAttributesKey(1,m.ATTRIBUTES,m.ATTRIBUTES_INFO)),this.outlineMaterial=new g(this.computeAttributesKey(2,this.outlineUsesFillColor?g.ATTRIBUTES_FILL:g.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?g.ATTRIBUTES_INFO_FILL:g.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,r,i){const n=Ut(t);if(!n)return null;const a=this.getPaintValue("fill-translate",e,t),s=i*Math.max(a[0],a[1]);return n[0]-=s,n[2]-=s,n[1]+=s,n[3]+=s,n}isIntersectingFeature(t,e,r,i,a,s,o,l){const u=i.getGeometry();if(!u)return!1;const c=8/l.normalizationRatio,h=c/o;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const p=(0,n.yM)(this.getPaintValue("fill-translate",a,i),this.getPaintValue("fill-translate-anchor",a,i),s,h);return t-=c*p.x,e-=c*p.y,!!(0,n.s3)(t,e,u)||(0,n.ru)(t,e,u,r)}}class St extends Dt{constructor(t,e,r,i,n=null){super(t,e,r,i,n);const a=this.getPaintProperty("line-pattern");if(this.lineMaterial=new d(this.computeAttributesKey(3,d.ATTRIBUTES,d.ATTRIBUTES_INFO,a?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){const t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<1.05){const t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let r;switch(e){case 0:default:r="Butt";break;case 1:r="Round";break;case 2:r="Square"}return`dasharray-[${t.toString()}]-${r}`}getFeatureInflatedBounds(t,e,r,i){const n=Ut(t);if(!n)return null;const a=this.getPaintValue("line-translate",e,t),s=i*Math.max(a[0],a[1]);n[0]-=s,n[2]-=s,n[1]+=s,n[3]+=s;const o=i*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=i*(this.getPaintValue("line-width",e,t)/2);return n[0]-=o+l,n[1]-=o+l,n[2]+=o+l,n[3]+=o+l,n}isIntersectingFeature(t,e,r,i,a,s,o,l){let u=i.getGeometry();if(!u)return!1;const c=8/l.normalizationRatio,h=c/o;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const p=(0,n.yM)(this.getPaintValue("line-translate",a,i),this.getPaintValue("line-translate-anchor",a,i),s,h);t-=c*p.x,e-=c*p.y;const y=h*this.getPaintValue("line-offset",a,i)||0;0!==y&&(u=(0,n.cP)(u,-y));const f=this.getPaintValue("line-width",a,i);return(0,n.ru)(t,e,u,h*(f/2)+r)}}class Mt extends Dt{constructor(t,e,r,i,n=null){super(t,e,r,i,n),this.iconMaterial=new v(this.computeAttributesKey(4,v.ATTRIBUTES,v.ATTRIBUTES_INFO)),this.textMaterial=new w(this.computeAttributesKey(6,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Nt extends Dt{constructor(t,e,r,i,n=null){super(t,e,r,i,n),this.circleMaterial=new f(this.computeAttributesKey(5,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,r,i){const n=Ut(t);if(!n)return null;const a=this.getPaintValue("circle-translate",e,t),s=Math.max(a[0],a[1]);n[0]-=s,n[2]-=s,n[1]+=s,n[3]+=s;const o=i*(8*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2);return n[0]-=o,n[1]-=o,n[2]+=o,n[3]+=o,n}isIntersectingFeature(t,e,r,i,a,s,o,l){const u=i.getGeometry();if(!u)return!1;const c=8/l.normalizationRatio/o;t=t/l.normalizationRatio+l.normalizationOffsetX,e=e/l.normalizationRatio+l.normalizationOffsetY;const h=(0,n.yM)(this.getPaintValue("circle-translate",a,i),this.getPaintValue("circle-translate-anchor",a,i),s,c),p=c*(this.getPaintValue("circle-radius",a,i)+this.getPaintValue("circle-stroke-width",a,i));let y,f;for(const i of u)if(i)for(const n of i)if(y=n.x+h.x,f=n.y+h.y,Math.sqrt((t-y)*(t-y)+(e-f)*(e-f))-r<=p)return!0;return!1}}class Ot{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=r?0:1),i=t.getLayoutProperty("icon-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("icon-anchor",e),i=t.getLayoutProperty("icon-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("icon-offset",e),i=t.getLayoutProperty("icon-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("icon-padding",e),i=t.getLayoutProperty("icon-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("icon-rotate",e),i=t.getLayoutProperty("icon-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Rt{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=r?0:1),i=t.getLayoutProperty("text-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("text-anchor",e),i=t.getLayoutProperty("text-justify"),i?.isDataDriven?this._justifyProp=i:this.justify=t.getLayoutValue("text-justify",e),i=t.getLayoutProperty("text-letter-spacing"),i?.isDataDriven?this._letterSpacingProp=i:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),i=t.getLayoutProperty("text-line-height"),i?.isDataDriven?this._lineHeightProp=i:this.lineHeight=t.getLayoutValue("text-line-height",e),i=t.getLayoutProperty("text-max-angle"),i?.isDataDriven?this._maxAngleProp=i:this.maxAngle=t.getLayoutValue("text-max-angle",e),i=t.getLayoutProperty("text-max-width"),i?.isDataDriven?this._maxWidthProp=i:this.maxWidth=t.getLayoutValue("text-max-width",e),i=t.getLayoutProperty("text-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("text-offset",e),i=t.getLayoutProperty("text-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("text-padding",e),i=t.getLayoutProperty("text-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("text-rotate",e),i=t.getLayoutProperty("text-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("text-size",e),i=t.getLayoutProperty("text-writing-mode"),i?.isDataDriven?this._writingModeProp=i:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Ut(t){const e=t?.getGeometry();if(null==e)return null;let r=1/0,n=1/0,a=-1/0,s=-1/0;for(const t of e)if(t)for(const e of t)r=Math.min(r,e.x),n=Math.min(n,e.y),a=Math.max(a,e.x),s=Math.max(s,e.y);return(0,i.fA)(r,n,a,s)}},45013(t,e,r){r.d(e,{A:()=>a});var i=r(4718),n=r(4264);class a{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,i.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,r)=>this._create(t,e,r)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){const e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){const r=this.getStyleLayerByUID(t),i=0!==r?.getLayoutValue("symbol-placement",e);let n=r?.getLayoutValue("icon-rotation-alignment",e);2===n&&(n=i?0:1);let a=r?.getLayoutValue("text-rotation-alignment",e);2===a&&(a=i?0:1);const s=r?.getPaintValue("icon-translate",e),o=r?.getPaintValue("icon-translate-anchor",e),l=r?.getPaintValue("text-translate",e),u=r?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:r?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:r?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:r?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:r?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:n,textRotationAlignment:a,iconTranslateAnchor:o,iconTranslate:s,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){const e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){const e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;const r=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let i,n=!0;const s=this._layerByName[t.id];if(s){const o=this.layers.indexOf(s);e||(e=o),e===o?(n=!1,i=a._recreateLayer(t,s,this._getSourceType(t.source)),this.layers[e]=i,r.layers[e]=t):(this.layers.splice(o,1),r.layers.splice(o,1),i=this._create(t,e,this.layers),this.layers.splice(e,0,i),r.layers.splice(e,0,t))}else i=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(i),r.layers.push(t)):(this.layers.splice(e,0,i),r.layers.splice(e,0,t));this._layerByName[t.id]=i,this._uidToLayer.set(i.uid,i),n&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){const e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){const e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);const r=this.layers.indexOf(e);this.layers.splice(r,1),this._style.layers.splice(r,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){const e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){const e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){const r=this._layerByName[t];if(!r)return;const i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:r.layout,paint:e},n=a._recreateLayer(i,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=n,this._style.layers[s].paint=e,this._layerByName[r.id]=n,this._uidToLayer.set(r.uid,n)}setLayoutProperties(t,e){const r=this._layerByName[t];if(!r)return;const i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:e,paint:r.paint},n=a._recreateLayer(i,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=n,this._style.layers[s].layout=e,this._layerByName[r.id]=n,this._uidToLayer.set(r.uid,n)}setStyleLayerVisibility(t,e){const r=this._layerByName[t];if(!r)return;const i=r.layout||{};i.visibility=e;const n={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:i,paint:r.paint},s=a._recreateLayer(n,r,r.sourceType),o=this.layers.indexOf(r);this.layers[o]=s,this._style.layers[o].layout=i,this._layerByName[r.id]=s,this._uidToLayer.set(r.uid,s)}getStyleLayerVisibility(t){const e="string"==typeof t?this._layerByName[t]:this._uidToLayer.get(t);if(!e)return!1;const r=e.getLayoutProperty("visibility");return!r||1!==r.getValue()}_recomputeZValues(){const t=this.layers,e=1/(t.length+1);for(let r=0;r<t.length;r++)t[r].z=1-(1+r)*e}_identifyRefLayers(){const t=[],e=[];let r=0;for(const i of this.layers){const n=i.layout;if(1===i.type){const e=i;let a=i.source+"|"+i.sourceLayer;a+="|"+(n?.visibility??""),a+="|"+i.minzoom,a+="|"+i.maxzoom,a+="|"+JSON.stringify(i.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(a+="|"+r),t.push({key:a,layer:i})}else if(2===i.type){const t=i,a=i.paint,s=null!=a&&(null!=a["line-pattern"]||null!=a["line-dasharray"]);let o=i.source+"|"+i.sourceLayer;o+="|"+(n?.visibility??""),o+="|"+i.minzoom,o+="|"+i.maxzoom,o+="|"+JSON.stringify(i.filter),o+="|"+(void 0!==n?n["line-cap"]:""),o+="|"+(void 0!==n?n["line-join"]:""),(t.hasDataDrivenLine||s)&&(o+="|"+r),e.push({key:o,layer:i})}++r}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){let e,r;t.sort((t,e)=>t.key<e.key?-1:t.key>e.key?1:0);const i=t.length;for(let n=0;n<i;n++){const a=t[n];if(a.key===e)a.layer.refLayerId=r;else if(e=a.key,r=a.layer.id,1===a.layer.type){if(!a.layer.getPaintProperty("fill-outline-color"))for(let s=n+1;s<i;s++){const i=t[s];if(i.key!==e)break;if(i.layer.getPaintProperty("fill-outline-color")){t[n]=i,t[s]=a,r=i.layer.id;break}}}else if(2===a.layer.type){let s=a.layer;for(let o=n+1;o<i;o++){const i=t[o];if(i.key!==e)break;const l=i.layer;(s.canUseThinTessellation&&!l.canUseThinTessellation||!s.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(s=l,t[n]=i,t[o]=a,r=i.layer.id)}}}}_create(t,e,r){const i=1-(1+e)*(1/(r.length+1)),a=this._runningId++,s=this._getSourceType(t.source);switch(t.type){case"background":return new n.lf(0,t,i,a,s);case"fill":return new n.A4(1,t,i,a,s);case"line":return new n.tU(2,t,i,a,s);case"symbol":return new n.V1(3,t,i,a,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,i,a,s)}return null}_getSourceType(t){return this._style.sources?.[t]?.type??null}static _recreateLayer(t,e,r){switch(t.type){case"background":return new n.lf(0,t,e.z,e.uid,r);case"fill":return new n.A4(1,t,e.z,e.uid,r);case"line":return new n.tU(2,t,e.z,e.uid,r);case"symbol":return new n.V1(3,t,e.z,e.uid,r);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new n.L(4,t,e.z,e.uid,r)}return null}}},85079(t,e,r){r.d(e,{Sk:()=>s,Xk:()=>n,_u:()=>a});var i=r(21818);function n(t){let e=0;return(0,i.z)(new Map(t.map(({name:t,count:r})=>{const i=[t,e];return 16===r?e+=4:9===r?e+=3:++e,i})))}function a(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:i})=>{e.set(t,r),16===i?r+=4:9===i?r+=3:++r})),e}function s(t){return a(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>i});class i{constructor(t,e,r,i,n,a=!1,s=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=i,this.stride=n,this.normalized=a,this.divisor=s,this.integer=o}}}}]);