@arcgis/core 5.2.0-next.7 → 5.2.0-next.8

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 (446) hide show
  1. package/arcgisGlobal.d.ts +4 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/07cc5743cb6a9fd68adb.js +1 -0
  4. package/assets/esri/core/workers/chunks/0cbd7f5fe24271942abd.js +1 -0
  5. package/assets/esri/core/workers/chunks/0ecc1bc1686844cdd60e.js +1 -0
  6. package/assets/esri/core/workers/chunks/0f75c19d8e296a32e329.js +1 -0
  7. package/assets/esri/core/workers/chunks/174cc2e69e5b5a13d880.js +1 -0
  8. package/assets/esri/core/workers/chunks/18f980465db5a86153d1.js +1 -0
  9. package/assets/esri/core/workers/chunks/1996f0a930abdd97b855.js +1 -0
  10. package/assets/esri/core/workers/chunks/1c8436b27a3d3cde5cfc.js +1 -0
  11. package/assets/esri/core/workers/chunks/1cb1f125dccbf8c8cac9.js +1 -0
  12. package/assets/esri/core/workers/chunks/1dd06335bb2d35c66339.js +1 -0
  13. package/assets/esri/core/workers/chunks/1f289aa69dd6b6be534a.js +1 -0
  14. package/assets/esri/core/workers/chunks/2185e8a52c5e29d46680.js +1 -0
  15. package/assets/esri/core/workers/chunks/{da29cf0e64065631a470.js → 24810c36ae09bb4e83dc.js} +1 -1
  16. package/assets/esri/core/workers/chunks/26583db2af1a1cc456e5.js +1 -0
  17. package/assets/esri/core/workers/chunks/274b82cb183ddd0042f3.js +1 -0
  18. package/assets/esri/core/workers/chunks/27c6def22c2b0791ce9e.js +1 -0
  19. package/assets/esri/core/workers/chunks/2c9ba638d1f31c82f9f5.js +1 -0
  20. package/assets/esri/core/workers/chunks/2d2895f1fdf44d212a4d.js +1 -0
  21. package/assets/esri/core/workers/chunks/2dbc2fd0f2dde505c465.js +1 -0
  22. package/assets/esri/core/workers/chunks/2dbcdfdf000226bfe746.js +1 -0
  23. package/assets/esri/core/workers/chunks/2e6382d50bf012064eae.js +1 -0
  24. package/assets/esri/core/workers/chunks/30f1909c5ef1835b8507.js +1 -0
  25. package/assets/esri/core/workers/chunks/31918a0d9886dedf385f.js +1 -0
  26. package/assets/esri/core/workers/chunks/{1c029b03ed836f393a50.js → 3248001d9dfb9153699e.js} +1 -1
  27. package/assets/esri/core/workers/chunks/3297658ccd8d4b9ce733.js +1 -0
  28. package/assets/esri/core/workers/chunks/{716a4d7e8b908b81870b.js → 32f26757e36704923286.js} +1 -1
  29. package/assets/esri/core/workers/chunks/3529afab0c2444275d91.js +1 -0
  30. package/assets/esri/core/workers/chunks/36dac6ab51d9dbdd091d.js +1 -0
  31. package/assets/esri/core/workers/chunks/390fda094fa8695d98cf.js +1 -0
  32. package/assets/esri/core/workers/chunks/39596715e84d0da2f803.js +30 -0
  33. package/assets/esri/core/workers/chunks/398eb3100a282e4736bb.js +1 -0
  34. package/assets/esri/core/workers/chunks/{b23009d9f8eb7c20ce45.js → 3b15933f65f59625a650.js} +1 -1
  35. package/assets/esri/core/workers/chunks/3b3f91a61e3f29af1fb2.js +1 -0
  36. package/assets/esri/core/workers/chunks/{f815106d439ff1f76e51.js → 3b837b512999e6ab24bc.js} +1 -1
  37. package/assets/esri/core/workers/chunks/3d20c86f1fe877bf884b.js +1 -0
  38. package/assets/esri/core/workers/chunks/3dc5fbecc427df1fd827.js +1 -0
  39. package/assets/esri/core/workers/chunks/3e65b4b18760bde8ceee.js +1 -0
  40. package/assets/esri/core/workers/chunks/3ff7aa216cd794d951e8.js +1 -0
  41. package/assets/esri/core/workers/chunks/{8e1865392681d390ab2e.js → 401ee7fa500adad77db1.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{60915a3708a34da1977e.js → 426156137f279d979ddd.js} +1 -1
  43. package/assets/esri/core/workers/chunks/4517630bf869205bab87.js +1 -0
  44. package/assets/esri/core/workers/chunks/48f1c3a7c9f16d6896f6.js +1 -0
  45. package/assets/esri/core/workers/chunks/{cfd28eba44cf5a296c6d.js → 49308bdc36373555f1af.js} +1 -1
  46. package/assets/esri/core/workers/chunks/5075e85e1eafd431a8c0.js +1 -0
  47. package/assets/esri/core/workers/chunks/5121768c70f1e03b685c.js +1 -0
  48. package/assets/esri/core/workers/chunks/5201105ca11a2d450460.js +1 -0
  49. package/assets/esri/core/workers/chunks/528ed0bd8dc149ead023.js +1 -0
  50. package/assets/esri/core/workers/chunks/52f354bf80ee5ab0379a.js +1 -0
  51. package/assets/esri/core/workers/chunks/538537f9bc866d9caa75.js +1 -0
  52. package/assets/esri/core/workers/chunks/58a7cdebc3d182c15ec6.js +1 -0
  53. package/assets/esri/core/workers/chunks/58ac245ff7fb57c1004f.js +1 -0
  54. package/assets/esri/core/workers/chunks/58acc18b92533166135d.js +1 -0
  55. package/assets/esri/core/workers/chunks/597aa39cdb5366ef9a74.js +1 -0
  56. package/assets/esri/core/workers/chunks/5bfae465872760e7af6d.js +1 -0
  57. package/assets/esri/core/workers/chunks/5cb274e5759f7ca0d4ed.js +1 -0
  58. package/assets/esri/core/workers/chunks/5d3ddbf94539cb4f493e.js +1 -0
  59. package/assets/esri/core/workers/chunks/{542f5469f7b42026b24f.js → 5d62d1920e3e35fc0192.js} +1 -1
  60. package/assets/esri/core/workers/chunks/5dd441db1e74dc9b56e9.js +1 -0
  61. package/assets/esri/core/workers/chunks/630ad47857de3cf726d1.js +1 -0
  62. package/assets/esri/core/workers/chunks/64114a7d2da162987958.js +1 -0
  63. package/assets/esri/core/workers/chunks/6821462e5c1e9c76010a.js +1 -0
  64. package/assets/esri/core/workers/chunks/684d3cb4fb233180b2d0.js +1 -0
  65. package/assets/esri/core/workers/chunks/686c51fd2144e132783e.js +1 -0
  66. package/assets/esri/core/workers/chunks/68f9b2da1fd08785320f.js +2 -0
  67. package/assets/esri/core/workers/chunks/69e98de578f467a35054.js +1 -0
  68. package/assets/esri/core/workers/chunks/6a3d207308b29651f397.js +1 -0
  69. package/assets/esri/core/workers/chunks/6aabde21b0b376d95888.js +1 -0
  70. package/assets/esri/core/workers/chunks/6c6396bfcdab12e68deb.js +1 -0
  71. package/assets/esri/core/workers/chunks/6d616b66fb32904b55a1.js +1 -0
  72. package/assets/esri/core/workers/chunks/{bcb021a167580bb1619f.js → 6ef3b8d67b498d655a99.js} +1 -1
  73. package/assets/esri/core/workers/chunks/6f125b4ed06c0022dee6.js +1 -0
  74. package/assets/esri/core/workers/chunks/6f4825c3ef1fe202ab82.js +1 -0
  75. package/assets/esri/core/workers/chunks/6f5d61f734ec40dafabb.js +1 -0
  76. package/assets/esri/core/workers/chunks/{fce7995c26953bfd8d3d.js → 70229007d594536ba6a3.js} +1 -1
  77. package/assets/esri/core/workers/chunks/71e55381fdff3fc2542e.js +1 -0
  78. package/assets/esri/core/workers/chunks/{90953a827bc89d0e6bd5.js → 72cfb186e50537bcdd19.js} +1 -1
  79. package/assets/esri/core/workers/chunks/72d67cc3a382e83bf1a2.js +1 -0
  80. package/assets/esri/core/workers/chunks/7748743d4be047094d67.js +1 -0
  81. package/assets/esri/core/workers/chunks/78c53aeb0a408ab3c80c.js +1 -0
  82. package/assets/esri/core/workers/chunks/7b5c1030a7cf0f382cc4.js +1 -0
  83. package/assets/esri/core/workers/chunks/7cee81c5aa1e6b7d2452.js +1 -0
  84. package/assets/esri/core/workers/chunks/7e89cb9ff615742e0894.js +1 -0
  85. package/assets/esri/core/workers/chunks/80f4f686ce403cb2693f.js +1 -0
  86. package/assets/esri/core/workers/chunks/{8477b5fdd99c6ac5c27b.js → 851705cf276eae8d4d37.js} +1 -1
  87. package/assets/esri/core/workers/chunks/89e09276086745aa21fa.js +1 -0
  88. package/assets/esri/core/workers/chunks/{4894997bfa438f66da36.js → 8a8c5e5ce457ca004687.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{b79428c5093614174e76.js → 8b0a01ebc86ab226f01f.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{452c01cecbbd1e370098.js → 8f93e6fc11a158d4f1ee.js} +1 -1
  91. package/assets/esri/core/workers/chunks/93bd56396b8cd020f965.js +1 -0
  92. package/assets/esri/core/workers/chunks/{359d3acb3953e64e5a78.js → 93ceb74ac88ef460fe5f.js} +1 -1
  93. package/assets/esri/core/workers/chunks/957f7b8de4aecb6f644e.js +1 -0
  94. package/assets/esri/core/workers/chunks/{875cce0be4f6c89f80f3.js → 9629601de5e44ffe90ea.js} +2 -2
  95. package/assets/esri/core/workers/chunks/976ab2be6c244768c08a.js +1 -0
  96. package/assets/esri/core/workers/chunks/{e785f76c1a75cb1d1e1f.js → 99101789035f1787c630.js} +1 -1
  97. package/assets/esri/core/workers/chunks/99e5296192ab98fd0d99.js +1 -0
  98. package/assets/esri/core/workers/chunks/9d5f7573bfe3b051daf1.js +1 -0
  99. package/assets/esri/core/workers/chunks/a0c00c6fe60db49b3ab9.js +1 -0
  100. package/assets/esri/core/workers/chunks/a2247f4c3116efb16c4f.js +1 -0
  101. package/assets/esri/core/workers/chunks/a4245bd4e67a428fd835.js +1 -0
  102. package/assets/esri/core/workers/chunks/a442534ac0956a68b769.js +1 -0
  103. package/assets/esri/core/workers/chunks/a4e9a17dacbb52444d75.js +1 -0
  104. package/assets/esri/core/workers/chunks/{8bdca6f06c8b5fedd917.js → a5abba59e738c3240c22.js} +1 -1
  105. package/assets/esri/core/workers/chunks/{62dfbdc847be4800e833.js → a9a1293b1d5302fb3b54.js} +8 -12
  106. package/assets/esri/core/workers/chunks/a9fc53ae040320e49834.js +1 -0
  107. package/assets/esri/core/workers/chunks/aa118c1bcd922b8ac328.js +1 -0
  108. package/assets/esri/core/workers/chunks/aae0049c2c3e15a813e8.js +1 -0
  109. package/assets/esri/core/workers/chunks/ac33b10fe65f9e9e824f.js +1 -0
  110. package/assets/esri/core/workers/chunks/adc32f6b45ea3026fc34.js +1 -0
  111. package/assets/esri/core/workers/chunks/af31e62499d45bdab3c3.js +1 -0
  112. package/assets/esri/core/workers/chunks/b22a1c98271c2e4d8808.js +1 -0
  113. package/assets/esri/core/workers/chunks/{9f4681713f03365a2a53.js → b666027b9022fa346a79.js} +1 -1
  114. package/assets/esri/core/workers/chunks/b73c146d3e550eaf07eb.js +1 -0
  115. package/assets/esri/core/workers/chunks/c0cbc50e5afd68bd485c.js +1 -0
  116. package/assets/esri/core/workers/chunks/c2a65de34f6a6c89c652.js +1 -0
  117. package/assets/esri/core/workers/chunks/c357c0a08b99c1e7f290.js +1 -0
  118. package/assets/esri/core/workers/chunks/{4a23b27bfbcfa08fd9a7.js → c3cf9e6e91f71c9cc5f3.js} +1 -1
  119. package/assets/esri/core/workers/chunks/c3ff2ff0a86a9143d7a5.js +1 -0
  120. package/assets/esri/core/workers/chunks/{e545df5ea7c0ced92cee.js → c424a66f1546275e2bcb.js} +1 -1
  121. package/assets/esri/core/workers/chunks/c60b4f2dd5fccdf362a7.js +1 -0
  122. package/assets/esri/core/workers/chunks/c6d0b4875b6b8d6bc25a.js +1 -0
  123. package/assets/esri/core/workers/chunks/c911f0b5bdd43b66b731.js +1 -0
  124. package/assets/esri/core/workers/chunks/c9a4601073e1a3eee9d0.js +1 -0
  125. package/assets/esri/core/workers/chunks/ccffaba50674adba7a0f.js +1 -0
  126. package/assets/esri/core/workers/chunks/{24646a1176ce34039155.js → cdf6ad970dc1893dac58.js} +1 -1
  127. package/assets/esri/core/workers/chunks/d13e003c9293cb7e2852.js +1 -0
  128. package/assets/esri/core/workers/chunks/d24e027bb8b2c09f25c8.js +1 -0
  129. package/assets/esri/core/workers/chunks/d2df8c328054dc6cb7b7.js +1 -0
  130. package/assets/esri/core/workers/chunks/d5c35a75fd4c41def420.js +1 -0
  131. package/assets/esri/core/workers/chunks/{5e3e0d7b85dfd52d1c7d.js → d78b7cac322755e87eb8.js} +1 -1
  132. package/assets/esri/core/workers/chunks/d7be278aed1fb37ad5ec.js +1 -0
  133. package/assets/esri/core/workers/chunks/d9695794cfaa014a55b1.js +1 -0
  134. package/assets/esri/core/workers/chunks/da1e8b338ab9fe9e0a8e.js +1 -0
  135. package/assets/esri/core/workers/chunks/e1bf87077541da6853c6.js +1 -0
  136. package/assets/esri/core/workers/chunks/e279bcbe4f10e87bde6c.js +1 -0
  137. package/assets/esri/core/workers/chunks/e4406baf206b9e4c7e4f.js +1 -0
  138. package/assets/esri/core/workers/chunks/e499252cb52f7aed49a0.js +1 -0
  139. package/assets/esri/core/workers/chunks/{e178cd0e9178d6716410.js → e5837e5ac6ef761f26a2.js} +1 -1
  140. package/assets/esri/core/workers/chunks/e6a7272b59a4c2e34dca.js +1 -0
  141. package/assets/esri/core/workers/chunks/e912b515704e20313e53.js +1 -0
  142. package/assets/esri/core/workers/chunks/eac683a37339aa558455.js +1 -0
  143. package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +1 -0
  144. package/assets/esri/core/workers/chunks/ed3d16a5b4084ef61f8a.js +1 -0
  145. package/assets/esri/core/workers/chunks/ee07f54bc77fe9f8575a.js +1 -0
  146. package/assets/esri/core/workers/chunks/{e094364e54981c91e1b4.js → eeea5710275c967e8d51.js} +1 -1
  147. package/assets/esri/core/workers/chunks/ef46ef4f0ee9f2aeaa4a.js +1 -0
  148. package/assets/esri/core/workers/chunks/efb4aa5886730ea377bd.js +1 -0
  149. package/assets/esri/core/workers/chunks/{485d20152495c27b8074.js → f2a268c69f2a5566381b.js} +1 -1
  150. package/assets/esri/core/workers/chunks/f590db684d88e72bd79b.js +1 -0
  151. package/assets/esri/core/workers/chunks/f69df22a5c64389ebe28.js +1 -0
  152. package/assets/esri/core/workers/chunks/{f60292d97bcdbf19165b.js → f6d047358d14328f3622.js} +1 -1
  153. package/assets/esri/core/workers/chunks/f7fca88d120d45bb782a.js +1 -0
  154. package/assets/esri/core/workers/chunks/f819854098d63fe4ccdb.js +1 -0
  155. package/assets/esri/core/workers/chunks/f8f3579d0c1b65762902.js +1 -0
  156. package/assets/esri/core/workers/chunks/f98118127469449ca145.js +1 -0
  157. package/assets/esri/core/workers/chunks/f9ed05d4ad1f44d033bb.js +1 -0
  158. package/assets/esri/core/workers/chunks/fb6605be0c5e36785543.js +1 -0
  159. package/assets/esri/core/workers/chunks/fbe7dae0b4bf2d172487.js +1 -0
  160. package/assets/esri/core/workers/chunks/fc4d9be62cf5e9758842.js +1 -0
  161. package/assets/esri/core/workers/chunks/fd70a25ffdf2cc6c5be2.js +1 -0
  162. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  163. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  164. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  165. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  166. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +38 -8
  167. package/assets/esri/themes/dark/main.css +1 -1
  168. package/assets/esri/themes/light/main.css +1 -1
  169. package/assets/esri/themes/light/view.css +1 -1
  170. package/chunks/GlowComposition.glsl.js +2 -2
  171. package/chunks/bundle2.js +1 -1
  172. package/chunks/lyr3DMain.js +1 -1
  173. package/chunks/lyr3DWorker.js +1 -1
  174. package/chunks/vxlLayer.js +1 -1
  175. package/config.js +1 -1
  176. package/core/screenUtils.js +1 -1
  177. package/core/sql.d.ts +1 -1
  178. package/geometry/Extent.d.ts +0 -13
  179. package/geometry/Geometry.d.ts +10 -8
  180. package/geometry/Multipoint.d.ts +9 -0
  181. package/geometry/Multipoint.js +1 -1
  182. package/geometry/Point.d.ts +15 -71
  183. package/geometry/Polygon.js +1 -1
  184. package/geometry/support/geometryUtils.js +1 -1
  185. package/graphic/AnnotationGraphicOrigin.d.ts +34 -0
  186. package/graphic/AnnotationGraphicOrigin.js +2 -0
  187. package/graphic/DimensionFeatureGraphicOrigin.d.ts +34 -0
  188. package/graphic/DimensionFeatureGraphicOrigin.js +2 -0
  189. package/identity/IdentityManagerBase.js +1 -1
  190. package/interfaces.d.ts +10 -0
  191. package/kernel.js +1 -1
  192. package/layers/AnnotationLayer.d.ts +263 -32
  193. package/layers/AnnotationLayer.js +1 -1
  194. package/layers/DimensionFeatureLayer.d.ts +263 -32
  195. package/layers/DimensionFeatureLayer.js +1 -1
  196. package/layers/FeatureLayer.d.ts +1 -1
  197. package/layers/GeoJSONLayer.d.ts +7 -7
  198. package/layers/SceneLayer.d.ts +4 -2
  199. package/layers/VideoLayer.d.ts +7 -1
  200. package/layers/VideoLayer.js +1 -1
  201. package/layers/catalog/CatalogFootprintLayer.d.ts +40 -10
  202. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  203. package/layers/graphics/sources/parquet/ParquetFileInfo.js +2 -0
  204. package/layers/graphics/sources/parquet/ParquetFileStatistics.js +2 -0
  205. package/layers/graphics/sources/parquet/PortalParquetFileProvider.js +1 -1
  206. package/layers/graphics/sources/parquet/PortalParquetLayerFileProvider.js +1 -1
  207. package/layers/graphics/sources/parquet/UrlsFileProvider.js +1 -1
  208. package/layers/graphics/sources/parquet/createFileProvider.js +1 -1
  209. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  210. package/layers/mixins/FeatureLayerBase.d.ts +40 -16
  211. package/layers/mixins/TemporalLayer.d.ts +4 -2
  212. package/layers/support/AnnotationSublayer.d.ts +44 -0
  213. package/layers/support/AnnotationSublayer.js +2 -0
  214. package/layers/support/commonProperties.js +1 -1
  215. package/layers/support/featureLayerUtils.js +1 -1
  216. package/layers/support/layerUtils.js +1 -1
  217. package/layers/support/parquetUtils.js +1 -1
  218. package/layers/support/tiles3DUtils.js +1 -1
  219. package/layers/support/timeSeriesUtils.js +1 -1
  220. package/layers/video/types.d.ts +61 -1
  221. package/libs/parquet/parquet.js +1 -1
  222. package/package.json +1 -1
  223. package/request/types.d.ts +18 -20
  224. package/support/revision.js +1 -1
  225. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  226. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
  227. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  228. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  229. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  230. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  231. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  232. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  233. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  234. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  235. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  236. package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
  237. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  238. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  239. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  240. package/views/2d/layers/KMLLayerView2D.js +1 -1
  241. package/views/2d/layers/MapNotesLayerView2D.js +1 -1
  242. package/views/2d/layers/MediaLayerView2D.js +1 -1
  243. package/views/2d/layers/RouteLayerView2D.js +1 -1
  244. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  245. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  246. package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
  247. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  248. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  249. package/views/2d/support/hitTestUtils.js +1 -1
  250. package/views/3d/analysis/LineOfSight/LineOfSightAggregateManipulatedObject3D.js +2 -0
  251. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  252. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
  253. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  254. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  255. package/views/3d/analysis/LineOfSight/LineOfSightPlacementLeafPlugin.js +2 -0
  256. package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +1 -1
  257. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +2 -0
  258. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  259. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  260. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  261. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
  262. package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +1 -1
  263. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  264. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  265. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  266. package/views/3d/interactive/editingTools/reshape/isSupportedObject.js +1 -1
  267. package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
  268. package/views/3d/interactive/editingTools/visualElementUtils.js +1 -1
  269. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  270. package/views/3d/layers/FlowSubView3D.js +1 -1
  271. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  272. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  273. package/views/3d/terrain/OverlayManager.js +1 -1
  274. package/views/3d/webgl/RenderNode.d.ts +25 -4
  275. package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +6 -10
  276. package/views/draw/plugins/PolygonPlugin.js +1 -1
  277. package/views/interactive/interactiveToolUtils.js +1 -1
  278. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  279. package/views/interactive/snapping/LineSnapper.js +1 -1
  280. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  281. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  282. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  283. package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
  284. package/views/interactive/snapping/SnappingManager.js +1 -1
  285. package/views/interactive/snapping/snappingUtils.js +1 -1
  286. package/views/layers/FeatureLikeLayerView.d.ts +25 -1
  287. package/views/layers/FeatureLikeLayerView.js +1 -1
  288. package/views/types.d.ts +4 -4
  289. package/webdoc/support/webdocSaveUtils.js +1 -1
  290. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +10 -2
  291. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  292. package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
  293. package/widgets/BatchAttributeForm/attachmentUtils.d.ts +14 -0
  294. package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
  295. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  296. package/widgets/BatchAttributeForm/css.js +1 -1
  297. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +8 -6
  298. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  299. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  300. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
  301. package/widgets/BatchAttributeForm/inputs/support/attachmentValidationCriteriaState.d.ts +5 -0
  302. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  303. package/widgets/BatchAttributeForm/inputs/types.d.ts +8 -1
  304. package/widgets/BatchAttributeForm/interfaceUtils.js +1 -1
  305. package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +1 -1
  306. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  307. package/widgets/BatchAttributeForm.d.ts +9 -1
  308. package/widgets/BatchAttributeForm.js +1 -1
  309. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  310. package/widgets/FeatureTable/Grid/Column.js +1 -1
  311. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  312. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  313. package/widgets/FeatureTable/Grid/GroupColumn.js +1 -1
  314. package/widgets/FeatureTable.js +1 -1
  315. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  316. package/widgets/Print/PrintViewModel.js +1 -1
  317. package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +7 -1
  318. package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
  319. package/widgets/support/ContingentValuesManager.js +1 -1
  320. package/assets/esri/core/workers/chunks/02aaeaa988e9e7d65a7f.js +0 -1
  321. package/assets/esri/core/workers/chunks/03354ad3d74d858173b4.js +0 -1
  322. package/assets/esri/core/workers/chunks/09a4139fc6d069ab6928.js +0 -1
  323. package/assets/esri/core/workers/chunks/0a510acf50915e00c62b.js +0 -1
  324. package/assets/esri/core/workers/chunks/0a780a883abfcdf0b900.js +0 -1
  325. package/assets/esri/core/workers/chunks/0fbf9bf52ecb4cd8293b.js +0 -1
  326. package/assets/esri/core/workers/chunks/119d352dd586f2bb61ec.js +0 -1
  327. package/assets/esri/core/workers/chunks/130784a27661de6b52a5.js +0 -1
  328. package/assets/esri/core/workers/chunks/145364aa20b4435294c2.js +0 -1
  329. package/assets/esri/core/workers/chunks/1595dc499a06b23b6a96.js +0 -1
  330. package/assets/esri/core/workers/chunks/16713986893adfbc9331.js +0 -1
  331. package/assets/esri/core/workers/chunks/179c9fe4ac83b42e5976.js +0 -1
  332. package/assets/esri/core/workers/chunks/19dcae83be0fc0aced02.js +0 -1
  333. package/assets/esri/core/workers/chunks/1c64e10f966e26af6fed.js +0 -1
  334. package/assets/esri/core/workers/chunks/1eabe746481e0b228498.js +0 -1
  335. package/assets/esri/core/workers/chunks/201007cf1a91e2b126fc.js +0 -1
  336. package/assets/esri/core/workers/chunks/20d0adc678f11981059c.js +0 -1
  337. package/assets/esri/core/workers/chunks/227eff8aa4a6f5f03bc2.js +0 -1
  338. package/assets/esri/core/workers/chunks/233ff588798c8a5eedf4.js +0 -1
  339. package/assets/esri/core/workers/chunks/238478cfe493fd4a6100.js +0 -1
  340. package/assets/esri/core/workers/chunks/24647e7424798dccdaf5.js +0 -1
  341. package/assets/esri/core/workers/chunks/249616ea2d90d40a8299.js +0 -1
  342. package/assets/esri/core/workers/chunks/24d9e4f1c7b8ff0d2cce.js +0 -1
  343. package/assets/esri/core/workers/chunks/2b36a54927f5a7281da3.js +0 -1
  344. package/assets/esri/core/workers/chunks/2bcd4d395bfe6a19ccc8.js +0 -1
  345. package/assets/esri/core/workers/chunks/2c8584ec1c3c9fd5aba2.js +0 -1
  346. package/assets/esri/core/workers/chunks/2d374cc8c54a722a7afe.js +0 -1
  347. package/assets/esri/core/workers/chunks/2e11b4e9d66474a60064.js +0 -1
  348. package/assets/esri/core/workers/chunks/2fa080539d039c92ce08.js +0 -1
  349. package/assets/esri/core/workers/chunks/3109b05fe4fc40d4f25b.js +0 -1
  350. package/assets/esri/core/workers/chunks/31442f25d550ead58fc4.js +0 -1
  351. package/assets/esri/core/workers/chunks/32323b0e0fcecd8f640e.js +0 -1
  352. package/assets/esri/core/workers/chunks/330da3828eefd8d72d3f.js +0 -1
  353. package/assets/esri/core/workers/chunks/33e0130e6a40fc768978.js +0 -1
  354. package/assets/esri/core/workers/chunks/343ba5ea459e96ba79c6.js +0 -1
  355. package/assets/esri/core/workers/chunks/388e71e8f2ec41bfa5a9.js +0 -1
  356. package/assets/esri/core/workers/chunks/3a5c1c501808352857bd.js +0 -1
  357. package/assets/esri/core/workers/chunks/3aacaa1be5efeac23a37.js +0 -1
  358. package/assets/esri/core/workers/chunks/3b765a8cac9e92f644f2.js +0 -1
  359. package/assets/esri/core/workers/chunks/3bf6d55511cd7722eb93.js +0 -1
  360. package/assets/esri/core/workers/chunks/3e012cd3ca4451f89f59.js +0 -1
  361. package/assets/esri/core/workers/chunks/3fbb6ff940156a981983.js +0 -1
  362. package/assets/esri/core/workers/chunks/40910c69307e2d2d3f28.js +0 -1
  363. package/assets/esri/core/workers/chunks/40c4e14e7bb505ef10a3.js +0 -1
  364. package/assets/esri/core/workers/chunks/4104fa1ede36bcee9be5.js +0 -1
  365. package/assets/esri/core/workers/chunks/423a9882abd4a6dadf86.js +0 -1
  366. package/assets/esri/core/workers/chunks/428561df7ba6f02e2d80.js +0 -1
  367. package/assets/esri/core/workers/chunks/45323491f9005629c602.js +0 -1
  368. package/assets/esri/core/workers/chunks/46d0a25d33b5b328cfce.js +0 -1
  369. package/assets/esri/core/workers/chunks/47dd2bfecc5c4b5f10f0.js +0 -1
  370. package/assets/esri/core/workers/chunks/4845df00f6ebcce6ea3e.js +0 -1
  371. package/assets/esri/core/workers/chunks/48fcc10768d93e95a04e.js +0 -1
  372. package/assets/esri/core/workers/chunks/4a9dd9f8aa98882218f3.js +0 -1
  373. package/assets/esri/core/workers/chunks/4bfffdfbe6d467f143a4.js +0 -1
  374. package/assets/esri/core/workers/chunks/518046d2b95a7590a092.js +0 -1
  375. package/assets/esri/core/workers/chunks/54dad475dc806a38c287.js +0 -1
  376. package/assets/esri/core/workers/chunks/552945a73a95cd2a9f54.js +0 -1
  377. package/assets/esri/core/workers/chunks/5553279998ae07b60f5f.js +0 -1
  378. package/assets/esri/core/workers/chunks/58155f24f8ed6aca7a21.js +0 -1
  379. package/assets/esri/core/workers/chunks/5838f46d341d2fde42ee.js +0 -1
  380. package/assets/esri/core/workers/chunks/592a599f514de373dead.js +0 -1
  381. package/assets/esri/core/workers/chunks/5aba23584e0b230c75f5.js +0 -1
  382. package/assets/esri/core/workers/chunks/5f9bacee6fbf9ac1bca0.js +0 -1
  383. package/assets/esri/core/workers/chunks/62206d5d497b95fc4caf.js +0 -1
  384. package/assets/esri/core/workers/chunks/624b1bb269744142b835.js +0 -1
  385. package/assets/esri/core/workers/chunks/62fc3c367f736c73b0d7.js +0 -1
  386. package/assets/esri/core/workers/chunks/643c33a98f2d30a92001.js +0 -1
  387. package/assets/esri/core/workers/chunks/64daa2a714e59d22bbd4.js +0 -1
  388. package/assets/esri/core/workers/chunks/65621650a53f69f7b05a.js +0 -1
  389. package/assets/esri/core/workers/chunks/6a5356ebed70e0f8f979.js +0 -1
  390. package/assets/esri/core/workers/chunks/6c9933f948efd7923aa1.js +0 -1
  391. package/assets/esri/core/workers/chunks/6cab67fc7044ee9b863b.js +0 -1
  392. package/assets/esri/core/workers/chunks/7014e73dfd3c8baa704c.js +0 -1
  393. package/assets/esri/core/workers/chunks/75839240022b280929f7.js +0 -1
  394. package/assets/esri/core/workers/chunks/76589434d573111a8fb4.js +0 -1
  395. package/assets/esri/core/workers/chunks/767ea5b455b3823afd09.js +0 -1
  396. package/assets/esri/core/workers/chunks/77859a61d059738d057f.js +0 -1
  397. package/assets/esri/core/workers/chunks/78aa5bc6af2758da20d0.js +0 -1
  398. package/assets/esri/core/workers/chunks/7b564226def99fcf79d8.js +0 -1
  399. package/assets/esri/core/workers/chunks/7bbffe07e62897928773.js +0 -1
  400. package/assets/esri/core/workers/chunks/7cadfd7444a2a05cf2fb.js +0 -1
  401. package/assets/esri/core/workers/chunks/7df94cb985db41815fad.js +0 -2
  402. package/assets/esri/core/workers/chunks/823789261ca3338f0fa8.js +0 -1
  403. package/assets/esri/core/workers/chunks/8419934bec7723b0feef.js +0 -1
  404. package/assets/esri/core/workers/chunks/84b0b6e099d949e0fea5.js +0 -1
  405. package/assets/esri/core/workers/chunks/9133c1b7cc1c9da27deb.js +0 -1
  406. package/assets/esri/core/workers/chunks/92ab5886aa2d8b9b179f.js +0 -1
  407. package/assets/esri/core/workers/chunks/9a6e62ef984e9c5babc4.js +0 -1
  408. package/assets/esri/core/workers/chunks/9b676606bf839b7aa433.js +0 -1
  409. package/assets/esri/core/workers/chunks/9d27cc631bab8aa7479e.js +0 -1
  410. package/assets/esri/core/workers/chunks/9dcfaca1f4fa8c8026ac.js +0 -1
  411. package/assets/esri/core/workers/chunks/9f23a61c60949459c14f.js +0 -30
  412. package/assets/esri/core/workers/chunks/a03c4c0bf138734a002e.js +0 -1
  413. package/assets/esri/core/workers/chunks/a0fa60a24e58f7a47e41.js +0 -1
  414. package/assets/esri/core/workers/chunks/a261f4c22224511fdfff.js +0 -1
  415. package/assets/esri/core/workers/chunks/a2ac139d0975085279a6.js +0 -1
  416. package/assets/esri/core/workers/chunks/a806ac351ef5da04c250.js +0 -1
  417. package/assets/esri/core/workers/chunks/ab94c9f62462d7a98f6a.js +0 -1
  418. package/assets/esri/core/workers/chunks/abdb05754c50776c3edd.js +0 -1
  419. package/assets/esri/core/workers/chunks/ad488985824fbb830ed6.js +0 -1
  420. package/assets/esri/core/workers/chunks/b0ac4b0b7aec70cfe6eb.js +0 -1
  421. package/assets/esri/core/workers/chunks/bfbd1ca28ed2f263e58f.js +0 -1
  422. package/assets/esri/core/workers/chunks/c1b6de0d728d25d7905a.js +0 -1
  423. package/assets/esri/core/workers/chunks/c44be4aaba829e6d149d.js +0 -1
  424. package/assets/esri/core/workers/chunks/ca6907e14b1dde4d5c07.js +0 -1
  425. package/assets/esri/core/workers/chunks/cbbd94c53e75efc99876.js +0 -1
  426. package/assets/esri/core/workers/chunks/ce0e627a5e1cb78adce8.js +0 -1
  427. package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
  428. package/assets/esri/core/workers/chunks/d21480b078ec9680d4c4.js +0 -1
  429. package/assets/esri/core/workers/chunks/d81291dac1932350eccd.js +0 -1
  430. package/assets/esri/core/workers/chunks/da3c54e27a808f4fcc18.js +0 -1
  431. package/assets/esri/core/workers/chunks/dc6d50e1097a920ff820.js +0 -1
  432. package/assets/esri/core/workers/chunks/dd58286dde3b20356f84.js +0 -1
  433. package/assets/esri/core/workers/chunks/dfeddb7b17fa9eaae64c.js +0 -1
  434. package/assets/esri/core/workers/chunks/e4e0c5a45cf32973d5d5.js +0 -1
  435. package/assets/esri/core/workers/chunks/e638391801ad83fe4a68.js +0 -1
  436. package/assets/esri/core/workers/chunks/e755477dc78e9d6038d4.js +0 -1
  437. package/assets/esri/core/workers/chunks/e7712467db46e1385cf4.js +0 -1
  438. package/assets/esri/core/workers/chunks/ed2cb60e4f17f46fb78d.js +0 -1
  439. package/assets/esri/core/workers/chunks/edb55329305becdb204f.js +0 -1
  440. package/assets/esri/core/workers/chunks/f02fe24177e56a7e42b2.js +0 -1
  441. package/assets/esri/core/workers/chunks/f1fb2f12371f4c562079.js +0 -1
  442. package/assets/esri/core/workers/chunks/f3dfe1bd1146a6927407.js +0 -1
  443. package/assets/esri/core/workers/chunks/ff48334528d2554db4fe.js +0 -1
  444. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +0 -2
  445. /package/assets/esri/core/workers/chunks/{7df94cb985db41815fad.js.LICENSE.txt → 68f9b2da1fd08785320f.js.LICENSE.txt} +0 -0
  446. /package/assets/esri/core/workers/chunks/{875cce0be4f6c89f80f3.js.LICENSE.txt → 9629601de5e44ffe90ea.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8732],{35982(e,t,a){a.d(t,{B:()=>h});var i=a(4576),r=a(71511),n=a(36563),_=a(53966),s=a(97768),o=a(17676),l=a(83027);class h{constructor(e,t,a,i,r={}){this._mainMethod=t,this._transferLists=a,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,l.h)(e,{...r,schedule:i}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>_.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const a=new d(e,t);return this._listeners.push(a),this._connectListener(a),(0,n.hA)(()=>{(0,i.TF)(this._listeners,a),a.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,s.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,a){return this.invokeMethod(this._mainMethod,e,t,a)}invokeMethod(e,t,a,i){if(this._thread){const r=this._transferLists[e],n=r?r(t):[];return this._thread.invoke(e,t,{transferList:n,signal:a,jobPriority:i})}return this._promise?this._promise.then(()=>((0,o.Te)(a),this.invokeMethod(e,t,a))):Promise.reject((0,o.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(u):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,o.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class d{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function u(){}},81354(e,t,a){a.d(t,{A:()=>G});var i=a(5482),r=a(4576),n=a(66552),_=a(25482),s=a(86211),o=a(67076),l=a(91429);const h=[3855,31,14,540,18,735,2,19,23,80,19,261,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,80,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,30,2,12,18,1,1,1,1,1,1,1,1,1,1,1,1,1,67,189,1,1,46,1,1,1,1,1,1,1,1,1,170,1,1,1,278,1,1,1,1,1,1,3,46,1,1,221,530,1,204,1,47,1,7,125,5,2,2,47,1,1,72,6,8,3,71,1,1,1,36,139,38,1,90,1,76,241,15,1,150,40,23,7,219,115,10,19,5,8,1,15,32,16,38,1,2,1,1,1,1,1,1,1,1,1,1,49,7,13,179,1,12,3,3,3,3,6,40,1,201,4,223,1,39,159,3,1,1,128,1,1,1,62,1,1,1,1,1,13,23,54,7,1,28,62,23,137,18,71,10,158,8843,34,1,1,85565,1,1,1,1,1,1,1,92,1,1,1,1,86,1,1,1,1,1,1,1,1,1,9901,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1],d=[287,1,2,4,15,107,3,143],u=[10,1,13,1,1,1,12,1,6,1,18,1,4,1,49,1,11,1,1,7,5,1,15,3,29,1,2,1,1,1,5,1,13,2,24,1,6,2,1,1,7,6,3,3,287],c=["Meter","Foot","Foot_US","Foot_British_1936"],m=[1,.3048,.3048006096012192,.3048007491],p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g=["EGM2008_Geoid","Fao_1979","N2000","New_Zealand_Vertical_Datum_2009","Dunedin_Bluff_1960","Korean_Vertical_Datum_1964","Trieste","Genoa","Sri_Lanka_Vertical_Datum","Faroe_Islands_Vertical_Reference_2009","Black_Sea","Fehmarnbelt_Vertical_Reference_2010","Nivellement_General_de_Polynesie_Francaise","IGN_1966","Moorea_SAU_1981","Raiatea_SAU_2001","Maupiti_SAU_2001","Huahine_SAU_2001","Tahaa_SAU_2001","Bora_Bora_SAU_2001","International_Great_Lakes_Datum_1955","International_Great_Lakes_Datum_1985","Croatian_Vertical_Reference_System_1971","Caspian_Sea","Baltic_Sea","Rikets_Hojdsystem_2000","KOC_Well_Datum","Rikets_Hojdsystem_1900","IGN_1988_LS","IGN_1988_MG","IGN_1992_LD","IGN_1988_SB","IGN_1988_SM","European_Vertical_Reference_Frame_2007","Ordnance_Datum_Newlyn","National_Geodetic_Vertical_Datum_1929","North_American_Vertical_Datum_1988","Yellow_Sea_1956","Normaal_Amsterdams_Peil","Oostende","Australian_Height_Datum","Australian_Height_Datum_Tasmania","Canadian_Geodetic_Vertical_Datum_of_1928","Mean_Sea_Level","Piraeus_Harbour_1986","Helsinki_1960","Rikets_Hojdsystem_1970","Nivellement_General_de_la_France_Lallemand","Nivellement_General_de_la_France_IGN69","Nivellement_General_de_la_France_IGN78","Maputo","Japanese_Standard_Levelling_Datum_1969","PDO_Height_Datum_1993","Fahud_Height_Datum","Ha_Tien_1960","Hon_Dau_1992","Landesnivellement_1902","Landeshohennetz_1995","European_Vertical_Reference_Frame_2000","Malin_Head","Belfast","Dansk_Normal_Nul","AIOC_1995","Yellow_Sea_1985","Hong_Kong_Principal_Datum","Hong_Kong_Chart_Datum","Ordnance_Datum_Newlyn_Orkney_Isles","Fair_Isle","Lerwick","Foula","Sule_Skerry","North_Rona","Stornoway","St_Kilda","Flannan_Isles","St_Marys","Douglas","Fao","Bandar_Abbas","Nivellement_General_de_Nouvelle_Caledonie","Poolbeg","Nivellement_General_Guyanais_1977","IGN_1987","IGN_1988","IGN_1989","Auckland","Bluff","Dunedin","Gisborne","Lyttelton","Moturiki","Napier","Nelson","One_Tree_Point","Tararu","Taranaki","Wellington","Chatham_Island","Stewart_Island","EGM96_Geoid","Nivellement_General_du_Luxembourg","Antalya","Norway_Normal_Null_1954","Durres","Gebrauchshohen_Adria","Slovenian_Vertical_System_2000","Cascais","Constanta","Alicante","Deutsches_Haupthoehennetz_1992","Deutsches_Haupthoehennetz_1985","SNN76","Baltic_1982","Baltic_1980","Kuwait_PWD","KOC_Construction_Datum","Nivellement_General_de_la_Corse_1948","Danger_1950","Mayotte_1950","Martinique_1955","Guadeloupe_1951","Lagos_1955","EGM84_Geoid","Dansk_Vertikal_Reference_1990_ensemble","Sea_Level","Ras_Ghumays","Lowest_Astronomic_Tide","Lower_Low_Water_Large_Tide","Indian_Spring_Low_Water","Mean_Lower_Low_Water_Spring_Tides","Mean_Low_Water_Spring_Tides","Mean_Lower_Low_Water","Mean_Low_Water","Mean_High_Water","Mean_Higher_High_Water","Mean_High_Water_Spring_Tides","Higher_High_Water_Large_Tide","Highest_Astronomic_Tide","Low_Water","High_Water","Norway_Normal_Null_2000","Grand_Cayman_Vertical_Datum_1954","Little_Cayman_Vertical_Datum_1961","Cayman_Brac_Vertical_Datum_1961","Cais_da_Pontinha-Funchal","Cais_da_Vila-Porto_Santo","Cais_das_Velas","Horta","Cais_da_Madalena","Santa_Cruz_da_Graciosa","Cais_da_Figueirinha-Angra_do_Heroismo","Santa_Cruz_das_Flores","Cais_da_Vila_do_Porto","Ponta_Delgada","Tutuila_Vertical_Datum_of_1962","Guam_Vertical_Datum_of_1963","Northern_Marianas_Vertical_Datum_of_2003","Puerto_Rico_Vertical_Datum_of_2002","Virgin_Islands_Vertical_Datum_of_2009","American_Samoa_Vertical_Datum_of_2002","Guam_Vertical_Datum_of_2004","Canadian_Geodetic_Vertical_Datum_of_2013","Japanese_Standard_Levelling_Datum_1972","Japanese_Geodetic_Datum_2000_vertical","Japanese_Geodetic_Datum_2011_vertical","Singapore_Height_Datum","Famagusta_1960","Papua_New_Guinea_2008","Kumul_34","Kiunga","Deutsches_Haupthoehennetz_1912","Latvian_Height_System_2000","Ordnance_Datum_Newlyn_(Offshore)","Port_Moresby_1996","Deutsches_Haupthoehennetz_2016","New_Zealand_Vertical_Datum_2016","Port_Moresby_2008","Jamestown_1971","St_Helena_Tritan_Vertical_Datum_2011","St_Helena_Vertical_Datum_2015","Landshaedarkerfi_Islands_2004","Greenland_Vertical_Reference_2000","Greenland_Vertical_Reference_2016","Baltic_1957","Macao_Height_Datum","Helsinki_1943","Slovenian_Vertical_System_2010","Serbian_Vertical_Reference_System_2012","MOMRA_Vertical_Geodetic_Control","Wiener_Null","Taiwan_Vertical_Datum_2001","Datum_Altimetrico_de_Costa_Rica_1952","IGN_2008_LD","Canadian_Geodetic_Vertical_Datum_of_2013_CGG2013a","Sistema_de_Referencia_Vertical_Nacional_2016","European_Vertical_Reference_Frame_2000_Austria","South_Africa_Land_Levelling_Datum","Lowest_Astronomical_Tide_Netherlands","Mean_Sea_Level_Netherlands","HS2_Vertical_Reference_Frame","Kingdom_of_Saudi_Arabia_Vertical_Reference_Frame_Jeddah_2014","Nivellement_General_de_Nouvelle_Caledonie_2008","European_Vertical_Reference_Frame_2019","European_Vertical_Reference_Frame_2019_mean_tide","Mallorca","Menorca","Ibiza","Lanzarote","Fuerteventura","Gran_Canaria","Tenerife","La_Gomera","La_Palma","El_Hierro","Ceuta_2","British_Isles_height_ensemble","Australian_Vertical_Working_Surface","Indonesian_Geoid_2020","Baltic_1986","European_Vertical_Reference_Frame_2007_Poland","Estonian_Height_System_2000","Lithuanian_Height_System_2007","Bulgarian_Height_System_2005","Norwegian_Chart_Datum","Local_Tidal_Datum_at_Pago_Pago_2020","National_Vertical_Datum_1992","Catania_1965","Cagliari_1956","GNTRANS","GNTRANS2016","Mean_Sea_Level_UK_Ireland_VORF08","Chart_Datum_UK_Ireland_VORF08","Nivellement_General_de_l_Algerie_2022","Chart_Datum_Portugal","Formentera","Alboran","Melilla","Dansk_Vertikal_Reference_1990","Dansk_Vertikal_Reference_1990_(2002)","Dansk_Vertikal_Reference_1990_(2013)","Dansk_Vertikal_Reference_1990_(2023)","Denmark_Mean_Sea_Level_(2022)","Denmark_Lowest_Astronomical_Tide_(2022)","Denmark_Mean_Sea_Level_(2023)","Denmark_Lowest_Astronomical_Tide_(2023)","Denmark_Mean_Sea_Level","Denmark_Lowest_Astronomical_Tide","Greenland_Local_Mean_Sea_Level_(2022)","Canadian_Geodetic_Vertical_Datum_of_1928_(Height_Transformation_version_2_0)","Saba_Vertical_Datum","Greenland_Mean_Sea_Level_(2023)","Greenland_Lowest_Astronomic_Tide_(2023)","Baltic_Sea_Chart_Datum_2000","Sint_Eustatius_Vertical_Datum","Bonaire_Vertical_Datum","Asse_vertical_datum_2025","Derived_California_Orthometric_Heights_of_1988_epoch_2025","London_Survey_Grid_height_datum","Svalbard_vertical_datum_2024","IGN_2023_Mayotte","Svalbard_vertical_datum_2006","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_2002","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_1997","Indonesian_Geoid_2020_version_2","Hellenic_Vertical_Datum","WGS_1984","Red_Espanola_de_Nivelacion_de_Alta_Precision","Japanese_Geodetic_Datum_2024_vertical","GRS_1980","WGS_1984_Geoid","Mean_Sea_Level_Hawaii","Qatari_Vertical_Datum","International_1924","CGCS2000","Bessel_1841","Krasovsky_1940","Everest_Adjustment_1937","Clarke_1866","PZ_1990","Unknown_height_system_(meters)","Unknown_height_system_(US_survey_feet)","Unknown_height_system_(Intl_feet)","GSK-2011","Australian","NWL_9D","WGS_1972"],y=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,24,23,38,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,10,37,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,26,115,116,117,118,119,120,121,62,122,123,124,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,36,36,35,36,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,80,35,64,26,43,43,43,43,180,36,181,182,183,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,265,265,268,268,269,123,25,36,221,0,1,3,2,4,270,270,99,99,271,265,268,268,268,272,273,268,268,265,274,265,268,268,268,268,268,268,268,268,265,265,268,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,265,268,268,268,275,272,268,268,272,268,268,268,268,268,268,265,268,268,268,268,268,268,268,268,268,276,268,268,268,268,265,268,277,268,278,268,268,268,268,268,268,268,272,268,268,268,268,268,268,268,268,268,268,265,276,268,268,274,274,268,268,268,275,265,268,268,268,268,279,280,281,268,268,265,282,278,278,265,265,265,265,265,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,283,283,268,265,268,268,268,268,265,272,265,265,268,268,268,268,268,268,268,275,268,268,268,268,268,268,268,268,268,265,284,285,285,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,265,272,268,272,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268];function v(e){const t=[];let a=0;for(const i of e){for(let e=0;e<i;e++)t.push(a);a=1-a}return t}const f=function(){const e=function(e){const t=[];let a=0;for(const i of e)a+=i,t.push(a);return t}(h),t=v(d),a=v(u),i=c.map((e,t)=>({name:e,conversionFactor:m[t]})),r=new Map;for(let n=0;n<e.length;n++){const _=0===t[n]?0:1,s=0===a[n]?0:1,o=i[p[n]],l=g[y[n]];r.set(e[n],{type:_,direction:s,unit:o,datum:l})}return r}();var S,C=a(43937),w=a(36005);const D=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),V=D.jsonValues.slice();(0,r.Xy)(V,"orthometric");const M=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let G=S=class extends _.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,a){return D.write(e,t,a)}readHeightModel(e,t,a){return D.read(e)||(a?.messages&&a.messages.push(function(e,t){return new o.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:a})),null)}readHeightUnit(e,t,a){return M.read(e)||(a?.messages&&a.messages.push(L(e,{context:a})),null)}readHeightUnitService(e,t,a){return(0,s.LA)(e)||M.read(e)||(a?.messages&&a.messages.push(L(e,{context:a})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new S({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const a=(0,s.k1)(t);return new S({heightModel:e.heightModel,heightUnit:a??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:a}=e;if(!a)return null;const i=(null!=t?f.get(t):null)??f.get(a);return i?new S({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,s.LA)(i.unit.name),vertCRS:i.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new S;return t.read(e,{origin:"web-scene"}),t}};function L(e,t){return new o.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,l.MZ)({type:D.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:V,default:"ellipsoidal",write:{isRequired:!0}}}}})],G.prototype,"heightModel",void 0),(0,i.Cg)([(0,C.K)("web-scene","heightModel")],G.prototype,"writeHeightModel",null),(0,i.Cg)([(0,w.w)(["web-scene","service"],"heightModel")],G.prototype,"readHeightModel",null),(0,i.Cg)([(0,l.MZ)({type:M.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:M.jsonValues,write:{writer:M.write,isRequired:!0}}}}})],G.prototype,"heightUnit",void 0),(0,i.Cg)([(0,w.w)("web-scene","heightUnit")],G.prototype,"readHeightUnit",null),(0,i.Cg)([(0,w.w)("service","heightUnit")],G.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,l.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],G.prototype,"vertCRS",void 0),(0,i.Cg)([(0,w.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],G.prototype,"readVertCRS",null),G=S=(0,i.Cg)([(0,l.$K)("esri.geometry.HeightModelInfo")],G)},38732(e,t,a){a.r(t),a.d(t,{default:()=>M});var i=a(5482),r=a(11254),n=a(49186),_=a(97768),s=a(25728),o=a(17676),l=a(84952),h=a(91429),d=a(81354),u=a(4146),c=a(89186),m=a(18768),p=a(34287),g=a(8303),y=a(10873),v=a(87378),f=a(35982);class S extends f.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,a){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},a):Promise.resolve(null)}release(){--this.ref<=0&&(C.forEach((e,t)=>{e===this&&C.delete(t)}),this.destroy())}}const C=new Map;var w=a(36005);let D=class extends((0,c.f)((0,m.b)((0,p.q)((0,g.A)((0,s.M)(u.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=C.get(e);return t||(null!=e?(t=new S(t=>e.immediate.schedule(t)),C.set(e,t)):(t=new S,C.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,_.Gz)(this._lercDecoder)}readCapabilities(e,t){const a=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return a?{operations:{supportsTileMap:a.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let a=t.currentVersion;return a||(a=9.3),a}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(o.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,a,i){const _=i?.signal,s={responseType:"array-buffer",signal:_,useQueue:i?.useQueue,priority:i?.priority},o={noDataValue:i?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,a,i);const l=await(0,r.A)(this.getTileUrl(e,t,a),s),h=await this._lercDecoder.decode(l.data,o,_);if(!h)throw new n.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new v.A({values:h.pixelData,width:h.width,height:h.height,noDataValue:h.noDataValue})}getTileUrl(e,t,a){const i=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,l.x0)({...this.parsedUrl.query,blankTile:!i&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${a}${r?"?"+r:""}`}async queryElevation(e,t){const{query:i}=await a.e(91).then(a.bind(a,90091));return(0,o.Te)(t),i(this,e,t)}async createElevationSampler(e,t){const{createSampler:i}=await a.e(91).then(a.bind(a,90091));return(0,o.Te)(t),i(this,e,t)}_fetchTileAvailability(e,t,a,i){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,a,i):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},a=await(0,r.A)(this.parsedUrl.path,t);a.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=a.data,this.read(a.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[V]}};(0,i.Cg)([(0,h.MZ)({readOnly:!0})],D.prototype,"capabilities",void 0),(0,i.Cg)([(0,w.w)("service","capabilities",["capabilities"])],D.prototype,"readCapabilities",null),(0,i.Cg)([(0,h.MZ)({json:{read:{source:"copyrightText"}}})],D.prototype,"copyright",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:d.A})],D.prototype,"heightModelInfo",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],D.prototype,"path",void 0),(0,i.Cg)([(0,h.MZ)({type:["show","hide"]})],D.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],D.prototype,"minScale",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],D.prototype,"maxScale",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],D.prototype,"opacity",void 0),(0,i.Cg)([(0,h.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],D.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)()],D.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],D.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)(y.OZ)],D.prototype,"url",void 0),(0,i.Cg)([(0,h.MZ)()],D.prototype,"version",void 0),(0,i.Cg)([(0,w.w)("version",["currentVersion"])],D.prototype,"readVersion",null),D=(0,i.Cg)([(0,h.$K)("esri.layers.ElevationLayer")],D);const V=Symbol("default-fetch-tile");D.prototype.fetchTile[V]=!0;const M=D},18768(e,t,a){a.d(t,{b:()=>s});var i=a(5482),r=a(53966),n=a(91429),_=a(60694);const s=e=>{const t=e;let a=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,_.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,_.Jf)(e,r.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],a.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],a.prototype,"url",null),a=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],a),a}},87378(e,t,a){a.d(t,{A:()=>s});var i,r=a(34275),n=a(56507);const _=Symbol("ElevationTileDataClass");class s{static{i=_}constructor({values:e,width:t,height:a,noDataValue:n}){this[i]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,r.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=a,this.noDataValue=n}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let a=1/0,i=-1/0,r=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(a=n<a?n:a,i=n>i?n:i,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=a,this._maxValue=i>-3e38?i:0)}static{this.from=(0,n.qf)(s)}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8732],{35982(e,t,a){a.d(t,{B:()=>c});var i=a(4576),r=a(71511),n=a(36563),l=a(53966),s=a(97768),o=a(17676),_=a(83027);class c{constructor(e,t,a,i,r={}){this._mainMethod=t,this._transferLists=a,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,_.h)(e,{...r,schedule:i}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>l.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const a=new h(e,t);return this._listeners.push(a),this._connectListener(a),(0,n.hA)(()=>{(0,i.TF)(this._listeners,a),a.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,s.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,a){return this.invokeMethod(this._mainMethod,e,t,a)}invokeMethod(e,t,a,i){if(this._thread){const r=this._transferLists[e],n=r?r(t):[];return this._thread.invoke(e,t,{transferList:n,signal:a,jobPriority:i})}return this._promise?this._promise.then(()=>((0,o.Te)(a),this.invokeMethod(e,t,a))):Promise.reject((0,o.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,o.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class h{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},81354(e,t,a){a.d(t,{A:()=>V});var i=a(5482),r=a(4576),n=a(66552),l=a(25482),s=a(86211),o=a(67076),_=a(91429);const c=[3855,31,14,540,18,735,2,19,23,80,19,261,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,80,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,30,2,12,18,1,1,1,1,1,1,1,1,1,1,1,1,1,67,189,1,1,46,1,1,1,1,1,1,1,1,1,170,1,1,1,278,1,1,1,1,1,1,3,46,1,1,221,530,1,204,1,47,1,7,125,5,2,2,47,1,1,72,6,8,3,71,1,1,1,36,139,38,1,90,1,76,241,15,1,150,40,23,7,219,115,10,19,5,8,1,15,32,16,38,1,2,1,1,1,1,1,1,1,1,1,1,49,7,13,179,1,12,3,3,3,3,6,40,1,201,4,223,1,39,159,3,1,1,128,1,1,1,62,1,1,1,1,1,13,23,54,7,1,28,62,23,137,18,71,10,158,8843,34,1,1,85565,1,1,1,1,1,1,1,92,1,1,1,1,86,1,1,1,1,1,1,1,1,1,9901,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1],h=[287,1,2,4,15,107,3,143],d=[10,1,13,1,1,1,12,1,6,1,18,1,4,1,49,1,11,1,1,7,5,1,15,3,29,1,2,1,1,1,5,1,13,2,24,1,6,2,1,1,7,6,3,3,287],u=["Meter","Foot","Foot_US","Foot_British_1936"],m=[1,.3048,.3048006096012192,.3048007491],p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g=["EGM2008_Geoid","Fao_1979","N2000","New_Zealand_Vertical_Datum_2009","Dunedin_Bluff_1960","Korean_Vertical_Datum_1964","Trieste","Genoa","Sri_Lanka_Vertical_Datum","Faroe_Islands_Vertical_Reference_2009","Black_Sea","Fehmarnbelt_Vertical_Reference_2010","Nivellement_General_de_Polynesie_Francaise","IGN_1966","Moorea_SAU_1981","Raiatea_SAU_2001","Maupiti_SAU_2001","Huahine_SAU_2001","Tahaa_SAU_2001","Bora_Bora_SAU_2001","International_Great_Lakes_Datum_1955","International_Great_Lakes_Datum_1985","Croatian_Vertical_Reference_System_1971","Caspian_Sea","Baltic_Sea","Rikets_Hojdsystem_2000","KOC_Well_Datum","Rikets_Hojdsystem_1900","IGN_1988_LS","IGN_1988_MG","IGN_1992_LD","IGN_1988_SB","IGN_1988_SM","European_Vertical_Reference_Frame_2007","Ordnance_Datum_Newlyn","National_Geodetic_Vertical_Datum_1929","North_American_Vertical_Datum_1988","Yellow_Sea_1956","Normaal_Amsterdams_Peil","Oostende","Australian_Height_Datum","Australian_Height_Datum_Tasmania","Canadian_Geodetic_Vertical_Datum_of_1928","Mean_Sea_Level","Piraeus_Harbour_1986","Helsinki_1960","Rikets_Hojdsystem_1970","Nivellement_General_de_la_France_Lallemand","Nivellement_General_de_la_France_IGN69","Nivellement_General_de_la_France_IGN78","Maputo","Japanese_Standard_Levelling_Datum_1969","PDO_Height_Datum_1993","Fahud_Height_Datum","Ha_Tien_1960","Hon_Dau_1992","Landesnivellement_1902","Landeshohennetz_1995","European_Vertical_Reference_Frame_2000","Malin_Head","Belfast","Dansk_Normal_Nul","AIOC_1995","Yellow_Sea_1985","Hong_Kong_Principal_Datum","Hong_Kong_Chart_Datum","Ordnance_Datum_Newlyn_Orkney_Isles","Fair_Isle","Lerwick","Foula","Sule_Skerry","North_Rona","Stornoway","St_Kilda","Flannan_Isles","St_Marys","Douglas","Fao","Bandar_Abbas","Nivellement_General_de_Nouvelle_Caledonie","Poolbeg","Nivellement_General_Guyanais_1977","IGN_1987","IGN_1988","IGN_1989","Auckland","Bluff","Dunedin","Gisborne","Lyttelton","Moturiki","Napier","Nelson","One_Tree_Point","Tararu","Taranaki","Wellington","Chatham_Island","Stewart_Island","EGM96_Geoid","Nivellement_General_du_Luxembourg","Antalya","Norway_Normal_Null_1954","Durres","Gebrauchshohen_Adria","Slovenian_Vertical_System_2000","Cascais","Constanta","Alicante","Deutsches_Haupthoehennetz_1992","Deutsches_Haupthoehennetz_1985","SNN76","Baltic_1982","Baltic_1980","Kuwait_PWD","KOC_Construction_Datum","Nivellement_General_de_la_Corse_1948","Danger_1950","Mayotte_1950","Martinique_1955","Guadeloupe_1951","Lagos_1955","EGM84_Geoid","Dansk_Vertikal_Reference_1990_ensemble","Sea_Level","Ras_Ghumays","Lowest_Astronomic_Tide","Lower_Low_Water_Large_Tide","Indian_Spring_Low_Water","Mean_Lower_Low_Water_Spring_Tides","Mean_Low_Water_Spring_Tides","Mean_Lower_Low_Water","Mean_Low_Water","Mean_High_Water","Mean_Higher_High_Water","Mean_High_Water_Spring_Tides","Higher_High_Water_Large_Tide","Highest_Astronomic_Tide","Low_Water","High_Water","Norway_Normal_Null_2000","Grand_Cayman_Vertical_Datum_1954","Little_Cayman_Vertical_Datum_1961","Cayman_Brac_Vertical_Datum_1961","Cais_da_Pontinha-Funchal","Cais_da_Vila-Porto_Santo","Cais_das_Velas","Horta","Cais_da_Madalena","Santa_Cruz_da_Graciosa","Cais_da_Figueirinha-Angra_do_Heroismo","Santa_Cruz_das_Flores","Cais_da_Vila_do_Porto","Ponta_Delgada","Tutuila_Vertical_Datum_of_1962","Guam_Vertical_Datum_of_1963","Northern_Marianas_Vertical_Datum_of_2003","Puerto_Rico_Vertical_Datum_of_2002","Virgin_Islands_Vertical_Datum_of_2009","American_Samoa_Vertical_Datum_of_2002","Guam_Vertical_Datum_of_2004","Canadian_Geodetic_Vertical_Datum_of_2013","Japanese_Standard_Levelling_Datum_1972","Japanese_Geodetic_Datum_2000_vertical","Japanese_Geodetic_Datum_2011_vertical","Singapore_Height_Datum","Famagusta_1960","Papua_New_Guinea_2008","Kumul_34","Kiunga","Deutsches_Haupthoehennetz_1912","Latvian_Height_System_2000","Ordnance_Datum_Newlyn_(Offshore)","Port_Moresby_1996","Deutsches_Haupthoehennetz_2016","New_Zealand_Vertical_Datum_2016","Port_Moresby_2008","Jamestown_1971","St_Helena_Tritan_Vertical_Datum_2011","St_Helena_Vertical_Datum_2015","Landshaedarkerfi_Islands_2004","Greenland_Vertical_Reference_2000","Greenland_Vertical_Reference_2016","Baltic_1957","Macao_Height_Datum","Helsinki_1943","Slovenian_Vertical_System_2010","Serbian_Vertical_Reference_System_2012","MOMRA_Vertical_Geodetic_Control","Wiener_Null","Taiwan_Vertical_Datum_2001","Datum_Altimetrico_de_Costa_Rica_1952","IGN_2008_LD","Canadian_Geodetic_Vertical_Datum_of_2013_CGG2013a","Sistema_de_Referencia_Vertical_Nacional_2016","European_Vertical_Reference_Frame_2000_Austria","South_Africa_Land_Levelling_Datum","Lowest_Astronomical_Tide_Netherlands","Mean_Sea_Level_Netherlands","HS2_Vertical_Reference_Frame","Kingdom_of_Saudi_Arabia_Vertical_Reference_Frame_Jeddah_2014","Nivellement_General_de_Nouvelle_Caledonie_2008","European_Vertical_Reference_Frame_2019","European_Vertical_Reference_Frame_2019_mean_tide","Mallorca","Menorca","Ibiza","Lanzarote","Fuerteventura","Gran_Canaria","Tenerife","La_Gomera","La_Palma","El_Hierro","Ceuta_2","British_Isles_height_ensemble","Australian_Vertical_Working_Surface","Indonesian_Geoid_2020","Baltic_1986","European_Vertical_Reference_Frame_2007_Poland","Estonian_Height_System_2000","Lithuanian_Height_System_2007","Bulgarian_Height_System_2005","Norwegian_Chart_Datum","Local_Tidal_Datum_at_Pago_Pago_2020","National_Vertical_Datum_1992","Catania_1965","Cagliari_1956","GNTRANS","GNTRANS2016","Mean_Sea_Level_UK_Ireland_VORF08","Chart_Datum_UK_Ireland_VORF08","Nivellement_General_de_l_Algerie_2022","Chart_Datum_Portugal","Formentera","Alboran","Melilla","Dansk_Vertikal_Reference_1990","Dansk_Vertikal_Reference_1990_(2002)","Dansk_Vertikal_Reference_1990_(2013)","Dansk_Vertikal_Reference_1990_(2023)","Denmark_Mean_Sea_Level_(2022)","Denmark_Lowest_Astronomical_Tide_(2022)","Denmark_Mean_Sea_Level_(2023)","Denmark_Lowest_Astronomical_Tide_(2023)","Denmark_Mean_Sea_Level","Denmark_Lowest_Astronomical_Tide","Greenland_Local_Mean_Sea_Level_(2022)","Canadian_Geodetic_Vertical_Datum_of_1928_(Height_Transformation_version_2_0)","Saba_Vertical_Datum","Greenland_Mean_Sea_Level_(2023)","Greenland_Lowest_Astronomic_Tide_(2023)","Baltic_Sea_Chart_Datum_2000","Sint_Eustatius_Vertical_Datum","Bonaire_Vertical_Datum","Asse_vertical_datum_2025","Derived_California_Orthometric_Heights_of_1988_epoch_2025","London_Survey_Grid_height_datum","Svalbard_vertical_datum_2024","IGN_2023_Mayotte","Svalbard_vertical_datum_2006","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_2002","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_1997","Indonesian_Geoid_2020_version_2","Hellenic_Vertical_Datum","WGS_1984","Red_Espanola_de_Nivelacion_de_Alta_Precision","Japanese_Geodetic_Datum_2024_vertical","GRS_1980","WGS_1984_Geoid","Mean_Sea_Level_Hawaii","Qatari_Vertical_Datum","International_1924","CGCS2000","Bessel_1841","Krasovsky_1940","Everest_Adjustment_1937","Clarke_1866","PZ_1990","Unknown_height_system_(meters)","Unknown_height_system_(US_survey_feet)","Unknown_height_system_(Intl_feet)","GSK-2011","Australian","NWL_9D","WGS_1972"],y=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,24,23,38,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,10,37,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,26,115,116,117,118,119,120,121,62,122,123,124,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,36,36,35,36,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,80,35,64,26,43,43,43,43,180,36,181,182,183,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,265,265,268,268,269,123,25,36,221,0,1,3,2,4,270,270,99,99,271,265,268,268,268,272,273,268,268,265,274,265,268,268,268,268,268,268,268,268,265,265,268,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,265,268,268,268,275,272,268,268,272,268,268,268,268,268,268,265,268,268,268,268,268,268,268,268,268,276,268,268,268,268,265,268,277,268,278,268,268,268,268,268,268,268,272,268,268,268,268,268,268,268,268,268,268,265,276,268,268,274,274,268,268,268,275,265,268,268,268,268,279,280,281,268,268,265,282,278,278,265,265,265,265,265,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,283,283,268,265,268,268,268,268,265,272,265,265,268,268,268,268,268,268,268,275,268,268,268,268,268,268,268,268,268,265,284,285,285,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,265,272,268,272,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268];function v(e){const t=[];let a=0;for(const i of e){for(let e=0;e<i;e++)t.push(a);a=1-a}return t}const f=function(){const e=function(e){const t=[];let a=0;for(const i of e)a+=i,t.push(a);return t}(c),t=v(h),a=v(d),i=u.map((e,t)=>({name:e,conversionFactor:m[t]})),r=new Map;for(let n=0;n<e.length;n++){const l=0===t[n]?0:1,s=0===a[n]?0:1,o=i[p[n]],_=g[y[n]];r.set(e[n],{type:l,direction:s,unit:o,datum:_})}return r}();var S,w=a(43937),C=a(36005);const D=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),M=D.jsonValues.slice();(0,r.Xy)(M,"orthometric");const L=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let V=S=class extends l.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,a){return D.write(e,t,a)}readHeightModel(e,t,a){return D.read(e)||(a?.messages&&a.messages.push(function(e,t){return new o.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:a})),null)}readHeightUnit(e,t,a){return L.read(e)||(a?.messages&&a.messages.push(G(e,{context:a})),null)}readHeightUnitService(e,t,a){return(0,s.LA)(e)||L.read(e)||(a?.messages&&a.messages.push(G(e,{context:a})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new S({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const a=(0,s.k1)(t);return new S({heightModel:e.heightModel,heightUnit:a??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:a}=e;if(!a)return null;const i=(null!=t?f.get(t):null)??f.get(a);return i?new S({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,s.LA)(i.unit.name),vertCRS:i.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new S;return t.read(e,{origin:"web-scene"}),t}};function G(e,t){return new o.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,_.MZ)({type:D.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:M,default:"ellipsoidal",write:{isRequired:!0}}}}})],V.prototype,"heightModel",void 0),(0,i.Cg)([(0,w.K)("web-scene","heightModel")],V.prototype,"writeHeightModel",null),(0,i.Cg)([(0,C.w)(["web-scene","service"],"heightModel")],V.prototype,"readHeightModel",null),(0,i.Cg)([(0,_.MZ)({type:L.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:L.jsonValues,write:{writer:L.write,isRequired:!0}}}}})],V.prototype,"heightUnit",void 0),(0,i.Cg)([(0,C.w)("web-scene","heightUnit")],V.prototype,"readHeightUnit",null),(0,i.Cg)([(0,C.w)("service","heightUnit")],V.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,_.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],V.prototype,"vertCRS",void 0),(0,i.Cg)([(0,C.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],V.prototype,"readVertCRS",null),V=S=(0,i.Cg)([(0,_.$K)("esri.geometry.HeightModelInfo")],V)},38732(e,t,a){a.r(t),a.d(t,{default:()=>L});var i=a(5482),r=a(11254),n=a(49186),l=a(97768),s=a(25728),o=a(17676),_=a(84952),c=a(91429),h=a(81354),d=a(4146),u=a(89186),m=a(18768),p=a(34287),g=a(8303),y=a(10873),v=a(87378),f=a(35982);class S extends f.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,a){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},a):Promise.resolve(null)}release(){--this.ref<=0&&(w.forEach((e,t)=>{e===this&&w.delete(t)}),this.destroy())}}const w=new Map;var C=a(36005);let D=class extends((0,u.f)((0,m.b)((0,p.q)((0,g.A)((0,s.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=w.get(e);return t||(null!=e?(t=new S(t=>e.immediate.schedule(t)),w.set(e,t)):(t=new S,w.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,l.Gz)(this._lercDecoder)}readCapabilities(e,t){const a=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return a?{operations:{supportsTileMap:a.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let a=t.currentVersion;return a||(a=9.3),a}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(o.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,a,i){const l=i?.signal,s={responseType:"array-buffer",signal:l,useQueue:i?.useQueue,priority:i?.priority},o={noDataValue:i?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,a,i);const _=await(0,r.A)(this.getTileUrl(e,t,a),s),c=await this._lercDecoder.decode(_.data,o,l);if(!c)throw new n.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new v.A({values:c.pixelData,width:c.width,height:c.height,noDataValue:c.noDataValue})}getTileUrl(e,t,a){const i=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,_.x0)({...this.parsedUrl.query,blankTile:!i&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${a}${r?"?"+r:""}`}async queryElevation(e,t){const{query:i}=await a.e(91).then(a.bind(a,90091));return(0,o.Te)(t),i(this,e,t)}async createElevationSampler(e,t){const{createSampler:i}=await a.e(91).then(a.bind(a,90091));return(0,o.Te)(t),i(this,e,t)}_fetchTileAvailability(e,t,a,i){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,a,i):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},a=await(0,r.A)(this.parsedUrl.path,t);a.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=a.data,this.read(a.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[M]}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],D.prototype,"capabilities",void 0),(0,i.Cg)([(0,C.w)("service","capabilities",["capabilities"])],D.prototype,"readCapabilities",null),(0,i.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],D.prototype,"copyright",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,type:h.A})],D.prototype,"heightModelInfo",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],D.prototype,"path",void 0),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],D.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],D.prototype,"minScale",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],D.prototype,"maxScale",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],D.prototype,"opacity",void 0),(0,i.Cg)([(0,c.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],D.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)()],D.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],D.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)(y.OZ)],D.prototype,"url",void 0),(0,i.Cg)([(0,c.MZ)()],D.prototype,"version",void 0),(0,i.Cg)([(0,C.w)("version",["currentVersion"])],D.prototype,"readVersion",null),D=(0,i.Cg)([(0,c.$K)("esri.layers.ElevationLayer")],D);const M=Symbol("default-fetch-tile");D.prototype.fetchTile[M]=!0;const L=D},89186(e,t,a){a.d(t,{f:()=>c});var i=a(5482),r=a(91429),n=a(16930),l=a(87045),s=a(65509),o=a(25943),_=a(36005);const c=e=>{const t=e;let a=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,a){const i=t.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:n,minScale:_,maxScale:c}=t;if(null==r&&null==n&&(0!==_||0!==c)){const e=e=>Math.round(1e4*e)/1e4;_=e(_||t.tileInfo.lods[0].scale),c=e(c||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const a of t.tileInfo.lods){const t=e(a.scale);r=t>=_?a.level:r,n=t>=c?a.level:n}}if(i)return new o.d({layer:this,minLOD:r,maxLOD:n});if(t.tileInfo){const e=new l.A;return e.read(t.tileInfo,a),new s.A(e,r,n)}return null}};return(0,i.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],a.prototype,"copyright",void 0),(0,i.Cg)([(0,r.MZ)()],a.prototype,"minScale",void 0),(0,i.Cg)([(0,_.w)("service","minScale")],a.prototype,"readMinScale",null),(0,i.Cg)([(0,r.MZ)()],a.prototype,"maxScale",void 0),(0,i.Cg)([(0,_.w)("service","maxScale")],a.prototype,"readMaxScale",null),(0,i.Cg)([(0,r.MZ)({type:n.A})],a.prototype,"spatialReference",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],a.prototype,"supportsBlankTile",null),(0,i.Cg)([(0,r.MZ)({type:l.A})],a.prototype,"tileInfo",void 0),(0,i.Cg)([(0,r.MZ)()],a.prototype,"tilemapCache",void 0),(0,i.Cg)([(0,_.w)("service","tilemapCache",["capabilities","tileInfo"])],a.prototype,"readTilemapCache",null),(0,i.Cg)([(0,r.MZ)()],a.prototype,"version",void 0),a=(0,i.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],a),a}},18768(e,t,a){a.d(t,{b:()=>s});var i=a(5482),r=a(53966),n=a(91429),l=a(60694);const s=e=>{const t=e;let a=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,r.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],a.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],a.prototype,"url",null),a=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],a),a}},87378(e,t,a){a.d(t,{A:()=>s});var i,r=a(34275),n=a(56507);const l=Symbol("ElevationTileDataClass");class s{static{i=l}constructor({values:e,width:t,height:a,noDataValue:n}){this[i]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,r.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=a,this.noDataValue=n}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let a=1/0,i=-1/0,r=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(a=n<a?n:a,i=n>i?n:i,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=a,this._maxValue=i>-3e38?i:0)}static{this.from=(0,n.qf)(s)}}},65509(e,t,a){a.d(t,{A:()=>n});var i=a(49186),r=a(17676);class n{constructor(e,t=0,a=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=a,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(a)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,a){const i=this.tileInfo?.lodAt(e);return!i||e<this.minLOD||e>this.maxLOD?"unavailable":i.cols&&i.rows?a>=i.cols[0]&&a<=i.cols[1]&&t>=i.rows[0]&&t<=i.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,a,n){await(0,r.NO)(n);const l=this.getAvailability(e,t,a);if("unavailable"===l)throw new i.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:a});return l}async fetchAvailabilityUpsample(e,t,a,i,n){await(0,r.NO)(n),i.level=e,i.row=t,i.col=a;const l=this.tileInfo;return l.updateTileInfo(i),this.fetchAvailability(e,t,a,n).catch(e=>{if((0,r.zf)(e))throw e;if(l.upsampleTile(i))return this.fetchAvailabilityUpsample(i.level,i.row,i.col,i,n);throw e})}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8419],{5482(t,e,n){function r(t,e,n,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function s(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(s=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");s&&(r=function(){try{s.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>o,mS:()=>s}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function o(t){function e(e){t.error=t.hasError?new i(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function s(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(s);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(s,function(t){return e(t),s()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},11006(t,e,n){function r(t,e,n,r,i){s(t,e,n||0,r||t.length-1,i||o)}function s(t,e,n,r,o){for(;r>n;){if(r-n>600){var a=r-n+1,u=e-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),f=.5*Math.sqrt(l*c*(a-c)/a)*(u-a/2<0?-1:1);s(t,e,Math.max(n,Math.floor(e-u*c/a+f)),Math.min(r,Math.floor(e+(a-u)*c/a+f)),o)}var h=t[e],p=n,d=r;for(i(t,n,e),o(t[r],h)>0&&i(t,n,r);p<d;){for(i(t,p,d),p++,d--;o(t[p],h)<0;)p++;for(;o(t[d],h)>0;)d--}0===o(t[n],h)?i(t,n,d):i(t,++d,r),d<=e&&(n=d+1),e<=d&&(r=d-1)}}function i(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e){return t<e?-1:t>e?1:0}n.d(e,{q:()=>r})},73354(t,e,n){n.d(e,{a:()=>o,b:()=>u,c:()=>i,d:()=>a,e:()=>p,f:()=>f,l:()=>c,n:()=>d,t:()=>h});var r=n(40876),s=(n(44208),n(72727));function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,r=3,i=r){const o=(0,s.k)(t.length,r,3),a=(0,s.k)(e.length,i,3),u=Math.min(o,a),l=n[0],c=n[1],f=n[2],h=n[4],p=n[5],d=n[6],y=n[8],m=n[9],g=n[10],M=n[12],B=n[13],b=n[14];let x=0,T=0;for(let n=0;n<u;n++){const n=e[x],s=e[x+1],o=e[x+2];t[T]=l*n+h*s+y*o+M,t[T+1]=c*n+p*s+m*o+B,t[T+2]=f*n+d*s+g*o+b,x+=i,T+=r}return t}function a(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r=3,i=r){const o=(0,s.k)(t.length,r,3),a=(0,s.k)(e.length,i,3),u=Math.min(o,a),l=n[0],c=n[1],f=n[2],h=n[3],p=n[4],d=n[5],y=n[6],m=n[7],g=n[8];let M=0,B=0;for(let n=0;n<u;n++){const n=e[M],s=e[M+1],o=e[M+2];t[B]=l*n+h*s+y*o,t[B+1]=c*n+p*s+m*o,t[B+2]=f*n+d*s+g*o,M+=i,B+=r}}function l(t,e,n,r=3,s=r){const i=Math.min(t.length/r,e.length/s);let o=0,a=0;for(let u=0;u<i;u++)t[a]=n*e[o],t[a+1]=n*e[o+1],t[a+2]=n*e[o+2],o+=s,a+=r;return t}function c(t,e,n,r){f(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n,s,i=3,o=i){const a=Math.min(t.length/i,e.length/o);let u=0,l=0;const c=1/r.Tf;for(let r=0;r<a;r++)t[l]=s*(n*e[u])**c,t[l+1]=s*(n*e[u+1])**c,t[l+2]=s*(n*e[u+2])**c,u+=o,l+=i}function h(t,e,n,r=3,i=r){const o=(0,s.k)(t.length,r,3),a=(0,s.k)(e.length,i,3),u=Math.min(o,a);let l=0,c=0;for(let s=0;s<u;s++)t[c]=e[l]+n[0],t[c+1]=e[l+1]+n[1],t[c+2]=e[l+2]+n[2],l+=i,c+=r;return t}function p(t,e){d(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function d(t,e,n=3,r=n){const s=Math.min(t.length/n,e.length/r);let i=0,o=0;for(let a=0;a<s;a++){const s=e[i],a=e[i+1],u=e[i+2],l=s*s+a*a+u*u;if(l>0){const e=1/Math.sqrt(l);t[o]=e*s,t[o+1]=e*a,t[o+2]=e*u}i+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:c,normalize:d,normalizeView:p,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride;let u=0,l=0;for(let t=0;t<r;t++)s[l]=o[u]>>n,s[l+1]=o[u+1]>>n,s[l+2]=o[u+2]>>n,u+=a,l+=i},transformMat3:u,transformMat3View:a,transformMat4:o,transformMat4View:i,translate:h},Symbol.toStringTag,{value:"Module"}))},50867(t,e,n){n.d(e,{a:()=>i,b:()=>c,l:()=>l,n:()=>a,t:()=>o});var r=n(40876),s=(n(44208),n(72727));function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,r=4,i=r){const o=(0,s.k)(t.length,r,4),a=(0,s.k)(e.length,i,4),u=Math.min(o,a),l=n[0],c=n[1],f=n[2],h=n[3],p=n[4],d=n[5],y=n[6],m=n[7],g=n[8];let M=0,B=0;for(let n=0;n<u;n++){const n=e[M],s=e[M+1],o=e[M+2],a=e[M+3];t[B]=l*n+h*s+y*o,t[B+1]=c*n+p*s+m*o,t[B+2]=f*n+d*s+g*o,t[B+3]=a,M+=i,B+=r}}function a(t,e){const n=Math.min(t.count,e.count),r=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,o=e.typedBufferStride;for(let t=0;t<n;t++){const e=t*s,n=t*o,a=i[n],u=i[n+1],l=i[n+2],c=a*a+u*u+l*l;if(c>0){const t=1/Math.sqrt(c);r[e]=t*a,r[e+1]=t*u,r[e+2]=t*l}}}function u(t,e,n,r=4){const s=Math.min(t.length/r,e.count),i=e.typedBuffer,o=e.typedBufferStride;let a=0,u=0;for(let e=0;e<s;e++)t[u]=n*i[a],t[u+1]=n*i[a+1],t[u+2]=n*i[a+2],t[u+3]=n*i[a+3],a+=o,u+=r}function l(t,e,n,r){c(t.typedBuffer,e,n,r,t.typedBufferStride)}function c(t,e,n,s,i=4){const o=Math.min(t.length/i,e.count),a=e.typedBuffer,u=e.typedBufferStride;let l=0,c=0;const f=1/r.Tf;for(let e=0;e<o;e++)t[c]=s*(n*a[l])**f,t[c+1]=s*(n*a[l+1])**f,t[c+2]=s*(n*a[l+2])**f,t[c+3]=s*n*a[l+3],l+=u,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:l,normalize:a,scale:u,scaleView:function(t,e,n){u(t.typedBuffer,e,n,t.typedBufferStride)},transformMat3:o,transformMat3View:i,transformMat4:function(t,e,n,r=4,i=r){const o=(0,s.k)(t.length,r,4),a=(0,s.k)(e.length,i,4),u=Math.min(o,a),l=n[0],c=n[1],f=n[2],h=n[3],p=n[4],d=n[5],y=n[6],m=n[7],g=n[8],M=n[9],B=n[10],b=n[11],x=n[12],T=n[13],w=n[14],v=n[15];let E=0,S=0;for(let n=0;n<u;n++){const n=e[E],s=e[E+1],o=e[E+2],a=e[E+3];t[S]=l*n+p*s+g*o+x*a,t[S+1]=c*n+d*s+M*o+T*a,t[S+2]=f*n+y*s+B*o+w*a,t[S+3]=h*n+m*s+b*o+v*a,E+=i,S+=r}},transformMat4View:function(t,e,n){const r=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride,u=(0,s.k)(r.length,i,4),l=(0,s.k)(o.length,a,4),c=Math.min(u,l),f=n[0],h=n[1],p=n[2],d=n[3],y=n[4],m=n[5],g=n[6],M=n[7],B=n[8],b=n[9],x=n[10],T=n[11],w=n[12],v=n[13],E=n[14],S=n[15];for(let t=0;t<c;t++){const e=t*i,n=t*a,s=o[n],u=o[n+1],l=o[n+2],c=o[n+3];r[e]=f*s+y*u+B*l+w*c,r[e+1]=h*s+m*u+b*l+v*c,r[e+2]=p*s+g*u+x*l+E*c,r[e+3]=d*s+M*u+T*l+S*c}}},Symbol.toStringTag,{value:"Module"}))},40876(t,e,n){n.d(e,{Eq:()=>p,G1:()=>y,TS:()=>i,Tf:()=>M,V6:()=>s,Vm:()=>d,ay:()=>u,c1:()=>m,c4:()=>o,j5:()=>l,lT:()=>f,oW:()=>c,xV:()=>b});const r={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(t){return!!r[t]||!!r[t.toLowerCase()]}function i(t){return r[t]??r[t.toLowerCase()]}function o(t){return[...i(t)]}function a(t,e,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?t+(e-t)*r:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n,r=1){const s=(t%360+360)%360/360,i=n<=.5?n*(e+1):n+e-n*e,o=2*n-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)),r]}function l(t){const e=t.length>5,n=e?8:4,r=(1<<n)-1,s=e?1:17,i=e?9===t.length:5===t.length;let o=Number("0x"+t.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let u;return i&&(u=o&r,o>>=n,a[3]=s*u/255),u=o&r,o>>=n,a[2]=s*u,u=o&r,o>>=n,a[1]=s*u,u=o&r,o>>=n,a[0]=s*u,a}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),n=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),s=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,n+16*n,r+16*r,(s+16*s)/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 f(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),n=e[1];if("rgb"===n&&3===t.length||"rgba"===n&&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])),h(e)}return h(t.map(t=>parseFloat(t)))}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return u(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function h(t){return t[0]=m(t[0]),t[1]=m(t[1]),t[2]=m(t[2]),t[3]=4===t.length?y(t[3]):1,t}function p(t){let e=s(t)?i(t):null;return e??=f(t),e??=c(t),e}function d(t){const e=p(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function y(t){return g(t,0,1)}function m(t){return Math.round(g(t,0,255))}function g(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}const M=2.2,B=1/M;function b(t){return t**B}},69540(t,e,n){n.d(e,{OU:()=>c,Pw:()=>f});var r=n(5482),s=n(69622),i=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),u=n(64108);const l=Symbol("ClonableMixin"),c=t=>{var e;const n=t;let s=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=l}clone(t){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,s={},u=new Map;for(const e in n){const o=n[e],a=r?.originOf(e),l=o.clonable;if(o.readOnly||!1===l||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[e];let f=null;if("function"==typeof l)f=l(c,t);else if("reference"===l)f=c;else if(f=(0,i.TU)(c,t),null!=c&&null==f)continue;0===a?u.set(e,f):s[e]=f}const l=new(0,Object.getPrototypeOf(this).constructor)(s);if(u.size){const t=(0,a.oY)(l)?.store;if(t)for(const[e,n]of u)t.set(e,n,0)}return l}};return s=(0,r.Cg)([(0,u.$)("esri.core.Clonable")],s),s},f=c(s.A)},95488(t,e,n){n.d(e,{I:()=>s});var r=n(11406);class s extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});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:r,fromValues:function(t,e,n,r,s,i,o,a,u,l,c,f,h,p,d,y){return[t,e,n,r,s,i,o,a,u,l,c,f,h,p,d,y]}},Symbol.toStringTag,{value:"Module"}))},48163(t,e,n){function r(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function o(){return i(1,1)}function a(){return i(-1,-1)}function u(){return i(1,0)}function l(){return i(0,1)}n.d(e,{IA:()=>f,Un:()=>c,fA:()=>i,o8:()=>s,vt:()=>r});const c=o(),f=a(),h=u(),p=l();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:c,UNIT_X:h,UNIT_Y:p,ZEROS:[0,0],clone:s,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,negativeOnes:a,ones:o,unitX:u,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return[0,0,0]}function l(){return i(1,1,1)}function c(){return i(1,0,0)}function f(){return i(0,1,0)}function h(){return i(0,0,1)}n.d(e,{CN:()=>o,Cb:()=>g,Cw:()=>y,JP:()=>m,S:()=>l,Ul:()=>u,Un:()=>d,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>p,vt:()=>r});const p=[0,0,0],d=l(),y=c(),m=f(),g=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:y,UNIT_Y:m,UNIT_Z:g,ZEROS:p,clone:s,create:r,freeze:o,fromArray:a,fromValues:i,ones:l,unitX:c,unitY:f,unitZ:h,zeros:u},Symbol.toStringTag,{value:"Module"}))},91829(t,e,n){function r(){return[0,0,0,0]}function s(t,e,n,r){return[t,e,n,r]}function i(t,e,n,r){return[t,e,n,r]}function o(){return s(1,1,1,1)}function a(){return s(1,0,0,0)}function u(){return s(0,1,0,0)}function l(){return s(0,0,1,0)}function c(){return s(0,0,0,1)}n.d(e,{CN:()=>i,Un:()=>h,fA:()=>s,uY:()=>f,vt:()=>r});const f=[0,0,0,0],h=o(),p=a(),d=u(),y=l(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:p,UNIT_Y:d,UNIT_Z:y,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:i,fromArray:function(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:s,ones:o,unitW:c,unitX:a,unitY:u,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>m,$h:()=>S,B8:()=>l,C:()=>i,D_:()=>a,N9:()=>M,O7:()=>E,Tl:()=>f,X_:()=>T,aI:()=>C,e$:()=>p,eL:()=>d,hM:()=>g,hZ:()=>o,hs:()=>h,kN:()=>y,l:()=>w,lw:()=>c,mg:()=>u,o1:()=>v,sC:()=>x,t2:()=>P,t5:()=>_,tZ:()=>O,ut:()=>I,v3:()=>A});var r=n(51850),s=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function o(t,e,n,r,s,i,o,a,u,l,c,f,h,p,d,y,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=s,t[4]=i,t[5]=o,t[6]=a,t[7]=u,t[8]=l,t[9]=c,t[10]=f,t[11]=h,t[12]=p,t[13]=d,t[14]=y,t[15]=m,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,e){if(t===e){const n=e[1],r=e[2],s=e[3],i=e[6],o=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=i,t[11]=e[14],t[12]=s,t[13]=o,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function l(t,e){const n=e[0],r=e[1],s=e[2],i=e[3],o=e[4],a=e[5],u=e[6],l=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],y=e[13],m=e[14],g=e[15],M=n*a-r*o,B=n*u-s*o,b=n*l-i*o,x=r*u-s*a,T=r*l-i*a,w=s*l-i*u,v=c*y-f*d,E=c*m-h*d,S=c*g-p*d,A=f*m-h*y,_=f*g-p*y,R=h*g-p*m;let P=M*R-B*_+b*A+x*S-T*E+w*v;return P?(P=1/P,t[0]=(a*R-u*_+l*A)*P,t[1]=(s*_-r*R-i*A)*P,t[2]=(y*w-m*T+g*x)*P,t[3]=(h*T-f*w-p*x)*P,t[4]=(u*S-o*R-l*E)*P,t[5]=(n*R-s*S+i*E)*P,t[6]=(m*b-d*w-g*B)*P,t[7]=(c*w-h*b+p*B)*P,t[8]=(o*_-a*S+l*v)*P,t[9]=(r*S-n*_-i*v)*P,t[10]=(d*T-y*b+g*M)*P,t[11]=(f*b-c*T-p*M)*P,t[12]=(a*E-o*A-u*v)*P,t[13]=(n*A-r*E+s*v)*P,t[14]=(y*B-d*x-m*M)*P,t[15]=(c*x-f*B+h*M)*P,t):null}function c(t,e,n){const r=e[0],s=e[1],i=e[2],o=e[3],a=e[4],u=e[5],l=e[6],c=e[7],f=e[8],h=e[9],p=e[10],d=e[11],y=e[12],m=e[13],g=e[14],M=e[15];let B=n[0],b=n[1],x=n[2],T=n[3];return t[0]=B*r+b*a+x*f+T*y,t[1]=B*s+b*u+x*h+T*m,t[2]=B*i+b*l+x*p+T*g,t[3]=B*o+b*c+x*d+T*M,B=n[4],b=n[5],x=n[6],T=n[7],t[4]=B*r+b*a+x*f+T*y,t[5]=B*s+b*u+x*h+T*m,t[6]=B*i+b*l+x*p+T*g,t[7]=B*o+b*c+x*d+T*M,B=n[8],b=n[9],x=n[10],T=n[11],t[8]=B*r+b*a+x*f+T*y,t[9]=B*s+b*u+x*h+T*m,t[10]=B*i+b*l+x*p+T*g,t[11]=B*o+b*c+x*d+T*M,B=n[12],b=n[13],x=n[14],T=n[15],t[12]=B*r+b*a+x*f+T*y,t[13]=B*s+b*u+x*h+T*m,t[14]=B*i+b*l+x*p+T*g,t[15]=B*o+b*c+x*d+T*M,t}function f(t,e,n){const r=n[0],s=n[1],i=n[2];if(e===t)t[12]=e[0]*r+e[4]*s+e[8]*i+e[12],t[13]=e[1]*r+e[5]*s+e[9]*i+e[13],t[14]=e[2]*r+e[6]*s+e[10]*i+e[14],t[15]=e[3]*r+e[7]*s+e[11]*i+e[15];else{const n=e[0],o=e[1],a=e[2],u=e[3],l=e[4],c=e[5],f=e[6],h=e[7],p=e[8],d=e[9],y=e[10],m=e[11];t[0]=n,t[1]=o,t[2]=a,t[3]=u,t[4]=l,t[5]=c,t[6]=f,t[7]=h,t[8]=p,t[9]=d,t[10]=y,t[11]=m,t[12]=n*r+l*s+p*i+e[12],t[13]=o*r+c*s+d*i+e[13],t[14]=a*r+f*s+y*i+e[14],t[15]=u*r+h*s+m*i+e[15]}return t}function h(t,e,n){const r=n[0],s=n[1],i=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*s,t[5]=e[5]*s,t[6]=e[6]*s,t[7]=e[7]*s,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function p(t,e,n,r){let o=r[0],a=r[1],u=r[2],l=Math.sqrt(o*o+a*a+u*u);if(l<=(0,s.FD)())return void i(t,e);l=1/l,o*=l,a*=l,u*=l;const c=Math.sin(n),f=Math.cos(n),h=1-f,p=e[0],d=e[1],y=e[2],m=e[3],g=e[4],M=e[5],B=e[6],b=e[7],x=e[8],T=e[9],w=e[10],v=e[11],E=o*o*h+f,S=a*o*h+u*c,A=u*o*h-a*c,_=o*a*h-u*c,R=a*a*h+f,P=u*a*h+o*c,C=o*u*h+a*c,I=a*u*h-o*c,O=u*u*h+f;t[0]=p*E+g*S+x*A,t[1]=d*E+M*S+T*A,t[2]=y*E+B*S+w*A,t[3]=m*E+b*S+v*A,t[4]=p*_+g*R+x*P,t[5]=d*_+M*R+T*P,t[6]=y*_+B*R+w*P,t[7]=m*_+b*R+v*P,t[8]=p*C+g*I+x*O,t[9]=d*C+M*I+T*O,t[10]=y*C+B*I+w*O,t[11]=m*C+b*I+v*O,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function d(t,e,n){const r=Math.sin(n),s=Math.cos(n),i=e[4],o=e[5],a=e[6],u=e[7],l=e[8],c=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*s+l*r,t[5]=o*s+c*r,t[6]=a*s+f*r,t[7]=u*s+h*r,t[8]=l*s-i*r,t[9]=c*s-o*r,t[10]=f*s-a*r,t[11]=h*s-u*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,n){if(0===e)return a(t);let r=n[0],i=n[1],o=n[2],u=Math.sqrt(r*r+i*i+o*o);if(u<=(0,s.FD)())return null;u=1/u,r*=u,i*=u,o*=u;const l=Math.sin(e),c=Math.cos(e),f=1-c;return t[0]=r*r*f+c,t[1]=i*r*f+o*l,t[2]=o*r*f-i*l,t[3]=0,t[4]=r*i*f-o*l,t[5]=i*i*f+c,t[6]=o*i*f+r*l,t[7]=0,t[8]=r*o*f+i*l,t[9]=i*o*f-r*l,t[10]=o*o*f+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function B(t,e,n){const r=e[0],s=e[1],i=e[2],o=e[3],a=r+r,u=s+s,l=i+i,c=r*a,f=r*u,h=r*l,p=s*u,d=s*l,y=i*l,m=o*a,g=o*u,M=o*l;return t[0]=1-(p+y),t[1]=f+M,t[2]=h-g,t[3]=0,t[4]=f-M,t[5]=1-(c+y),t[6]=d+m,t[7]=0,t[8]=h+g,t[9]=d-m,t[10]=1-(c+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const b=(0,r.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function T(t,e){const n=e[0],r=e[1],s=e[2],i=e[4],o=e[5],a=e[6],u=e[8],l=e[9],c=e[10];return t[0]=Math.sqrt(n*n+r*r+s*s),t[1]=Math.sqrt(i*i+o*o+a*a),t[2]=Math.sqrt(u*u+l*l+c*c),t}function w(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function v(t,e,n,r){const s=e[0],i=e[1],o=e[2],a=e[3],u=s+s,l=i+i,c=o+o,f=s*u,h=s*l,p=s*c,d=i*l,y=i*c,m=o*c,g=a*u,M=a*l,B=a*c,b=r[0],x=r[1],T=r[2];return t[0]=(1-(d+m))*b,t[1]=(h+B)*b,t[2]=(p-M)*b,t[3]=0,t[4]=(h-B)*x,t[5]=(1-(f+m))*x,t[6]=(y+g)*x,t[7]=0,t[8]=(p+M)*T,t[9]=(y-g)*T,t[10]=(1-(f+d))*T,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function E(t,e,n,r,s){const i=e[0],o=e[1],a=e[2],u=e[3],l=i+i,c=o+o,f=a+a,h=i*l,p=i*c,d=i*f,y=o*c,m=o*f,g=a*f,M=u*l,B=u*c,b=u*f,x=r[0],T=r[1],w=r[2],v=s[0],E=s[1],S=s[2],A=(1-(y+g))*x,_=(p+b)*x,R=(d-B)*x,P=(p-b)*T,C=(1-(h+g))*T,I=(m+M)*T,O=(d+B)*w,k=(m-M)*w,j=(1-(h+y))*w;return t[0]=A,t[1]=_,t[2]=R,t[3]=0,t[4]=P,t[5]=C,t[6]=I,t[7]=0,t[8]=O,t[9]=k,t[10]=j,t[11]=0,t[12]=n[0]+v-(A*v+P*E+O*S),t[13]=n[1]+E-(_*v+C*E+k*S),t[14]=n[2]+S-(R*v+I*E+j*S),t[15]=1,t}function S(t,e,n,r,s,i,o){const a=1/(n-e),u=1/(s-r),l=1/(i-o);return t[0]=2*i*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*u,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(s+r)*u,t[10]=(o+i)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*l,t[15]=0,t}function A(t,e,n,r,s,i,o){const a=1/(e-n),u=1/(r-s),l=1/(i-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*a,t[13]=(s+r)*u,t[14]=(o+i)*l,t[15]=1,t}function _(t,e,n,r){const i=e[0],o=e[1],u=e[2];let l=i-n[0],c=o-n[1],f=u-n[2];const h=(0,s.FD)();if(Math.abs(l)<h&&Math.abs(c)<h&&Math.abs(f)<h)return void a(t);let p=1/Math.sqrt(l*l+c*c+f*f);l*=p,c*=p,f*=p;const d=r[0],y=r[1],m=r[2];let g=y*f-m*c,M=m*l-d*f,B=d*c-y*l;p=Math.sqrt(g*g+M*M+B*B),p?(p=1/p,g*=p,M*=p,B*=p):(g=0,M=0,B=0);let b=c*B-f*M,x=f*g-l*B,T=l*M-c*g;p=Math.sqrt(b*b+x*x+T*T),p?(p=1/p,b*=p,x*=p,T*=p):(b=0,x=0,T=0),t[0]=g,t[1]=b,t[2]=l,t[3]=0,t[4]=M,t[5]=x,t[6]=c,t[7]=0,t[8]=B,t[9]=T,t[10]=f,t[11]=0,t[12]=-(g*i+M*o+B*u),t[13]=-(b*i+x*o+T*u),t[14]=-(l*i+c*o+f*u),t[15]=1}function R(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function C(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],u=t[5],l=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],y=t[12],m=t[13],g=t[14],M=t[15],B=e[0],b=e[1],x=e[2],T=e[3],w=e[4],v=e[5],E=e[6],S=e[7],A=e[8],_=e[9],R=e[10],P=e[11],C=e[12],I=e[13],O=e[14],k=e[15],j=(0,s.FD)();return Math.abs(n-B)<=j*Math.max(1,Math.abs(n),Math.abs(B))&&Math.abs(r-b)<=j*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=j*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-T)<=j*Math.max(1,Math.abs(o),Math.abs(T))&&Math.abs(a-w)<=j*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(u-v)<=j*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(l-E)<=j*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-S)<=j*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(f-A)<=j*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(h-_)<=j*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(p-R)<=j*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(d-P)<=j*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(y-C)<=j*Math.max(1,Math.abs(y),Math.abs(C))&&Math.abs(m-I)<=j*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(g-O)<=j*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(M-k)<=j*Math.max(1,Math.abs(M),Math.abs(k))}function I(t){const e=(0,s.FD)(),n=t[0],r=t[1],i=t[2],o=t[4],a=t[5],u=t[6],l=t[8],c=t[9],f=t[10];return Math.abs(1-(n*n+o*o+l*l))<=e&&Math.abs(1-(r*r+a*a+c*c))<=e&&Math.abs(1-(i*i+u*u+f*f))<=e}function O(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const k=c,j=R;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],s=e[2],i=e[3],o=e[4],a=e[5],u=e[6],l=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],y=e[13],m=e[14],g=e[15];return t[0]=a*(h*g-p*m)-f*(u*g-l*m)+y*(u*p-l*h),t[1]=-(r*(h*g-p*m)-f*(s*g-i*m)+y*(s*p-i*h)),t[2]=r*(u*g-l*m)-a*(s*g-i*m)+y*(s*l-i*u),t[3]=-(r*(u*p-l*h)-a*(s*p-i*h)+f*(s*l-i*u)),t[4]=-(o*(h*g-p*m)-c*(u*g-l*m)+d*(u*p-l*h)),t[5]=n*(h*g-p*m)-c*(s*g-i*m)+d*(s*p-i*h),t[6]=-(n*(u*g-l*m)-o*(s*g-i*m)+d*(s*l-i*u)),t[7]=n*(u*p-l*h)-o*(s*p-i*h)+c*(s*l-i*u),t[8]=o*(f*g-p*y)-c*(a*g-l*y)+d*(a*p-l*f),t[9]=-(n*(f*g-p*y)-c*(r*g-i*y)+d*(r*p-i*f)),t[10]=n*(a*g-l*y)-o*(r*g-i*y)+d*(r*l-i*a),t[11]=-(n*(a*p-l*f)-o*(r*p-i*f)+c*(r*l-i*a)),t[12]=-(o*(f*m-h*y)-c*(a*m-u*y)+d*(a*h-u*f)),t[13]=n*(f*m-h*y)-c*(r*m-s*y)+d*(r*h-s*f),t[14]=-(n*(a*m-u*y)-o*(r*m-s*y)+d*(r*u-s*a)),t[15]=n*(a*h-u*f)-o*(r*h-s*f)+c*(r*u-s*a),t},copy:i,determinant:function(t){const e=t[0],n=t[1],r=t[2],s=t[3],i=t[4],o=t[5],a=t[6],u=t[7],l=t[8],c=t[9],f=t[10],h=t[11],p=t[12],d=t[13],y=t[14],m=t[15];return(e*o-n*i)*(f*m-h*y)-(e*a-r*i)*(c*m-h*d)+(e*u-s*i)*(c*y-f*d)+(n*a-r*o)*(l*m-h*p)-(n*u-s*o)*(l*y-f*p)+(r*u-s*a)*(l*d-c*p)},equals:C,exactEquals:P,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],s=e[2],i=e[3],o=n+n,a=r+r,u=s+s,l=n*o,c=r*o,f=r*a,h=s*o,p=s*a,d=s*u,y=i*o,m=i*a,g=i*u;return t[0]=1-f-d,t[1]=c+g,t[2]=h-m,t[3]=0,t[4]=c-g,t[5]=1-l-d,t[6]=p+y,t[7]=0,t[8]=h+m,t[9]=p-y,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=b,r=-e[0],s=-e[1],i=-e[2],o=e[3],a=e[4],u=e[5],l=e[6],c=e[7],f=r*r+s*s+i*i+o*o;return f>0?(n[0]=2*(a*o+c*r+u*i-l*s)/f,n[1]=2*(u*o+c*s+l*r-a*i)/f,n[2]=2*(l*o+c*i+a*s-u*r)/f):(n[0]=2*(a*o+c*r+u*i-l*s),n[1]=2*(u*o+c*s+l*r-a*i),n[2]=2*(l*o+c*i+a*s-u*r)),B(t,e,n),t},fromRotation:m,fromRotationTranslation:B,fromRotationTranslationScale:v,fromRotationTranslationScaleOrigin:E,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:g,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:M,frustum:S,getRotation:w,getScale:T,getTranslation:x,hasIdentityRotation:O,identity:a,invert:l,invertOrIdentity:function(t,e){return l(t,e)||a(t),t},isOrthoNormal:I,lookAt:_,mul:k,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:A,perspective:function(t,e,n,r,s){const i=1/Math.tan(e/2);let o;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=s&&s!==1/0?(o=1/(r-s),t[10]=(s+r)*o,t[14]=2*s*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const s=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+a),l=2/(s+i);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-a)*u*.5,t[9]=(s-i)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:p,rotateX:d,rotateY:function(t,e,n){const r=Math.sin(n),s=Math.cos(n),i=e[0],o=e[1],a=e[2],u=e[3],l=e[8],c=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*s-l*r,t[1]=o*s-c*r,t[2]=a*s-f*r,t[3]=u*s-h*r,t[8]=i*r+l*s,t[9]=o*r+c*s,t[10]=a*r+f*s,t[11]=u*r+h*s,t},rotateZ:function(t,e,n){const r=Math.sin(n),s=Math.cos(n),i=e[0],o=e[1],a=e[2],u=e[3],l=e[4],c=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*s+l*r,t[1]=o*s+c*r,t[2]=a*s+f*r,t[3]=u*s+h*r,t[4]=l*s-i*r,t[5]=c*s-o*r,t[6]=f*s-a*r,t[7]=h*s-u*r,t},scale:h,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:j,subtract:R,targetTo:function(t,e,n,r){const s=e[0],i=e[1],o=e[2],a=r[0],u=r[1],l=r[2];let c=s-n[0],f=i-n[1],h=o-n[2],p=c*c+f*f+h*h;p>0&&(p=1/Math.sqrt(p),c*=p,f*=p,h*=p);let d=u*h-l*f,y=l*c-a*h,m=a*f-u*c;return p=d*d+y*y+m*m,p>0&&(p=1/Math.sqrt(p),d*=p,y*=p,m*=p),t[0]=d,t[1]=y,t[2]=m,t[3]=0,t[4]=f*m-h*y,t[5]=h*d-c*m,t[6]=c*y-f*d,t[7]=0,t[8]=c,t[9]=f,t[10]=h,t[11]=0,t[12]=s,t[13]=i,t[14]=o,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>E,Bw:()=>i,C:()=>o,Cc:()=>S,DI:()=>T,Il:()=>F,Io:()=>M,Ln:()=>g,Om:()=>v,Qr:()=>f,Re:()=>l,S8:()=>w,T9:()=>y,WQ:()=>u,Z0:()=>A,_S:()=>p,aI:()=>j,ei:()=>_,fw:()=>P,g7:()=>C,gL:()=>R,hG:()=>B,hZ:()=>a,hs:()=>m,jb:()=>Y,jk:()=>d,lo:()=>Z,lw:()=>c,m3:()=>b,oW:()=>q,t2:()=>k,tn:()=>h,uE:()=>z,xg:()=>L,ze:()=>x});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function p(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function B(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function T(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function v(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function E(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2];return t[0]=s*u-i*a,t[1]=i*o-r*u,t[2]=r*a-s*o,t}function S(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function A(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function _(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function R(t,e,n){return P(t,e,n[0],n[1],n[2],n[3])}function P(t,e,n,r,s,i){const o=e[0],a=e[1],u=e[2],l=r*u-s*a,c=s*o-n*u,f=n*a-r*o,h=r*f-s*c,p=s*l-n*f,d=n*c-r*l,y=2*i;return t[0]=o+l*y+2*h,t[1]=a+c*y+2*p,t[2]=u+f*y+2*d,t}function C(t,e){w(I,t),w(O,e);const n=v(I,O);return n>1?0:n<-1?Math.PI:Math.acos(n)}const I=(0,r.vt)(),O=(0,r.vt)();function k(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function j(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],u=e[2],l=(0,s.FD)();return Math.abs(n-o)<=l*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=l*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=l*Math.max(1,Math.abs(i),Math.abs(u))}function q(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Y=l,N=c,X=f,L=M,Z=B,F=i,z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:C,bezier:function(t,e,n,r,s,i){const o=1-i,a=o*o,u=i*i,l=a*o,c=3*i*a,f=3*u*o,h=u*i;return t[0]=e[0]*l+n[0]*c+r[0]*f+s[0]*h,t[1]=e[1]*l+n[1]*c+r[1]*f+s[1]*h,t[2]=e[2]*l+n[2]*c+r[2]*f+s[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:E,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],l=s*u-i*a,c=i*o-r*u,f=r*a-s*o,h=Math.sqrt(l*l+c*c+f*f);return t[0]=l/h,t[1]=c/h,t[2]=f/h,t},direction:q,dist:L,distance:M,div:X,divide:f,dot:v,equals:j,exactEquals:k,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,l=o*(i-1),c=o*(3-2*i);return t[0]=e[0]*a+n[0]*u+r[0]*l+s[0]*c,t[1]=e[1]*a+n[1]*u+r[1]*l+s[1]*c,t[2]=e[2]*a+n[2]*u+r[2]*l+s[2]*c,t},inverse:T,len:F,length:i,lerp:S,max:y,min:d,mul:N,multiply:c,negate:x,normalize:w,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:g,set:a,sign:p,sqrDist:Z,sqrLen:z,squaredDistance:B,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:Y,subtract:l,transformMat3:_,transformMat4:A,transformQuat:R,transformQuatValues:P},Symbol.toStringTag,{value:"Module"}))},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>s,Cc:()=>b,LI:()=>h,Om:()=>B,S8:()=>M,T9:()=>f,WQ:()=>o,Z0:()=>x,aI:()=>w,hG:()=>y,hZ:()=>i,hs:()=>p,jk:()=>c,m3:()=>g,t2:()=>T});var r=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=r,t[3]=s,t}function o(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function c(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function f(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function h(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 p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function d(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(n*n+r*r+s*s+i*i)}function y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return n*n+r*r+s*s+i*i}function m(t){const e=t[0],n=t[1],r=t[2],s=t[3];return Math.sqrt(e*e+n*n+r*r+s*s)}function g(t){const e=t[0],n=t[1],r=t[2],s=t[3];return e*e+n*n+r*r+s*s}function M(t,e){const n=e[0],r=e[1],s=e[2],i=e[3];let o=n*n+r*r+s*s+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=s*o,t[3]=i*o),t}function B(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function b(t,e,n,r){const s=e[0],i=e[1],o=e[2],a=e[3];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t[3]=a+r*(n[3]-a),t}function x(t,e,n){const r=e[0],s=e[1],i=e[2],o=e[3];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12]*o,t[1]=n[1]*r+n[5]*s+n[9]*i+n[13]*o,t[2]=n[2]*r+n[6]*s+n[10]*i+n[14]*o,t[3]=n[3]*r+n[7]*s+n[11]*i+n[15]*o,t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function w(t,e){const n=t[0],s=t[1],i=t[2],o=t[3],a=e[0],u=e[1],l=e[2],c=e[3],f=(0,r.FD)();return Math.abs(n-a)<=f*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-u)<=f*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(i-l)<=f*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-c)<=f*Math.max(1,Math.abs(o),Math.abs(c))}const v=a,E=u,S=l,A=d,_=y,R=m,P=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,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:s,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:A,distance:d,div:S,divide:l,dot:B,equals:w,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},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:R,length:m,lerp:b,max:f,min:c,mul:E,multiply:u,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:M,random:function(t,e=1){const n=r.Ov;let s,i,o,a,u,l;do{s=2*n()-1,i=2*n()-1,u=s*s+i*i}while(u>=1);do{o=2*n()-1,a=2*n()-1,l=o*o+a*a}while(l>=1);const c=Math.sqrt((1-u)/l);return t[0]=e*s,t[1]=e*i,t[2]=e*o*c,t[3]=e*a*c,t},round:h,scale:p,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:i,sqrDist:_,sqrLen:P,squaredDistance:y,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:v,subtract:a,transformMat4:x,transformQuat:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],l=n[3],c=l*r+a*i-u*s,f=l*s+u*r-o*i,h=l*i+o*s-a*r,p=-o*r-a*s-u*i;return t[0]=c*l+p*-o+f*-u-h*-a,t[1]=f*l+p*-a+h*-o-c*-u,t[2]=h*l+p*-u+c*-a-f*-o,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},75503(t,e,n){n.d(e,{wq:()=>a});var r=n(4576),s=n(21818),i=(n(44208),n(15142)),o=n(11006);class a{constructor(t=9,e){this._compareMinX=h,this._compareMinY=p,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),T.prune(),w.prune(),v.prune()}all(t){u(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(B(t,n))for(x.clear();n;){for(let s=0,i=n.children.length;s<i;s++){const i=n.children[s],o=n.leaf?r(i):i;B(t,o)&&(n.leaf?e(i):M(t,o)?u(i,e):x.push(i))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!B(t,e))return!1;for(x.clear();e;){for(let r=0,s=e.children.length;r<s;r++){const s=e.children[r],i=e.leaf?n(s):s;if(B(t,i)){if(e.leaf||M(t,i))return!0;x.push(s)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(t){if(!t)return this;let e,n=this._data,i=null,o=0,a=!1;const u=this._toBBox(t);for(w.clear(),v.clear();n||w.length>0;){if(n||(n=w.pop(),i=w.data[w.length-1],o=v.pop()??0,a=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,s.z)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),w.push(n),this._condense(w),this;a||n.leaf||!M(n,u)?i?(o++,n=i.children[o],a=!1):n=null:(w.push(n),v.push(o),o=0,i=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){const s=n-e+1;let i=this._maxEntries;if(s<=i){const r=new A(t.slice(e,n+1));return l(r,this._toBBox),r}r||(r=Math.ceil(Math.log(s)/Math.log(i)),i=Math.ceil(s/i**(r-1)));const o=new _([]);o.height=r;const a=Math.ceil(s/i),u=a*Math.ceil(Math.sqrt(i));b(t,e,n,u,this._compareMinX);for(let s=e;s<=n;s+=u){const e=Math.min(s+u-1,n);b(t,s,e,a,this._compareMinY);for(let n=s;n<=e;n+=a){const s=Math.min(n+a-1,e);o.children.push(this._build(t,n,s,r-1))}}return l(o,this._toBBox),o}_insert(t,e,n){const r=this._toBBox,s=n?t:r(t);w.clear();const i=function(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,s=1/0;for(let i=0,o=e.children.length;i<o;i++){const o=e.children[i],a=d(o),u=m(t,o)-a;u<s?(s=u,r=a<r?a:r,n=o):u===s&&a<r&&(r=a,n=o)}e=n||e.children[0]}return e}(s,this._data,e,w);for(i.children.push(t),f(i,s);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)f(e.data[r],t)}(s,w,e)}_split(t,e){const n=t.data[e],r=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,r);const i=this._chooseSplitIndex(n,s,r);if(!i)return;const o=n.children.splice(i,n.children.length-i),a=n.leaf?new A(o):new _(o);a.height=n.height,l(n,this._toBBox),l(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(n,a)}_splitRoot(t,e){this._data=new _([t,e]),this._data.height=t.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,s,i;r=s=1/0;for(let o=e;o<=n-e;o++){const e=c(t,0,o,this._toBBox),a=c(t,o,n,this._toBBox),u=g(e,a),l=d(e)+d(a);u<r?(r=u,i=o,s=l<s?l:s):u===r&&l<s&&(s=l,i=o)}return i}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:h,s=t.leaf?this._compareMinY:p;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,s)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const s=this._toBBox,i=c(t,0,e,s),o=c(t,n-e,n,s);let a=y(i)+y(o);for(let r=e;r<n-e;r++){const e=t.children[r];f(i,t.leaf?s(e):e),a+=y(i)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];f(o,t.leaf?s(e):e),a+=y(o)}return a}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const s=t.data[e-1],i=s.children;i.splice((0,r.qh)(i,n,i.length,s.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function u(t,e){let n=t;for(T.clear();n;){if(!0===n.leaf)for(const t of n.children)e((0,s.z)(t));else T.pushArray(n.children);n=T.pop()??null}}function l(t,e){c(t,0,t.children.length,e,t)}function c(t,e,n,r,s){s||(s=new A([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let i,o=e;o<n;o++)i=t.children[o],f(s,t.leaf?r(i):i);return s}function f(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function h(t,e){return t.minX-e.minX}function p(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,s-n)*Math.max(0,i-r)}function M(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function B(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function b(t,e,n,r,s){const i=[e,n];for(;i.length;){const e=i.pop(),n=i.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,o.q)(t,a,n,e,s),i.push(n,a,a,e)}}const x=new i.A,T=new i.A,w=new i.A,v=new i.A({deallocator:void 0});class E{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends E{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class A extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class _ extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},48526(t,e,n){n.d(e,{A:()=>m});var r,s=n(5482),i=n(4576),o=n(4718),a=n(91429),u=n(5443),l=n(91075),c=n(86738),f=n(16930),h=n(90634),p=n(47610),d=n(56993),y=n(43937);let m=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:s}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return s??=f.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:s}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,h.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:s}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:s})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return null!=e==(null!=n)&&!(null!=e&&null!=n&&!e.equals(n))&&(0,i.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new c.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new c.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,s.Cg)([(0,y.K)("points")],m.prototype,"writePoints",null),m=r=(0,s.Cg)([(0,a.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,s=n(5482),i=n(4718),o=n(91429),a=n(5443),u=n(91075),l=n(86738),c=n(16930),f=n(90634),h=n(56993),p=n(43937);let d=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:s}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return s??=c.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:s}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,i.o8)(t)}get extent(){const t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const n=this.paths[t][e],r=this.hasZ,s=this.hasM;return r&&!s?new l.A(n[0],n[1],n[2],void 0,this.spatialReference):s&&!r?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&s?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,h.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new l.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new l.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,h.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const r=this.paths[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,s.Cg)([(0,p.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,s.Cg)([(0,p.K)("paths")],d.prototype,"writePaths",null),d=r=(0,s.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},159(t,e,n){n.d(e,{A:()=>l});var r,s=n(5482),i=n(69540),o=n(25482),a=n(91429),u=n(99157);let l=r=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,s.Cg)([(0,a.MZ)({type:[u.A],nonNullable:!0,json:{name:"geoTransforms"}})],l.prototype,"steps",void 0),l=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],l)},99157(t,e,n){n.d(e,{A:()=>u});var r,s=n(5482),i=n(69540),o=n(25482),a=n(91429);let u=r=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,a.MZ)({json:{name:"transformForward",read:t=>!t,write:(t,e,n)=>{e[n]=!t}}})],u.prototype,"isInverse",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"wkt",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"wkid",void 0),u=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],u)},48353(t,e,n){n.d(e,{l:()=>l});var r=n(34727),s=n(58083),i=n(51850);function o(t,e,n){const r=Math.sin(t),s=Math.cos(t),i=Math.sin(e),o=Math.cos(e),a=n;return a[0]=-r,a[4]=-i*s,a[8]=o*s,a[12]=0,a[1]=s,a[5]=-i*r,a[9]=o*r,a[13]=0,a[2]=0,a[6]=o,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=n(49208),u=n(21325);function l(t,e,n,r){const i=(0,a.Tp)(t,r);if(null==i)return!1;const l=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(l===d&&!c(d)&&(0!==l||(0,u.aI)(t,r)))return(0,s.kN)(n,e),!0;if(c(d)){const t=a.w5[l][10],r=a.w5[10][d];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),o(f*h[0],f*h[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}const y=c(l);if((3===d||11===d||2===d||5===d)&&(2===l||y||3===l||5===l)){const t=a.w5[l][10],r=a.w5[10][d];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),y?function(t,e,n){o(t,e,n),(0,s.mg)(n,n)}(f*h[0],f*h[1],n):(0,s.D_)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function c(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>s});var r=n(49208);function s(t,e,n,s,i,o,a=Math.floor(t.length/3)){const u=(0,r.jd)(e,i);if(null==u)return!1;if(u===r.pO){if(t===s&&n===o)return!0;const e=n+3*a;for(let r=n,i=o;r<e;r++,i++)s[i]=t[r]??0;return!0}const l=n+3*a;for(let e=n,r=o;e<l;e+=3,r+=3)u(t,e,s,r);return!0}},65806(t,e,n){n.d(e,{g:()=>o});var r=n(51850),s=n(91218),i=n(9762);function o(t,e,n,r){if((0,s.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,i.projectBuffer)(a,t.spatialReference,0,e,n,0);const o=(0,s.tryProject)(t,n,r);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const a=(0,r.vt)()},49208(t,e,n){n.d(e,{Tp:()=>f,jd:()=>c,pO:()=>p,w5:()=>l});var r=n(34727),s=n(86211),i=n(73941),o=n(79258),a=n(34403),u=n(21325);const l={2:{5:p,7:null,9:null,10:p,1:x,6:null,8:null,0:null,3:y,11:m,2:p,4:S},5:{5:p,7:null,9:null,10:p,1:x,6:null,8:null,0:null,3:y,11:m,2:p,4:S},7:{5:null,7:p,9:null,10:p,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:B,0:null,3:null,11:null,2:null,4:null},3:{5:d,7:null,9:null,10:d,1:function(t,e,n,r){const s=t[e]/I,i=C-2*Math.atan(Math.exp(-t[e+1]/I)),o=I+(t[e+2]??0),a=Math.cos(i)*o;n[r]=Math.cos(s)*a,n[r+1]=Math.sin(s)*a,n[r+2]=Math.sin(i)*o},6:null,8:null,0:null,3:p,11:function(t,e,n,r){d(t,e,n,r),m(n,r,n,r)},2:d,4:function(t,e,n,r){d(t,e,n,r),S(n,r,n,r)}},4:{5:A,7:null,9:null,10:A,1:function(t,e,n,r){A(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){A(t,e,n,r),y(n,r,n,r)},11:function(t,e,n,r){A(t,e,n,r),m(n,r,n,r)},2:A,4:p},1:{5:E,7:null,9:null,10:E,1:p,6:null,8:null,0:null,3:function(t,e,n,r){E(t,e,n,r),y(n,r,n,r)},11:function(t,e,n,r){E(t,e,n,r),m(n,r,n,r)},2:E,4:function(t,e,n,r){E(t,e,n,r),S(n,r,n,r)}},6:{5:null,7:v,9:null,10:v,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:w,10:w,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:x,6:b,8:B,0:null,3:y,11:m,2:p,4:S},11:{5:g,7:null,9:null,10:g,1:function(t,e,n,r){g(t,e,n,r),x(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){g(t,e,n,r),y(n,r,n,r)},11:p,2:g,4:function(t,e,n,r){g(t,e,n,r),S(n,r,n,r)}}};function c(t,e){return f(t,e)?.projector}function f(t,e){if(null==t||null==e)return null;if(_.source.spatialReference===t&&_.dest.spatialReference===e)return _;const n=h(t,_.source),r=h(e,_.dest);return 0===n&&0===r?(0,u.aI)(t,e)?_.projector=p:_.projector=null:_.projector=l[n][r],_}function h(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,s.GA)(t,1)),(0,i.jA)(t)?e.spatialReferenceId=1:(0,u.oT)(t)?e.spatialReferenceId=2:(0,u.K8)(t)?e.spatialReferenceId=3:(0,u.r1)(t)?e.spatialReferenceId=11:t.wkt===i.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===i.FY.wkt?e.spatialReferenceId=6:t.wkt===i.LJ.wkt?e.spatialReferenceId=8:(0,i.q8)(t)?e.spatialReferenceId=7:(0,i.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function p(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function d(t,e,n,r){n[r]=P*(t[e]/I),n[r+1]=P*(C-2*Math.atan(Math.exp(-t[e+1]/I))),n[r+2]=t[e+2]??0}function y(t,e,n,s){!function(t,e,n,s,i){const o=.4999999*Math.PI,a=(0,r.qE)(R*t[e+1],-o,o),u=Math.sin(a);n[s++]=R*t[e]*i.radius,n[s++]=i.halfSemiMajorAxis*Math.log((1+u)/(1-u)),n[s]=t[e+2]??0}(t,e,n,s,o.$O)}function m(t,e,n,r){n[r]=t[e]*O,n[r+1]=t[e+1]*O,n[r+2]=t[e+2]??0}function g(t,e,n,r){n[r]=t[e]*k,n[r+1]=t[e+1]*k,n[r+2]=t[e+2]??0}function M(t,e,n,r,s){const i=s+(t[e+2]??0),o=R*t[e],a=R*t[e+1],u=Math.cos(a)*i;n[r]=Math.cos(o)*u,n[r+1]=Math.sin(o)*u,n[r+2]=Math.sin(a)*i}function B(t,e,n,r){M(t,e,n,r,o.Sw.radius)}function b(t,e,n,r){M(t,e,n,r,o.sH.radius)}function x(t,e,n,r){M(t,e,n,r,o.$O.radius)}function T(t,e,n,s,i){const o=t[e],a=t[e+1],u=t[e+2]??0,l=Math.sqrt(o*o+a*a+u*u),c=(0,r.YN)(u/(0===l?1:l)),f=Math.atan2(a,o);n[s++]=P*f,n[s++]=P*c,n[s]=l-i}function w(t,e,n,r){T(t,e,n,r,o.Sw.radius)}function v(t,e,n,r){T(t,e,n,r,o.sH.radius)}function E(t,e,n,r){T(t,e,n,r,o.$O.radius)}function S(t,e,n,r){!function(t,e,n,r,s){const i=R*t[e],o=R*t[e+1],a=t[e+2]??0,u=Math.sin(o),l=Math.cos(o),c=s.radius/Math.sqrt(1-s.eccentricitySquared*u*u);n[r++]=(c+a)*l*Math.cos(i),n[r++]=(c+a)*l*Math.sin(i),n[r++]=(c*(1-s.eccentricitySquared)+a)*u}(t,e,n,r,o.$O)}function A(t,e,n,r){const s=a.TP,i=t[e],u=t[e+1],l=t[e+2]??0;let c,f,h,p,d,y,m,g,M,B,b,x,T,w,v,E,S,A,_,R,C;c=Math.abs(l),f=i*i+u*u,h=Math.sqrt(f),p=f+l*l,d=Math.sqrt(p),R=Math.atan2(u,i),y=l*l/p,m=f/p,w=s.a2/d,v=s.a3-s.a4/d,m>.3?(g=c/d*(1+m*(s.a1+w+y*v)/d),_=Math.asin(g),B=g*g,M=Math.sqrt(1-B)):(M=h/d*(1-y*(s.a5-w-m*v)/d),_=Math.acos(M),B=1-M*M,g=Math.sqrt(B)),b=1-o.$O.eccentricitySquared*B,x=o.$O.radius/Math.sqrt(b),T=s.a6*x,w=h-x*M,v=c-T*g,S=M*w+g*v,E=M*v-g*w,A=E/(T/b+S),_+=A,C=S+E*A/2,l<0&&(_=-_),n[r++]=P*R,n[r++]=P*_,n[r]=C}const _={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},R=(0,r.kU)(1),P=(0,r.KJ)(1),C=.5*Math.PI,I=o.$O.radius,O=I*Math.PI/180,k=180/(I*Math.PI)},91218(t,e,n){n.r(e),n.d(e,{canProjectWithoutEngine:()=>D,initializeProjection:()=>G,isEqualBaseGCS:()=>$,isLoaded:()=>I,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>k,load:()=>q,project:()=>Y,projectAsync:()=>V,projectExtent:()=>st,projectMany:()=>N,projectMultipoint:()=>H,projectOrLoad:()=>L,projectOrLoadMany:()=>Z,projectPoint:()=>K,projectPolygon:()=>nt,projectPolyline:()=>tt,projectWithoutEngine:()=>W,requiresLoad:()=>j,test:()=>U,tryProject:()=>X,unload:()=>z});var r=n(49186),s=n(17676),i=n(62788),o=n(95488),a=n(51850),u=n(21276),l=n(73941),c=n(5443),f=n(91075),h=n(48526),p=n(86738),d=n(39829),y=n(82799),m=n(16930),g=n(98764),M=n(159),B=n(9762),b=n(49208);function x(t,e,n,r,s,i){return T[0]=t,T[1]=e,T[2]=n,(0,B.projectBuffer)(T,r,0,s,i,0)}const T=(0,a.vt)();var w=n(60408),v=n(21325),E=n(52006);let S=null,A=null,_=null,R=null,P={};const C=new o.I;function I(){return!!(A?.isLoaded()&&_?.isLoaded()&&R?.isLoaded())}function O(){return!!I()||((0,i.gc)(C),q(),!1)}function k(t,e){return!t||!e||D(t,e)||O()}function j(t,e){return!D(t,e)&&!I()}async function q(t){null==S&&(S=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(A=t,A.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(_=t,_.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(R=t,R.load()))])),await S,(0,s.Te)(t),C.notify()}function Y(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,u.H)(t),N(t,t[0].spatialReference,e,n)):((0,u.f)(t),N([t],t.spatialReference,e,n)[0])}function N(t,e,n,r){if(null==e||null==n)return t;if(D(e,n,r))return t.map(t=>W(t,e,n));if(null==r?.geographicTransformation&&(0,l.jA)(e))return N(t.map(t=>W(t,e,m.A.WGS84)),m.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,l.jA)(n))return N(t,e,m.A.WGS84).map(t=>W(t,m.A.WGS84,n));if(!I())throw new F;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:R.getTransformation(e,n,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let s=P[t];s||(s=R.getTransformation(e,n)||new M.A,P[t]=s),r={geographicTransformation:s,zConversionDisabled:r?.zConversionDisabled}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof f.A?A.executeMany(t,n,r):_.executeMany(t,n,r)}function X(t,e,n){try{return Y(t,e,n)}catch(t){return null}}function L(t,e){const n=Z([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function Z(t,e,n){if(!I())for(const n of t)if(null!=n&&!(0,v.aI)(n.spatialReference,e)&&(0,v.fn)(n.spatialReference)&&(0,v.fn)(e)&&!D(n.spatialReference,e))return(0,i.gc)(C),{pending:q(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,v.aI)(t.spatialReference,e)?t:(0,v.fn)(t.spatialReference)&&(0,v.fn)(e)?Y(t,e,n):null)}}class F extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function z(){S=null,A=null,_=null,R=null,P={}}const U={get loadPromise(){return S}};async function V(t,e,n){if((0,s.Te)(n),!t)return t;const r=Z(Array.isArray(t)?t:[t],e,n);if(r.pending)return await r.pending,(0,s.Te)(n),V(t,e,n);const i=r.geometries??[];return Array.isArray(t)?i:i[0]}function D(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,v.aI)(t,e)||(0,v.fn)(t)&&(0,v.fn)(e)&&!!(0,b.jd)(t,e))}function $(t,e){if((0,v.aI)(t,e))return!0;if(!(0,v.fn)(t)||!(0,v.fn)(e))return!1;const n=(0,v.oT)(t)||(0,v.K8)(t)||(0,v.x1)(t),r=(0,v.oT)(e)||(0,v.K8)(e)||(0,v.x1)(e);return n&&r}async function G(t,e,n,r){if(I())return(0,s.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:s}of t)if(e&&n&&!D(e,n,s))return q(r)}else if(t&&e&&!D(t,e,n))return q(r);return(0,s.NO)(r)}function W(t,e,n){return t?(0,w.fT)(t)?J(t,e,new p.A,n,0):(0,w.ZC)(t)?it(t,e,new c.A,n,0):(0,w.Bi)(t)?rt(t,e,new d.A,n,0):(0,w.Rg)(t)?et(t,e,new y.A,n,0):(0,w.U9)(t)?Q(t,e,new h.A,n,0):null:null}function K(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=J(t,t.spatialReference,e,n,r)}function J(t,e,n,r,s){lt[0]=t.x,lt[1]=t.y;const i=t.z;return lt[2]=void 0!==i?i:s,(0,B.projectBuffer)(lt,e,0,lt,r,0)?(n.x=lt[0],n.y=lt[1],n.spatialReference=r,void 0!==i||(0,l.xP)(r)?(n.z=lt[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function H(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=Q(t,t.spatialReference,e,n,r)}function Q(t,e,n,r,s){const{points:i,hasZ:o,hasM:a}=t,u=[],l=i.length,c=[];for(const t of i)c.push(t[0],t[1],o?t[2]:s);if(!(0,B.projectBuffer)(c,e,0,c,r,0,l))return null;const f=ut(o,r);for(let t=0;t<l;++t){const e=3*t,n=c[e],r=c[e+1];f&&a?u.push([n,r,c[e+2],i[t][3]]):f?u.push([n,r,c[e+2]]):a?u.push([n,r,i[t][2]]):u.push([n,r])}return n.points=u,n.spatialReference=r,n.hasZ=o,n.hasM=a,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,s){const{curvePaths:i,paths:o,hasZ:a,hasM:u}=t;if(!(i?at(i,a??!1,u??!1,e,n.curvePaths=[],r,s):ot(o,a??!1,u??!1,e,n.paths,r,s)))return null;const l=ut(a,r);return n.spatialReference=r,n.hasZ=l,n.hasM=u,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,s){const{curveRings:i,rings:o,hasZ:a,hasM:u}=t;return(i?at(i,a??!1,u??!1,e,n.curveRings=[],r,s):ot(o,a??!1,u??!1,e,n.rings,r,s))?(n.spatialReference=r,n.hasZ=ut(a,r),n.hasM=u,n):null}function st(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=it(t,t.spatialReference,e,n,r)}function it(t,e,n,r,s){const{xmin:i,ymin:o,xmax:a,ymax:u,hasZ:l,hasM:c}=t;if(!x(i,o,l?t.zmin:s,e,lt,r))return null;const f=ut(l,r);return n.xmin=lt[0],n.ymin=lt[1],f&&(n.zmin=lt[2]),x(a,u,l?t.zmax:s,e,lt,r)?(n.xmax=lt[0],n.ymax=lt[1],f&&(n.zmax=lt[2]),c&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function ot(t,e,n,r,s,i,o=0){const a=new Array;for(const n of t)for(const t of n)a.push(t[0],t[1],e?t[2]:o);if(!(0,B.projectBuffer)(a,r,0,a,i,0))return!1;let u=0;s.length=0;const l=e?3:2,c=ut(e,i);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(u,u+=3);c||e.pop(),n&&e.push(r[l]),t.push(e)}s.push(t)}return!0}function at(t,e,n,r,s,i,o=0){const a=new Array;for(const n of t)for(const t of n){if((0,E.FG)(t))return!1;if((0,E.aO)(t)){const[n,r]=t.c;a.push(n[0],n[1],e?n[2]:o,r[0],r[1],o);continue}if((0,E.n1)(t)){const[n,r,s]=t.b;a.push(n[0],n[1],e?n[2]:o,r[0],r[1],o,s[0],s[1],o);continue}const n=t;a.push(n[0],n[1],e?n[2]:o)}if(!(0,B.projectBuffer)(a,r,0,a,i,0))return!1;let u=0;s.length=0;const l=e?3:2,c=ut(e,i);for(const e of t){const t=new Array;for(const r of e){const e=a.slice(u,u+=3);if(c||e.pop(),n&&e.push((0,E.yP)(r)[l]),(0,E.FG)(r))return!1;if((0,E.aO)(r)){const n=a[u++],r=a[u++];++u,t.push({c:[e,[n,r]]});continue}if((0,E.n1)(r)){const n=a[u++],r=a[u++];++u;const s=a[u++],i=a[u++];++u,t.push({b:[e,[n,r],[s,i]]});continue}t.push(e)}s.push(t)}return!0}function ut(t,e){return t||(0,l.xP)(e)||(0,v.aI)(e,g.Y0)}const lt=(0,a.vt)()},98764(t,e,n){n.d(e,{GD:()=>o,Y0:()=>l,lO:()=>c});var r=n(73941),s=n(16930),i=n(21325);const o=new s.A(r.fv),a=new s.A(r.FY),u=new s.A(r.LJ),l=new s.A(r.Ro);function c(t){const e=f.get(t);if(e)return e;let n=o;if(t)if(t===a)n=a;else if(t===u)n=u;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,i.tl)(e)||(0,i.tl)(r)?n=a:((0,i.ZL)(e)||(0,i.ZL)(r))&&(n=u);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===h?n=a:t===p&&(n=u)}}}return f.set(t,n),n}const f=new Map,h=a.wkt.toUpperCase(),p=u.wkt.toUpperCase()},95696(t,e,n){n.d(e,{A:()=>l});var r,s=n(5482),i=n(69540),o=n(25482),a=n(91429),u=n(93223);let l=class extends((0,i.OU)(o.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,s.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=r=(0,s.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(t,e,n){n.r(e),n.d(e,{default:()=>l});var r=n(5482),s=n(69540),i=n(25482),o=n(91429),a=n(51850),u=n(93223);let l=class extends((0,s.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},13030(t,e,n){n.d(e,{Y$:()=>B,XW:()=>M,qB:()=>P,Qt:()=>K,My:()=>tt,bf:()=>D,jZ:()=>S,j0:()=>A,Sx:()=>_,E$:()=>R,Qy:()=>ot,h:()=>N,P:()=>F,SL:()=>k,dy:()=>st,ES:()=>at,gH:()=>x,ZD:()=>b,si:()=>C,mJ:()=>J,UL:()=>et,D6:()=>$,Yi:()=>X,An:()=>z,LC:()=>j,xs:()=>w,EC:()=>T,Xm:()=>I,Vp:()=>H,zD:()=>nt,m8:()=>G,nS:()=>L,H$:()=>U,eI:()=>q,td:()=>it,Eq:()=>E,jz:()=>v,Aj:()=>O,E7:()=>Q,Y4:()=>rt,TX:()=>W,Uz:()=>Z,ml:()=>V,XP:()=>Y});var r=n(34727),s=n(34275),i=n(37585),o=n(48163),a=n(78955),u=n(91829),l=n(20498);class c{static{this.ElementCount=9}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===r&&(r=9*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[n++];return e}setMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[n++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;for(let t=0;t<9;++t)r[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}class f{static{this.ElementCount=16}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===r&&(r=16*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[n++];return e}setMat(t,e){let n=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[n++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}copyFrom(t,e,n){this.copyFromTypedBuffer(t,e.typedBuffer,n*e.typedBufferStride)}copyFromTypedBuffer(t,e,n){const r=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)r[s++]=e[n++]}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=1}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===r&&(r=i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.stride=r,this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=2}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.start=n,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===r&&(r=2*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,i.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}setValues(t,e,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=n}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;r[i++]=s[o++],r[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var d=n(35522);class y{static{this.ElementCount=3}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===r&&(r=3*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,d.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}setValues(t,e,n,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=n,this.typedBuffer[t]=r}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;r[i++]=s[o++],r[i++]=s[o++],r[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class m{static{this.ElementCount=4}constructor(t,e,n=0,r,s){this.TypedArrayConstructor=t,this.start=n,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===r&&(r=4*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:n;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-n)/i.BYTES_PER_ELEMENT),this.typedBufferStride=r/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,n=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+n*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,a.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,n){this.typedBuffer[t*this.typedBufferStride+e]=n}setValues(t,e,n,r,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=n,this.typedBuffer[t++]=r,this.typedBuffer[t]=s}copyFrom(t,e,n){const r=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=n*e.typedBufferStride;r[i++]=s[o++],r[i++]=s[o++],r[i++]=s[o++],r[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var g=n(620);class M extends h{constructor(t,e=0,n,r){(0,g.vA)(l.SX),super((0,l.pX)(),t,e,n,r),this.elementType="f16"}static{this.ElementType="f16"}}class B extends h{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}static{this.ElementType="f32"}}class b extends p{constructor(t,e=0,n,r){(0,g.vA)(l.SX),super((0,l.pX)(),t,e,n,r),this.elementType="f16"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f16"}}class x extends p{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f32"}}class T extends y{constructor(t,e=0,n,r){(0,g.vA)(l.SX),super((0,l.pX)(),t,e,n,r),this.elementType="f16"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f16"}}class w extends y{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(w,t,e)}static fromTypedArray(t,e){return new w(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class v extends m{constructor(t,e=0,n,r){(0,g.vA)(l.SX),super((0,l.pX)(),t,e,n,r),this.elementType="f16"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f16"}}class E extends m{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f32"}}class S extends c{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class A extends c{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f64"}}class _ extends f{constructor(t,e=0,n,r){super(Float32Array,t,e,n,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f32"}}class R extends f{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class P extends h{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="f64"}}class C extends p{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}class I extends y{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static fromTypedArray(t,e){return new I(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class O extends m{constructor(t,e=0,n,r){super(Float64Array,t,e,n,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="f64"}}class k extends h{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="u8"}}class j extends p{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="u8"}}class q extends y{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(q,t,e)}static fromTypedArray(t,e){return new q(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class Y extends m{constructor(t,e=0,n,r){super(Uint8Array,t,e,n,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u8"}}class N extends h{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="u16"}}class X extends p{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="u16"}}class L extends y{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u16"}}class Z extends m{constructor(t,e=0,n,r){super(Uint16Array,t,e,n,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="u16"}}class F extends h{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u32"}}class z extends p{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u32"}}class U extends y{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u32"}}class V extends m{constructor(t,e=0,n,r){super(Uint32Array,t,e,n,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="u32"}}class D extends h{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="i8"}}class $ extends p{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i8"}}class G extends y{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="i8"}}class W extends m{constructor(t,e=0,n,r){super(Int8Array,t,e,n,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i8"}}class K extends h{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i16"}}class J extends p{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i16"}}class H extends y{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i16"}}class Q extends m{constructor(t,e=0,n,r){super(Int16Array,t,e,n,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i16"}}class tt extends h{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends p{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(et,t,e)}static{this.ElementType="i32"}}class nt extends y{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(nt,t,e)}static{this.ElementType="i32"}}class rt extends m{constructor(t,e=0,n,r){super(Int32Array,t,e,n,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(rt,t,e)}static{this.ElementType="i32"}}class st extends k{constructor(t,e=0,n,r){super(t,e,n,r)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,r.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(st,t,e)}}class it extends Y{constructor(t,e=0,n,r){super(t,e,n,r)}getVec(t,e){return(0,a.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,a.jk)(lt,(0,a.T9)(lt,e,u.uY),u.Un),(0,a.hs)(lt,lt,255),(0,a.LI)(lt,lt),super.setVec(t,lt)}get(t,e){return super.get(t,e)/255}set(t,e,n){super.set(t,e,Math.round(255*(0,r.qE)(n,0,1)))}setValues(t,e,n,r,s){(0,a.hZ)(lt,e,n,r,s),this.setVec(t,lt)}slice(t,e){return this.sliceBuffer(it,t,e)}}class ot extends K{constructor(t,e=0,n,r){super(t,e,n,r)}get(t){return Math.max(super.get(t)/s.he,-1)}set(t,e){super.set(t,Math.round((0,r.qE)(e,-1,1)*s.he))}slice(t,e){return this.sliceBuffer(ot,t,e)}}class at extends J{constructor(t,e=0,n,r){super(t,e,n,r)}getVec(t,e){return(0,i.hZ)(ut,-1,-1),(0,i.T9)(e,(0,i.hs)(e,super.getVec(t,e),1/s.he),ut)}setVec(t,e){(0,i.qE)(ut,e,o.IA,o.Un),(0,i.hs)(ut,ut,s.he),(0,i.LI)(ut,ut),super.setVec(t,ut)}get(t,e){return Math.max(super.get(t,e)/s.he,-1)}set(t,e,n){super.set(t,e,Math.round((0,r.qE)(n,-1,1)*s.he))}setValues(t,e,n){(0,i.hZ)(ut,e,n),this.setVec(t,ut)}slice(t,e){return this.sliceBuffer(at,t,e)}}const ut=(0,o.vt)(),lt=(0,u.vt)()},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},20498(t,e,n){n.d(e,{Bg:()=>s,SX:()=>o,pX:()=>i});let r=globalThis.Float16Array;function s(...t){return new(r??Float32Array)(...t)}function i(){return r}let o=!!r},34403(t,e,n){n.d(e,{TP:()=>o});var r=n(79258);Math.PI;const s=r.$O.radius,i=r.$O.eccentricitySquared,o={a1:s*i,a2:s*i*s*i,a3:s*i*i/2,a4:s*i*s*i*2.5,a5:s*i+s*i*i/2,a6:1-i};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function s(t){return void 0!==t.points}function i(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function l(t){return t?i(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":s(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>l,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>s,W0:()=>f,ZC:()=>r,fT:()=>i,uW:()=>u})},38419(t,e,n){n.r(e),n.d(e,{default:()=>a});var r=n(44208),s=n(75503),i=n(95696),o=n(72258);class a{async createIndex(t,e){const n=new Array;if(!t.vertexAttributes?.position)return new s.wq;const r=function(t){const{vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:s}=t,a=(0,o.UR)({vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:s},i.A.absolute,{allowBufferReuse:!0})?.position;return a?!t.components||t.components.some(t=>!t.faces)?{position:a.buffer}:{position:a.buffer,components:t.components.map(t=>t.faces)}:null}(t),a=null!=e?await e.invoke("createIndexThread",r,{transferList:n}):this.createIndexThread(r).result;return u().fromJSON(a)}createIndexThread(t){const e=u();if(!t)return{result:e.toJSON()};const n=new Float64Array(t.position);return t.components?function(t,e,n){let r=0;for(const t of n)r+=t.length/3;const s=new Array(r);let i=0;for(const t of n)for(let n=0;n<t.length;n+=3)s[i++]=l(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(s),{result:t.toJSON()}}(e,n,t.components.map(t=>new Uint32Array(t))):function(t,e){const n=new Array(e.length/9);let r=0;for(let t=0;t<e.length;t+=9)n[r++]=l(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}(e,n)}}function u(){return new s.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function l(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},22141(t,e,n){n.d(e,{$5:()=>w,CN:()=>B,JP:()=>M,KM:()=>E,Mv:()=>A,X4:()=>b,gr:()=>T,qs:()=>v,si:()=>x,xA:()=>S});var r=n(34727),s=n(77690),i=n(29242),o=n(58083),a=n(9093),u=n(35522),l=n(51850),c=n(73941),f=n(48353),h=n(9762),p=(n(79258),n(21325)),d=n(28735),y=n(13030),m=n(73354),g=n(50867);const M="Projection may be possible after calling projection.load().";function B(t,e,n,r){t.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function b(t,e,n,r,s,i){return R(0,y.xs.fromTypedArray(t),0,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i))?i:null}function x(t,e,n,r,s,i){return R(1,y.xs.fromTypedArray(t),0,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i))?i:null}function T(t,e,n,r){return(0,h.projectBuffer)(t,e,0,n,r,0)?n:null}function w(t,e,n,r){return(0,h.projectBuffer)(t,e,0,n,r,0)?n:null}function v(t,e,n){return(0,s.Ge)(O,n),(0,m.b)(e,t,O),(0,r.or)(O)&&(0,m.n)(e,e),e}function E(t,e,n){return(0,s.z0)(O,n),(0,g.t)(e,t,O),(0,r.or)(O)&&(0,m.n)(e,e,4),e}function S(t,e,n,r,s,i){if(!R(0,y.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function A(t,e,n,r,s,i){if(!R(1,y.xs.fromTypedArray(t,16),1,y.Xm.fromTypedArray(e),n,y.Xm.fromTypedArray(r),s,y.xs.fromTypedArray(i,16)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function _(t,e,n,r,i){switch((0,f.l)(r,n,I,r),1===t&&(0,o.B8)(I,I),e){case 0:return(0,s.Ge)(i,I);case 1:return(0,s.z0)(i,I)}}function R(t,e,n,r,s,i,o,a){if(!e)return;const l=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,c.q8)(t)||(0,c.KQ)(t)}(s))for(let r=0;r<l;r++)i.getVec(r,P),e.getVec(r,C),(0,u.ei)(C,C,_(t,n,P,o,O)),a.setVec(r,C);else for(let s=0;s<l;s++){i.getVec(s,P),e.getVec(s,C);const l=(0,d.jg)(r.get(s,1));let c=Math.cos(l);1===n!=(0===t)&&(c=1/c),_(t,n,P,o,O),0===t?(O[0]*=c,O[1]*=c,O[2]*=c,O[3]*=c,O[4]*=c,O[5]*=c):(O[0]*=c,O[3]*=c,O[6]*=c,O[1]*=c,O[4]*=c,O[7]*=c),(0,u.ei)(C,C,O),(0,u.S8)(C,C),a.setVec(s,C)}return a}const P=(0,l.vt)(),C=(0,l.vt)(),I=(0,a.vt)(),O=(0,i.vt)()},72258(t,e,n){n.d(e,{UR:()=>x,p5:()=>b,xK:()=>A});var r=n(53966),s=n(34727),i=n(86211),o=n(77690),a=n(29242),u=n(58083),l=n(9093),c=n(35522),f=n(51850),h=n(73941),p=n(98764),d=n(48353),y=n(65806),m=n(27615),g=n(73354),M=n(22141);const B=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function b(t,e,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const s=t;if(!(0,y.g)(e,s,r))return!1;const{origin:i}=n;return(0,c.Re)(t,s,i),!0}const s=(0,p.lO)(r),i=t;if(!(0,y.g)(e,i,s))return!1;const{origin:o}=n,a=I;if(!(0,d.l)(r,o,a,s))return!1;const l=(0,u.B8)(I,a);return null!=l&&((0,c.Z0)(t,i,l),!0)}function x(t,e,n){const{vertexSpace:r,transform:s,vertexAttributes:i}=t,a=(0,m.Hq)(r)?s:null,f=E(t.spatialReference,n,3);if((0,m.yJ)(r,e)&&(!a||(0,u.t2)(a.localMatrix,l.zK))&&S(f)){const{position:t,normal:e,tangent:r}=i,s=n?.allowBufferReuse;return{position:s?t:t.slice(),normal:s?e:e?.slice(),tangent:s?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},s,i){const o=T(e,i);if(!(0,d.l)(e,r,_,o))return(0,M.CN)(B(),e,o),null;if(n&&(0,u.lw)(_,_,n.localMatrix),!(0,d.l)(e,s,R,o))return(0,M.CN)(B(),o,e),null;(0,u.B8)(R,R);const a=(0,u.lw)(_,R,_);return v(a,e,i,3),w(t,a)}(t,t.vertexSpace,e.origin,n):function({spatialReference:t,vertexAttributes:e,transform:n},{origin:r},s,i){const o=T(t,i);if(!(0,d.l)(t,r,_,o))return(0,M.CN)(B(),t,o),null;n&&(0,u.lw)(_,_,n.localMatrix),v(_,t,i,1);const a=new Float64Array(e.position.length),l=function(t,e,n,r,s){(0,g.a)(r,t,e);const i=new Float64Array(t.length);return(0,M.$5)(r,s,i,n)?i:((0,M.CN)(B(),s,n),null)}(e.position,_,t,a,o);if(!l)return null;const f=function(t,e,n,r,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,M.qs)(s,o,i),(0,M.si)(o,t,e,n,r,o)?o:((0,M.CN)(B(),r,e),null)}(l,t,a,o,e.normal,_);if(e.normal&&!f)return null;const h=function(t,e,n,r,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,M.KM)(s,o,i),(0,M.Mv)(o,t,e,n,r,o)?o:((0,M.CN)(B(),r,e),null)}(l,t,a,o,e.tangent,_);if(e.tangent&&!h)return null;if(s){const t=(0,c.ze)(C,s);(0,g.t)(l,l,t)}return{position:l,normal:f,tangent:h}}(t,t.vertexSpace,e.origin,n);case"georeferenced":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:n},{origin:r},s,i){const a=T(e,i);if(!(0,d.l)(e,s,_,a))return(0,M.CN)(B(),e,a),null;const l=1/E(e,i,2);(0,u.hs)(_,_,[l,l,l]);const c=(0,u.B8)(R,_),{position:f,normal:h,tangent:p}=function(t,e,n){if(!e)return t;if(!n){const{position:n,normal:r,tangent:s}=t;return{position:(0,g.t)(new Float64Array(n.length),n,e),tangent:s,normal:r}}const r=w(t,n.localMatrix);return(0,g.t)(r.position,r.position,e),r}(t,r,n),y=new Float64Array(f.length),m=function(t,e,n,r,s){const i=(0,M.gr)(t,e,r,s);if(!i)return(0,M.CN)(B(),e,s),null;const o=new Float64Array(i.length);return(0,g.a)(o,i,n),o}(f,e,c,y,a);if(!m)return null;const b=(0,o.Ge)(P,c),x=function(t,e,n,r,s,i,o){if(null==t)return null;const a=o??new Float32Array(t.length);return(0,M.X4)(t,e,n,r,s,a)?((0,g.b)(a,a,i),a):((0,M.CN)(B(),n,s),null)}(h,f,e,y,a,b,h!==t.normal?h:void 0);if(!x&&h)return null;const v=function(t,e,n,r,s,i,o){if(null==t)return null;const a=o??new Float32Array(t.length);return(0,M.xA)(t,e,n,r,s,a)?((0,g.b)(a,a,i,4),a):((0,M.CN)(B(),n,s),null)}(p,f,e,y,a,b,p!==t.tangent?p:void 0);return!v&&p?null:{position:m,normal:x,tangent:v}}(t,t.vertexSpace,e.origin,n):function({vertexAttributes:t,transform:e,spatialReference:n},{origin:r},s,i){const o=E(n,i,3),a=r||!S(o)?(0,u.C)(_,e?.localMatrix??l.zK):null;a&&v(a,n,i,3);const{position:f,normal:h,tangent:p}=a?w(t,a):t,d=i?.allowBufferReuse,y=d?f:new Float64Array(f.length);let m=f;if(r&&(m=(0,g.t)(y,m,r)),s){const t=(0,c.ze)(C,s);m=(0,g.t)(y,m,t)}return{position:m!==t.position||d?m:m.slice(),normal:h!==t.normal||d?h:h?.slice(),tangent:p!==t.tangent||d?p:p?.slice()}}(t,t.vertexSpace,e.origin,n)}}function T(t,e){return e?.useEllipsoid&&(0,h.B3)(t)?p.Y0:(0,p.lO)(t)}function w(t,e){const n=new Float64Array(t.position.length);(0,g.a)(n,t.position,e);const r=t.normal?new Float32Array(t.normal.length):null,s=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,M.qs)(t.normal,r,e),s&&t.tangent&&(0,M.KM)(t.tangent,s,e),{position:n,normal:r,tangent:s}}function v(t,e,n,r){const s=E(e,n,r);S(s)||(0,u.hs)(t,t,[s,s,s])}function E(t,e,n){const r=!!(1&n),s=!!(2&n),i=e?.sourceUnit,o=e?.targetUnit;if(!i&&!o)return 1;let a=A(i,t);r||!i||S(a)||(B().warn("source unit conversion not supported"),a=1);let u=1/A(o,t);return s||!o||S(u)||(B().warn("target unit conversion not supported"),u=1),a*u}function S(t){return(0,s.Io)(t,1)}function A(t,e){if(null==t)return 1;const n=(0,i.KX)(e);return 1/(0,i.oU)(n,"meters",t)}const _=(0,l.vt)(),R=(0,l.vt)(),P=(0,a.vt)(),C=(0,f.vt)(),I=(0,l.vt)()},27615(t,e,n){n.d(e,{CK:()=>u,Hq:()=>a,MW:()=>l,TE:()=>c,yJ:()=>f});var r=n(35522),s=n(86738),i=n(95696),o=n(18251);function a(t){return null!=t.origin}function u(t){return a(t.vertexSpace)}function l(t,e){if(!a(t))return null;const[n,r,i]=t.origin;return new s.A({x:n,y:r,z:i,spatialReference:e})}function c(t,e){const{x:n,y:r,z:s,spatialReference:a}=t,u=[n,r,s??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(a))?new o.default({origin:u}):new i.A({origin:u})}function f(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}},620(t,e,n){n.d(e,{L:()=>u,MX:()=>o,O_:()=>a,kL:()=>l,vA:()=>i,zH:()=>c});var r=n(48163);n(78955),(0,n(91829).vt)();class s{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new s(`${e} at ${t}`)}}function o(t,e){t||(e=e||"",console.warn("Verify failed: "+e+"\n"+new Error("verify").stack))}function a(t,e,n,r){let s,i=(n[0]-t[0])/e[0],o=(r[0]-t[0])/e[0];i>o&&(s=i,i=o,o=s);let a=(n[1]-t[1])/e[1],u=(r[1]-t[1])/e[1];if(a>u&&(s=a,a=u,u=s),i>u||a>o)return!1;a>i&&(i=a),u<o&&(o=u);let l=(n[2]-t[2])/e[2],c=(r[2]-t[2])/e[2];return l>c&&(s=l,l=c,c=s),!(i>c||l>o||(c<o&&(o=c),o<0))}function u(t,e,n,s,i,o=(0,r.vt)()){const a=(s[i]-n[i])*(e[0]-t[0])-(s[0]-n[0])*(e[i]-t[i]),u=(s[0]-n[0])*(t[i]-n[i])-(s[i]-n[i])*(t[0]-n[0]);if(0===a)return!1;const l=u/a;return o[0]=t[0]+l*(e[0]-t[0]),o[1]=t[i]+l*(e[i]-t[i]),!0}function l(t,e){return Math.log(t)/Math.log(e)}function c(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&1===t[15]}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7548],{4146(e,t,n){n.d(t,{A:()=>b});var r=n(5482),i=n(11254),l=n(49186),o=n(65529),a=n(4902),s=n(92474),u=n(53966),c=n(17676),p=n(84952),d=n(91429),y=n(5443),g=n(16930),f=n(92602),h=n(79677);let m=0,b=class extends((0,o.Zt)((0,a.s)(s.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([n.e(812),n.e(7982)]).then(n.bind(n,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await Promise.all([n.e(812),n.e(5613),n.e(909)]).then(n.bind(n,45613));try{return await r(t)}catch(e){const n=t?.portalItem,r=n?.id||"unset",i=n?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new l.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new l.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r.Cg)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,r.Cg)([(0,d.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r.Cg)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r.Cg)([(0,d.MZ)({type:g.A})],b.prototype,"spatialReference",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r.Cg)([(0,d.MZ)()],b.prototype,"url",void 0),(0,r.Cg)([(0,d.MZ)({type:h.A})],b.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r.Cg)([(0,d.$K)("esri.layers.Layer")],b)},77548(e,t,n){n.d(t,{Gh:()=>k,tk:()=>S,BR:()=>Z,p2:()=>M,qd:()=>D,wI:()=>E,G$:()=>L,$x:()=>j,Ov:()=>w,cM:()=>d,UC:()=>y,W_:()=>v,Qz:()=>g,OP:()=>U,TU:()=>b,F2:()=>f,XX:()=>m,Qi:()=>C,jy:()=>A});var r=n(70333),i=n(11254),l=n(7762),o=(n(84952),n(36563)),a=n(36708),s=n(4146);const u=new WeakMap;function c(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof s.A)&&("catalog-dynamic-group"===t.type||c(t))},t=>u.set(e,t),a.pc),(0,o.hA)(()=>u.delete(e))]),u.get(e))}function p(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return p(e,"knowledge-graph")&&"layers"in e}function y(e){return p(e,"knowledge-graph-sublayer")}function g(e){return p(e,"link-chart")&&"layers"in e}function f(e){return p(e,"subtype-group")&&"sublayers"in e}function h(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}n(16215);const m={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function v(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t||"annotation"===t||"dimension-feature"===t)&&"feature-layer"===e?.source?.type}function C(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function A(e){return function(e){return p(e,"catalog-footprint")}(e)||function(e){return p(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return p(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function T(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!A(e))return;const n=t?.graphic,r="featureReduction"in e?e.featureReduction:null;if(n){if(n.isAggregate){const e=n.origin;return e&&"featureReductionProvider"in e&&r?T(r)?r:null:void 0}return e}return t?.checkFeatureReduction&&r?T(r)?r:null:e}async function E(e,t){const n=r.id?.findServerInfo(e);if(null!=n?.currentVersion)return n.owningSystemUrl||null;const l=e.toLowerCase().indexOf("/rest/services");if(-1===l)return null;const o=`${e.slice(0,l)}/rest/info`,a=null!=t?t.signal:null,{data:s}=await(0,i.A)(o,{query:{f:"json"},responseType:"json",signal:a});return s?.owningSystemUrl||null}function Z(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function S(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function D(e){const t=new l.A;for(const n of e.allLayers.concat(e.allTables))c(n)||h(n)||"annotation"===n.type||"dimension-feature"===n.type||("charts"in n&&t.push(n),"subtype-group"===n.type&&t.push(...n.sublayers));return t}function j(e,t){return null}function L(e){return null}function U(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function k(e,t){if(!t||!U(e))return;const n=(e.url,null);n&&(e.url=n)}},16215(e,t,n){n.d(t,{S:()=>i,Y:()=>r});const r=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}},79677(e,t,n){n.d(t,{A:()=>d});var r,i=n(5482),l=n(25482),o=n(88930),a=n(91429),s=n(98623),u=n(10184),c=n(36005),p=n(43937);let d=class extends l.o{static{r=this}static get allTime(){return y}static get empty(){return g}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===r&&n===i}expandTo(e,t=s.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let n=this.start;n&&(n=(0,o.lL)(n,new u.A({value:1,unit:e}),t));let i=this.end;if(i){const n=(0,o.lL)(i,new u.A({value:1,unit:e}),t);i=i.getTime()===n.getTime()?n:(0,o.S1)(n,1,e,t)}return new r({start:n,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,l=e.end?.getTime()??1/0;let o,a;return i>=t&&i<=n?o=i:t>=i&&t<=l&&(o=t),n>=i&&n<=l?a=n:l>=t&&l<=n&&(a=l),null==o||null==a||isNaN(o)||isNaN(a)?r.empty:new r({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,n=s.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new r,{start:l,end:a}=this;return null!=l&&(i.start=(0,o.S1)(l,e,t,n)),null!=a&&(i.end=(0,o.S1)(a,e,t,n)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,n=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:n})}};(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,c.w)("end")],d.prototype,"readEnd",null),(0,i.Cg)([(0,p.K)("end")],d.prototype,"writeEnd",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,c.w)("start")],d.prototype,"readStart",null),(0,i.Cg)([(0,p.K)("start")],d.prototype,"writeStart",null),d=r=(0,i.Cg)([(0,a.$K)("esri.time.TimeExtent")],d);const y=new d,g=new d({start:void 0,end:void 0})},10184(e,t,n){n.d(t,{A:()=>c});var r=n(5482),i=n(69540),l=n(25482),o=n(88930),a=n(91429),s=n(73133),u=n(93223);let c=class extends((0,i.OU)(l.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,u.e)(s.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,r.Cg)([(0,a.$K)("esri.time.TimeInterval")],c)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[447],{66344(e,t,i){i.d(t,{q:()=>n});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,r,a){t=e.id+t;const n=this._db.get(t);if(n&&(this._size-=n.size,e.size-=n.size,this._db.delete(t),n.entry!==i&&this._notifyRemove(t,n.entry,n.size,0)),r>this._maxSize)return void this._notifyRemove(t,i,r,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return s||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,i,0,0);const l=1+Math.max(a,-4)- -3;this._db.set(t,new o(i,r,l)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const e=this._notifyRemove(t,i.entry,s,1);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}i.size=s,this._size+=s,e.size+=s,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,s)=>{const r=e.lifetime;i[r]=(i[r]||0)+e.size,this._clients.forEach(i=>{const{id:r,name:o}=i;if(s.startsWith(r)){const i=t[o]||0;t[o]=i+e.size}})});const s={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[i]||0;t[i]=r,s[i]=Math.round(100*e.hitRate)+"%"}else s[i]="0%"});const r=Object.keys(t);r.sort((e,i)=>t[i]-t[e]),r.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+s[i]);for(let t=i.length-1;t>=0;--t){const s=i[t];s&&(e["Priority "+(t+-3-1)]=Math.round(s/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,s){const r=this._clients.get(e.split(a)[0])?.removeFunc,o=r?.(t,s,i);return"number"==typeof o?o:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const s=t?.id;let r=!0;for(;r;){r=!1;for(const[o,n]of this._db)if(0===n.lifetime&&(!s||o.startsWith(s))){const s=t??this._clients.get(o.split(a)[0]);if(this._purgeItem(o,n,s),i.size<=.9*e)return;r||=this._db.has(o)}}for(const[r,o]of this._db)if(!s||r.startsWith(s)){const s=t??this._clients.get(r.split(a)[0]);if(this._purgeItem(r,o,s),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class o{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const a=":";class n{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},7656(e,t,i){i.r(t),i.d(t,{default:()=>B});var s=i(5482),r=i(11254),o=i(7762),a=i(49186),n=i(81583),l=i(25728),h=i(17676),d=i(86211),u=i(91429),p=i(56507),m=i(35666),c=i(5443),y=i(83960),f=i(21325),g=i(4146),v=i(52136),_=i(98534),b=i(18768),S=i(63074),x=i(69208),z=i(34287),w=i(8303),I=i(54310),M=i(25036),C=i(91921),O=i(82935),Z=i(10873),E=i(69622),A=i(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const i=e.filter(e=>""!==e).map(e=>`'${e}'`);return i.push("''"),`${t} IN (${i.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var T=i(63389);const R={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let F=class extends E.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,T.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(R[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const i=L(this.floors,t),s=(0,A.mA)(i,t.definitionExpression);return null!=s&&(e[t.id]=s),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,i=this.scale,s=t=>{t.visible&&(0===i||(0,y.zx)(i,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(s):e.unshift(t))};t?.forEach(s);const r=this._get("visibleSublayers");return!r||r.length!==e.length||r.some((t,i)=>e[i]!==t)?e:r}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,s.Cg)([(0,u.MZ)({readOnly:!0})],F.prototype,"dynamicLayers",null),(0,s.Cg)([(0,u.MZ)()],F.prototype,"floors",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],F.prototype,"hasDynamicLayers",null),(0,s.Cg)([(0,u.MZ)()],F.prototype,"layer",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],F.prototype,"layers",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],F.prototype,"layerDefs",null),(0,s.Cg)([(0,u.MZ)({type:Number})],F.prototype,"scale",void 0),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],F.prototype,"version",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],F.prototype,"visibleSublayers",null),F=(0,s.Cg)([(0,u.$K)("esri.layers.support.ExportImageParameters")],F);var N=i(33446),P=i(15775),j=i(91908),k=i(88625),D=i(79677),U=i(56400),J=i(36005),V=i(43937);let $=class extends((0,S.dM)((0,O.e)((0,M.j)((0,C.I)((0,_.V)((0,b.b)((0,z.q)((0,w.A)((0,l.M)((0,I.J)((0,v.p)((0,x.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new F({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new k.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,h.sg)(async(e,t,s)=>{const{save:r,saveAs:o}=await i.e(390).then(i.bind(i,10390));switch(e){case 0:return r(this,t);case 1:return o(this,s,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(h.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const i=t.supportedImageFormatTypes;return i&&i.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,i,s){if(!this.loaded||!e)return;const r=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let o=!1;const a=(0,m.aB)(s.origin);let n;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;o=(0,T.Zx)(r,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");o=(0,T.Zx)(r,e.sublayers,(0,m.aB)(e.origin)),n=e.originWithPartialOverrides}const l=[],h={writeSublayerStructure:o,...s,minimumWritableOrigin:n};let d=o||this.hasVisibleLayersForOrigin(a);r.forEach(e=>{const t=e.write({},h);l.push(t),d=d||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),d&&(t.visibleLayers=r.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,i,s){const r=s?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=s?.floors??null,this._exportImageParameters.scale=s?.scale||(0,y.X_)({extent:e,width:t})*r;const o=this._exportImageParameters.toJSON(),a=!s?.rotation||this.version<10.3?{}:{rotation:-s.rotation},n=e?.spatialReference,l=(0,f.YX)(n);if(s?.scale&&e){const i=e.width/t*((0,d.GA)(e?.spatialReference)*d.dy);o.dpi=s.scale/i}o.dpi*=r;const h={};if(s?.timeExtent){const{start:e,end:t}=s.timeExtent.toJSON();h.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(h.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:l,imageSR:l,size:t+","+i,...o,...a,...h}}async fetchImage(e,t,i,s){const{data:r}=await this._fetchImage("image",e,t,i,s);return r}async fetchImageBitmap(e,t,i,s){const{data:r,url:o}=await this._fetchImage("blob",e,t,i,s);return(0,N.mn)(r,o,s)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:i}=await(0,r.A)(this.url,t),{extent:s,fullExtent:o,timeExtent:a}=i,n=s||o;return{fullExtent:n&&c.A.fromJSON(n),timeExtent:a&&D.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,n.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,j.D)(this,e)}async _fetchImage(e,t,i,s,o){const n={responseType:e,signal:o?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,i,s,o),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=n.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:n.query});try{const{data:e}=await(0,r.A)(l,n);return{data:e,url:l}}catch(e){if((0,h.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:i}=await(0,r.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});i&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,s.Cg)([(0,u.MZ)((0,U.P6)("dateFieldsTimeReference"))],$.prototype,"dateFieldsTimeZone",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean})],$.prototype,"datesInUnknownTimezone",void 0),(0,s.Cg)([(0,u.MZ)()],$.prototype,"dpi",void 0),(0,s.Cg)([(0,u.MZ)()],$.prototype,"elevationInfo",void 0),(0,s.Cg)([(0,u.MZ)()],$.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,u.MZ)()],$.prototype,"imageFormat",void 0),(0,s.Cg)([(0,J.w)("imageFormat",["supportedImageFormatTypes"])],$.prototype,"readImageFormat",null),(0,s.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],$.prototype,"imageMaxHeight",void 0),(0,s.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],$.prototype,"imageMaxWidth",void 0),(0,s.Cg)([(0,u.MZ)()],$.prototype,"imageTransparency",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],$.prototype,"isReference",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!1,write:!1}})],$.prototype,"labelsVisible",void 0),(0,s.Cg)([(0,u.MZ)({type:["ArcGISMapServiceLayer"]})],$.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!1,write:!1}})],$.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,u.MZ)((0,U.P6)("preferredTimeReference"))],$.prototype,"preferredTimeZone",void 0),(0,s.Cg)([(0,u.MZ)()],$.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,u.MZ)({type:o.A.ofType(P.A),json:{write:{ignoreOrigin:!0}}})],$.prototype,"sublayers",void 0),(0,s.Cg)([(0,V.K)("sublayers",{layers:{type:[P.A]},visibleLayers:{type:[p.jz]}})],$.prototype,"writeSublayers",null),(0,s.Cg)([(0,u.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],$.prototype,"listMode",void 0),(0,s.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],$.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)(Z.OZ)],$.prototype,"url",void 0),$=(0,s.Cg)([(0,u.$K)("esri.layers.MapImageLayer")],$);const B=$},82935(e,t,i){i.d(t,{B:()=>p,e:()=>m});var s=i(5482),r=i(91429),o=i(89317),a=i(30524),n=i(96184),l=i(73133),h=i(79677),d=i(10184),u=i(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},m=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const s=i.timeOffset,r=l.j.fromJSON(i.timeOffsetUnits);return s&&r?new d.A({value:s,unit:r}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,s.Cg)([(0,r.MZ)({type:h.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,s.Cg)([(0,r.MZ)({type:d.A})],i.prototype,"timeOffset",void 0),(0,s.Cg)([(0,u.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,s.Cg)([(0,r.MZ)({value:null,type:n.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,s.Cg)([(0,r.MZ)(p)],i.prototype,"useViewTime",void 0),i=(0,s.Cg)([(0,r.$K)("esri.layers.mixins.TemporalLayer")],i),i}},96184(e,t,i){i.d(t,{A:()=>m});var s=i(5482),r=i(69540),o=i(25482),a=i(91429),n=i(79677),l=i(10184),h=i(56400),d=i(36005),u=i(43937);function p(e,t){return l.A.fromJSON({value:e,unit:t})}let m=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?n.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?p(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?p(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,s.Cg)([(0,a.MZ)({type:n.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,s.Cg)([(0,d.w)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,s.Cg)([(0,u.K)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,s.Cg)([(0,a.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,s.Cg)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,s.Cg)([(0,u.K)("interval")],m.prototype,"writeInterval",null),(0,s.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,s.Cg)([(0,a.MZ)((0,h.P6)("timeReference",!0))],m.prototype,"timeZone",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),(0,s.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],m.prototype,"stops",void 0),m=(0,s.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],m)},91908(e,t,i){i.d(t,{D:()=>o});var s=i(60694);const r=[];function o(e,t){if((0,s.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of r){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}r.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),r.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),r.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),r.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),r.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4257],{9775(t,e,s){s.d(e,{A:()=>n});var i=s(62788),r=s(95488);class n{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new r.I,this._items=new Set}get length(){return(0,i.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,i.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;const t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;const t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){const e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.gc)(this._observable),yield*this._items}}},36745(t,e,s){s.d(e,{z:()=>o});var i=s(4718),r=s(51118),n=s(60408),a=s(92722);class o{static fromOptimized(t,e,s=1){return(new u).initialize(t,e,s)}static fromJSON(t){const[e,s]=l(t),i=(0,n.Pv)(t),r=(0,n.W0)(t);return(new p).initialize(e,s,i,r,1)}static fromOptimizedCIM(t,e,s=1){return(new c).initialize(t,e,s)}static fromJSONCIM(t,e=1){const[s,i]=l(t),r=(0,n.Pv)(t),a=(0,n.W0)(t);return(new d).initialize(s,i,r,a,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimized(e,s):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimizedCIM(e,s):null}static createEmptyOptimized(t,e=!1,s=!1,i=1){return(new c).initialize(new a.A([],[],e,s),t,i)}static createEmptyJSON(t,e=!1,s=!1){return(new p).initialize([],t,e,s,1)}static createEmptyOptimizedCIM(t,e=!1,s=!1,i=1){return(new c).initialize(new a.A([],[],e,s),t,i)}static createEmptyJSONCIM(t,e=!1,s=!1,i=1){return(new d).initialize([],t,e,s,i)}asJSON(){const t=(0,r.x)(this),{hasZ:e,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:s?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:s}:{paths:t,hasZ:e,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const i=t,r=e;for(;this.nextPoint();)s+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return s+=(t-i)*(e+r),-.5*s}invertY(){this.yFactor*=-1}}class u extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,s){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,s=this._pathOffset;return(new u).initialize(new a.A([this.pathSize],e.slice(s,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,s=this._geometry.coords;let i=0;for(let r=this._pathOffset+e;r<t;r+=e){const t=s[r-e],n=s[r-e+1],a=s[r]-t,o=s[r+1]-n;i+=Math.sqrt(a*a+o*o)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,s=this._end-this._stride;for(let i=0;i<this._stride;i++)if(t[e+i]!==t[s+i])return!1;return!0}clone(){return(new u).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function h(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function l(t){return(0,n.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,n.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,n.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,n.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,n.fT)(t)?[[[h(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class p extends o{initialize(t,e,s,i,r){return this._paths=t,this.geometryType=e,this.hasZ=s,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=r,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let s=0;for(let i=1;i<t;i++){const t=e[i-1],r=e[i],n=t[0],a=t[1],o=r[0]-n,u=r[1]-a;s+=Math.sqrt(o*o+u*u)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new p).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,r.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,s=new a.A([],[],t,e),{coords:i,lengths:r}=s;if("esriGeometryPoint"===this.geometryType)i.push(...this._paths[0][0]),r.length=0;else for(const s of this._paths){for(const r of s)i.push(r[0]),i.push(r[1]*this.yFactor),t&&i.push(r[2]),e&&i.push(r[this._mIndex]);r.push(s.length)}return s}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}clone(){return(new p).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class c extends u{initialize(t,e,s){return super.initialize(t,e,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new c).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class d extends p{initialize(t,e,s,i,r){return super.initialize(t,e,s,i,r)}clone(){return(new d).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},32011(t,e,s){s.d(e,{d:()=>u});var i=s(19419),r=s(537),n=s(12359),a=s(95108),o=s(12176);function u(t){if(0===t.totalSize)return null;const e=(0,r.z8)(t);if(!e)return null;const s=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19;let a=0,o=0;t.reset();for(let e=0;t.nextPath();e++){const s=t.getCurrentRingArea();s>o&&(o=s,a=e)}if(t.seekPath(a),0===t.pathSize)return null;t.seekPathStart();const u=(0,r.B$)(t);if(Math.abs(o)<=2*s*s)return[(u[0]+u[2])/2,(u[1]+u[3])/2];t.seekPathStart();const c=(0,n.w2)(t,(0,i.vt)());if(null===c)return null;if(t.totalPoints<4)return c;const d=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],g=[NaN,NaN,NaN,NaN];let x=!1,w=l(c,t,!0);0===w.distance&&(x=!0,d[0][0]=c[0],d[0][1]=c[1],w=l(c,t,!1)),f[0]=w.distance,g[0]=0;const I=[NaN,NaN];let P=!1,S=.25,F=-1,N=NaN;do{if(N=NaN,d[1]=p(t,y(u[0],u[2],S),0,e),isNaN(d[1][0])||isNaN(d[1][1])||(w=l(d[1],t,!1),N=w.distance),!isNaN(N)&&N>s&&h(d[1],t))P=!0,f[1]=N,g[1]=_(d[1],c);else if(!isNaN(N)&&N>F&&(F=N,I[0]=d[1][0],I[1]=d[1][1]),S-=.01,S<.1){if(!(F>=0))break;P=!0,f[1]=F,d[1][0]=I[0],d[1][1]=I[1],g[1]=_(d[1],c)}}while(!P);P=!1,S=.5,F=-1;let v=.01,C=1;do{if(N=NaN,d[2]=p(t,y(u[0],u[2],S),0,e),isNaN(d[2][0])||isNaN(d[2][1])||(w=l(d[2],t,!1),N=w.distance),!isNaN(N)&&N>s&&h(d[2],t))P=!0,f[2]=N,g[2]=_(d[2],c);else if(!isNaN(N)&&N>F)F=N,I[0]=d[2][0],I[1]=d[2][1];else if(N>F&&(F=N,I[0]=d[2][0],I[1]=d[2][1]),S=.5+v*C,v+=.01,C*=-1,S<.3||S>.7){if(!(F>=0))break;P=!0,f[2]=F,d[2][0]=I[0],d[2][1]=I[1],g[2]=_(d[2],c)}}while(!P);P=!1,S=.75,F=-1;do{if(N=NaN,d[3]=p(t,y(u[0],u[2],S),0,e),isNaN(d[3][0])||isNaN(d[3][1])||(w=l(d[3],t,!1),N=w.distance),!isNaN(N)&&N>s&&h(d[3],t))P=!0,f[3]=N,g[3]=_(d[3],c);else if(N>F&&(F=N,I[0]=d[3][0],I[1]=d[3][1]),S+=.01,S>.9){if(!(F>=0))break;P=!0,f[3]=F,d[3][0]=I[0],d[3][1]=I[1],g[3]=_(d[3],c)}}while(!P);const O=[0,1,2,3],z=x?0:1;let R;for(let t=z;t<4;t++)for(let t=z;t<3;t++){const e=g[t],s=g[t+1];m(e,s)>0&&(R=O[t],O[t]=O[t+1],O[t+1]=R,g[t]=s,g[t+1]=e)}let b=z,E=0,M=0;for(let t=z;t<4;t++){switch(t){case 0:M=2*f[O[t]];break;case 1:M=1.66666666*f[O[t]];break;case 2:M=1.33333333*f[O[t]];break;case 3:M=f[O[t]]}M>E&&(E=M,b=O[t])}return d[b]}function h(t,e){let s,i,r,n,a=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(s=e.x,i=e.y;e.nextPoint();s=r,i=n)r=e.x,n=e.y,i>t[1]!=n>t[1]&&((r-s)*(t[1]-i)-(n-i)*(t[0]-s)>0?a++:a--);return 0!==a}function l(t,e,s){if(s&&h(t,e))return{coord:t,distance:0};let i=1/0,r=0,n=0,o=[0,0],u=[0,0];const l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(o[0]=e.x,o[1]=e.y;e.nextPoint();o=u){u=[e.x,e.y],(0,a.gR)(l,t,o,u);const s=_(t,l);s<i&&(i=s,r=l[0],n=l[1])}return{coord:[r,n],distance:Math.sqrt(i)}}function p(t,e,s,r){const n=[e,0];let a=1/0,u=1/0,h=!1,l=!1;const p=[[e,r[1]-1],[e,r[3]+1]],f=[0,0],y=[0,0],_=[0,0],m=[[0,0],[0,0]],g=(0,i.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(m[0][0]=t.x,m[0][1]=t.y;t.nextPoint();m[0][0]=m[1][0],m[0][1]=m[1][1]){if(m[1][0]=t.x,m[1][1]=t.y,null===c(g,m))continue;if(y[0]=p[0][0],y[1]=p[0][1],_[0]=p[1][0],_[1]=p[1][1],0===d(g,y,_))continue;if(!(0,o.Ql)(p[0],p[1],m[0],m[1],f))continue;const e=f[1];a>u?e<a&&(a=e,h=!0):e<u&&(u=e,l=!0)}return h&&l?n[1]=(a+u)/2:n[0]=n[1]=NaN,n}function c(t,e){if(e.length<2)return null;t||(t=(0,i.vt)());const[s,r]=e[0],[n,a]=e[1];return t[0]=Math.min(s,n),t[1]=Math.min(r,a),t[2]=Math.max(s,n),t[3]=Math.max(r,a),t}function d(t,e,s){let i=f(e,t),r=f(s,t);const n=t[0],a=t[1],o=t[2],u=t[3];if(i&r)return 0;if(!(i|r))return 4;const h=(i?1:0)|(r?2:0);do{const h=s[0]-e[0],l=s[1]-e[1];if(h>l)3&i?(1&i?(e[1]+=l*(n-e[0])/h,e[0]=n):(e[1]+=l*(o-e[0])/h,e[0]=o),i=f(e,t)):3&r?(1&r?(s[1]+=l*(n-s[0])/h,s[0]=n):(s[1]+=l*(o-s[0])/h,s[0]=o),r=f(s,t)):i?(4&i?(e[0]+=h*(a-e[1])/l,e[1]=a):(e[0]+=h*(u-e[1])/l,e[1]=u),i=f(e,t)):(4&r?(s[0]+=h*(a-s[1])/l,s[1]=a):(s[0]+=h*(u-s[1])/l,s[1]=u),r=f(s,t));else if(12&i?(4&i?(e[0]+=h*(a-e[1])/l,e[1]=a):(e[0]+=h*(u-e[1])/l,e[1]=u),i=f(e,t)):12&r?(4&r?(s[0]+=h*(a-s[1])/l,s[1]=a):(s[0]+=h*(u-s[1])/l,s[1]=u),r=f(s,t)):i?(1&i?(e[1]+=l*(n-e[0])/h,e[0]=n):(e[1]+=l*(o-e[0])/h,e[0]=o),i=f(e,t)):(1&r?(s[1]+=l*(n-s[0])/h,s[0]=n):(s[1]+=l*(o-s[0])/h,s[0]=o),r=f(s,t)),i&r)return 0}while(i|r);return h}function f(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function y(t,e,s){return t+(e-t)*s}function _(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function m(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const s=isNaN(t),i=isNaN(e);return s<i?-1:s>i?1:0}},6557(t,e,s){s.r(e),s.d(e,{default:()=>q});var i=s(5482),r=s(21818),n=s(49186),a=s(44208),o=s(53966),u=s(17676),h=s(563),l=s(39516),p=s(16930),c=s(70328),d=s(75752),f=s(8384),y=s(58727),_=s(90951),m=s(64714),g=s(17754),x=s(20437),w=s(95466),I=s(50639),P=s(42760),S=s(39412),F=s(30661),N=s(28923),v=s(44320),C=s(35258),O=s(16630);const z=new F.Z,R="__OBJECTID",b=new TextDecoder;class E{constructor(t,e){this._files=t,this._createFileStream=e,this._fileIndex=0,this._streamIndex=0,this._streams=[],this._pending=new Set,this._resolvedCount=0}async next(t){for(await this._fill(t);this._pending.size>0;){(0,u.Te)(t),await this._fill(t);const e=await M(this._pending);if(this._pending.delete(e.read),this._resolvedCount++,null!=e.chunk)return e.chunk}return null}async _fill(t){for(this._removeDone();this._pending.size<8;){const e=this._getOrCreateNextStream(t);if(null==e)return;this._pending.add(e.read(t))}}_getOrCreateNextStream(t){const e=this._resolvedCount>=8?8:2;if(this._fileIndex<this._files.length&&this._streams.length<e){const e=this._files[this._fileIndex++],s=new T(e.id,this._createFileStream(e,t));return this._streams.push(s),s}return this._getNextStream()}_getNextStream(){const t=this._streams.length;for(let e=0;e<t;e++){const s=(this._streamIndex+e)%t,i=this._streams[s];if(i.canRead)return this._streamIndex=(s+1)%t,i}return null}_removeDone(){let t=this._streamIndex;for(let e=this._streams.length-1;e>=0;e--)this._streams[e].done&&(this._streams.splice(e,1),e<t&&t--);this._streamIndex=this._streams.length>0?t%this._streams.length:0}}function M(t){return Promise.race(Array.from(t,async t=>({read:t,chunk:await t})))}class T{constructor(t,e){this._fileId=t,this._stream=e,this._readCount=0,this._reachedEnd=!1}get canRead(){return!this._reachedEnd}get done(){return this._reachedEnd&&0===this._readCount}async read(t){this._readCount++;try{const e=await this._stream,s=await e.next(t);return null==s?(this._reachedEnd=!0,null):{fileId:this._fileId,chunk:s}}finally{this._readCount--}}}class q{constructor(){this._queue=new h.QueueProcessor({concurrency:4,process:(t,e)=>this._executeQuery(t,e)}),this._streams=new Map,this._streamIdCounter=0,this._indexMap={}}async load(t){const e=t.spatialReference?p.A.fromJSON(t.spatialReference):void 0;if(e&&!e.isWGS84&&!e.isWebMercator)throw new n.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");this._customParameters=t.customParameters,this._provider=(0,_.M)(t.provider,null,()=>this._customParameters);const s=await this._provider.getMetadata(),i=await(0,P.nc)(s,{fields:t.fields?.map(t=>x.A.fromJSON(t)),geometryEncoding:t.geometryEncoding?(0,I.G)(t.geometryEncoding):null,geometryType:t.geometryType?(0,P.hG)(t.geometryType):null,displayOptimization:t.displayOptimization,spatialReference:e});if(!i.fields)throw new n.A("parquet:unsupported","Fields must be defined");let r;if(i.spatialReference&&i.geometryType){if(!i.spatialReference)throw new n.A("parquet:unsupported","SpatialReference must be defined");if(!i.spatialReference.isGeographic&&!i.spatialReference.isWebMercator)throw new n.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");i.spatialReference.isGeographic&&!i.spatialReference.isWGS84&&(o.A.getLogger("parquet:unsupported-projection").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:i.spatialReference}),i.spatialReference=p.A.WGS84),r={geometry:i.geometryEncoding?{geometryType:(0,P.sA)(i.geometryType),spatialReference:i.spatialReference.toJSON(),encoding:i.geometryEncoding.toJSON()}:null,displayOptimization:i.displayOptimization}}this.setCustomParameters(t.customParameters),this._displayOptimization=i.displayOptimization,await this._provider.updateGeometryInfo(r),this._capabilities=B(await this._getFileStatistics());const a=await this._provider.getFiles();if(!a.length)return{layerDefinition:{},capabilities:B(null)};const u=await a[0].file;i.file=u;const{fields:h}=i;if(null==h)throw new n.A("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",h);h.push(new x.A({name:R,type:"oid",alias:R}));for(const t of h){const e=u.getColumnId(t.name);null!=e&&(this._indexMap[t.name]=e)}const l=new w.A(h.map(t=>t.toJSON()));this._fieldsIndex=l;const c=(0,P.sA)(i.geometryType??"point");return this._metadata=C.i.createFeature({fieldsIndex:l.toJSON(),geometryType:c,hasZ:!1,hasM:!1,featureIdInfo:{type:"object-id",fieldName:"rowId"},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:i.spatialReference,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null}),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:c,featureIdInfo:{type:"object-id",fieldName:"rowId"},hasM:!1,hasZ:!1,spatialReference:i.spatialReference?.toJSON()??{wkid:4326},aggregateAdapter:null,timeInfo:null,definitionExpression:null},this._fullExtent=s?.extent?s.extent:await this._tryDeriveParquetFullExtent(i),{capabilities:this._capabilities,layerDefinition:{fields:i.fields?.map(t=>t.toJSON()),drawingInfo:(0,m.F0)(c),extent:this._fullExtent??void 0,geometryType:c,geometryEncoding:i.geometryEncoding?.toJSON(),displayOptimization:i.displayOptimization}}}destroy(){this._provider.destroy(),this._queue.destroy();for(const{handle:t}of this._streams.values())t.remove();this._streams.clear()}setCustomParameters(t){this._customParameters=t}getIndexMap(){return this._indexMap}async updateFileProvider(t){this._provider=(0,_.M)(t,this._provider.getGeometryInfo(),()=>this._customParameters)}async queryFeatures(t,e){return this._validateQuery(t),function(t){return!!(t.objectIds?.length||t.outStatistics||t.orderByFields?.length||t.returnDistinctValues)}(t)||(t.resultRecordCount=t.resultRecordCount?Math.min(t.resultRecordCount,8e3):8e3,t.resultOffset=t.resultOffset??0),(t.outStatistics||t.returnDistinctValues)&&(t.returnGeometry=void 0),(await this._enqueueQuery(t,e)).createQueryResponse()}async queryFeatureCount(t,e){const s=await(0,y.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(s),A(s)?(s.outFields=void 0,s.returnGeometry=void 0,(await this._enqueueQuery(s,e)).createQueryResponseForCount()):this._getFeatureCount()}async queryObjectIds(t,e){const s=await(0,y.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(s),A(s)?(s.resultRecordCount=s.resultRecordCount?Math.min(s.resultRecordCount,8e3):8e3,s.resultOffset=s.resultOffset??0,s.returnGeometry=void 0,s.outFields=void 0,(await this._enqueueQuery(s,e)).items.map(t=>t.getObjectId())):Array.from({length:await this._getFeatureCount()},(t,e)=>e)}async queryExtent(t,e){const s=await(0,y.T2)(t,null,this._queryEngineParams.spatialReference);if(this._validateQuery(s),this._fullExtent&&!A(s))return{count:await this._getFeatureCount(),extent:this._fullExtent};const i=(0,r.z)(this._metadata.spatialReference);s.returnGeometry=!0,s.outFields=void 0;const n=(0,c.hZ)((0,c.vt)(),c.qv),a=(0,c.vt)(),o=await this._enqueueQuery(s,e);let u=0;for(const t of o.items)t.getBounds(a)&&((0,c.RF)(n,a),u+=1);return{count:u,extent:(0,d.Wc)(n,i,s.outSR?(0,r.z)(s.outSR):i.toJSON(),i,!1)}}async queryStream(t,e){if(!e.signal)throw new Error("InternalError: AbortSignal must be passed");const s=await this._getCandidateFiles(t),i=new E(s,async(e,s)=>{const i=await e.file,r=await this._createParquetQuery(i,t);return i.executeQuery(r,s)}),r=this._streamIdCounter++,n=(0,u.NY)(e.signal,t=>{const e=this._streams.get(r);null!=e&&(e.handle.remove(),this._streams.delete(r))});return this._streams.set(r,{stream:i,handle:n}),r}async getStreamNext(t,e){if(!e.signal)throw new Error("InternalError: AbortSignal must be passed");const s=this._streams.get(t);if(!s)return{result:null};const i=await s.stream.next(e.signal);if(null==i)return s.handle.remove(),this._streams.delete(t),{result:null};const r=i.chunk.serialize().buffer,n={fileId:i.fileId,buffer:r};return r instanceof ArrayBuffer?{result:n,transferList:[r]}:{result:n}}async createPatch(t,e,s,i,r){if(!r.signal)throw new Error("InternalError: AbortSignal must be passed");const n=await this._getFileInfoById(t),a=await n.file;return(await a.createChunkPatch(e,s,i,r.signal)).serialize().buffer}async _getCandidateFiles(t){const e=await this._provider.getFiles(),s=await this._getSpatialFilePruning(t);if(null==s)return e;const i=e.filter(t=>this._mayIncludeFileForSpatialPruning(t,s));return"xz"===s.type?function(t,e){return t.slice().sort((t,s)=>{const i=k(t,e),r=k(s,e);return i===r?0:i<r?-1:1})}(i,s):i}async _getSpatialFilePruning(t){if("tile"!==t.type)return null;const e=this._displayOptimization,s=e?.index;if(null==s)return null;const i=t.outSpatialReference.wkid;if(null==s.wkid||null==i)return null;const r=s.wkid,n=await(0,S.N)();switch(s.type){case"xz":return{type:"xz",fieldName:s.code,intersects:(e,a)=>n.queryIntersectsXZStatistics(s.fullExtent,t.extent,i,r,20,e,a)};case"z":return{type:"xy",xFieldName:s.xColumn,yFieldName:s.yColumn,intersects:(e,s,a,o)=>n.queryIntersectsXYStatistics(t.extent,i,r,e,s,a,o)}}}_mayIncludeFileForSpatialPruning(t,e){switch(e.type){case"xz":{const s=Q(t,e);return null==s||function(t,e){const s=D(t.minValue),i=D(t.maxValue);return null==s||null==i||e.intersects(s,i)}(s,e)}case"xy":{const{xStatistics:s,yStatistics:i}=function(t,e){return{xStatistics:t.statistics.statistics.get(e.xFieldName)??null,yStatistics:t.statistics.statistics.get(e.yFieldName)??null}}(t,e);return null==s||null==i||function(t,e,s){const i=D(t.minValue),r=D(t.maxValue),n=D(e.minValue),a=D(e.maxValue);return null==i||null==r||null==n||null==a||s.intersects(i,r,n,a)}(s,i,e)}}}async _tryDeriveParquetFullExtent(t){if(!t.spatialReference)return null;if(null==this._fullExtent&&"location"===t.geometryEncoding?.type){const e=await this._provider.getFiles(),{xField:s,yField:r}=t.geometryEncoding,n=(0,c.hZ)((0,c.vt)(),c.qv);for(const t of e){const e=await t.file;for(const t of e.rowGroups()){const e={stack:[],error:void 0,hasError:!1};try{const a=(0,i.mS)(e,t.columnDescriptorForAttribute(s),!1),o=(0,i.mS)(e,t.columnDescriptorForAttribute(r),!1),u=[a.minValue(),o.minValue(),a.maxValue(),o.maxValue()];(0,c.DC)(n,u),t.free()}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}}return{xmin:n[0],ymin:n[1],xmax:n[3],ymax:n[4],spatialReference:t.spatialReference?.toJSON()}}return null}async _getFileInfoById(t){const e=await this._provider.getFiles();for(const s of e)if(s.id===t)return s;throw new Error(`InternalError: File ${t} does not exist`)}async _getFileStatistics(){return{featureCount:await this._getFeatureCount(),byteLength:await this._getByteLength()}}async _getFile(t){return(await this._getFileInfoById(t)).file}async _createParquetQuery(t,e){const s=(await(0,S.N)()).Query.new();return"tile"===e.type&&(s.setExtent(e.extent),s.setQuantizationTransform(e.transform),s.setScale(e.scale)),s.setOutFields(e.outFields.filter(t=>null!=this._indexMap[t])),s.setOutSpatialReference(e.outSpatialReference.wkid),s.setReturnGeometry(e.returnGeometry),e.where&&await this._setWhereClause(s,t,e.where),s}async _getFeatureCount(){return(await this._provider.getFiles()).map(t=>t.statistics.rowCount).reduce((t,e)=>t+e,0)}async _getByteLength(){return(await this._provider.getFiles()).map(t=>t.statistics.byteSize).reduce((t,e)=>t+e,0)}_validateQuery(t){if(!this._capabilities.query.supportsStatistics&&t.outStatistics)throw new n.A("parquet:unsupported","Statistics queries are not supported",{query:t});if(!this._capabilities.query.supportsOrderBy&&t.orderByFields?.length)throw new n.A("parquet:unsupported","Queries using orderBy are not supported",{query:t});if(!this._capabilities.query.supportsDistinct&&t.returnDistinctValues)throw new n.A("parquet:unsupported","Queries using returnDistinctValues are not supported",{query:t})}async _setWhereClause(t,e,s){const i=this._indexMap,r=this._fieldsIndex,a={getAttribute(t,s){const n=e.readAttribute(t.rowGroup,t.row,i[s]);if(null==n)return null;const a=r.get(s);return"esriFieldTypeString"===a.type||"esriFieldTypeDateOnly"===a.type||"esriFieldTypeTimeOnly"===a.type||"esriFieldTypeTimestampOffset"===a.type?b.decode(n):n}},o=await(0,l.GP)(s,this._fieldsIndex);if(!o.isStandardized)throw new n.A("sql-parse-error","expression is not standardized");t.setWhere(s),t.setWhereEvaluator((t,e)=>o.testFeatureCompiled({rowGroup:t,row:e},a,null)),t.setWhereFields(o.fieldNames)}async*_fetchChunks(t,e){const s=await(0,S.N)(),i=await this._provider.getFiles();for(const r of i){const i=await r.file,n=s.Query.new();n.setOutFields(t.fields),n.setReturnGeometry(t.returnGeometry),t.where&&await this._setWhereClause(n,i,t.where);const a=await i.executeQuery(n),o=[],h=a.next(e);for(let t=0;t<4;t++)o.push(a.next(e));let l=await h;for(;null!=l;){(0,u.Te)(e);const t=new O.s(this._metadata,this._indexMap,l,r.id),s=G([new N.j(t,null,0,!1)],this._queryEngineParams),i=o.shift();o.push(a.next(e)),yield s,l=await i}}}_enqueueQuery(t,e){return this._queue.push(t,e)}async _executeQuery(t,e){const s=await this._getReadParams(t);if(t.where=void 0,t.objectIds?.length){const s=new Map;for(const e of t.objectIds){const t=(0,g.wY)(e),i=(0,g.gE)(e);let r=s.get(t);r||(r=[],s.set(t,r)),r.push(i)}const i=[];for(const[r,n]of s.entries()){const s=await this._executeFileIdQuery(t,r,n,e);for(const t of s)i.push(t)}return new f.G(i,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:!1,hasZ:!1,featureAdapter:z,featureIdInfo:this._queryEngineParams.featureIdInfo})}let i=t.resultRecordCount??await this._getFeatureCount(),r=t.resultOffset??0;t.resultRecordCount=void 0,t.resultOffset=void 0;const n=[];for await(const a of this._fetchChunks(s,e)){const s=await a.executeQueryForOpaqueFeatures(t,e);if(s.length>r){const e=s.slice(r,Math.min(r+i,s.length));for(const t of e)n.push(t);if(r=0,i-=e.length,0===i)return new f.G(n,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:!1,hasZ:!1,featureAdapter:z,featureIdInfo:this._queryEngineParams.featureIdInfo})}else r-=s.length}return new f.G(n,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:!1,hasZ:!1,featureAdapter:z,featureIdInfo:this._queryEngineParams.featureIdInfo})}async _executeFileIdQuery(t,e,s,i){const r=await this._getReadParams(t),n=(await(0,S.N)()).Query.new();n.setOutFields(r.fields),n.setReturnGeometry(r.returnGeometry),n.setIds(new Uint32Array(s));const a=await this._getFile(e),o=await a.executeQuery(n,i);let u=await o.next(i),h=0;const l=[];for(;null!=u;){const t=new O.s(this._metadata,this._indexMap,u,e),s=new N.j(t,null,h++,!1);l.push(s),u=await o.next(i)}return G(l,this._queryEngineParams).executeQueryForOpaqueFeatures(t,i)}async _getReadParams(t){const e=new Set;if(t.outStatistics)for(const s of t.outStatistics)null!=s.onStatisticField&&e.add(s.onStatisticField);if(t.outFields)for(const s of t.outFields)e.add(s);return{fields:(e.has("*")?this._fieldsIndex.fields.map(t=>t.name):Array.from(e)).filter(t=>null!=this._indexMap[t]),returnGeometry:!!t.returnGeometry||!!t.geometry,where:t.where}}}function A(t){for(const e in t){const s=e;switch(s){case"resultOffset":case"resultRecordCount":case"aggregateIds":case"distance":case"gdbVersion":case"geometry":case"having":case"timeExtent":case"objectIds":case"historicMoment":case"where":return null!=t[s]}}return!1}function G(t,e){const s=new v.I;for(const e of t)s.insert(e);return new d.do({...e,featureStore:s})}function Q(t,e){return t.statistics.statistics.get(e.fieldName)??null}function k(t,e){const s=Q(t,e);if(null==s)return Number.POSITIVE_INFINITY;const i=D(s.minValue),r=D(s.maxValue);return null==i||null==r||r<i?Number.POSITIVE_INFINITY:r-i}function D(t){return"number"==typeof t&&Number.isFinite(t)?t:null}function B(t){const e=t?.featureCount;let s=!1;return null!=e&&e<(0,a.A)("parquetlayer-full-query-feature-count")&&(s=!0),{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:8e3,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:void 0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,supportsStatisticsAggregatedIds:!1,supportsCacheHint:!1,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsOutDistance:!1,supportsDistinct:s,supportsExtent:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:s,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsPercentileStatistics:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:s,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,supportsTrueCurve:!1,tileMaxRecordCount:void 0},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}}}]);