@arcgis/core 5.2.0-next.121 → 5.2.0-next.122

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 (224) hide show
  1. package/Ground.js +1 -1
  2. package/arcgisGlobal.d.ts +2 -0
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/0148cb611bf7c8c5fe8a.js +1 -0
  5. package/assets/esri/core/workers/chunks/{deb5b1d772ca407654d4.js → 0acc754907395e83bbc6.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{bcb06a0643b4c83535ee.js → 1302bf9718747cd9fdd9.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{956432c9d45940983bc2.js → 1b42d163ef22e3565bb7.js} +1 -1
  8. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +1 -0
  9. package/assets/esri/core/workers/chunks/{4adad3312caa24af98ac.js → 1c38ce72160d5a4e4b3d.js} +1 -1
  10. package/assets/esri/core/workers/chunks/1c3b087fbf2d102376fc.js +1 -0
  11. package/assets/esri/core/workers/chunks/{9b3813e39992b1b99941.js → 1e46703cb566c25458ad.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{015cb790262a59857c5f.js → 1f135269aea3931e11b2.js} +1 -1
  13. package/assets/esri/core/workers/chunks/23279303cd7698314c56.js +1 -0
  14. package/assets/esri/core/workers/chunks/{4bf2cc4d092601ff2b86.js → 24673aac70d6c949b6fa.js} +1 -1
  15. package/assets/esri/core/workers/chunks/24cf91aeab53a897e951.js +1 -0
  16. package/assets/esri/core/workers/chunks/26bc509a031788bfa678.js +1 -0
  17. package/assets/esri/core/workers/chunks/2ae6deade655fdbc28de.js +1 -0
  18. package/assets/esri/core/workers/chunks/{37cf4ca2083cd3b6002e.js → 2c7bb5c9751524687002.js} +1 -1
  19. package/assets/esri/core/workers/chunks/2c8957f9c7610805208c.js +1 -0
  20. package/assets/esri/core/workers/chunks/{a3c1a5a5c5cbf27b376d.js → 2d592c935571de80a2e2.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{a917a1df8270860dc514.js → 2f52ad525744b8793d49.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{6efc5873747b9cd44fb9.js → 323451ef52d0c2805f1d.js} +1 -1
  23. package/assets/esri/core/workers/chunks/37ae52c71bf9c70fbb92.js +1 -0
  24. package/assets/esri/core/workers/chunks/38890ac5917942374ab8.js +1 -0
  25. package/assets/esri/core/workers/chunks/3e33d953e41b281a120b.js +1 -0
  26. package/assets/esri/core/workers/chunks/3e52351e06d85bf9bedd.js +1 -0
  27. package/assets/esri/core/workers/chunks/{fbc5f275c4e5e6bfffaa.js → 462fd57af8ed7921d6ba.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{1846296be959e28c42bb.js → 475906b079f4f1ddacf2.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{ea49721fdd2172d1c799.js → 48a2f68e06a2e90b77d0.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{b6ca73c1384f07b30b74.js → 4bb8432d99a39733368f.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{c44cbe04efddbbbaec13.js → 4f58e0322707f63f5bf2.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{0e9f54d7f158195bd203.js → 59cd139712d919e6a738.js} +1 -1
  33. package/assets/esri/core/workers/chunks/59d5247ac4075b024244.js +1 -0
  34. package/assets/esri/core/workers/chunks/5b9f3c4f65412c66316f.js +1 -0
  35. package/assets/esri/core/workers/chunks/{be3421ffb5b391bca02e.js → 5d35e0c2665f5e625ee9.js} +1 -1
  36. package/assets/esri/core/workers/chunks/5e70bfb9d6235a87b87a.js +1 -0
  37. package/assets/esri/core/workers/chunks/6006bd8a5ed945fa2776.js +1 -0
  38. package/assets/esri/core/workers/chunks/618927cfcb93dd1d92fd.js +1 -0
  39. package/assets/esri/core/workers/chunks/6709d24867d275b33d24.js +1 -0
  40. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +1 -0
  41. package/assets/esri/core/workers/chunks/{fd5e61cb6f936eadcfe3.js → 724ea2e2843e6dac0a90.js} +1 -1
  42. package/assets/esri/core/workers/chunks/7441d121f00ce747c08e.js +1 -0
  43. package/assets/esri/core/workers/chunks/{e86f83a6514a35255f64.js → 781fa83e8063b8f685dc.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{a005efcde3ca9def4e6b.js → 78c1b75b1a8937eaa3cd.js} +1 -1
  45. package/assets/esri/core/workers/chunks/793b072519ded0dc6f34.js +1 -0
  46. package/assets/esri/core/workers/chunks/{1086f190f94c715bbfe4.js → 7994fce5f36963aadc51.js} +1 -1
  47. package/assets/esri/core/workers/chunks/7adee504107cb9ad8563.js +1 -0
  48. package/assets/esri/core/workers/chunks/7efc45858ebd3fd3302e.js +1 -0
  49. package/assets/esri/core/workers/chunks/7ff536284942c5284a16.js +1 -0
  50. package/assets/esri/core/workers/chunks/813dd84933b407c8fe86.js +1 -0
  51. package/assets/esri/core/workers/chunks/8daeac785af725c3ebdf.js +1 -0
  52. package/assets/esri/core/workers/chunks/{3ab25279aaa30f035038.js → 8daed13400d9e63e65ae.js} +1 -1
  53. package/assets/esri/core/workers/chunks/9020bd7a0e488d55ef14.js +1 -0
  54. package/assets/esri/core/workers/chunks/{cf7c06702babd6fa88b4.js → 9af36ee6a0df224859bc.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{452d069ba7ad6759b558.js → 9c46c7f00d42f5c02b26.js} +1 -1
  56. package/assets/esri/core/workers/chunks/a3ab53b534e2872131be.js +1 -0
  57. package/assets/esri/core/workers/chunks/{fa3f824c874f29d24953.js → aa6b2cc8f6f5627891c1.js} +1 -1
  58. package/assets/esri/core/workers/chunks/ac7af417ebf7721d7400.js +1 -0
  59. package/assets/esri/core/workers/chunks/aed479c14d93955f4798.js +1 -0
  60. package/assets/esri/core/workers/chunks/{60c61f34733063730386.js → b013b70e40dfb6ce013e.js} +1 -1
  61. package/assets/esri/core/workers/chunks/b22de8bf4a4a739bc36d.js +1 -0
  62. package/assets/esri/core/workers/chunks/b39cd78d2d97bef9909e.js +1 -0
  63. package/assets/esri/core/workers/chunks/b5f50955c1eee55b67d1.js +1 -0
  64. package/assets/esri/core/workers/chunks/{99ebc99e8d1bca105b5e.js → b688e6463a651779a016.js} +1 -1
  65. package/assets/esri/core/workers/chunks/bdf012e591a8476db467.js +1 -0
  66. package/assets/esri/core/workers/chunks/{daf7b647bd960d8bad56.js → be52c319a0a81ce1ba36.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{89edaa1ffa566908ebca.js → ca5a4f62b09cc8579dc0.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{fbb390c0d92d1536fce3.js → ce1ccf9ec90b786591e5.js} +1 -1
  69. package/assets/esri/core/workers/chunks/cf0bed7ae27021fd7b05.js +1 -0
  70. package/assets/esri/core/workers/chunks/cf6f671823fa6c2a9a5e.js +1 -0
  71. package/assets/esri/core/workers/chunks/{39c5e0f6262f69a62c66.js → d25210574168ead2f813.js} +1 -1
  72. package/assets/esri/core/workers/chunks/d3378c479052d566317c.js +1 -0
  73. package/assets/esri/core/workers/chunks/d3ef23923424ad8c5048.js +1 -0
  74. package/assets/esri/core/workers/chunks/{46388b86d1b10e6121bd.js → d507d7d7a7282fc38e8d.js} +1 -1
  75. package/assets/esri/core/workers/chunks/dc0816f064be576a2fa6.js +1 -0
  76. package/assets/esri/core/workers/chunks/{d9b761104ab6e4acaf91.js → dd4ecf81250cc001d040.js} +1 -1
  77. package/assets/esri/core/workers/chunks/e10fe4c77b8dc4492092.js +1 -0
  78. package/assets/esri/core/workers/chunks/e4e1db4e9e5f13167401.js +1 -0
  79. package/assets/esri/core/workers/chunks/e5ee64e2fb5bfcb716d8.js +1 -0
  80. package/assets/esri/core/workers/chunks/{e755075ac2e02e881fad.js → e6637f9176566382ed3e.js} +1 -1
  81. package/assets/esri/core/workers/chunks/e6dc68c4bd8eddb168d1.js +1 -0
  82. package/assets/esri/core/workers/chunks/eb780f2dafa14f776166.js +1 -0
  83. package/assets/esri/core/workers/chunks/{d9d5f50af047ee7af129.js → eb7f45736c852725b0bb.js} +89 -58
  84. package/assets/esri/core/workers/chunks/ed31ec586b754241474d.js +1 -0
  85. package/assets/esri/core/workers/chunks/f38d11be766043413659.js +1 -0
  86. package/assets/esri/libs/pdfjs/pdf.worker.mjs +63075 -0
  87. package/assets/esri/libs/pdfjs/wasm/jbig2.wasm +0 -0
  88. package/assets/esri/libs/pdfjs/wasm/openjpeg.wasm +0 -0
  89. package/assets/esri/libs/pdfjs/wasm/qcms_bg.wasm +0 -0
  90. package/assets/esri/libs/pdfjs/wasm/quickjs-eval.wasm +0 -0
  91. package/assets/esri/widgets/support/SelectionToolbar/t9n/messages.en.json +1 -1
  92. package/chunks/CloudsComposition.glsl.js +2 -2
  93. package/chunks/GlobalIllumination.glsl.js +42 -13
  94. package/chunks/GlobalIlluminationBlur.glsl.js +1 -1
  95. package/config.js +1 -1
  96. package/core/arrayUtils.js +1 -1
  97. package/core/workers/registry.js +1 -1
  98. package/geometry/support/geometryUtils.js +1 -1
  99. package/geometry/support/heightModelInfoUtils.js +1 -1
  100. package/geometry/support/meshUtils/elevation.js +1 -1
  101. package/kernel.js +1 -1
  102. package/layers/GeospatialPDFLayer.d.ts +40 -0
  103. package/layers/GeospatialPDFLayer.js +2 -0
  104. package/layers/IntegratedMeshLayer.js +1 -1
  105. package/layers/geospatialPDF/GeospatialPDFFrame.js +2 -0
  106. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +5 -0
  107. package/layers/geospatialPDF/GeospatialPDFParserUtils.js +2 -0
  108. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +2 -0
  109. package/layers/geospatialPDF/LGIDictMapFrame.js +2 -0
  110. package/layers/geospatialPDF/Projection.js +2 -0
  111. package/layers/geospatialPDF/ViewportMeasureFrame.js +2 -0
  112. package/layers/geospatialPDF/renderExtentUtils.js +2 -0
  113. package/layers/geospatialPDF/sharedUtils.js +2 -0
  114. package/layers/mixins/ArcGISImageService.js +1 -1
  115. package/layers/raster/datasets/GeospatialPDFRaster.js +2 -0
  116. package/layers/support/ElevationQuery.js +1 -1
  117. package/layers/support/LabelClass.js +1 -1
  118. package/layers/support/layersLoader.js +1 -1
  119. package/layers/types.d.ts +1 -1
  120. package/package.json +4 -4
  121. package/portal/PortalItem.js +1 -1
  122. package/portal/support/portalLayers.js +1 -1
  123. package/support/revision.js +1 -1
  124. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  125. package/views/2d/input/MapViewInputManager.js +1 -1
  126. package/views/2d/input/handlers/KeyPan.js +1 -1
  127. package/views/2d/input/handlers/KeyRotate.js +1 -1
  128. package/views/2d/layerViewModuleImportUtils.js +1 -1
  129. package/views/2d/layers/GeospatialPDFLayerView2D.js +2 -0
  130. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  131. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  132. package/views/2d/types.d.ts +2 -0
  133. package/views/3d/GroundView3D.js +1 -1
  134. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  135. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  136. package/views/3d/layerViewModuleImportUtils.js +1 -1
  137. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  138. package/views/3d/layers/GeospatialPDFLayerView3D.js +2 -0
  139. package/views/3d/layers/I3SMeshView3D.js +1 -1
  140. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  141. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  142. package/views/3d/layers/LayerView3D.js +1 -1
  143. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  144. package/views/3d/layers/i3s/Intersector.js +1 -1
  145. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  146. package/views/3d/support/GroundAndIMSurface.js +1 -1
  147. package/views/3d/support/hitTest.js +1 -1
  148. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  149. package/views/3d/types.d.ts +2 -0
  150. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  151. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +8 -6
  152. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js +2 -2
  153. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +1 -1
  154. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +6 -6
  155. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
  156. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  157. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  158. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  159. package/views/SceneView.d.ts +31 -0
  160. package/views/SceneView.js +1 -1
  161. package/views/View.d.ts +35 -0
  162. package/views/View.js +1 -1
  163. package/views/analysis/ElevationProfile/ElevationProfileLineGroundComputation.js +1 -1
  164. package/views/analysis/ElevationProfile/elevationProfileQuerySourceUtils.js +1 -1
  165. package/views/interactive/options/ViewOptions.d.ts +98 -0
  166. package/views/interactive/options/ViewOptions.js +2 -0
  167. package/views/interactive/support/Units.d.ts +10 -2
  168. package/views/interactive/support/Units.js +1 -1
  169. package/views/layers/FeatureLikeLayerView.d.ts +27 -5
  170. package/views/layers/GraphicsLayerView.d.ts +25 -2
  171. package/views/layers/ImageryTileLayerView.js +1 -1
  172. package/views/selection/types.d.ts +1 -1
  173. package/views/support/DefaultsFromMap.js +1 -1
  174. package/views/types.d.ts +9 -3
  175. package/widgets/ElevationProfile/ElevationProfileLineGround.js +1 -1
  176. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +8 -2
  177. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  178. package/widgets/support/SelectionToolbar/VisibleElements.d.ts +8 -1
  179. package/widgets/support/SelectionToolbar/VisibleElements.js +1 -1
  180. package/widgets/support/SelectionToolbar.d.ts +7 -1
  181. package/widgets/support/SelectionToolbar.js +1 -1
  182. package/assets/esri/core/workers/chunks/01ca17092545d72be7b6.js +0 -1
  183. package/assets/esri/core/workers/chunks/0b727d7bf3e36e146725.js +0 -1
  184. package/assets/esri/core/workers/chunks/0bd067a5c0bac96caeb5.js +0 -1
  185. package/assets/esri/core/workers/chunks/0ff13f7a18b0123d253e.js +0 -1
  186. package/assets/esri/core/workers/chunks/114bc14c49176f64a2c5.js +0 -1
  187. package/assets/esri/core/workers/chunks/173417fe995e9bfc49d8.js +0 -1
  188. package/assets/esri/core/workers/chunks/2cf571d968118b6bdde0.js +0 -1
  189. package/assets/esri/core/workers/chunks/43436c7ccc6baefc885d.js +0 -1
  190. package/assets/esri/core/workers/chunks/445b0ca1b70730c9a2e6.js +0 -1
  191. package/assets/esri/core/workers/chunks/48d3da636be15581fd7d.js +0 -1
  192. package/assets/esri/core/workers/chunks/501df20cdd09384f6ee2.js +0 -1
  193. package/assets/esri/core/workers/chunks/50ae209237f104735a30.js +0 -1
  194. package/assets/esri/core/workers/chunks/54f9062526c2002b7fd7.js +0 -1
  195. package/assets/esri/core/workers/chunks/56b7ac280bf0be938c14.js +0 -1
  196. package/assets/esri/core/workers/chunks/61bcbafd676804ce3e1d.js +0 -1
  197. package/assets/esri/core/workers/chunks/63f7141c71f29dbe8270.js +0 -1
  198. package/assets/esri/core/workers/chunks/726ca458b98bb4334431.js +0 -1
  199. package/assets/esri/core/workers/chunks/75410a4de76e67ed5da4.js +0 -1
  200. package/assets/esri/core/workers/chunks/85780f4fa4b5509f864e.js +0 -1
  201. package/assets/esri/core/workers/chunks/862754d2d659528fe884.js +0 -1
  202. package/assets/esri/core/workers/chunks/8675ab3c4dec2f13b9c6.js +0 -1
  203. package/assets/esri/core/workers/chunks/8a103b6e9534516421e2.js +0 -1
  204. package/assets/esri/core/workers/chunks/917dec9c004218c58950.js +0 -1
  205. package/assets/esri/core/workers/chunks/91a51d959ee5c6123c46.js +0 -1
  206. package/assets/esri/core/workers/chunks/91f451b98e0f696043df.js +0 -1
  207. package/assets/esri/core/workers/chunks/9d92e6f0beed9a8580fa.js +0 -1
  208. package/assets/esri/core/workers/chunks/a42505b978d54d36d3b6.js +0 -1
  209. package/assets/esri/core/workers/chunks/a70c59129ea808857d07.js +0 -1
  210. package/assets/esri/core/workers/chunks/a86a4e550a92f770d6d5.js +0 -1
  211. package/assets/esri/core/workers/chunks/b45ebb1b64ee7314375e.js +0 -1
  212. package/assets/esri/core/workers/chunks/b5b30c8447a0f967fa79.js +0 -1
  213. package/assets/esri/core/workers/chunks/baa8bce361a2677533ec.js +0 -1
  214. package/assets/esri/core/workers/chunks/c70a32ac0fa49f4493ca.js +0 -1
  215. package/assets/esri/core/workers/chunks/cf1106eda10f3cccb1bd.js +0 -1
  216. package/assets/esri/core/workers/chunks/d1b5be1aeab16d36d4b1.js +0 -1
  217. package/assets/esri/core/workers/chunks/d38252956c3d9e2168f7.js +0 -1
  218. package/assets/esri/core/workers/chunks/d6130cd8a20d24dd9d3c.js +0 -1
  219. package/assets/esri/core/workers/chunks/da161f8cbe1cfc5fcf7c.js +0 -1
  220. package/assets/esri/core/workers/chunks/da5b3421a984cb94fd58.js +0 -1
  221. package/assets/esri/core/workers/chunks/e52f30dfb7c82491a7f2.js +0 -1
  222. package/assets/esri/core/workers/chunks/e88eee4c2fc4229c2a8b.js +0 -1
  223. package/assets/esri/core/workers/chunks/f75e57d3e02f9828b049.js +0 -1
  224. package/assets/esri/core/workers/chunks/f774e5b94710ccee1af0.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[52],{32198(t,n,e){function r(t,n,e,r){var o,i=arguments.length,s=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,e,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(n,e,s):o(n,e))||s);return i>3&&s&&Object.defineProperty(n,e,s),s}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>s,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function s(t){function n(n){t.error=t.hasError?new i(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var i=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(i).then(o,function(t){return n(t),o()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,i,s,a,u){return[t,n,e,r,o,i,s,a,u]}e.d(n,{fA:()=>o,vt:()=>r});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r});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:o,create:r,fromValues:function(t,n,e,r,o,i,s,a,u,c,h,f,l,d,m,M){return[t,n,e,r,o,i,s,a,u,c,h,f,l,d,m,M]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},82534(t,n,e){function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>o,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},77690(t,n,e){e.d(n,{B8:()=>a,Ge:()=>d,I0:()=>l,KC:()=>u,a4:()=>c,hZ:()=>i,hs:()=>f,lw:()=>h,mg:()=>s,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,o,i,s,a,u,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=u,t[8]=c,t}function s(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function a(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],s=n[4],a=n[5],u=n[6],c=n[7],h=n[8],f=h*s-a*c,l=-h*i+a*u,d=c*i-s*u;let m=e*f+r*l+o*d;return m?(m=1/m,t[0]=f*m,t[1]=(-h*r+o*c)*m,t[2]=(a*r-o*s)*m,t[3]=l*m,t[4]=(h*e-o*u)*m,t[5]=(-a*e+o*i)*m,t[6]=d*m,t[7]=(-c*e+r*u)*m,t[8]=(s*e-r*i)*m,t):null}function u(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],s=n[4],a=n[5],u=n[6],c=n[7],h=n[8];return t[0]=s*h-a*c,t[1]=o*c-r*h,t[2]=r*a-o*s,t[3]=a*u-i*h,t[4]=e*h-o*u,t[5]=o*i-e*a,t[6]=i*c-s*u,t[7]=r*u-e*c,t[8]=e*s-r*i,t}function c(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],u=t[7],c=t[8];return n*(c*i-s*u)+e*(-c*o+s*a)+r*(u*o-i*a)}function h(t,n,e){const r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],c=n[6],h=n[7],f=n[8],l=e[0],d=e[1],m=e[2],M=e[3],b=e[4],p=e[5],g=e[6],_=e[7],v=e[8];return t[0]=l*r+d*s+m*c,t[1]=l*o+d*a+m*h,t[2]=l*i+d*u+m*f,t[3]=M*r+b*s+p*c,t[4]=M*o+b*a+p*h,t[5]=M*i+b*u+p*f,t[6]=g*r+_*s+v*c,t[7]=g*o+_*a+v*h,t[8]=g*i+_*u+v*f,t}function f(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],s=e+e,a=r+r,u=o+o,c=e*s,h=r*s,f=r*a,l=o*s,d=o*a,m=o*u,M=i*s,b=i*a,p=i*u;return t[0]=1-f-m,t[3]=h-p,t[6]=l+b,t[1]=h+p,t[4]=1-c-m,t[7]=d-M,t[2]=l-b,t[5]=d+M,t[8]=1-c-f,t}function d(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],s=n[4],a=n[5],u=n[6],c=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],p=n[15],g=e*a-r*s,_=e*u-o*s,v=e*c-i*s,x=r*u-o*a,y=r*c-i*a,S=o*c-i*u,w=h*M-f*m,j=h*b-l*m,A=h*p-d*m,O=f*b-l*M,T=f*p-d*M,I=l*p-d*b;let E=g*I-_*T+v*O+x*A-y*j+S*w;return E?(E=1/E,t[0]=(a*I-u*T+c*O)*E,t[1]=(u*A-s*I-c*j)*E,t[2]=(s*T-a*A+c*w)*E,t[3]=(o*T-r*I-i*O)*E,t[4]=(e*I-o*A+i*j)*E,t[5]=(r*A-e*T-i*w)*E,t[6]=(M*S-b*y+p*x)*E,t[7]=(b*v-m*S-p*_)*E,t[8]=(m*y-M*v+p*g)*E,t):null}function m(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const M=h,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const e=t[0],o=t[1],i=t[2],s=t[3],a=t[4],u=t[5],c=t[6],h=t[7],f=t[8],l=n[0],d=n[1],m=n[2],M=n[3],b=n[4],p=n[5],g=n[6],_=n[7],v=n[8],x=(0,r.FD)();return Math.abs(e-l)<=x*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(o-d)<=x*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(i-m)<=x*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(s-M)<=x*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(a-b)<=x*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(u-p)<=x*Math.max(1,Math.abs(u),Math.abs(p))&&Math.abs(c-g)<=x*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(h-_)<=x*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(f-v)<=x*Math.max(1,Math.abs(f),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},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)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:l,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],s=t[3],a=t[4],u=t[5],c=t[6],h=t[7],f=t[8];return Math.abs(1-(e*e+s*s+c*c))<=n&&Math.abs(1-(o*o+a*a+h*h))<=n&&Math.abs(1-(i*i+u*u+f*f))<=n},mul:M,multiply:h,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],s=n[5],a=n[6],u=n[8],c=n[9],h=n[10],f=h*s-a*c,l=-h*i+a*u,d=c*i-s*u,m=e*f+r*l+o*d;if(!m)return null;const M=1/m;return t[0]=f*M,t[1]=(-h*r+o*c)*M,t[2]=(a*r-o*s)*M,t[3]=l*M,t[4]=(h*e-o*u)*M,t[5]=(-a*e+o*i)*M,t[6]=d*M,t[7]=(-c*e+r*u)*M,t[8]=(s*e-r*i)*M,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],c=n[6],h=n[7],f=n[8],l=Math.sin(e),d=Math.cos(e);return t[0]=d*r+l*s,t[1]=d*o+l*a,t[2]=d*i+l*u,t[3]=d*s-l*r,t[4]=d*a-l*o,t[5]=d*u-l*i,t[6]=c,t[7]=h,t[8]=f,t},scale:f,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],c=n[6],h=n[7],f=n[8],l=e[0],d=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=s,t[4]=a,t[5]=u,t[6]=l*r+d*s+c,t[7]=l*o+d*a+h,t[8]=l*i+d*u+f,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},58083(t,n,e){e.d(n,{$0:()=>p,$h:()=>O,B8:()=>h,C:()=>i,D_:()=>a,N9:()=>_,O7:()=>A,Qw:()=>c,Tl:()=>l,X_:()=>S,e$:()=>m,eL:()=>M,hM:()=>g,hZ:()=>s,hs:()=>d,kN:()=>b,l:()=>w,lw:()=>f,mg:()=>u,o1:()=>j,sC:()=>y,t2:()=>E,t5:()=>T,tZ:()=>C,ut:()=>N});var r=e(51850),o=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function s(t,n,e,r,o,i,s,a,u,c,h,f,l,d,m,M,b){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=u,t[8]=c,t[9]=h,t[10]=f,t[11]=l,t[12]=d,t[13]=m,t[14]=M,t[15]=b,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,n){if(t===n){const e=n[1],r=n[2],o=n[3],i=n[6],s=n[7],a=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=i,t[11]=n[14],t[12]=o,t[13]=s,t[14]=a}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){return h(t,n)||a(t),t}function h(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],s=n[4],a=n[5],u=n[6],c=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],p=n[15],g=e*a-r*s,_=e*u-o*s,v=e*c-i*s,x=r*u-o*a,y=r*c-i*a,S=o*c-i*u,w=h*M-f*m,j=h*b-l*m,A=h*p-d*m,O=f*b-l*M,T=f*p-d*M,I=l*p-d*b;let E=g*I-_*T+v*O+x*A-y*j+S*w;return E?(E=1/E,t[0]=(a*I-u*T+c*O)*E,t[1]=(o*T-r*I-i*O)*E,t[2]=(M*S-b*y+p*x)*E,t[3]=(l*y-f*S-d*x)*E,t[4]=(u*A-s*I-c*j)*E,t[5]=(e*I-o*A+i*j)*E,t[6]=(b*v-m*S-p*_)*E,t[7]=(h*S-l*v+d*_)*E,t[8]=(s*T-a*A+c*w)*E,t[9]=(r*A-e*T-i*w)*E,t[10]=(m*y-M*v+p*g)*E,t[11]=(f*v-h*y-d*g)*E,t[12]=(a*j-s*O-u*w)*E,t[13]=(e*O-r*j+o*w)*E,t[14]=(M*_-m*x-b*g)*E,t[15]=(h*x-f*_+l*g)*E,t):null}function f(t,n,e){const r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],c=n[6],h=n[7],f=n[8],l=n[9],d=n[10],m=n[11],M=n[12],b=n[13],p=n[14],g=n[15];let _=e[0],v=e[1],x=e[2],y=e[3];return t[0]=_*r+v*a+x*f+y*M,t[1]=_*o+v*u+x*l+y*b,t[2]=_*i+v*c+x*d+y*p,t[3]=_*s+v*h+x*m+y*g,_=e[4],v=e[5],x=e[6],y=e[7],t[4]=_*r+v*a+x*f+y*M,t[5]=_*o+v*u+x*l+y*b,t[6]=_*i+v*c+x*d+y*p,t[7]=_*s+v*h+x*m+y*g,_=e[8],v=e[9],x=e[10],y=e[11],t[8]=_*r+v*a+x*f+y*M,t[9]=_*o+v*u+x*l+y*b,t[10]=_*i+v*c+x*d+y*p,t[11]=_*s+v*h+x*m+y*g,_=e[12],v=e[13],x=e[14],y=e[15],t[12]=_*r+v*a+x*f+y*M,t[13]=_*o+v*u+x*l+y*b,t[14]=_*i+v*c+x*d+y*p,t[15]=_*s+v*h+x*m+y*g,t}function l(t,n,e){const r=e[0],o=e[1],i=e[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*i+n[12],t[13]=n[1]*r+n[5]*o+n[9]*i+n[13],t[14]=n[2]*r+n[6]*o+n[10]*i+n[14],t[15]=n[3]*r+n[7]*o+n[11]*i+n[15];else{const e=n[0],s=n[1],a=n[2],u=n[3],c=n[4],h=n[5],f=n[6],l=n[7],d=n[8],m=n[9],M=n[10],b=n[11];t[0]=e,t[1]=s,t[2]=a,t[3]=u,t[4]=c,t[5]=h,t[6]=f,t[7]=l,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=e*r+c*o+d*i+n[12],t[13]=s*r+h*o+m*i+n[13],t[14]=a*r+f*o+M*i+n[14],t[15]=u*r+l*o+b*i+n[15]}return t}function d(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*i,t[9]=n[9]*i,t[10]=n[10]*i,t[11]=n[11]*i,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function m(t,n,e,r){let s=r[0],a=r[1],u=r[2],c=Math.sqrt(s*s+a*a+u*u);if(c<=(0,o.FD)())return void i(t,n);c=1/c,s*=c,a*=c,u*=c;const h=Math.sin(e),f=Math.cos(e),l=1-f,d=n[0],m=n[1],M=n[2],b=n[3],p=n[4],g=n[5],_=n[6],v=n[7],x=n[8],y=n[9],S=n[10],w=n[11],j=s*s*l+f,A=a*s*l+u*h,O=u*s*l-a*h,T=s*a*l-u*h,I=a*a*l+f,E=u*a*l+s*h,N=s*u*l+a*h,C=a*u*l-s*h,q=u*u*l+f;t[0]=d*j+p*A+x*O,t[1]=m*j+g*A+y*O,t[2]=M*j+_*A+S*O,t[3]=b*j+v*A+w*O,t[4]=d*T+p*I+x*E,t[5]=m*T+g*I+y*E,t[6]=M*T+_*I+S*E,t[7]=b*T+v*I+w*E,t[8]=d*N+p*C+x*q,t[9]=m*N+g*C+y*q,t[10]=M*N+_*C+S*q,t[11]=b*N+v*C+w*q,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function M(t,n,e){const r=Math.sin(e),o=Math.cos(e),i=n[4],s=n[5],a=n[6],u=n[7],c=n[8],h=n[9],f=n[10],l=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=i*o+c*r,t[5]=s*o+h*r,t[6]=a*o+f*r,t[7]=u*o+l*r,t[8]=c*o-i*r,t[9]=h*o-s*r,t[10]=f*o-a*r,t[11]=l*o-u*r,t}function b(t,n){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]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function p(t,n,e){if(0===n)return a(t);let r=e[0],i=e[1],s=e[2],u=Math.sqrt(r*r+i*i+s*s);if(u<=(0,o.FD)())return null;u=1/u,r*=u,i*=u,s*=u;const c=Math.sin(n),h=Math.cos(n),f=1-h;return t[0]=r*r*f+h,t[1]=i*r*f+s*c,t[2]=s*r*f-i*c,t[3]=0,t[4]=r*i*f-s*c,t[5]=i*i*f+h,t[6]=s*i*f+r*c,t[7]=0,t[8]=r*s*f+i*c,t[9]=i*s*f-r*c,t[10]=s*s*f+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,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 v(t,n,e){const r=n[0],o=n[1],i=n[2],s=n[3],a=r+r,u=o+o,c=i+i,h=r*a,f=r*u,l=r*c,d=o*u,m=o*c,M=i*c,b=s*a,p=s*u,g=s*c;return t[0]=1-(d+M),t[1]=f+g,t[2]=l-p,t[3]=0,t[4]=f-g,t[5]=1-(h+M),t[6]=m+b,t[7]=0,t[8]=l+p,t[9]=m-b,t[10]=1-(h+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const x=(0,r.vt)();function y(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function S(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],s=n[5],a=n[6],u=n[8],c=n[9],h=n[10];return t[0]=Math.sqrt(e*e+r*r+o*o),t[1]=Math.sqrt(i*i+s*s+a*a),t[2]=Math.sqrt(u*u+c*c+h*h),t}function w(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function j(t,n,e,r){const o=n[0],i=n[1],s=n[2],a=n[3],u=o+o,c=i+i,h=s+s,f=o*u,l=o*c,d=o*h,m=i*c,M=i*h,b=s*h,p=a*u,g=a*c,_=a*h,v=r[0],x=r[1],y=r[2];return t[0]=(1-(m+b))*v,t[1]=(l+_)*v,t[2]=(d-g)*v,t[3]=0,t[4]=(l-_)*x,t[5]=(1-(f+b))*x,t[6]=(M+p)*x,t[7]=0,t[8]=(d+g)*y,t[9]=(M-p)*y,t[10]=(1-(f+m))*y,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function A(t,n,e,r,o){const i=n[0],s=n[1],a=n[2],u=n[3],c=i+i,h=s+s,f=a+a,l=i*c,d=i*h,m=i*f,M=s*h,b=s*f,p=a*f,g=u*c,_=u*h,v=u*f,x=r[0],y=r[1],S=r[2],w=o[0],j=o[1],A=o[2],O=(1-(M+p))*x,T=(d+v)*x,I=(m-_)*x,E=(d-v)*y,N=(1-(l+p))*y,C=(b+g)*y,q=(m+_)*S,R=(b-g)*S,z=(1-(l+M))*S;return t[0]=O,t[1]=T,t[2]=I,t[3]=0,t[4]=E,t[5]=N,t[6]=C,t[7]=0,t[8]=q,t[9]=R,t[10]=z,t[11]=0,t[12]=e[0]+w-(O*w+E*j+q*A),t[13]=e[1]+j-(T*w+N*j+R*A),t[14]=e[2]+A-(I*w+C*j+z*A),t[15]=1,t}function O(t,n,e,r,o,i,s){const a=1/(e-n),u=1/(o-r),c=1/(i-s);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]=(e+n)*a,t[9]=(o+r)*u,t[10]=(s+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*i*2*c,t[15]=0,t}function T(t,n,e,r){const i=n[0],s=n[1],u=n[2];let c=i-e[0],h=s-e[1],f=u-e[2];const l=(0,o.FD)();if(Math.abs(c)<l&&Math.abs(h)<l&&Math.abs(f)<l)return void a(t);let d=1/Math.sqrt(c*c+h*h+f*f);c*=d,h*=d,f*=d;const m=r[0],M=r[1],b=r[2];let p=M*f-b*h,g=b*c-m*f,_=m*h-M*c;d=Math.sqrt(p*p+g*g+_*_),d?(d=1/d,p*=d,g*=d,_*=d):(p=0,g=0,_=0);let v=h*_-f*g,x=f*p-c*_,y=c*g-h*p;d=Math.sqrt(v*v+x*x+y*y),d?(d=1/d,v*=d,x*=d,y*=d):(v=0,x=0,y=0),t[0]=p,t[1]=v,t[2]=c,t[3]=0,t[4]=g,t[5]=x,t[6]=h,t[7]=0,t[8]=_,t[9]=y,t[10]=f,t[11]=0,t[12]=-(p*i+g*s+_*u),t[13]=-(v*i+x*s+y*u),t[14]=-(c*i+h*s+f*u),t[15]=1}function I(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function N(t){const n=(0,o.FD)(),e=t[0],r=t[1],i=t[2],s=t[4],a=t[5],u=t[6],c=t[8],h=t[9],f=t[10];return Math.abs(1-(e*e+s*s+c*c))<=n&&Math.abs(1-(r*r+a*a+h*h))<=n&&Math.abs(1-(i*i+u*u+f*f))<=n}function C(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 q=f,R=I;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],s=n[4],a=n[5],u=n[6],c=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],p=n[15];return t[0]=a*(l*p-d*b)-f*(u*p-c*b)+M*(u*d-c*l),t[1]=-(r*(l*p-d*b)-f*(o*p-i*b)+M*(o*d-i*l)),t[2]=r*(u*p-c*b)-a*(o*p-i*b)+M*(o*c-i*u),t[3]=-(r*(u*d-c*l)-a*(o*d-i*l)+f*(o*c-i*u)),t[4]=-(s*(l*p-d*b)-h*(u*p-c*b)+m*(u*d-c*l)),t[5]=e*(l*p-d*b)-h*(o*p-i*b)+m*(o*d-i*l),t[6]=-(e*(u*p-c*b)-s*(o*p-i*b)+m*(o*c-i*u)),t[7]=e*(u*d-c*l)-s*(o*d-i*l)+h*(o*c-i*u),t[8]=s*(f*p-d*M)-h*(a*p-c*M)+m*(a*d-c*f),t[9]=-(e*(f*p-d*M)-h*(r*p-i*M)+m*(r*d-i*f)),t[10]=e*(a*p-c*M)-s*(r*p-i*M)+m*(r*c-i*a),t[11]=-(e*(a*d-c*f)-s*(r*d-i*f)+h*(r*c-i*a)),t[12]=-(s*(f*b-l*M)-h*(a*b-u*M)+m*(a*l-u*f)),t[13]=e*(f*b-l*M)-h*(r*b-o*M)+m*(r*l-o*f),t[14]=-(e*(a*b-u*M)-s*(r*b-o*M)+m*(r*u-o*a)),t[15]=e*(a*l-u*f)-s*(r*l-o*f)+h*(r*u-o*a),t},copy:i,determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],u=t[7],c=t[8],h=t[9],f=t[10],l=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(n*s-e*i)*(f*b-l*M)-(n*a-r*i)*(h*b-l*m)+(n*u-o*i)*(h*M-f*m)+(e*a-r*s)*(c*b-l*d)-(e*u-o*s)*(c*M-f*d)+(r*u-o*a)*(c*m-h*d)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],s=t[3],a=t[4],u=t[5],c=t[6],h=t[7],f=t[8],l=t[9],d=t[10],m=t[11],M=t[12],b=t[13],p=t[14],g=t[15],_=n[0],v=n[1],x=n[2],y=n[3],S=n[4],w=n[5],j=n[6],A=n[7],O=n[8],T=n[9],I=n[10],E=n[11],N=n[12],C=n[13],q=n[14],R=n[15],z=(0,o.FD)();return Math.abs(e-_)<=z*Math.max(1,Math.abs(e),Math.abs(_))&&Math.abs(r-v)<=z*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-x)<=z*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(s-y)<=z*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(a-S)<=z*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(u-w)<=z*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(c-j)<=z*Math.max(1,Math.abs(c),Math.abs(j))&&Math.abs(h-A)<=z*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(f-O)<=z*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(l-T)<=z*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(d-I)<=z*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(m-E)<=z*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(M-N)<=z*Math.max(1,Math.abs(M),Math.abs(N))&&Math.abs(b-C)<=z*Math.max(1,Math.abs(b),Math.abs(C))&&Math.abs(p-q)<=z*Math.max(1,Math.abs(p),Math.abs(q))&&Math.abs(g-R)<=z*Math.max(1,Math.abs(g),Math.abs(R))},exactEquals:E,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,n){const e=n[0],r=n[1],o=n[2],i=n[3],s=e+e,a=r+r,u=o+o,c=e*s,h=r*s,f=r*a,l=o*s,d=o*a,m=o*u,M=i*s,b=i*a,p=i*u;return t[0]=1-f-m,t[1]=h+p,t[2]=l-b,t[3]=0,t[4]=h-p,t[5]=1-c-m,t[6]=d+M,t[7]=0,t[8]=l+b,t[9]=d-M,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=x,r=-n[0],o=-n[1],i=-n[2],s=n[3],a=n[4],u=n[5],c=n[6],h=n[7],f=r*r+o*o+i*i+s*s;return f>0?(e[0]=2*(a*s+h*r+u*i-c*o)/f,e[1]=2*(u*s+h*o+c*r-a*i)/f,e[2]=2*(c*s+h*i+a*o-u*r)/f):(e[0]=2*(a*s+h*r+u*i-c*o),e[1]=2*(u*s+h*o+c*r-a*i),e[2]=2*(c*s+h*i+a*o-u*r)),v(t,n,e),t},fromRotation:p,fromRotationTranslation:v,fromRotationTranslationScale:j,fromRotationTranslationScaleOrigin:A,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:b,fromXRotation:g,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:_,frustum:O,getRotation:w,getScale:S,getTranslation:y,hasIdentityRotation:C,identity:a,invert:h,invertOrIdentity:c,isOrthoNormal:N,lookAt:T,mul:q,multiply:f,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,o,i,s){const a=1/(n-e),u=1/(r-o),c=1/(i-s);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*c,t[11]=0,t[12]=(n+e)*a,t[13]=(o+r)*u,t[14]=(s+i)*c,t[15]=1,t},perspective:function(t,n,e,r,o){const i=1/Math.tan(n/2);let s;return t[0]=i/e,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!=o&&o!==1/0?(s=1/(r-o),t[10]=(o+r)*s,t[14]=2*o*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const o=Math.tan(n.upDegrees*Math.PI/180),i=Math.tan(n.downDegrees*Math.PI/180),s=Math.tan(n.leftDegrees*Math.PI/180),a=Math.tan(n.rightDegrees*Math.PI/180),u=2/(s+a),c=2/(o+i);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(s-a)*u*.5,t[9]=(o-i)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:m,rotateX:M,rotateY:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),i=n[0],s=n[1],a=n[2],u=n[3],c=n[8],h=n[9],f=n[10],l=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o-c*r,t[1]=s*o-h*r,t[2]=a*o-f*r,t[3]=u*o-l*r,t[8]=i*r+c*o,t[9]=s*r+h*o,t[10]=a*r+f*o,t[11]=u*r+l*o,t},rotateZ:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),i=n[0],s=n[1],a=n[2],u=n[3],c=n[4],h=n[5],f=n[6],l=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o+c*r,t[1]=s*o+h*r,t[2]=a*o+f*r,t[3]=u*o+l*r,t[4]=c*o-i*r,t[5]=h*o-s*r,t[6]=f*o-a*r,t[7]=l*o-u*r,t},scale:d,set:s,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:R,subtract:I,targetTo:function(t,n,e,r){const o=n[0],i=n[1],s=n[2],a=r[0],u=r[1],c=r[2];let h=o-e[0],f=i-e[1],l=s-e[2],d=h*h+f*f+l*l;d>0&&(d=1/Math.sqrt(d),h*=d,f*=d,l*=d);let m=u*l-c*f,M=c*h-a*l,b=a*f-u*h;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=f*b-l*M,t[5]=l*m-h*b,t[6]=h*M-f*m,t[7]=0,t[8]=h,t[9]=f,t[10]=l,t[11]=0,t[12]=o,t[13]=i,t[14]=s,t[15]=1,t},translate:l,transpose:u},Symbol.toStringTag,{value:"Module"}))},4197(t,n,e){e.d(n,{Vj:()=>h,cj:()=>c,jh:()=>i,l5:()=>a,yH:()=>u});var r=e(34275),o=e(9093);function i(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function s(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function u(t,n){if(0===n.length)return s(t);if(0===t.length)return s(n);const e=i(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function c(t){return[...t]}function h(t){const n=(0,o.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>O,C:()=>s,DC:()=>l,Ej:()=>_,Ie:()=>j,Jt:()=>A,Lu:()=>x,Ne:()=>y,RF:()=>f,TF:()=>p,VL:()=>m,aI:()=>I,fA:()=>a,gE:()=>c,gX:()=>g,hZ:()=>w,iT:()=>d,is:()=>T,pg:()=>v,uJ:()=>b,vI:()=>S,vY:()=>u,vt:()=>i,w1:()=>h,yr:()=>M}),e(35522);var r=e(5443),o=(e(19419),e(4197));function i(t=N){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function s(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function a(t,n,e,r,o,s,a=i()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a[4]=o,a[5]=s,a}function u(t,n=i()){return function(t,n,e,r=i()){return w(r,E),function(t,n,e=0,r=n.length/3){let o=t[0],i=t[1],s=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)o=Math.min(o,n[e+3*t]),i=Math.min(i,n[e+3*t+1]),s=Math.min(s,n[e+3*t+2]),a=Math.max(a,n[e+3*t]),u=Math.max(u,n[e+3*t+1]),c=Math.max(c,n[e+3*t+2]);t[0]=o,t[1]=i,t[2]=s,t[3]=a,t[4]=u,t[5]=c}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,o.jh)(24)){const[e,r,i,s,a,u]=t;return n[0]=e,n[1]=r,n[2]=i,n[3]=e,n[4]=r,n[5]=u,n[6]=e,n[7]=a,n[8]=i,n[9]=e,n[10]=a,n[11]=u,n[12]=s,n[13]=r,n[14]=i,n[15]=s,n[16]=r,n[17]=u,n[18]=s,n[19]=a,n[20]=i,n[21]=s,n[22]=a,n[23]=u,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function f(t,n,e=t){e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function d(t,[n,e,r]){!function(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}(t,n,e,r)}function m(t){return t[0]>=t[3]?0:t[3]-t[0]}function M(t){return t[1]>=t[4]?0:t[4]-t[1]}function b(t){return t[2]>=t[5]?0:t[5]-t[2]}function p(t){const n=m(t),e=b(t),r=M(t);return n*n+e*e+r*r}function g(t,n=[0,0,0]){return n[0]=t[0]+m(t)/2,n[1]=t[1]+M(t)/2,n[2]=t[2]+b(t)/2,n}function _(t,n=[0,0,0]){return n[0]=m(t),n[1]=M(t),n[2]=b(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function x(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function y(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function S(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function w(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function j(t){return t?w(t,E):i(E)}function A(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function O(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=o,t[5]=Number.POSITIVE_INFINITY,t}function T(t){return 6===t.length}function I(t,n,e){if(null==t||null==n)return t===n;if(!T(t)||!T(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];i(),e.d(n,["qv",0,E,"v_",0,N])},19419(t,n,e){e.d(n,{$9:()=>S,C:()=>i,DC:()=>m,HY:()=>y,IO:()=>f,Ie:()=>j,Rj:()=>x,Uc:()=>v,VL:()=>M,VY:()=>a,Wc:()=>p,aI:()=>O,bx:()=>l,fA:()=>s,fT:()=>d,gR:()=>w,gX:()=>g,ib:()=>_,nw:()=>h,pJ:()=>T,tK:()=>c,uJ:()=>b,vt:()=>o,w1:()=>u}),e(34727);var r=e(5443);function o(t=E){return[t[0],t[1],t[2],t[3]]}function i(t,n){return t!==n&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3]),t}function s(t,n,e,r,i=o()){return i[0]=t,i[1]=n,i[2]=e,i[3]=r,i}function a(t,n=o()){return n[0]=t.xmin,n[1]=t.ymin,n[2]=t.xmax,n[3]=t.ymax,n}function u(t,n,e=new r.A){return e.xmin=t[0],e.ymin=t[1],e.xmax=t[2],e.ymax=t[3],e.spatialReference=n,e}function c(t,n){n[0]<t[0]&&(t[0]=n[0]),n[0]>t[2]&&(t[2]=n[0]),n[1]<t[1]&&(t[1]=n[1]),n[1]>t[3]&&(t[3]=n[1])}function h(t,n){n<t[0]&&(t[0]=n),n>t[2]&&(t[2]=n)}function f(t,n){n<t[1]&&(t[1]=n),n>t[3]&&(t[3]=n)}function l(t,{xmin:n,ymin:e,xmax:r,ymax:o}){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.max(t[2],r),t[3]=Math.max(t[3],o)}function d(t,n,e){if(null!=n)if("length"in n)A(n)?(e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3])):2!==n.length&&3!==n.length||(e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.max(t[2],n[0]),e[3]=Math.max(t[3],n[1]));else switch(n.type){case"extent":e[0]=Math.min(t[0],n.xmin),e[1]=Math.min(t[1],n.ymin),e[2]=Math.max(t[2],n.xmax),e[3]=Math.max(t[3],n.ymax);break;case"point":e[0]=Math.min(t[0],n.x),e[1]=Math.min(t[1],n.y),e[2]=Math.max(t[2],n.x),e[3]=Math.max(t[3],n.y)}else i(e,t)}function m(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.max(t[2],n[2]),t[3]=Math.max(t[3],n[3])}function M(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function b(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function p(t){return M(t)*b(t)}function g(t,n=[0,0]){return n[0]=(t[0]+t[2])/2,n[1]=(t[1]+t[3])/2,n}function _(t){const n=M(t),e=b(t);return Math.sqrt(n*n+e*e)}function v(t,n){return x(t,n[0],n[1])}function x(t,n,e){return n>=t[0]&&e>=t[1]&&n<=t[2]&&e<=t[3]}function y(t,n){return Math.max(n[0],t[0])<=Math.min(n[2],t[2])&&Math.max(n[1],t[1])<=Math.min(n[3],t[3])}function S(t,n,e){return Math.max(n[0],t[0])-e<=Math.min(n[2],t[2])&&Math.max(n[1],t[1])-e<=Math.min(n[3],t[3])}function w(t,n){return n[0]>=t[0]&&n[2]<=t[2]&&n[1]>=t[1]&&n[3]<=t[3]}function j(t){return t?i(t,I):o(I)}function A(t){return null!=t&&4===t.length}function O(t,n){return A(t)&&A(n)?t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]:t===n}function T(t,n){if(4!==n.length||t[0]===t[2]||t[1]===t[3])return!1;for(let e=0;e<n.length;e++){const r=n[e],o=n[(e+1)%n.length];if(r[0]!==t[0]&&r[0]!==t[2]||r[1]!==t[1]&&r[1]!==t[3])return!1;const i=r[1]===o[1]&&r[0]!==o[0],s=r[0]===o[0]&&r[1]!==o[1];if(!i&&!s)return!1}return!0}const I=[1/0,1/0,-1/0,-1/0],E=[0,0,0,0];e.d(n,["qv",0,I])},65720(t,n,e){e.d(n,{C:()=>p,vt:()=>M,Qy:()=>b,ui:()=>g,ST:()=>w,bU:()=>A,pw:()=>S,m7:()=>_,ZU:()=>v,GH:()=>y,Pi:()=>x,LJ:()=>j,c8:()=>I});var r=e(4341),o=e(58083),i=e(35522),s=e(51850),a=e(78955),u=e(91829),c=e(70328),h=e(71351);function f(t){return t?{ray:(0,h.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,h.vt)(),c0:0,c1:Number.MAX_VALUE}}new r.I(()=>f());var l=e(27921);function d(t,n,e,r){let{t0:o,t1:i}=r;const s=(0,l.mN)(t,n),a=(0,l.mN)(t,e);if(s>=0&&a>=0)return!1;if(s<0&&a>=0){const t=-s/(a-s);if(t<o)return!1;t<i&&(i=t)}else if(s>=0&&a<0){const t=s/(s-a);if(t>i)return!1;t>o&&(o=t)}return r.t0=o,r.t1=i,!0}var m=e(32114);function M(t){return t?[(0,l.vt)(t[0]),(0,l.vt)(t[1]),(0,l.vt)(t[2]),(0,l.vt)(t[3]),(0,l.vt)(t[4]),(0,l.vt)(t[5])]:[(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)()]}function b(){return[(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)()]}function p(t,n){for(let e=0;e<E;e++)(0,l.C)(t[e],n[e]);return t}function g(t,n,e,r=R){const s=(0,o.lw)(m.Rc.get(),n,t);(0,o.B8)(s,s);for(let t=0;t<N;++t){const n=(0,a.Z0)(m.Km.get(),C[t],s);(0,i.hZ)(r[t],n[0]/n[3],n[1]/n[3],n[2]/n[3])}!function(t,n){(0,l.Cr)(n[4],n[0],n[3],t[0]),(0,l.Cr)(n[1],n[5],n[6],t[1]),(0,l.Cr)(n[4],n[5],n[1],t[2]),(0,l.Cr)(n[3],n[2],n[6],t[3]),(0,l.Cr)(n[0],n[1],n[2],t[4]),(0,l.Cr)(n[5],n[4],n[7],t[5])}(e,r)}function _(t,n){return v(t,n.center,n.radius)}function v(t,n,e){for(let r=0;r<E;r++){const o=t[r];if(o[0]*n[0]+o[1]*n[1]+o[2]*n[2]+o[3]>=e)return!1}return!0}function x(t,n,e){for(const r of T)if((0,l.wE)(t[r],n,e))return!0;return!1}function y(t,n,e){const r=(0,c.gX)(n,z),o=(0,c.VL)(n)/2,s=(0,c.yr)(n)/2,a=(0,c.uJ)(n)/2;return e?function(t,n,e,r,o,s){const a=(0,i.Z0)(P,n,s);for(let n=0;n<E;n++){const i=t[n];if(i[0]*a[0]+i[1]*a[1]+i[2]*a[2]+i[3]-(Math.abs(i[0]*s[0]+i[1]*s[1]+i[2]*s[2])*e+Math.abs(i[0]*s[4]+i[1]*s[5]+i[2]*s[6])*r+Math.abs(i[0]*s[8]+i[1]*s[9]+i[2]*s[10])*o)>0)return!1}return!0}(t,r,o,s,a,e):function(t,n,e,r,o){for(let i=0;i<E;i++){const s=t[i];if(s[0]*n[0]+s[1]*n[1]+s[2]*n[2]+s[3]-(Math.abs(s[0])*e+Math.abs(s[1])*r+Math.abs(s[2])*o)>0)return!1}return!0}(t,r,o,s,a)}function S(t,n){return O(t,function(t,n=f()){return(0,h.C)(t,n.ray),n.c0=0,n.c1=Number.MAX_VALUE,n}(n,q.get()))}function w(t,n,e){return O(t,function(t,n,e=f()){const r=(0,i.Bw)(t.vector);return(0,h.fA)(t.origin,n,e.ray),e.c0=0,e.c1=r,e}(n,e,q.get()))}function j(t,n,e){return function(t,n,e,r){const o={t0:0,t1:1};for(const i of n)if(!d(t[i],e,r,o))return!1;return o.t0<o.t1}(t,T,n,e)}function A(t,n){for(let e=0;e<E;e++)if((0,l.mN)(t[e],n)>0)return!1;return!0}function O(t,n){for(let e=0;e<E;e++)if(!(0,l.$Q)(t[e],n))return!1;return!0}const T=[0,1,2,3,5],I={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},E=6,N=8,C=[(0,u.fA)(-1,-1,-1,1),(0,u.fA)(1,-1,-1,1),(0,u.fA)(1,1,-1,1),(0,u.fA)(-1,1,-1,1),(0,u.fA)(-1,-1,1,1),(0,u.fA)(1,-1,1,1),(0,u.fA)(1,1,1,1),(0,u.fA)(-1,1,1,1)],q=new r.I(f),R=b(),z=(0,s.vt)(),P=(0,s.vt)()},27921(t,n,e){e.d(n,{$Q:()=>T,BX:()=>O,C:()=>c,Cr:()=>d,H:()=>E,LV:()=>u,O_:()=>l,Qj:()=>h,T7:()=>w,Ui:()=>S,_I:()=>N,fA:()=>f,gv:()=>j,lU:()=>m,mN:()=>C,mP:()=>x,mR:()=>y,vE:()=>z,vt:()=>a,wE:()=>q});var r=e(34727),o=e(35522),i=e(51850),s=(e(78955),e(44280),e(32114));function a(t=P){return[t[0],t[1],t[2],t[3]]}function u(t=P[0],n=P[1],e=P[2],r=P[3]){return f(t,n,e,r,s.Km.get())}function c(t,n){return f(n[0],n[1],n[2],n[3],t)}function h(t){return t}function f(t,n,e,r,o=a()){return o[0]=t,o[1]=n,o[2]=e,o[3]=r,o}function l(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*o,e[1]=n[1]*o,e[2]=n[2]*o,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function d(t,n,e,r=a()){const o=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2],u=t[0]-n[0],c=t[1]-n[1],h=t[2]-n[2],f=i*h-s*c,l=s*u-o*h,d=o*c-i*u,m=f*f+l*l+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=f*M,r[1]=l*M,r[2]=d*M,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function m(t,n,e,r=0,i=Math.floor(e*(1/3)),s=Math.floor(e*(2/3))){if(e<3)return!1;n(b,r);let a=i,u=!1;for(;a<e-1&&!u;)n(p,a),a++,u=!(0,o.t2)(b,p);if(!u)return!1;for(a=Math.max(a,s),u=!1;a<e&&!u;)n(g,a),a++,(0,o.Re)(_,b,p),(0,o.S8)(_,_),(0,o.Re)(v,p,g),(0,o.S8)(v,v),u=!(0,o.t2)(b,g)&&!(0,o.t2)(p,g)&&Math.abs((0,o.Om)(_,v))<M;return u?(d(b,p,g,t),!0):(0!==r||1!==i||2!==s)&&m(t,n,e,0,1,2)}e(32728);const M=.99619469809,b=(0,i.vt)(),p=(0,i.vt)(),g=(0,i.vt)(),_=(0,i.vt)(),v=(0,i.vt)();function x(t,n,e){return n!==t&&c(t,n),t[3]=-(0,o.Om)(t,e),t}function y(t,n,e,r){return(0,o.$A)(g,n,t),l(e,g,r)}function S(t,n,e){return null!=n&&R(z(t,n.origin,n.direction,F,e))}function w(t,n,e){return R(z(t,n.origin,n.vector,0,e))}function j(t,n,e){return R(z(t,n.origin,n.vector,1,e))}function A(t,n){return C(t,n)<=0}function O(t,n){return C(t,n)>=0}function T(t,n){return function(t,n,e,r,i,s,a){const u=(0,o.Om)(t,e),c=C(t,n);if(u>-1e-6&&u<1e-6)return I(c,i,s);const h=-c/u,f=I(u,i,!1);return!(a&&!f&&!I(c,i,s))&&(f?h>r.c0&&(r.c0=h):h<r.c1&&(r.c1=h),r.c0<=r.c1)}(t,n.ray.origin,n.ray.direction,n,!1,!1,!0)}function I(t,n,e){return e?n?t>=0:t<=0:n?t>0:t<0}function E(t,n,e,r=!1){let i=n.at(-1),s=C(t,i),a=r?s>0:s<=0;for(let u=0;u<n.length;u++){const c=n.at(u),h=C(t,c),f=r?h>0:h<=0;a!==f&&(0,o.Cc)(e(),i,c,s/(s-h)),f&&(0,o.C)(e(),c),i=c,s=h,a=f}}function N(t,n,e){const r=(0,o.hs)(s.rq.get(),t,-t[3]),i=function(t,n,e){const r=(0,o.hs)(s.rq.get(),t,(0,o.Om)(t,n));return(0,o.Re)(e,n,r),e}(t,(0,o.Re)(s.rq.get(),n,r),s.rq.get());return(0,o.WQ)(e,i,r),e}function C(t,n){return(0,o.Om)(t,n)+t[3]}function q(t,n,e){for(let r=0;r<e;++r)if(A(t,n[r]))return!1;return!0}function R(t){return 0===t||1===t}function z(t,n,e,i,s){const a=(0,o.Om)(t,e),u=C(t,n);if(0===a)return u>=0?2:3;let c=-u/a;return 1&i&&(c=(0,r.qE)(c,0,1)),!(4&i)&&c<0||!(8&i)&&c>1?u>=0?2:3:((0,o.WQ)(s,n,(0,o.hs)(s,e,c)),u>=0?0:1)}const P=[0,0,1,0],F=8;(0,i.vt)()},44280(t,n,e){e.d(n,{g7:()=>a,gr:()=>s});var r=e(34727),o=e(35522),i=e(51850);function s(t,n){return(0,o.Om)(t,n)/(0,o.Bw)(t)}function a(t,n){const e=(0,o.Om)(t,n)/((0,o.Bw)(t)*(0,o.Bw)(n));return-(0,r.XM)(e)}(0,i.vt)(),(0,i.vt)()},32114(t,n,e){e.d(n,{Rc:()=>d,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),o=e(29242),i=e(9093),s=e(82534),a=e(48163),u=e(51850),c=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(u.vt)}static createVec4f64(){return new h(c.vt)}static createMat3f64(){return new h(o.vt)}static createMat4f64(){return new h(i.vt)}static createQuatf64(){return new h(s.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),d=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},32728(t,n,e){e.d(n,{YH:()=>s,nu:()=>a,wp:()=>i}),e(34727);var r=e(35522),o=e(51850);function i(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),o=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),i=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.hZ)(t,e,o,i),t}function s(t,n,e){e=e||t;const o=(0,r.Om)(t,n);(0,r.hZ)(e,t[0]-o*n[0],t[1]-o*n[1],t[2]-o*n[2]),(0,r.S8)(e,e)}function a(t,n,e,i=(0,o.vt)()){const s=(0,r.Bw)(t),a=(0,r.Bw)(n),h=(0,r.Om)(t,n)/(s*a);if(h<.9999999999999999){const o=Math.acos(h),f=((1-e)*s+e*a)/Math.sin(o),l=f/s*Math.sin((1-e)*o),d=f/a*Math.sin(e*o);return(0,r.hs)(u,t,l),(0,r.hs)(c,n,d),(0,r.WQ)(i,u,c)}return(0,r.Cc)(i,t,n,e)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const u=(0,o.vt)(),c=(0,o.vt)()},70491(t,n,e){e.r(n),e.d(n,{default:()=>$});var r=e(32198),o=e(17676),i=e(24326),s=e(91429),a=e(35522),u=e(51850),c=e(11964),h=e(94008),f=e(93687),l=e(15142),d=e(65720),m=e(71351),M=e(620);class b{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,n){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new p,this._objectCount=0,n&&(void 0!==n.maximumObjectsPerNode&&(this._maximumObjectsPerNode=n.maximumObjectsPerNode),void 0!==n.maximumDepth&&(this._maximumDepth=n.maximumDepth))}destroy(){this._degenerateObjects.clear(),p.clearPool(),R[0]=null,D.prune(),W.prune()}add(t){const n=Array.from(t);this._grow(n);const e=p.acquire();for(const t of n)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(e.init(this._root),this._add(t,e));p.release(e)}remove(t,n=null){this._objectCount-=t.length;const e=p.acquire();for(const r of t){const t=n??this.objectToBoundingSphere(r);E(t.radius)?(e.init(this._root),x(r,t,e)):this._degenerateObjects.delete(r)}p.release(e),this._shrink()}update(t,n){if(!E(n.radius)&&this._isDegenerate(t))return;const e=function(t){return R[0]=t,R}(t);this.remove(e,n),this.add(e)}forEachAlongRay(t,n,e){const r=(0,m.LV)(t,n);_(this._root,t=>{if(!function(t,n){return A(n.bounds.center,2*-n.halfSize,F),A(n.bounds.center,2*n.halfSize,V),(0,M.O_)(t.origin,t.direction,F,V)}(r,t))return!1;const n=t.node;return n.terminals.forAll(t=>{this._intersectsObject(r,t)&&e(t)}),null!==n.residents&&n.residents.forAll(t=>{this._intersectsObject(r,t)&&e(t)}),!0})}forEachAlongRayWithVerticalOffset(t,n,e,r){const o=(0,m.LV)(t,n);_(this._root,t=>{if(!function(t,n,e){return A(n.bounds.center,2*-n.halfSize,F),A(n.bounds.center,2*n.halfSize,V),e.applyToMinMax(F,V),(0,M.O_)(t.origin,t.direction,F,V)}(o,t,r))return!1;const n=t.node;return n.terminals.forAll(t=>{this._intersectsObjectWithOffset(o,t,r)&&e(t)}),null!==n.residents&&n.residents.forAll(t=>{this._intersectsObjectWithOffset(o,t,r)&&e(t)}),!0})}forEach(t){for(const n of this.values())t(n)}*values(){for(const t of this._nodeIteratorValues()){const n=t.node;yield*n.terminals,null!==n.residents&&(yield*n.residents)}yield*this.degenerateObjectValues()}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}*degenerateObjectValues(){yield*this._degenerateObjects.values()}findClosest(t,n,e,r=()=>!0,o=1/0){let i=1/0,s=1/0,u=null;const c=T(t,n),h=a=>{if(--o,!r(a))return;const c=this.objectToBoundingSphere(a);if(!(0,d.m7)(e,c))return;const h=I(t,n,c.center),f=h-c.radius,l=h+c.radius;f<i&&(i=f,s=l,u=a)};return v(this._root,r=>{if(o<=0||!(0,d.ZU)(e,r.bounds.center,2*r.bounds.radius))return!1;if((0,a.hs)(P,c,2*r.halfSize),(0,a.WQ)(P,P,r.bounds.center),I(t,n,P)>s)return!1;const i=r.node;return i.terminals.forAll(t=>h(t)),null!==i.residents&&i.residents.forAll(t=>h(t)),!0},t,n),u}forEachInDepthRange(t,n,e,r,o,i,s){let u=-1/0,c=1/0;const h={setRange:t=>{1===e?(u=Math.max(u,t.near),c=Math.min(c,t.far)):(u=Math.max(u,-t.far),c=Math.min(c,-t.near))}};h.setRange(r);const f=I(n,e,t),l=T(n,e),m=T(n,-e),M=t=>{if(!s(t))return;const r=this.objectToBoundingSphere(t),a=I(n,e,r.center)-f,l=a-r.radius,m=a+r.radius;l>c||m<u||!(0,d.m7)(i,r)||o(t,h)};v(this._root,t=>{if(!(0,d.ZU)(i,t.bounds.center,2*t.bounds.radius))return!1;if((0,a.hs)(P,l,2*t.halfSize),(0,a.WQ)(P,P,t.bounds.center),I(n,e,P)-f>c)return!1;if((0,a.hs)(P,m,2*t.halfSize),(0,a.WQ)(P,P,t.bounds.center),I(n,e,P)-f<u)return!1;const r=t.node;return r.terminals.forAll(t=>M(t)),null!==r.residents&&r.residents.forAll(t=>M(t)),!0},n,e)}forEachNode(t){_(this._root,n=>t(n.node,n.bounds,n.halfSize,n.depth))}forEachIntersectingFrustum(t,n,e=()=>!0){for(const r of this.intersectingFrustumValues(t,e))n(r)}*intersectingFrustumValues(t,n=()=>!0){for(const e of this._nodeIteratorValues(n=>(0,d.ZU)(t,n.bounds.center,2*n.bounds.radius))){const r=e.node;for(const e of r.terminals)n(e)&&(0,d.m7)(t,this.objectToBoundingSphere(e))&&(yield e);if(null!==r.residents)for(const e of r.residents)n(e)&&(0,d.m7)(t,this.objectToBoundingSphere(e))&&(yield e)}}*_nodeIteratorValues(t=()=>!0){yield*g(this._root,t)}forEachNeighbor(t,n){const e=n.radius,r=n.center,o=e=>{const r=this.objectToBoundingSphere(e);return!n.intersects(r)||t(e)};let i=!0;const s=t=>{i&&(i=o(t))};_(this._root,t=>{const n=2*t.bounds.radius,o=e+n;if((0,a.hG)(t.bounds.center,r)-o*o>0)return!1;const u=t.node;return u.terminals.forAll(s),i&&null!==u.residents&&u.residents.forAll(s),i}),i&&this.forEachDegenerateObject(s)}_intersectsObject(t,n){const e=this.objectToBoundingSphere(n);return!(e.radius>0)||e.intersectRay(t)}_intersectsObjectWithOffset(t,n,e){const r=this.objectToBoundingSphere(n);return!(r.radius>0)||e.applyToBoundingSphere(r).intersectRay(t)}_add(t,n){n.advanceTo(this.objectToBoundingSphere(t))?n.node.terminals.push(t):(n.node.residents.push(t),n.node.residents.length>this._maximumObjectsPerNode&&n.depth<this._maximumDepth&&this._split(n))}_split(t){const n=t.node.residents;t.node.residents=null;for(let e=0;e<n.length;e++){const r=p.acquire().init(t);this._add(n.at(e),r),p.release(r)}}_grow(t){if(O(t,t=>this.objectToBoundingSphere(t),B),E(B.radius)&&!this._fitsInsideTree(B))if(S(this._root.node))this._root.bounds.copyFrom(B),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(B);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(B,t):this._growRootAsSubNode(t),p.release(t)}}_rebuildTree(t,n){L.center=n.bounds.center,L.radius=n.halfSize,O([t,L],t=>t,k);const e=p.acquire().init(this._root);this._root.initFrom(null,k,k.radius),this._root.increaseHalfSize(1.25),_(e,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),p.release(e)}_placingRootViolatesMaxDepth(t){const n=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let e=0;return _(this._root,t=>(e=Math.max(e,t.depth),e+n<=this._maximumDepth)),e+n>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const n=t.radius,e=t.center;let r=-1/0;const o=this._root.bounds.center,i=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-i-(e[t]-n),a=e[t]+n-(o[t]+i),u=Math.max(0,Math.ceil(s/(2*i))),c=Math.max(0,Math.ceil(a/(2*i)))+1,h=2**Math.ceil(Math.log(u+c)*Math.LOG2E);r=Math.max(r,h),Q[t].min=u,Q[t].max=c}for(let t=0;t<3;t++){let n=Q[t].min,e=Q[t].max;const s=(r-(n+e))/2;n+=Math.ceil(s),e+=Math.floor(s);const a=o[t]-i-n*i*2;z.center[t]=a+(e+n)*i}const s=r*i;return z.radius=s*q,p.acquire().initFrom(null,z,s,0)}_growRootAsSubNode(t){const n=this._root.node;B.center=this._root.bounds.center,B.radius=this._root.halfSize,this._root.init(t),t.advanceTo(B,null,!0),t.node.children=n.children,t.node.residents=n.residents,t.node.terminals=n.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const n=this._root.node.children;let e=0,r=0;for(;r<n.length&&null==t;)e=r++,t=n[e];for(;r<n.length;)if(n[r++])return-1;return e}_isDegenerate(t){return!E(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){const n=this._root.bounds,e=this._root.halfSize;return t.radius<=e&&t.center[0]>=n.center[0]-e&&t.center[0]<=n.center[0]+e&&t.center[1]>=n.center[1]-e&&t.center[1]<=n.center[1]+e&&t.center[2]>=n.center[2]-e&&t.center[2]<=n.center[2]+e}_nodeToJSON(t){const n=t.children.map(t=>t?this._nodeToJSON(t):null),e=t.residents?.map(t=>this.objectToBoundingSphere(t)),r=t.terminals?.map(t=>this.objectToBoundingSphere(t));return{children:n,residents:e,terminals:r}}}class p{constructor(){this.bounds=new h.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,n,e,r=this.depth){return this.node=null!=t?t:p.createEmptyNode(),n&&this.bounds.copyFrom(n),this.halfSize=e,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*q}advance(t){let n=this.node.children[t];n||(n=p.createEmptyNode(),this.node.children[t]=n),this.node=n,this.halfSize/=2,this.depth++;const e=N[t];return this.bounds.center[0]+=e[0]*this.halfSize,this.bounds.center[1]+=e[1]*this.halfSize,this.bounds.center[2]+=e[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,n,e=!1){for(;;){if(this.isTerminalFor(t))return n?.(this,-1),!0;if(this.isLeaf()){if(!e)return n?.(this,-1),!1;this.node.residents=null}const r=this._childIndex(t);n?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){const n=this.bounds.center;return(n[0]<t.center[0]?1:0)+(n[1]<t.center[1]?2:0)+(n[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new l.A({shrink:!0}),residents:new l.A({shrink:!0})}}static{this._pool=new f.A(()=>new p)}static acquire(){return p._pool.acquire()}static release(t){p._pool.release(t)}static clearPool(){p._pool.prune()}}function*g(t,n=()=>!0){const e=[p.acquire().init(t)];for(;0!==e.length;){const t=e.pop();if(n(t)){if(yield t,!t.isLeaf())for(let n=0;n<t.node.children.length;n++)t.node.children[n]&&e.push(p.acquire().init(t).advance(n));p.release(t)}}}function _(t,n){const e=g(t,n);for(const t of e);}function v(t,n,e,r=1){let o=p.acquire().init(t);const i=[o];for(function(t,n,e){if(!W.length)for(let t=0;t<8;++t)W.push({index:0,distance:0});for(let e=0;e<8;++e){const r=N[e];W.data[e].index=e,W.data[e].distance=I(t,n,r)}W.sort((t,n)=>t.distance-n.distance);for(let t=0;t<8;++t)e[t]=W.data[t].index}(e,r,Z);0!==i.length;){if(o=i.pop(),n(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const n=Z[t];o.node.children[n]&&i.push(p.acquire().init(o).advance(n))}p.release(o)}}function x(t,n,e){D.clear();const r=e.advanceTo(n,(t,n)=>{D.push(t.node),D.push(n)})?e.node.terminals:e.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=D.length-2;t>=0&&y(D.data[t],D.data[t+1]);t-=2);}function y(t,n){return n>=0&&(t.children[n]=null),!!S(t)&&(null===t.residents&&(t.residents=new l.A({shrink:!0})),!0)}function S(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let n=0;n<t.children.length;n++)if(t.children[n])return!1;return!0}function w(t,n){t[0]=Math.min(t[0],n.center[0]-n.radius),t[1]=Math.min(t[1],n.center[1]-n.radius),t[2]=Math.min(t[2],n.center[2]-n.radius)}function j(t,n){t[0]=Math.max(t[0],n.center[0]+n.radius),t[1]=Math.max(t[1],n.center[1]+n.radius),t[2]=Math.max(t[2],n.center[2]+n.radius)}function A(t,n,e){e[0]=t[0]+n,e[1]=t[1]+n,e[2]=t[2]+n}function O(t,n,e){F[0]=1/0,F[1]=1/0,F[2]=1/0,V[0]=-1/0,V[1]=-1/0,V[2]=-1/0;for(const e of t){const t=n(e);E(t.radius)&&(w(F,t),j(V,t))}(0,a.Cc)(e.center,F,V,.5),e.radius=Math.max(V[0]-F[0],V[1]-F[1],V[2]-F[2])/2}function T(t,n){let e,r=1/0;for(let o=0;o<8;++o){const i=I(t,n,C[o]);i<r&&(r=i,e=C[o])}return e}function I(t,n,e){return n*(t[0]*e[0]+t[1]*e[1]+t[2]*e[2])}function E(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const N=[(0,u.fA)(-1,-1,-1),(0,u.fA)(1,-1,-1),(0,u.fA)(-1,1,-1),(0,u.fA)(1,1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(1,-1,1),(0,u.fA)(-1,1,1),(0,u.fA)(1,1,1)],C=[(0,u.fA)(-1,-1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(-1,1,-1),(0,u.fA)(-1,1,1),(0,u.fA)(1,-1,-1),(0,u.fA)(1,-1,1),(0,u.fA)(1,1,-1),(0,u.fA)(1,1,1)],q=Math.sqrt(3),R=[null],z=new h.iy,P=(0,u.vt)(),F=(0,u.vt)(),V=(0,u.vt)(),D=new l.A,B=new h.iy,L=new h.iy,k=new h.iy,Q=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],W=new l.A,Z=[0,0,0,0,0,0,0,0];var Y=e(44801);function H(t,n,e){const r=new h.iy;return(0,a.hs)(r.center,t,.5),(0,a.Ln)(r.center,r.center,n,.5),r.radius=(0,a.Io)(r.center,t),(0,a.WQ)(r.center,r.center,e),r}class U{constructor(t,n,e){this.objectId=t,this.target=n,this.distance=e}}class X extends U{constructor(t,n,e){super(t,n,e),this.type="vertex"}}class J extends U{constructor(t,n,e,r,o){super(t,n,e),this.start=r,this.end=o,this.type="edge"}}let K=class{constructor(){this._idToComponent=new Map,this._components=new b(t=>t.bounds),this._edges=new b(t=>t.bounds),this._tmpLineSegment=(0,c.vt)(),this._tmpP1=(0,u.vt)(),this._tmpP2=(0,u.vt)(),this._tmpP3=(0,u.vt)(),this.remoteClient=null}async fetchCandidates(t,n){await Promise.resolve(),(0,o.Te)(n);const e=t;e.mbs=new h.iy(t.mbsJSON),await this._ensureEdgeLocations(e,n);const r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(e,t,r),r.length<1e3),e.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,n){const e=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){const{id:n,uid:r}=t;e.push({id:n,uid:r})}return!0},t.mbs),!e.length)return;const r={components:e},o=await this.remoteClient.invoke("fetchAllEdgeLocations",r,n??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const n=new tt(t.id,new h.iy(t.bounds));return this._idToComponent.set(n.id,n),this._components.add([n]),{result:{}}}async remove(t){const n=this._idToComponent.get(t.id);if(n){const t=[];this._edges.forEachNeighbor(e=>(e.component===n&&t.push(e),!0),n.bounds),this._edges.remove(t),this._components.remove([n]),this._idToComponent.delete(n.id)}return{result:{}}}_setFetchEdgeLocations(t){const n=this._idToComponent.get(t.id);if(null==n||t.uid!==n.uid)return;const e=Y.HY.createView(t.locations),r=new Array(e.count),o=(0,u.vt)(),i=(0,u.vt)();for(let s=0;s<e.count;s++){e.position0.getVec(s,o),e.position1.getVec(s,i);const a=H(o,i,t.origin),u=new nt(n,s,a);r[s]=u}this._edges.add(r);const{objectIds:s,origin:a}=t;n.info={locations:e,objectIds:s,origin:a}}_addCandidates(t,n,e){const{info:r}=n.component,{origin:o,objectIds:i}=r,s=r.locations,u=s.position0.getVec(n.index,this._tmpP1),c=s.position1.getVec(n.index,this._tmpP2);(0,a.WQ)(u,u,o),(0,a.WQ)(c,c,o);const h=i[s.componentIndex.get(n.index)];this._addEdgeCandidate(t,h,u,c,e),G(t,h,u,e),G(t,h,c,e)}_addEdgeCandidate(t,n,e,r,o){if(!t.returnEdge)return;const i=t.mbs.center,s=(0,c.Cr)(e,r,this._tmpLineSegment),h=(0,c._I)(s,i,this._tmpP3);t.mbs.contains(h)&&o.push(new J(n,(0,u.o8)(h),(0,a.Io)(i,h),(0,u.o8)(e),(0,u.o8)(r)))}};K=(0,r.Cg)([(0,s.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],K);const $=K;function G(t,n,e,r){t.returnVertex&&t.mbs.contains(e)&&r.push(new X(n,(0,u.o8)(e),(0,a.Io)(t.mbs.center,e)))}class tt{constructor(t,n){this.id=t,this.bounds=n,this.info=null,this.uid=(0,i.c)()}}class nt{constructor(t,n,e){this.component=t,this.index=n,this.bounds=e}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1721],{68197(e,t,r){r.d(t,{A:()=>c});var n=r(40876),s=r(4576),i=r(34727),o=r(78888);function a(e){return(0,i.qE)((0,o.Vr)(e),0,255)}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function l(e){return.2126*(0,n.Q6)(e.r)+.7152*(0,n.Q6)(e.g)+.0722*(0,n.Q6)(e.b)}class c{static blendColors(e,t,r,n=new c){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?c.fromArray(r,t):null}static fromHex(e,t=new c){const r=(0,n.oW)(e);return r?c.fromArray(r,t):null}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?c.fromArray(r,t):null}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){const r=e instanceof c?e:new c(e),n=l(this),s=l(r);return(Math.max(n,s)+.05)/(Math.min(n,s)+.05)<t}setColor(e){if("string"==typeof e)c.fromString(e,this);else if((0,s.yc)(e))c.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof c||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,s=4===r||8===r,i=`#${u(this.r,n)}${u(this.g,n)}${u(this.b,n)}${s?u(Math.round(255*this.a),n):""}`;return t?i.toUpperCase():i}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),r=a(this.g),n=a(this.b);return 0===e||1!==this.a?[t,r,n,a(255*this.a)]:[t,r,n]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}c.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>y,Q6:()=>E,TS:()=>i,V6:()=>s,Vm:()=>p,ay:()=>u,c1:()=>m,c4:()=>o,j5:()=>l,lT:()=>h,oW:()=>c,xV:()=>b});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function s(e){return!!n[e]||!!n[e.toLowerCase()]}function i(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...i(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function u(e,t,r,n=1){const s=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,o=2*r-i;return[Math.round(255*a(o,i,s+1/3)),Math.round(255*a(o,i,s)),Math.round(255*a(o,i,s-1/3)),n]}function l(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,s=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let u;return i&&(u=o&n,o>>=r,a[3]=s*u/255),u=o&n,o>>=r,a[2]=s*u,u=o&n,o>>=r,a[1]=s*u,u=o&n,o>>=r,a[0]=s*u,a}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),s=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(s+16*s)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),f(t)}return f(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return u(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function f(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?y(e[3]):1,e}function d(e){let t=s(e)?i(e):null;return t??=h(e),t??=c(e),t}function p(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function y(e){return g(e,0,1)}function m(e){return Math.round(g(e,0,255))}function g(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const _=1/2.2;function E(e){return e**2.2}function b(e){return e**_}r.d(t,["iw",0,_])},85334(e,t,r){r.d(t,{$:()=>_,IB:()=>a,Iy:()=>S,KV:()=>v,N2:()=>E,RH:()=>T,ZD:()=>b,sn:()=>R});var n=r(68197),s=r(4576),i=r(4718),o=r(34727);function a(e){return"r"in e&&"g"in e&&"b"in e}function u(e){return"h"in e&&"s"in e&&"v"in e}function l(e){return"l"in e&&"a"in e&&"b"in e}function c(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],f=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function d(e,t){const r=[];let n,s;if(e[0].length!==t.length)throw new Error("dimensions do not match");const i=e.length,o=e[0].length;let a=0;for(n=0;n<i;n++){for(a=0,s=0;s<o;s++)a+=e[n][s]*t[s];r.push(a)}return r}function p(e){const t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=d(h,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function y(e){const t=d(f,[e.x/100,e.y/100,e.z/100]).map(e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function m(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function g(e){const t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function _(e){return a(e)?e:c(e)?function(e){return y(g(function(e){const t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):l(e)?function(e){return y(g(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?y(e):u(e)?function(e){const t=(e.h+360)%360/60,r=e.s/100,n=e.v/100*255,s=n*r,i=s*(1-Math.abs(t%2-1));let o;switch(Math.floor(t)){case 0:o={r:s,g:i,b:0};break;case 1:o={r:i,g:s,b:0};break;case 2:o={r:0,g:s,b:i};break;case 3:o={r:0,g:i,b:s};break;case 4:o={r:i,g:0,b:s};break;case 5:case 6:o={r:s,g:0,b:i};break;default:o={r:0,g:0,b:0}}return o.r=Math.round(o.r+n-s),o.g=Math.round(o.g+n-s),o.b=Math.round(o.b+n-s),o}(e):e}function E(e){return u(e)?e:function(e){const{r:t,g:r,b:n}=e,s=Math.max(t,r,n),i=s-Math.min(t,r,n);let o=s,a=0===i?0:s===t?(r-n)/i%6:s===r?(n-t)/i+2:(t-r)/i+4,u=0===i?0:i/o;return a<0&&(a+=6),a*=60,u*=100,o*=100/255,{h:a,s:u,v:o}}(_(e))}function b(e){return l(e)?e:function(e){return m(p(e))}(_(e))}function T(e){return c(e)?e:function(e){return function(e){const t=e.l,r=e.a,n=e.b,s=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i=i>0?i:i+2*Math.PI,{l:t,c:s,h:i}}(m(p(e)))}(_(e))}function v(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function R(e){return e.length=4,v(e),e[3]??=1,(0,o.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){const r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,s.k4)((0,i.o8)(e),r.seed)),e.length>=t){const r=[],n=(e.length-1)/(t-1);for(let s=0;s<t;s++){const t=Math.round(s*n);r.push(e[t].clone())}return r}return function(e,t,r={}){const n=[],i=e.length-1,o=Math.ceil((t-e.length)/i);e:for(let s=0;s<i;s++){const i=e[s],a=e[s+1];for(let s=1;s<=o;s++){const u=s/(o+1);if(n.push(A(i,a,u,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,s.k4)(n,r.seed??1)]}(e,t,r)}const M=(e,t)=>{const r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function A(e,t,r,i={}){const o=e.r,a=e.g,u=e.b,l=t.r,c=t.g,h=t.b,f=Math.round(o+(l-o)*r),d=Math.round(a+(c-a)*r),p=Math.round(u+(h-u)*r);if(!i.offset)return new n.A([f,d,p]);const y=(0,s.Mo)(i.seed);return new n.A([M(f,y),M(d,y),M(p,y)])}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>s,vt:()=>n});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(e,t,r,n,s,i,o,a,u,l,c,h,f,d,p,y){return[e,t,r,n,s,i,o,a,u,l,c,h,f,d,p,y]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,i])},58083(e,t,r){r.d(t,{$0:()=>g,$h:()=>I,B8:()=>c,C:()=>i,D_:()=>a,N9:()=>E,O7:()=>A,Qw:()=>l,Tl:()=>f,X_:()=>R,e$:()=>p,eL:()=>y,hM:()=>_,hZ:()=>o,hs:()=>d,kN:()=>m,l:()=>S,lw:()=>h,mg:()=>u,o1:()=>M,sC:()=>v,t2:()=>w,t5:()=>x,tZ:()=>C,ut:()=>N});var n=r(51850),s=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function o(e,t,r,n,s,i,o,a,u,l,c,h,f,d,p,y,m){return e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=a,e[7]=u,e[8]=l,e[9]=c,e[10]=h,e[11]=f,e[12]=d,e[13]=p,e[14]=y,e[15]=m,e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function u(e,t){if(e===t){const r=t[1],n=t[2],s=t[3],i=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=s,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){return c(e,t)||a(e),e}function c(e,t){const r=t[0],n=t[1],s=t[2],i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],y=t[13],m=t[14],g=t[15],_=r*a-n*o,E=r*u-s*o,b=r*l-i*o,T=n*u-s*a,v=n*l-i*a,R=s*l-i*u,S=c*y-h*p,M=c*m-f*p,A=c*g-d*p,I=h*m-f*y,x=h*g-d*y,B=f*g-d*m;let w=_*B-E*x+b*I+T*A-v*M+R*S;return w?(w=1/w,e[0]=(a*B-u*x+l*I)*w,e[1]=(s*x-n*B-i*I)*w,e[2]=(y*R-m*v+g*T)*w,e[3]=(f*v-h*R-d*T)*w,e[4]=(u*A-o*B-l*M)*w,e[5]=(r*B-s*A+i*M)*w,e[6]=(m*b-p*R-g*E)*w,e[7]=(c*R-f*b+d*E)*w,e[8]=(o*x-a*A+l*S)*w,e[9]=(n*A-r*x-i*S)*w,e[10]=(p*v-y*b+g*_)*w,e[11]=(h*b-c*v-d*_)*w,e[12]=(a*M-o*I-u*S)*w,e[13]=(r*I-n*M+s*S)*w,e[14]=(y*E-p*T-m*_)*w,e[15]=(c*T-h*E+f*_)*w,e):null}function h(e,t,r){const n=t[0],s=t[1],i=t[2],o=t[3],a=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],y=t[12],m=t[13],g=t[14],_=t[15];let E=r[0],b=r[1],T=r[2],v=r[3];return e[0]=E*n+b*a+T*h+v*y,e[1]=E*s+b*u+T*f+v*m,e[2]=E*i+b*l+T*d+v*g,e[3]=E*o+b*c+T*p+v*_,E=r[4],b=r[5],T=r[6],v=r[7],e[4]=E*n+b*a+T*h+v*y,e[5]=E*s+b*u+T*f+v*m,e[6]=E*i+b*l+T*d+v*g,e[7]=E*o+b*c+T*p+v*_,E=r[8],b=r[9],T=r[10],v=r[11],e[8]=E*n+b*a+T*h+v*y,e[9]=E*s+b*u+T*f+v*m,e[10]=E*i+b*l+T*d+v*g,e[11]=E*o+b*c+T*p+v*_,E=r[12],b=r[13],T=r[14],v=r[15],e[12]=E*n+b*a+T*h+v*y,e[13]=E*s+b*u+T*f+v*m,e[14]=E*i+b*l+T*d+v*g,e[15]=E*o+b*c+T*p+v*_,e}function f(e,t,r){const n=r[0],s=r[1],i=r[2];if(t===e)e[12]=t[0]*n+t[4]*s+t[8]*i+t[12],e[13]=t[1]*n+t[5]*s+t[9]*i+t[13],e[14]=t[2]*n+t[6]*s+t[10]*i+t[14],e[15]=t[3]*n+t[7]*s+t[11]*i+t[15];else{const r=t[0],o=t[1],a=t[2],u=t[3],l=t[4],c=t[5],h=t[6],f=t[7],d=t[8],p=t[9],y=t[10],m=t[11];e[0]=r,e[1]=o,e[2]=a,e[3]=u,e[4]=l,e[5]=c,e[6]=h,e[7]=f,e[8]=d,e[9]=p,e[10]=y,e[11]=m,e[12]=r*n+l*s+d*i+t[12],e[13]=o*n+c*s+p*i+t[13],e[14]=a*n+h*s+y*i+t[14],e[15]=u*n+f*s+m*i+t[15]}return e}function d(e,t,r){const n=r[0],s=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,r,n){let o=n[0],a=n[1],u=n[2],l=Math.sqrt(o*o+a*a+u*u);if(l<=(0,s.FD)())return void i(e,t);l=1/l,o*=l,a*=l,u*=l;const c=Math.sin(r),h=Math.cos(r),f=1-h,d=t[0],p=t[1],y=t[2],m=t[3],g=t[4],_=t[5],E=t[6],b=t[7],T=t[8],v=t[9],R=t[10],S=t[11],M=o*o*f+h,A=a*o*f+u*c,I=u*o*f-a*c,x=o*a*f-u*c,B=a*a*f+h,w=u*a*f+o*c,N=o*u*f+a*c,C=a*u*f-o*c,O=u*u*f+h;e[0]=d*M+g*A+T*I,e[1]=p*M+_*A+v*I,e[2]=y*M+E*A+R*I,e[3]=m*M+b*A+S*I,e[4]=d*x+g*B+T*w,e[5]=p*x+_*B+v*w,e[6]=y*x+E*B+R*w,e[7]=m*x+b*B+S*w,e[8]=d*N+g*C+T*O,e[9]=p*N+_*C+v*O,e[10]=y*N+E*C+R*O,e[11]=m*N+b*C+S*O,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function y(e,t,r){const n=Math.sin(r),s=Math.cos(r),i=t[4],o=t[5],a=t[6],u=t[7],l=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*s+l*n,e[5]=o*s+c*n,e[6]=a*s+h*n,e[7]=u*s+f*n,e[8]=l*s-i*n,e[9]=c*s-o*n,e[10]=h*s-a*n,e[11]=f*s-u*n,e}function m(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function g(e,t,r){if(0===t)return a(e);let n=r[0],i=r[1],o=r[2],u=Math.sqrt(n*n+i*i+o*o);if(u<=(0,s.FD)())return null;u=1/u,n*=u,i*=u,o*=u;const l=Math.sin(t),c=Math.cos(t),h=1-c;return e[0]=n*n*h+c,e[1]=i*n*h+o*l,e[2]=o*n*h-i*l,e[3]=0,e[4]=n*i*h-o*l,e[5]=i*i*h+c,e[6]=o*i*h+n*l,e[7]=0,e[8]=n*o*h+i*l,e[9]=i*o*h-n*l,e[10]=o*o*h+c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function _(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function E(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t,r){const n=t[0],s=t[1],i=t[2],o=t[3],a=n+n,u=s+s,l=i+i,c=n*a,h=n*u,f=n*l,d=s*u,p=s*l,y=i*l,m=o*a,g=o*u,_=o*l;return e[0]=1-(d+y),e[1]=h+_,e[2]=f-g,e[3]=0,e[4]=h-_,e[5]=1-(c+y),e[6]=p+m,e[7]=0,e[8]=f+g,e[9]=p-m,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const T=(0,n.vt)();function v(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function R(e,t){const r=t[0],n=t[1],s=t[2],i=t[4],o=t[5],a=t[6],u=t[8],l=t[9],c=t[10];return e[0]=Math.sqrt(r*r+n*n+s*s),e[1]=Math.sqrt(i*i+o*o+a*a),e[2]=Math.sqrt(u*u+l*l+c*c),e}function S(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e}function M(e,t,r,n){const s=t[0],i=t[1],o=t[2],a=t[3],u=s+s,l=i+i,c=o+o,h=s*u,f=s*l,d=s*c,p=i*l,y=i*c,m=o*c,g=a*u,_=a*l,E=a*c,b=n[0],T=n[1],v=n[2];return e[0]=(1-(p+m))*b,e[1]=(f+E)*b,e[2]=(d-_)*b,e[3]=0,e[4]=(f-E)*T,e[5]=(1-(h+m))*T,e[6]=(y+g)*T,e[7]=0,e[8]=(d+_)*v,e[9]=(y-g)*v,e[10]=(1-(h+p))*v,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function A(e,t,r,n,s){const i=t[0],o=t[1],a=t[2],u=t[3],l=i+i,c=o+o,h=a+a,f=i*l,d=i*c,p=i*h,y=o*c,m=o*h,g=a*h,_=u*l,E=u*c,b=u*h,T=n[0],v=n[1],R=n[2],S=s[0],M=s[1],A=s[2],I=(1-(y+g))*T,x=(d+b)*T,B=(p-E)*T,w=(d-b)*v,N=(1-(f+g))*v,C=(m+_)*v,O=(p+E)*R,L=(m-_)*R,P=(1-(f+y))*R;return e[0]=I,e[1]=x,e[2]=B,e[3]=0,e[4]=w,e[5]=N,e[6]=C,e[7]=0,e[8]=O,e[9]=L,e[10]=P,e[11]=0,e[12]=r[0]+S-(I*S+w*M+O*A),e[13]=r[1]+M-(x*S+N*M+L*A),e[14]=r[2]+A-(B*S+C*M+P*A),e[15]=1,e}function I(e,t,r,n,s,i,o){const a=1/(r-t),u=1/(s-n),l=1/(i-o);return e[0]=2*i*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*u,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(s+n)*u,e[10]=(o+i)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*l,e[15]=0,e}function x(e,t,r,n){const i=t[0],o=t[1],u=t[2];let l=i-r[0],c=o-r[1],h=u-r[2];const f=(0,s.FD)();if(Math.abs(l)<f&&Math.abs(c)<f&&Math.abs(h)<f)return void a(e);let d=1/Math.sqrt(l*l+c*c+h*h);l*=d,c*=d,h*=d;const p=n[0],y=n[1],m=n[2];let g=y*h-m*c,_=m*l-p*h,E=p*c-y*l;d=Math.sqrt(g*g+_*_+E*E),d?(d=1/d,g*=d,_*=d,E*=d):(g=0,_=0,E=0);let b=c*E-h*_,T=h*g-l*E,v=l*_-c*g;d=Math.sqrt(b*b+T*T+v*v),d?(d=1/d,b*=d,T*=d,v*=d):(b=0,T=0,v=0),e[0]=g,e[1]=b,e[2]=l,e[3]=0,e[4]=_,e[5]=T,e[6]=c,e[7]=0,e[8]=E,e[9]=v,e[10]=h,e[11]=0,e[12]=-(g*i+_*o+E*u),e[13]=-(b*i+T*o+v*u),e[14]=-(l*i+c*o+h*u),e[15]=1}function B(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function N(e){const t=(0,s.FD)(),r=e[0],n=e[1],i=e[2],o=e[4],a=e[5],u=e[6],l=e[8],c=e[9],h=e[10];return Math.abs(1-(r*r+o*o+l*l))<=t&&Math.abs(1-(n*n+a*a+c*c))<=t&&Math.abs(1-(i*i+u*u+h*h))<=t}function C(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const O=h,L=B;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],n=t[1],s=t[2],i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],y=t[13],m=t[14],g=t[15];return e[0]=a*(f*g-d*m)-h*(u*g-l*m)+y*(u*d-l*f),e[1]=-(n*(f*g-d*m)-h*(s*g-i*m)+y*(s*d-i*f)),e[2]=n*(u*g-l*m)-a*(s*g-i*m)+y*(s*l-i*u),e[3]=-(n*(u*d-l*f)-a*(s*d-i*f)+h*(s*l-i*u)),e[4]=-(o*(f*g-d*m)-c*(u*g-l*m)+p*(u*d-l*f)),e[5]=r*(f*g-d*m)-c*(s*g-i*m)+p*(s*d-i*f),e[6]=-(r*(u*g-l*m)-o*(s*g-i*m)+p*(s*l-i*u)),e[7]=r*(u*d-l*f)-o*(s*d-i*f)+c*(s*l-i*u),e[8]=o*(h*g-d*y)-c*(a*g-l*y)+p*(a*d-l*h),e[9]=-(r*(h*g-d*y)-c*(n*g-i*y)+p*(n*d-i*h)),e[10]=r*(a*g-l*y)-o*(n*g-i*y)+p*(n*l-i*a),e[11]=-(r*(a*d-l*h)-o*(n*d-i*h)+c*(n*l-i*a)),e[12]=-(o*(h*m-f*y)-c*(a*m-u*y)+p*(a*f-u*h)),e[13]=r*(h*m-f*y)-c*(n*m-s*y)+p*(n*f-s*h),e[14]=-(r*(a*m-u*y)-o*(n*m-s*y)+p*(n*u-s*a)),e[15]=r*(a*f-u*h)-o*(n*f-s*h)+c*(n*u-s*a),e},copy:i,determinant:function(e){const t=e[0],r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],a=e[6],u=e[7],l=e[8],c=e[9],h=e[10],f=e[11],d=e[12],p=e[13],y=e[14],m=e[15];return(t*o-r*i)*(h*m-f*y)-(t*a-n*i)*(c*m-f*p)+(t*u-s*i)*(c*y-h*p)+(r*a-n*o)*(l*m-f*d)-(r*u-s*o)*(l*y-h*d)+(n*u-s*a)*(l*p-c*d)},equals:function(e,t){if(e===t)return!0;const r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],y=e[12],m=e[13],g=e[14],_=e[15],E=t[0],b=t[1],T=t[2],v=t[3],R=t[4],S=t[5],M=t[6],A=t[7],I=t[8],x=t[9],B=t[10],w=t[11],N=t[12],C=t[13],O=t[14],L=t[15],P=(0,s.FD)();return Math.abs(r-E)<=P*Math.max(1,Math.abs(r),Math.abs(E))&&Math.abs(n-b)<=P*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-T)<=P*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(o-v)<=P*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(a-R)<=P*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(u-S)<=P*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(l-M)<=P*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-A)<=P*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(h-I)<=P*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(f-x)<=P*Math.max(1,Math.abs(f),Math.abs(x))&&Math.abs(d-B)<=P*Math.max(1,Math.abs(d),Math.abs(B))&&Math.abs(p-w)<=P*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(y-N)<=P*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(m-C)<=P*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(g-O)<=P*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(_-L)<=P*Math.max(1,Math.abs(_),Math.abs(L))},exactEquals:w,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],n=t[1],s=t[2],i=t[3],o=r+r,a=n+n,u=s+s,l=r*o,c=n*o,h=n*a,f=s*o,d=s*a,p=s*u,y=i*o,m=i*a,g=i*u;return e[0]=1-h-p,e[1]=c+g,e[2]=f-m,e[3]=0,e[4]=c-g,e[5]=1-l-p,e[6]=d+y,e[7]=0,e[8]=f+m,e[9]=d-y,e[10]=1-l-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=T,n=-t[0],s=-t[1],i=-t[2],o=t[3],a=t[4],u=t[5],l=t[6],c=t[7],h=n*n+s*s+i*i+o*o;return h>0?(r[0]=2*(a*o+c*n+u*i-l*s)/h,r[1]=2*(u*o+c*s+l*n-a*i)/h,r[2]=2*(l*o+c*i+a*s-u*n)/h):(r[0]=2*(a*o+c*n+u*i-l*s),r[1]=2*(u*o+c*s+l*n-a*i),r[2]=2*(l*o+c*i+a*s-u*n)),b(e,t,r),e},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:M,fromRotationTranslationScaleOrigin:A,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:m,fromXRotation:_,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:E,frustum:I,getRotation:S,getScale:R,getTranslation:v,hasIdentityRotation:C,identity:a,invert:c,invertOrIdentity:l,isOrthoNormal:N,lookAt:x,mul:O,multiply:h,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,s,i,o){const a=1/(t-r),u=1/(n-s),l=1/(i-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+r)*a,e[13]=(s+n)*u,e[14]=(o+i)*l,e[15]=1,e},perspective:function(e,t,r,n,s){const i=1/Math.tan(t/2);let o;return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(o=1/(n-s),e[10]=(s+n)*o,e[14]=2*s*n*o):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const s=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+a),l=2/(s+i);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=-(o-a)*u*.5,e[9]=(s-i)*l*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:p,rotateX:y,rotateY:function(e,t,r){const n=Math.sin(r),s=Math.cos(r),i=t[0],o=t[1],a=t[2],u=t[3],l=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s-l*n,e[1]=o*s-c*n,e[2]=a*s-h*n,e[3]=u*s-f*n,e[8]=i*n+l*s,e[9]=o*n+c*s,e[10]=a*n+h*s,e[11]=u*n+f*s,e},rotateZ:function(e,t,r){const n=Math.sin(r),s=Math.cos(r),i=t[0],o=t[1],a=t[2],u=t[3],l=t[4],c=t[5],h=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s+l*n,e[1]=o*s+c*n,e[2]=a*s+h*n,e[3]=u*s+f*n,e[4]=l*s-i*n,e[5]=c*s-o*n,e[6]=h*s-a*n,e[7]=f*s-u*n,e},scale:d,set:o,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:L,subtract:B,targetTo:function(e,t,r,n){const s=t[0],i=t[1],o=t[2],a=n[0],u=n[1],l=n[2];let c=s-r[0],h=i-r[1],f=o-r[2],d=c*c+h*h+f*f;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,f*=d);let p=u*f-l*h,y=l*c-a*f,m=a*h-u*c;return d=p*p+y*y+m*m,d>0&&(d=1/Math.sqrt(d),p*=d,y*=d,m*=d),e[0]=p,e[1]=y,e[2]=m,e[3]=0,e[4]=h*m-f*y,e[5]=f*p-c*m,e[6]=c*y-h*p,e[7]=0,e[8]=c,e[9]=h,e[10]=f,e[11]=0,e[12]=s,e[13]=i,e[14]=o,e[15]=1,e},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},90629(e,t,r){r.d(t,{Lz:()=>s,PN:()=>i,cr:()=>o,gs:()=>u,r_:()=>l,tc:()=>a}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function s(e){return e?e/72*96:0}function i(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(n);if(t){const r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),s=e.startsWith("-"),o="px"===n?i(r):r;return s?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function a(e=0,t=0){return{x:e,y:t}}function u(e=0,t=0){return[e,t]}function l(e=0,t=0,r=0){return[e,t,r]}},44794(e,t,r){r.d(t,{v:()=>a});var n=r(4718),s=r(62788),i=r(95488);class o{constructor(e,t){this._observable=new i.I,this._value=e,this._equalityFunction=t}get value(){return(0,s.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=n.gh){return new o(e,t)}},4197(e,t,r){r.d(t,{Vj:()=>c,cj:()=>l,jh:()=>i,l5:()=>a,yH:()=>u});var n=r(34275),s=r(9093);function i(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function u(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const r=i(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}function l(e){return[...e]}function c(e){const t=(0,s.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>I,C:()=>o,DC:()=>f,Ej:()=>E,Ie:()=>M,Jt:()=>A,Lu:()=>T,Ne:()=>v,RF:()=>h,TF:()=>g,VL:()=>p,aI:()=>B,fA:()=>a,gE:()=>l,gX:()=>_,hZ:()=>S,iT:()=>d,is:()=>x,pg:()=>b,uJ:()=>m,vI:()=>R,vY:()=>u,vt:()=>i,w1:()=>c,yr:()=>y}),r(35522);var n=r(5443),s=(r(19419),r(4197));function i(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function a(e,t,r,n,s,o,a=i()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=s,a[5]=o,a}function u(e,t=i()){return function(e,t,r,n=i()){return S(n,w),function(e,t,r=0,n=t.length/3){let s=e[0],i=e[1],o=e[2],a=e[3],u=e[4],l=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),i=Math.min(i,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),u=Math.max(u,t[r+3*e+1]),l=Math.max(l,t[r+3*e+2]);e[0]=s,e[1]=i,e[2]=o,e[3]=a,e[4]=u,e[5]=l}(n,e,t,r),n}(e,0,e.length/3,t)}function l(e,t=(0,s.jh)(24)){const[r,n,i,o,a,u]=e;return t[0]=r,t[1]=n,t[2]=i,t[3]=r,t[4]=n,t[5]=u,t[6]=r,t[7]=a,t[8]=i,t[9]=r,t[10]=a,t[11]=u,t[12]=o,t[13]=n,t[14]=i,t[15]=o,t[16]=n,t[17]=u,t[18]=o,t[19]=a,t[20]=i,t[21]=o,t[22]=a,t[23]=u,t}function c(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function p(e){return e[0]>=e[3]?0:e[3]-e[0]}function y(e){return e[1]>=e[4]?0:e[4]-e[1]}function m(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){const t=p(e),r=m(e),n=y(e);return t*t+r*r+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+p(e)/2,t[1]=e[1]+y(e)/2,t[2]=e[2]+m(e)/2,t}function E(e,t=[0,0,0]){return t[0]=p(e),t[1]=y(e),t[2]=m(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function T(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function v(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function R(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function M(e){return e?S(e,w):i(w)}function A(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function I(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function x(e){return 6===e.length}function B(e,t,r){if(null==e||null==t)return e===t;if(!x(e)||!x(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];i(),r.d(t,["qv",0,w,"v_",0,N])},13030(e,t,r){r.d(t,{Y$:()=>m,XW:()=>y,qB:()=>I,Qt:()=>W,My:()=>X,bf:()=>Q,jZ:()=>R,j0:()=>S,Sx:()=>M,E$:()=>A,Qy:()=>ne,h:()=>P,P:()=>U,SL:()=>N,dy:()=>te,ES:()=>se,gH:()=>_,ZD:()=>g,si:()=>x,mJ:()=>z,UL:()=>J,D6:()=>j,Yi:()=>F,An:()=>V,LC:()=>C,xs:()=>b,EC:()=>E,Xm:()=>B,Vp:()=>$,zD:()=>K,m8:()=>Y,nS:()=>q,H$:()=>k,eI:()=>O,td:()=>re,Eq:()=>v,jz:()=>T,Aj:()=>w,E7:()=>H,Y4:()=>ee,TX:()=>Z,Uz:()=>D,ml:()=>G,XP:()=>L});var n=r(34727),s=r(37585),i=r(48163),o=r(78955),a=r(91829);class u{static{this.ElementCount=9}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;for(let e=0;e<9;++e)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=16}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){this.copyFromTypedBuffer(e,t.typedBuffer,r*t.typedBufferStride)}copyFromTypedBuffer(e,t,r){const n=this.typedBuffer;let s=e*this.typedBufferStride;for(let e=0;e<16;++e)n[s++]=t[r++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=1}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}get(e){return this.typedBuffer[e*this.typedBufferStride]}set(e,t){this.typedBuffer[e*this.typedBufferStride]=t}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=2}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,s.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e]=t[1]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e]=r}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var f=r(35522);class d{static{this.ElementCount=3}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,f.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1],this.typedBuffer[e+2])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e]=t[2]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,n){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e]=n}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,o.hZ)(t,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e++]=t[2],this.typedBuffer[e]=t[3]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,n,s){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e++]=n,this.typedBuffer[e]=s}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class y extends c{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class m extends c{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class g extends h{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="f16"}}class _ extends h{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="f32"}}class E extends d{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(E,e,t)}static{this.ElementType="f16"}}class b extends d{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(b,e,t)}static fromTypedArray(e,t){return new b(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class T extends p{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(T,e,t)}static{this.ElementType="f16"}}class v extends p{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(v,e,t)}static{this.ElementType="f32"}}class R extends u{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(R,e,t)}static{this.ElementType="f32"}}class S extends u{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(S,e,t)}static{this.ElementType="f64"}}class M extends l{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="f32"}}class A extends l{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(A,e,t)}static{this.ElementType="f64"}}class I extends c{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="f64"}}class x extends h{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(x,e,t)}static{this.ElementType="f64"}}class B extends d{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(B,e,t)}static fromTypedArray(e,t){return new B(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class w extends p{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="f64"}}class N extends c{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="u8"}}class C extends h{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="u8"}}class O extends d{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(O,e,t)}static fromTypedArray(e,t){return new O(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class L extends p{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(L,e,t)}static{this.ElementType="u8"}}class P extends c{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="u16"}}class F extends h{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(F,e,t)}static{this.ElementType="u16"}}class q extends d{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(q,e,t)}static{this.ElementType="u16"}}class D extends p{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="u16"}}class U extends c{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(U,e,t)}static{this.ElementType="u32"}}class V extends h{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="u32"}}class k extends d{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="u32"}}class G extends p{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="u32"}}class Q extends c{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="i8"}}class j extends h{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="i8"}}class Y extends d{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Y,e,t)}static{this.ElementType="i8"}}class Z extends p{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Z,e,t)}static{this.ElementType="i8"}}class W extends c{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i16"}}class z extends h{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="i16"}}class $ extends d{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer($,e,t)}static{this.ElementType="i16"}}class H extends p{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="i16"}}class X extends c{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(X,e,t)}static{this.ElementType="i32"}}class J extends h{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="i32"}}class K extends d{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="i32"}}class ee extends p{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(ee,e,t)}static{this.ElementType="i32"}}class te extends N{constructor(e,t=0,r,n){super(e,t,r,n)}get(e){return this.typedBuffer[e*this.typedBufferStride]/255}set(e,t){this.typedBuffer[e*this.typedBufferStride]=Math.round(255*(0,n.qE)(t,0,1))}slice(e,t){return this.sliceBuffer(te,e,t)}}class re extends L{constructor(e,t=0,r,n){super(e,t,r,n)}getVec(e,t){return(0,o.hs)(t,super.getVec(e,t),1/255)}setVec(e,t){(0,o.jk)(oe,(0,o.T9)(oe,t,a.uY),a.Un),(0,o.hs)(oe,oe,255),(0,o.LI)(oe,oe),super.setVec(e,oe)}get(e,t){return super.get(e,t)/255}set(e,t,r){super.set(e,t,Math.round(255*(0,n.qE)(r,0,1)))}setValues(e,t,r,n,s){(0,o.hZ)(oe,t,r,n,s),this.setVec(e,oe)}slice(e,t){return this.sliceBuffer(re,e,t)}}class ne extends W{constructor(e,t=0,r,n){super(e,t,r,n)}get(e){return Math.max(super.get(e)/32767,-1)}set(e,t){super.set(e,Math.round(32767*(0,n.qE)(t,-1,1)))}slice(e,t){return this.sliceBuffer(ne,e,t)}}class se extends z{constructor(e,t=0,r,n){super(e,t,r,n)}getVec(e,t){return(0,s.hZ)(ie,-1,-1),(0,s.T9)(t,(0,s.hs)(t,super.getVec(e,t),1/32767),ie)}setVec(e,t){(0,s.qE)(ie,t,i.IA,i.Un),(0,s.hs)(ie,ie,32767),(0,s.LI)(ie,ie),super.setVec(e,ie)}get(e,t){return Math.max(super.get(e,t)/32767,-1)}set(e,t,r){super.set(e,t,Math.round(32767*(0,n.qE)(r,-1,1)))}setValues(e,t,r){(0,s.hZ)(ie,t,r),this.setVec(e,ie)}slice(e,t){return this.sliceBuffer(se,e,t)}}const ie=(0,i.vt)(),oe=(0,a.vt)()},65864(e,t,r){r.d(t,{rS:()=>c,xD:()=>f});var n=r(5443),s=r(91075),i=r(48526),o=r(86738),a=r(39829),u=r(82799),l=r(60408);function c(e){return null==e?null:e instanceof s.A?e:(0,l.fT)(e)?o.A.fromJSON(e):(0,l.Rg)(e)?u.A.fromJSON(e):(0,l.Bi)(e)?a.A.fromJSON(e):(0,l.U9)(e)?i.A.fromJSON(e):(0,l.ZC)(e)?n.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:u.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:i.A,esriGeometryMultiPatch:a.A};function f(e){return e&&h[e]||null}},50498(e,t,r){var n=r(66552),s=r(5443),i=r(91075),o=r(48526),a=r(86738),u=r(39829),l=r(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:i.A,key:"type",typeMap:{extent:s.A,multipoint:o.A,point:a.A,polyline:l.A,polygon:u.A}},d=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,h,"gy",0,c,"iI",0,d,"yR",0,f])},49013(e,t,r){r.r(t),r.d(t,{default:()=>mt});var n=r(32198),s=r(4576),i=r(69540),o=r(49186),a=r(36563),u=r(44208),l=r(53966),c=r(25728),h=r(17676),f=r(36708),d=r(91429),p=r(87024),y=r(4146),m=r(52136),g=r(18768),_=r(69208),E=r(34287),b=r(8303),T=r(25036),v=r(58947),R=r(10873),S=r(10292),M=r(58083),A=r(9093),I=r(35522),x=r(51850),B=r(34727),w=r(49208),N=r(79258);function C(e,t,r,n){const s=n+t;if(s<n/2||r>s)return Number.MAX_VALUE;const i=Math.abs(L*e)+Math.asin(r/s);return i>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(i)}const O=(0,x.vt)(),L=(0,B.kU)(1);var P=r(27993),F=(r(73941),r(16930)),q=r(98764),D=r(4341),U=r(19419),V=r(11964),k=r(27921),G=r(71351),Q=r(44280),j=r(32114);const Y=()=>l.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function Z(e=ce){return{plane:(0,k.vt)(e.plane),origin:(0,x.o8)(e.origin),basis1:(0,x.o8)(e.basis1),basis2:(0,x.o8)(e.basis2)}}function W(e,t=Z()){return z(e.origin,e.basis1,e.basis2,t)}function z(e,t,r,n=Z()){return(0,I.C)(n.origin,e),(0,I.C)(n.basis1,t),(0,I.C)(n.basis2,r),$(n),function(e,t){Math.abs((0,I.Om)(e.basis1,e.basis2)/((0,I.Bw)(e.basis1)*(0,I.Bw)(e.basis2)))>1e-6&&Y().warn(t,"Provided basis vectors are not perpendicular"),Math.abs((0,I.Om)(e.basis1,ie(e)))>1e-6&&Y().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,I.Om)(ie(e),e.origin)-e.plane[3])>1e-6&&Y().warn(t,"Plane offset is not consistent with plane origin")}(n,"fromValues()"),n}function $(e){(0,k.mR)(e.basis2,e.basis1,e.origin,e.plane)}function H(e,t,r){e!==r&&W(e,r);const n=(0,I.hs)(j.rq.get(),ie(e),t);return(0,I.WQ)(r.origin,r.origin,n),r.plane[3]-=t,r}function X(e,t=Z()){const r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return(0,I.hZ)(t.origin,e[0]+r,e[1]+n,0),(0,I.hZ)(t.basis1,r,0,0),(0,I.hZ)(t.basis2,0,n,0),(0,k.fA)(0,0,1,0,t.plane),t}function J(e,t,r){return!!(0,k.Ui)(e.plane,t,r)&&oe(e,r)}function K(e,t,r){const n=he.get();le(e,t,n,he.get());let s=Number.POSITIVE_INFINITY;for(const i of ye){const o=ue(e,i,fe.get()),a=j.rq.get();if((0,k.T7)(n,o,a)){const e=(0,I.oW)(j.rq.get(),t.origin,a),n=Math.abs((0,B.XM)((0,I.Om)(t.direction,e)));n<s&&(s=n,(0,I.C)(r,a))}}return s===Number.POSITIVE_INFINITY?ee(e,t,r):r}function ee(e,t,r){if(J(e,t,r))return r;const n=he.get(),s=he.get();le(e,t,n,s);let i=Number.POSITIVE_INFINITY;for(const o of ye){const a=ue(e,o,fe.get()),u=j.rq.get();if((0,k.gv)(n,a,u)){const e=(0,G.kb)(t,u);if(!(0,k.BX)(s,u))continue;e<i&&(i=e,(0,I.C)(r,u))}}return ne(e,t.origin)<i&&te(e,t.origin,r),r}function te(e,t,r){const n=(0,k._I)(e.plane,t,j.rq.get()),s=(0,V.H6)(ae(e,e.basis1),n,-1,1,j.rq.get()),i=(0,V.H6)(ae(e,e.basis2),n,-1,1,j.rq.get());return(0,I.Re)(r,(0,I.WQ)(j.rq.get(),s,i),e.origin),r}function re(e,t,r){const{origin:n,basis1:s,basis2:i}=e,o=(0,I.Re)(j.rq.get(),t,n),a=(0,Q.gr)(s,o),u=(0,Q.gr)(i,o),l=(0,Q.gr)(ie(e),o);return(0,I.hZ)(r,a,u,l)}function ne(e,t){const r=re(e,t,j.rq.get()),{basis1:n,basis2:s}=e,i=(0,I.Bw)(n),o=(0,I.Bw)(s),a=Math.max(Math.abs(r[0])-i,0),u=Math.max(Math.abs(r[1])-o,0),l=r[2];return a*a+u*u+l*l}function se(e,t){const r=-e.plane[3];return(0,Q.gr)(ie(e),t)-r}function ie(e){return(0,k.Qj)(e.plane)}function oe(e,t){const r=(0,I.Re)(j.rq.get(),t,e.origin),n=(0,I.m3)(e.basis1),s=(0,I.m3)(e.basis2),i=(0,I.Om)(e.basis1,r),o=(0,I.Om)(e.basis2,r);return-i-n<0&&i-n<0&&-o-s<0&&o-s<0}function ae(e,t){const r=fe.get();return(0,I.C)(r.origin,e.origin),(0,I.C)(r.vector,t),r}function ue(e,t,r){const{basis1:n,basis2:s,origin:i}=e,o=(0,I.hs)(j.rq.get(),n,t.origin[0]),a=(0,I.hs)(j.rq.get(),s,t.origin[1]);(0,I.WQ)(r.origin,o,a),(0,I.WQ)(r.origin,r.origin,i);const u=(0,I.hs)(j.rq.get(),n,t.direction[0]),l=(0,I.hs)(j.rq.get(),s,t.direction[1]);return(0,I.hs)(r.vector,(0,I.WQ)(u,u,l),2),r}function le(e,t,r,n){const s=ie(e);(0,k.mR)(s,t.direction,t.origin,r),(0,k.mR)((0,k.Qj)(r),s,t.origin,n)}const ce={plane:(0,k.vt)(),origin:(0,x.fA)(0,0,0),basis1:(0,x.fA)(1,0,0),basis2:(0,x.fA)(0,1,0)},he=new D.I(k.vt),fe=new D.I(V.vt),de=(0,x.vt)(),pe=new D.I(()=>Z()),ye=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],me=(0,A.vt)(),ge=(0,A.vt)();Object.freeze(Object.defineProperty({__proto__:null,altitudeAt:se,axisAt:function(e,t,r,n){return function(e,t,r){switch(t){case 0:(0,I.C)(r,e.basis1),(0,I.S8)(r,r);break;case 1:(0,I.C)(r,e.basis2),(0,I.S8)(r,r);break;case 2:(0,I.C)(r,ie(e))}return r}(e,r,n)},cameraFrustumCoverage:function(e,t){return(t-e)/t},closestPoint:ee,closestPointOnSilhouette:K,copy:W,copyWithoutVerify:function(e,t){(0,I.C)(t.origin,e.origin),(0,I.C)(t.basis1,e.basis1),(0,I.C)(t.basis2,e.basis2),(0,k.C)(t.plane,e.plane)},create:Z,distance:function(e,t){return Math.sqrt(ne(e,t))},distance2:ne,distanceToSilhouette:function(e,t){let r=Number.NEGATIVE_INFINITY;for(const n of ye){const s=ue(e,n,fe.get()),i=(0,V.kb)(s,t);i>r&&(r=i)}return Math.sqrt(r)},elevate:H,equals:function(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&(0,I.t2)(e.basis1,t.basis1)&&(0,I.t2)(e.basis2,t.basis2)&&(0,I.t2)(e.origin,t.origin)},extrusionContainsPoint:function(e,t){return(0,k.mN)(e.plane,t)>0&&oe(e,t)},fromAABoundingRect:X,fromValues:z,getExtent:function(e,t){const r=e.basis1[0],n=e.basis2[1],[s,i]=e.origin;return(0,U.fA)(s-r,i-n,s+r,i+n,t)},intersectRay:J,intersectRayClosestSilhouette:function(e,t,r){if(J(e,t,r))return r;const n=K(e,t,j.rq.get());return(0,I.WQ)(r,t.origin,(0,I.hs)(j.rq.get(),t.direction,(0,I.Io)(t.origin,n)/(0,I.Bw)(t.direction))),r},normal:ie,projectPoint:te,projectPointLocal:re,rotate:function(e,t,r,n){return e!==n&&W(e,n),(0,M.$0)(ge,t,r),(0,I.Z0)(n.basis1,e.basis1,ge),(0,I.Z0)(n.basis2,e.basis2,ge),$(n),n},setAltitudeAt:function(e,t,r,n){const s=se(e,t),i=(0,I.hs)(de,ie(e),r-s);return(0,I.WQ)(n,t,i),n},setExtent:function(e,t,r){return X(t,r),H(r,se(e,e.origin),r),r},transform:function(e,t,r){return e!==r&&W(e,r),(0,M.B8)(me,t),(0,M.mg)(me,me),(0,I.Z0)(r.basis1,e.basis1,me),(0,I.Z0)(r.basis2,e.basis2,me),(0,I.Z0)((0,k.Qj)(r.plane),(0,k.Qj)(e.plane),me),(0,I.Z0)(r.origin,e.origin,t),(0,k.mP)(r.plane,r.plane,r.origin),r},up:ce,updateUnboundedPlane:$,wrap:function(e,t,r){const n=pe.get();return n.origin=e,n.basis1=t,n.basis2=r,n.plane=(0,k.LV)(0,0,0,0),$(n),n}},Symbol.toStringTag,{value:"Module"}));var _e=r(94008);(0,x.vt)(),(0,x.vt)();var Ee=r(89707);class be extends Ee.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new _e.iy(0,0,0,-1),this._serviceMbsInRenderSR=new _e.iy(0,0,0,-1),this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),this._serviceMbsInRenderSR}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class Te extends be{constructor(e,t,r,n,s,i,o,a,u,l,c){super(e,r),this.index=t,this.childCount=n,this.level=s,this.resources=i,this.version=o,this.lodMetric=a,this.maxError=u,this.numFeatures=l,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new ve,this.serviceObbInIndexSR=c}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class ve{constructor(){this._data=[0,0,0,ve.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=ve.invalidRadius}get valid(){return this._data[3]!==ve.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;const n=this.getAxis(Re),{center:s,radius:i}=e.boundingSphere,o=i+r;return 1===t?this.radius>Se||function(e,t,r,n){const s=(0,I.Bw)(r);if(s<=n)return!0;const i=(0,I.Om)(e,r);if(i<=0)return-i<=n;const o=(0,B.qE)(i/s,-1,1),a=Math.sqrt(1-o*o),u=(0,B.qE)(n/s,0,1);return a*Math.sqrt(1-u*u)-u*o<=t}(n,this.radius,s,o):function(e,t,r,n){const s=r[0]-e[0],i=r[1]-e[1],o=t+n;return s*s+i*i<=o*o}(n,this.radius,s,o)&&function(e,t,r,n,s){for(const i of s){const s=i[0],o=i[1],a=i[2],u=a>0?r:n;if(s*e[0]+o*e[1]+a*u+i[3]-Math.hypot(s,o)*t>0)return!1}return!0}(n,this.radius,s[2]-o,s[2]+o,e.planes)}}const Re=(0,x.vt)(),Se=.9;var Me=r(25992),Ae=r(66480),Ie=r(57005),xe=r(4431),Be=r(62747),we=r(58682),Ne=r(92359);class Ce{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Ae.Rm)(e),this._vertexSpatialReference=(0,Ae.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,q.lO)(t):t.isGeographic?F.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,w.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,w.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(Ne.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){const e={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(e,this.frameTask,!1);try{const e=this._descriptor;if("point"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");const t=await e.project(this._indexSpatialReference,this._signal);(0,h.Te)(this._signal),null==t&&this._throwSpatialReferenceMismatchError();const r=t.coordinates[0],n=function(e,t,r,n,s){const i=(0,x.fA)(e,t,r),o=(0,x.fA)(e,t,r-1e3),a=(0,x.vt)(),u=(0,x.vt)();return(0,P.F)(i,n,a,s)&&(0,P.F)(o,n,u,s)?(0,G.Cr)(a,u):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return null==n&&this._throwSpatialReferenceMismatchError(),this._queryRay=n,await this.visitRoot(),(0,h.Te)(this._signal),r.z=this._highest===-1/0?Pe:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){const t=this._queryRay,r=new Ie.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;const t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Ie.ab.fromJSON(e.obb));const r=new _e.iy;return!function(e,t,r,n){if(null==e||null==t||null==n)return!1;const s=(0,w.Tp)(t,n);if(null==s?.projector)return!1;if(s.projector===w.pO)return r.copyFrom(e),!0;const{source:i,dest:o,projector:a}=s;if(3===o.spatialReferenceId){const t=w.w5[i.spatialReferenceId][2];return null!=t&&(t(e.center,0,O,0),(0,w.s7)(O,0,r.center,0),r.radius=C(O[1],e.center[2],e.radius,N.$O.radius),!0)}if(2!==i.spatialReferenceId&&5!==i.spatialReferenceId||11!==o.spatialReferenceId){a(e.center,0,r.center,0);const t=i.metersPerUnit??1,n=o.metersPerUnit??1;r.radius=e.radius*t/n}else{const t=w.w5[i.spatialReferenceId][1],n=w.w5[1][11];let s=e.radius;null!=t&&null!=n&&(s=C(e.center[1],e.center[2],e.radius,N.$O.radius)),a(e.center,0,r.center,0),r.radius=s}return!0}(new _e.iy(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){const t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,h.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;const r=await this.transformNode(e,t);(0,h.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){const r=e.serviceMbsInIndexSR;if(null==r)return null;const n=(0,Me.C)(r,0,Fe,this._indexSpatialReference,this._intersectionSpaceSpatialReference),s={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[qe],globalTrafo:n,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:Fe,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},i=await this._layer.processElevationQueryGeometry(s,this._signal);return(0,h.Te)(this._signal),i}intersectTransformedGeometry(e,t,r){const n=e.globalTrafo;if(null==(0,M.B8)(De,n))return t;const s=this._queryRay,i=(0,I.Z0)(Ue,s.origin,De),o=(0,I.WQ)(Ve,s.origin,s.direction),a=(0,I.Z0)(ke,o,De),u=(0,I.jb)(Ge,a,i),{data:l,indices:c}=e.transformedGeometry.positionData,h=c.length/3;let f=t;return(0,we.h7)(i,u,0,h,c,l,3,!1,e=>{const t=(0,I.hs)(Qe,u,e);(0,I.WQ)(t,t,i);const s=(0,I.Z0)(je,t,n),o=Ye;if((0,P.F)(s,this._intersectionSpaceSpatialReference,o,this._layer.spatialReference)){const e=o[2]+r;f=Math.max(f,e)}}),f}async requestJSON(e){const t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,h.Te)(this._signal),t}}class Oe extends Ce{constructor(e,t,r,n){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=n.pageSize,this._rootIndex=n.rootIndex,this._urlPrefix=n.urlPrefix;const s=this._pageId(this._rootIndex),i=this._rootIndex-s*this._pageSize,o=Ie.ab.fromJSON(n.rootPage.nodes[i].obb);this._rootRayOriginZ=o.centerZ+o.radius+1,this._loadedPages.set(s,n.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){const t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);const r=this._pendingPages.get(e);if(null!=r)return r;const n=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,n),n.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),n}async _visitNode(e){const t=this._pageId(e),r=await this.getPage(t);(0,h.Te)(this._signal);const n=r.nodes[e-t*this._pageSize],s=Ie.ab.fromJSON(n.obb);if(!this._intersectsQueryObb(s))return;const{children:i}=n;if(null!=i&&i.length>0)return await Promise.all(i.map(e=>this._visitNode(e))),void(0,h.Te)(this._signal);const o=this._createNode(e,n,s);null!=o&&(await this._processLeafNode(o),(0,h.Te)(this._signal))}_createNode(e,t,r){const{mesh:n}=t;if(null==n?.geometry)return null;const s=new _e.iy(r.getCenter((0,x.vt)()),r.radius),{geometry:i,material:o}=n;return new Te(`${e}`,e,s,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${i.resource}`,geometryDefinition:i.definition,materialDefinition:o?.definition??-1},"",0,0,i.featureCount??null,r)}}class Le extends Ce{constructor(e,t,r,n){super(e,t,r),this._rootNode=n.rootNode,this._urlPrefix=n.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){const t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,h.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,h.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Ie.ab.fromJSON(e.obb)))return;const{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,h.Te)(this._signal);const n=this._createNode(e);null!=n&&(await this._processLeafNode(n),(0,h.Te)(this._signal))}_createNode(e){const{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;const n=null==e.obb?null:Ie.ab.fromJSON(e.obb),s=new _e.iy(e.mbs);return new Te(r,0,s,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,n)}}const Pe=Number.MAX_VALUE,Fe="none",qe=(0,xe.U)((0,Be.hH)(new Be.W7(!1,!1,0))),De=(0,A.vt)(),Ue=(0,x.vt)(),Ve=(0,x.vt)(),ke=(0,x.vt)(),Ge=(0,x.vt)(),Qe=(0,x.vt)(),je=(0,x.vt)(),Ye=(0,x.vt)();var Ze=r(50805),We=r(58325),ze=r(24212),$e=r(80215),He=r(97159),Xe=r(16215),Je=r(98697),Ke=r(56507),et=r(97768),tt=r(50075);class rt{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,tt._i)(e)}request(e,t,r){const n=new AbortController,s=(0,h.NY)(r,()=>n.abort()),i={...tt.Fz,signal:n.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},o=(0,Ke.A)(e,i),a={abortController:n,abortHandle:s};return this._activeRequests.add(a),o.then(({data:e})=>e).finally(()=>{a.abortController=null,a.abortHandle=(0,et.xt)(a.abortHandle),this._activeRequests.delete(a)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,et.DC)(e.abortController),e.abortHandle=(0,et.xt)(e.abortHandle)}),this._activeRequests.clear()}}var nt=r(60999),st=r(4718),it=r(84952),ot=r(59418),at=r(85334);r(91829),r(46859);var ut=r(74810),lt=r(49788);function ct(e){return e.sort((e,t)=>e.encoding-t.encoding)}const ht={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},ft={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};class dt{constructor(e,t,r,n,s,i){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=n,this._requiredAttributes=s,this._options=i,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){const t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){const n=new Map,s=(e,t)=>{if(null==e)return-1;const r=n.get(e.id);if(r)return r.usage|=t,r.id;const s=n.size;return n.set(e.id,{id:s,usage:t}),s},i=t.pbrMetallicRoughness,o=i?.baseColorFactor?(0,at.sn)(i.baseColorFactor):null,a=t.emissiveFactor,u=r&&0===i?.metallicFactor||(0,ut.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:i?.metallicRoughnessTexture,metallicFactor:i?.metallicFactor,roughnessFactor:i?.roughnessFactor}),l=u?ut.Bt[0]:i?.metallicFactor??ut.mb[0],c=u?ut.Bt[1]:i?.roughnessFactor??ut.mb[1],h="mask"===t.alphaMode?33:1,f={baseColorFactor:o?[o[0],o[1],o[2],o[3]]:[1,1,1,1],baseColorTextureId:s(i?.baseColorTexture,h),metallicRoughnessTextureId:s(i?.metallicRoughnessTexture,2),metallicFactor:l,roughnessFactor:c},d={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:"front"===t.cullFace?1:0,normalTextureId:s(t.normalTexture,4),emissiveTextureId:s(t.emissiveTexture,16),occlusionTextureId:s(t.occlusionTexture,8),emissiveFactor:a?[a[0],a[1],a[2]]:[0,0,0],metallicRoughness:f,wrapTextures:!1,hasParametersFromSource:u},p=[];return n.forEach(({usage:t},r)=>{const n=null!=e&&e[r]&&e[r].formats,s=n?ct(n.map(({name:e,format:t})=>({name:e,encoding:ht[t]}))):[];p.push({id:r,usage:t,encodings:s})}),{material:d,textures:p}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){const n=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(n,"array-buffer",r).then(e=>(0,ot.m0)(t,e))}async loadAttributes(e,t,r){const n=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),s={};for(let r=0;r<t.length;++r){const i=n[r],o=t[r];if("fulfilled"===i.status){const e=i.value;s[o.name]=e}else{const t=i.reason;(0,h.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${o.name}' on node '${e.id}'`,t)}}return s}async loadNodeData(e,t){const r=null!=this._requiredAttributes&&e.resources.attributes?(0,nt.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:n,bufferIndex:s}=function(e,t){const r={bufferDefinition:null,bufferIndex:0},n=t.resources.geometryDefinition;if(null==e||null==n||n<0)return r;const s=n>=0?e[n].geometryBuffers:null;if(null==s)return r;for(let e=0;e<s.length;e++){const t=s[e];if(null==t.compressedAttributes)r.bufferIndex=e,r.bufferDefinition=s[e];else if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}return r}(this._geometryDefinitions,e),i=!!e.resources.geometry,o=i?(0,nt.Ke)(this._loadGeometry(e.resources.geometry,s,t)):null,a=e.resources.hasSharedResource?await this._loadShared(e,t):null,l=e.resources.materialDefinition,c=this._materialAndTextures&&null!=l&&l>=0?this._materialAndTextures[l]:null!=a?function(e){const t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,n=t?e.materialDefinitions?.[t]:null,s=r?e.textureDefinitions?.[r]:null,i={alphaMode:"opaque",alphaCutoff:lt.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0};if(null!=n){const e=n.params;e.diffuse&&((0,at.KV)(e.diffuse),i.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(i.doubleSided=e.doubleSided,i.cullFace=e.doubleSided?0:2),"none"!==e.cullFace&&"front"!==e.cullFace&&"back"!==e.cullFace||(i.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(i.metallicRoughness.baseColorFactor[3]=(0,B.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||i.metallicRoughness.baseColorFactor[3]<1)&&(i.alphaMode="blend")}const o=[];if(null!=s){const e=0;!s.wrap||"repeat"!==s.wrap[0]&&"repeat"!==s.wrap[1]||(i.wrapTextures=!0);let t=1;"rgba"===s.channels&&(i.alphaMode="blend",t|=32);const r=s.images.length-1,n=s.images[r],a=e=>e?.split("/").pop(),u=Array.isArray(s.encoding)?ct(s.encoding.map((e,t)=>({name:a(n.href[t]),encoding:ft[e]||0}))):[{name:a(n.href),encoding:ft[s.encoding]||0}];o.push({id:e,usage:t,encodings:u}),i.metallicRoughness.baseColorTextureId=e}return{material:i,textures:o}}(a):null,h=c?.material,f=c?.textures??[],d=`${e.id}`,p=!i&&this._options.loadFeatureData,y=p?await this._loadFeatureData(d,t):null,m=p?function(e){if(!e)return null;for(const t of e.featureData){const e=t.geometries;if(null!=e)for(const r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(y):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:h}}],featureDataPosition:[0,0,0]},g=null==m?function(e){if(!e)return null;const t=new Array;for(const r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(y):null,_=f.length>0?(0,nt.Ke)(this.loadTextures(e,f,t)):null;let E=null,b=null;if(o){E=(0,nt.QA)(await o);const e=function(e,t){if(!e||!t?.materialDefinitions)return e;const r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,st.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,a);b=(0,ot.qs)(n,e)}const T=_?(0,nt.QA)(await _):null,v=r?(0,nt.QA)(await r):{},R=v?{attributeData:v,loadedAttributes:this._requiredAttributes}:null;if(null!=m)return{geometryData:m,attributeDataInfo:R,geometryBuffer:E,geometryDescriptor:b,requiredTextures:f,textureData:T};if(null!=g)return{pointData:g,attributeDataInfo:R,geometryBuffer:E,geometryDescriptor:b,requiredTextures:f,textureData:T};throw new Error}static _addAbsoluteHrefTexture(e,t){const r=e.textureDefinitions;if(null!=r)for(const e of Object.keys(r))for(const n of r[e].images)Array.isArray(n.href)?n.hrefConcat=n.href.map(e=>(0,it.s2)(e,t)):n.hrefConcat=(0,it.s2)(n.href,t)}static _fixTextureEncodings(e){const t=e.textureDefinitions;if(null!=t)for(const e in t){const r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){const t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{const e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};const r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,n=await this._requester.request(r,"json",t);return dt._fixTextureEncodings(n),dt._addAbsoluteHrefTexture(n,r),n}_loadTexture(e,t,r,n,s){return 4===n||1===n||2===n?this._requester.request(e,"array-buffer",s).then(e=>({id:t,usage:r,data:e,encoding:n})):this._requester.request(e,"image",s).then(e=>({id:t,usage:r,data:e,encoding:n}))}loadTextures(e,t,r){const n=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&n))return null;const s=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==s)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();const i=e.resources.texture||e.id,o=`${this._layerUrl}/nodes/${i}/textures/${s.name}`;return this._loadTexture(o,t.id,t.usage,s.encoding,r)}))}_loadFeatureData(e,t){const r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){const n=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(n,"array-buffer",r)}}var pt=r(36005);let yt=class extends((0,v.w6)((0,g.b)((0,E.q)((0,b.A)((0,T.j)((0,c.M)((0,_.d)((0,m.p)((0,i.OU)(y.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();const e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,null!=e&&e.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,f.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},f.OH),(0,f.wB)(()=>this.modifications,()=>this._modificationsGeneration++,f.OH),(0,f.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,He.f)(e,r),context:r}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new Je.Cm((e,t)=>Ne.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){const i={stack:[],error:void 0,hasError:!1};try{const u=r?.noDataValue??Number.MAX_VALUE,l=this._elevationQueryWorker,c=new AbortController;e.addHandles((0,a.rE)(c),c),(0,n.mS)(i,(0,a.Bf)((0,a.hA)(()=>e.removeHandles(c))),!1);const f=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,c.signal].filter(s.Ru));await this.load({signal:f}),(0,h.Te)(f);const d=S.q.fromGeometry(t),p={signal:f,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){const e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=l.setLegacySchema(this._elevationQueryWorkerContext,e))}const y=await async function(e,t,r){const n=await e.indexInfo;if((0,h.Te)(r.signal),null==n)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===n.type?new Oe(e,t,r,n).promise:new Le(e,t,r,n).promise}(this,d,p);(0,h.Te)(f);const m=y.coordinates[0].z===Pe;m&&(y.coordinates[0].z=u);const g=await y.project(t.spatialReference,f);(0,h.Te)(f);const _=g??d.clone(),E={geometry:_.export(),noDataValue:u};return r?.returnSampleInfo&&(E.sampleInfo=_.coordinates.map(()=>({demResolution:m?-1:1}))),E}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}_abortElevationQueriesAfterDependencyChange(){const e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){return await this._elevationQueryWorkerSetup,(0,h.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,h.QP)(e)}if((0,h.Te)(t),await this._fetchService(t),(0,h.Te)(t),null!=this._modificationsSource){const r=await We.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,h.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,h.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,Xe.S)(this.parent)||(0,$e.Q)(this.parent)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new rt(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new dt(this,this.elevationQueryDataRequester,l.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){const t="Integrated mesh layers";(0,ze.XF)(l.A.getLogger(this),(0,ze.B)(t,"absolute-height",e)),(0,ze.XF)(l.A.getLogger(this),(0,ze.tW)(t,e))}};(0,n.Cg)([(0,d.MZ)({type:String,readOnly:!0})],yt.prototype,"geometryType",void 0),(0,n.Cg)([(0,d.MZ)({type:["show","hide"]})],yt.prototype,"listMode",void 0),(0,n.Cg)([(0,d.MZ)({type:["IntegratedMeshLayer"]})],yt.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,d.MZ)({json:{read:!1},readOnly:!0})],yt.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)({type:Ze.W4,readOnly:!0,clonable:!1})],yt.prototype,"nodePages",void 0),(0,n.Cg)([(0,d.MZ)({type:[Ze.uV],readOnly:!0,clonable:!1})],yt.prototype,"materialDefinitions",void 0),(0,n.Cg)([(0,d.MZ)({type:[Ze.Ot],readOnly:!0,clonable:!1})],yt.prototype,"textureSetDefinitions",void 0),(0,n.Cg)([(0,d.MZ)({type:[Ze.L0],readOnly:!0,clonable:!1})],yt.prototype,"geometryDefinitions",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],yt.prototype,"serviceUpdateTimeStamp",void 0),(0,n.Cg)([(0,d.MZ)({type:We.A,clonable:e=>e?.clone()??e}),(0,p.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],yt.prototype,"modifications",void 0),(0,n.Cg)([(0,d.MZ)({clonable:e=>e?{...e}:null})],yt.prototype,"_modificationsSource",void 0),(0,n.Cg)([(0,pt.w)(["web-scene","portal-item"],"modifications")],yt.prototype,"readModifications",null),(0,n.Cg)([(0,d.MZ)(R.Yj)],yt.prototype,"elevationInfo",null),(0,n.Cg)([(0,d.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],yt.prototype,"path",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],yt.prototype,"_elevationQueryWorker",null),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"_modificationsGeneration",void 0),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"isUsedAsGroundLayer",null),(0,n.Cg)([(0,d.MZ)({clonable:!1})],yt.prototype,"elevationQueryDataRequester",null),(0,n.Cg)([(0,d.MZ)({clonable:!1})],yt.prototype,"elevationQueryNodeLoader",null),yt=(0,n.Cg)([(0,d.$K)("esri.layers.IntegratedMeshLayer")],yt);const mt=yt},10292(e,t,r){r.d(t,{q:()=>a});var n=r(48526),s=r(86738),i=r(82799),o=r(99917);class a{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new a(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,o.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const r=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),s=(0,o.project)(r,e);if(!s)return null;const i=this.coordinates.map((e,t)=>{const r=e.clone(),n=s.points[t];return r.x=n[0],r.y=n[1],r}),a=this.clone(i);return a.spatialReference=e,a}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,o.project)(t,e);if(!r)return null;const s=this.coordinates.map((e,t)=>{const n=e.clone(),s=r.points[t];return n.x=s[0],n.y=s[1],n}),i=this.clone(s);return i.spatialReference=e,i}static fromGeometry(e){const t=new a(e);if(e instanceof a)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{const n=e.clone(t);return n.spatialReference=r,n},t;switch(e.type){case"point":{const r=e,{hasZ:n,hasM:i}=r;return t.coordinates=n&&i?[new u(r.x,r.y,r.z,r.m)]:n?[new u(r.x,r.y,r.z)]:i?[new u(r.x,r.y,null,r.m)]:[new u(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new s.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new s.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{const r=e,{hasZ:s,hasM:i}=r;return t.coordinates=s&&i?r.points.map(e=>new u(e[0],e[1],e[2],e[3])):s?r.points.map(e=>new u(e[0],e[1],e[2])):i?r.points.map(e=>new u(e[0],e[1],null,e[2])):r.points.map(e=>new u(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{const r=e,n=[],s=[],{hasZ:o,hasM:a}=e;let l=0;for(const e of r.paths)if(s.push([l,l+e.length]),l+=e.length,o&&a)for(const t of e)n.push(new u(t[0],t[1],t[2],t[3]));else if(o)for(const t of e)n.push(new u(t[0],t[1],t[2]));else if(a)for(const t of e)n.push(new u(t[0],t[1],null,t[2]));else for(const t of e)n.push(new u(t[0],t[1]));return t.coordinates=n,t._exporter=(t,r)=>{const n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=s.map(e=>n.slice(e[0],e[1]));return new i.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class u{constructor(e,t,r=null,n=null,s=null,i=null){this.x=e,this.y=t,this.z=r,this.m=n,this.tile=s,this.elevationTile=i}clone(){return new u(this.x,this.y,this.z,this.m)}}},73179(e,t,r){r.d(t,{b:()=>u,h:()=>l});var n=r(4718),s=r(53966),i=r(84952),o=r(60694),a=r(10873);function u(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},i=(0,n.o8)(a.OZ),u=i.json?.write;return"object"==typeof u&&u&&(u.writer=function(e,t,n,s){(0,o.LS)(this,e,r,t,s)}),{...i,set:function(e){if(null==e)return void this._set("url",e);const r=(0,o.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function l(e,t){const{separator:r}=t??{},n=(0,i.An)(e.url);return null!=n&&(null!=e.dynamicDataSource?n.path=(0,i.fj)(n.path,"dynamicLayer"):null!=e.layerId&&(n.path=(0,i.fj)(n.path,r??"",e.layerId.toString()))),n}},89707(e,t,r){r.d(t,{H:()=>n});class n{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){const t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),n=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,n}expandElevationRangeValues(e,t){const r=Math.min(this.minElevation,e),n=Math.max(this.maxElevation,t),s=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,s}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>i,hH:()=>o});var n=r(1843),s=r(65786);s.Y;class i extends s.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function o(e){const t=(0,n.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>f,W6:()=>l}),r(4576),r(71511),r(44208),r(53966);var n=r(17676),s=(r(36708),r(44794),r(78659)),i=r(32198),o=r(69622),a=r(91429);let u=class extends o.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,i.Cg)([(0,a.MZ)()],u.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,i.Cg)([(0,a.MZ)()],u.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),u=(0,i.Cg)([(0,a.$K)("esri.views.support.debugFlags")],u),new u,r(49186),Symbol("Yield");const l={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[l.RESOURCE_CONTROLLER_IMMEDIATE,0],[l.RESOURCE_CONTROLLER,4],[l.SLIDE,0],[l.STREAM_DATA_LOADER,0],[l.ELEVATION_QUERY,0],[l.TERRAIN_SURFACE,1],[l.SURFACE_GEOMETRY_UPDATES,1],[l.LOD_RENDERER,2],[l.GRAPHICS_CORE,2],[l.I3S,2],[l.LYR3D,2],[l.TILES3D,3],[l.POINT_CLOUD_LAYER,2],[l.FEATURE_TILE_FETCHER,2],[l.STREAM_CONTROLLER,2],[l.SCREEN_POLYGON_INTERSECTION,0],[l.CLOUDS_GENERATOR,2],[l.OCCLUSION_QUERY,2],[l.OVERLAY,4],[l.OVERLAY_RENDERER,4],[l.STAGE,4],[l.GRAPHICS_DECONFLICTOR,4],[l.FILTER_VISIBILITY,4],[l.SCALE_VISIBILITY,4],[l.FRUSTUM_VISIBILITY,4],[l.POINT_OF_INTEREST_FREQUENT,6],[l.POINT_OF_INTEREST_INFREQUENT,30],[l.LABELER,8],[l.FEATURE_QUERY_ENGINE,8],[l.FEATURE_TILE_TREE,16],[l.FEATURE_TILE_TREE_ACTIVE,0],[l.ELEVATION_ALIGNMENT,12],[l.ELEVATION_ALIGNMENT_SCENE,14],[l.TEXT_TEXTURE_ATLAS,12],[l.TEXTURE_UNLOAD,12],[l.LINE_OF_SIGHT_TOOL,16],[l.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[l.VOLUME_MEASUREMENT,4],[l.SNAPPING,0],[l.SHADOW_ACCUMULATOR,30],[l.FLOW_GENERATOR,12],[l.GAUSSIAN_SPLAT_SORTING,2],[l.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[l.MAPVIEW_FETCH_QUEUE,0],[l.MAPVIEW_LAYERVIEW_UPDATE,2],[l.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,s.l5)(6.5),(0,s.l5)(1),(0,s.l5)(30),(0,s.l5)(1e3/30),(0,s.l5)(100),Symbol.dispose;const c=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};c.enabled=!1;class h{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,n.G4)(t)){const e=(0,n.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,n.z7)(e(c))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,n.G4)(t)){const e=(0,n.NK)();if(r)return r(e);throw e}const s=e(c);for(;;){const e=s.next(c),i=(0,n.$X)(e)?await e:e;if((0,n.G4)(t)){const e=(0,n.NK)();if(r){const t=r(e),i=s.return(null);return(0,n.$X)(i)&&await(0,n.QZ)(i),t}const t=s.throw(e);throw(0,n.$X)(t)&&await(0,n.QZ)(t),e}if(i.done)return i.value}}}const f=new h}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1721],{68197(e,t,r){r.d(t,{A:()=>c});var n=r(40876),s=r(4576),i=r(34727),o=r(78888);function a(e){return(0,i.qE)((0,o.Vr)(e),0,255)}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function l(e){return.2126*(0,n.Q6)(e.r)+.7152*(0,n.Q6)(e.g)+.0722*(0,n.Q6)(e.b)}class c{static blendColors(e,t,r,n=new c){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?c.fromArray(r,t):null}static fromHex(e,t=new c){const r=(0,n.oW)(e);return r?c.fromArray(r,t):null}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?c.fromArray(r,t):null}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){const r=e instanceof c?e:new c(e),n=l(this),s=l(r);return(Math.max(n,s)+.05)/(Math.min(n,s)+.05)<t}setColor(e){if("string"==typeof e)c.fromString(e,this);else if((0,s.yc)(e))c.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof c||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,s=4===r||8===r,i=`#${u(this.r,n)}${u(this.g,n)}${u(this.b,n)}${s?u(Math.round(255*this.a),n):""}`;return t?i.toUpperCase():i}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),r=a(this.g),n=a(this.b);return 0===e||1!==this.a?[t,r,n,a(255*this.a)]:[t,r,n]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}c.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>y,Q6:()=>E,TS:()=>i,V6:()=>s,Vm:()=>p,ay:()=>u,c1:()=>m,c4:()=>o,j5:()=>l,lT:()=>h,oW:()=>c,xV:()=>b});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function s(e){return!!n[e]||!!n[e.toLowerCase()]}function i(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...i(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function u(e,t,r,n=1){const s=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,o=2*r-i;return[Math.round(255*a(o,i,s+1/3)),Math.round(255*a(o,i,s)),Math.round(255*a(o,i,s-1/3)),n]}function l(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,s=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const a=[0,0,0,1];let u;return i&&(u=o&n,o>>=r,a[3]=s*u/255),u=o&n,o>>=r,a[2]=s*u,u=o&n,o>>=r,a[1]=s*u,u=o&n,o>>=r,a[0]=s*u,a}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),s=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(s+16*s)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),f(t)}return f(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return u(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function f(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?y(e[3]):1,e}function d(e){let t=s(e)?i(e):null;return t??=h(e),t??=c(e),t}function p(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function y(e){return g(e,0,1)}function m(e){return Math.round(g(e,0,255))}function g(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const _=1/2.2;function E(e){return e**2.2}function b(e){return e**_}r.d(t,["iw",0,_])},85334(e,t,r){r.d(t,{$:()=>_,IB:()=>a,Iy:()=>S,KV:()=>v,N2:()=>E,RH:()=>T,ZD:()=>b,sn:()=>R});var n=r(68197),s=r(4576),i=r(4718),o=r(34727);function a(e){return"r"in e&&"g"in e&&"b"in e}function u(e){return"h"in e&&"s"in e&&"v"in e}function l(e){return"l"in e&&"a"in e&&"b"in e}function c(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],f=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function d(e,t){const r=[];let n,s;if(e[0].length!==t.length)throw new Error("dimensions do not match");const i=e.length,o=e[0].length;let a=0;for(n=0;n<i;n++){for(a=0,s=0;s<o;s++)a+=e[n][s]*t[s];r.push(a)}return r}function p(e){const t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=d(h,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function y(e){const t=d(f,[e.x/100,e.y/100,e.z/100]).map(e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function m(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function g(e){const t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function _(e){return a(e)?e:c(e)?function(e){return y(g(function(e){const t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):l(e)?function(e){return y(g(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?y(e):u(e)?function(e){const t=(e.h+360)%360/60,r=e.s/100,n=e.v/100*255,s=n*r,i=s*(1-Math.abs(t%2-1));let o;switch(Math.floor(t)){case 0:o={r:s,g:i,b:0};break;case 1:o={r:i,g:s,b:0};break;case 2:o={r:0,g:s,b:i};break;case 3:o={r:0,g:i,b:s};break;case 4:o={r:i,g:0,b:s};break;case 5:case 6:o={r:s,g:0,b:i};break;default:o={r:0,g:0,b:0}}return o.r=Math.round(o.r+n-s),o.g=Math.round(o.g+n-s),o.b=Math.round(o.b+n-s),o}(e):e}function E(e){return u(e)?e:function(e){const{r:t,g:r,b:n}=e,s=Math.max(t,r,n),i=s-Math.min(t,r,n);let o=s,a=0===i?0:s===t?(r-n)/i%6:s===r?(n-t)/i+2:(t-r)/i+4,u=0===i?0:i/o;return a<0&&(a+=6),a*=60,u*=100,o*=100/255,{h:a,s:u,v:o}}(_(e))}function b(e){return l(e)?e:function(e){return m(p(e))}(_(e))}function T(e){return c(e)?e:function(e){return function(e){const t=e.l,r=e.a,n=e.b,s=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i=i>0?i:i+2*Math.PI,{l:t,c:s,h:i}}(m(p(e)))}(_(e))}function v(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function R(e){return e.length=4,v(e),e[3]??=1,(0,o.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){const r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,s.k4)((0,i.o8)(e),r.seed)),e.length>=t){const r=[],n=(e.length-1)/(t-1);for(let s=0;s<t;s++){const t=Math.round(s*n);r.push(e[t].clone())}return r}return function(e,t,r={}){const n=[],i=e.length-1,o=Math.ceil((t-e.length)/i);e:for(let s=0;s<i;s++){const i=e[s],a=e[s+1];for(let s=1;s<=o;s++){const u=s/(o+1);if(n.push(A(i,a,u,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,s.k4)(n,r.seed??1)]}(e,t,r)}const M=(e,t)=>{const r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function A(e,t,r,i={}){const o=e.r,a=e.g,u=e.b,l=t.r,c=t.g,h=t.b,f=Math.round(o+(l-o)*r),d=Math.round(a+(c-a)*r),p=Math.round(u+(h-u)*r);if(!i.offset)return new n.A([f,d,p]);const y=(0,s.Mo)(i.seed);return new n.A([M(f,y),M(d,y),M(p,y)])}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>s,vt:()=>n});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(e,t,r,n,s,i,o,a,u,l,c,h,f,d,p,y){return[e,t,r,n,s,i,o,a,u,l,c,h,f,d,p,y]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,i])},58083(e,t,r){r.d(t,{$0:()=>g,$h:()=>I,B8:()=>c,C:()=>i,D_:()=>a,N9:()=>E,O7:()=>A,Qw:()=>l,Tl:()=>f,X_:()=>R,e$:()=>p,eL:()=>y,hM:()=>_,hZ:()=>o,hs:()=>d,kN:()=>m,l:()=>S,lw:()=>h,mg:()=>u,o1:()=>M,sC:()=>v,t2:()=>w,t5:()=>x,tZ:()=>C,ut:()=>N});var n=r(51850),s=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function o(e,t,r,n,s,i,o,a,u,l,c,h,f,d,p,y,m){return e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=a,e[7]=u,e[8]=l,e[9]=c,e[10]=h,e[11]=f,e[12]=d,e[13]=p,e[14]=y,e[15]=m,e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function u(e,t){if(e===t){const r=t[1],n=t[2],s=t[3],i=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=s,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){return c(e,t)||a(e),e}function c(e,t){const r=t[0],n=t[1],s=t[2],i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],y=t[13],m=t[14],g=t[15],_=r*a-n*o,E=r*u-s*o,b=r*l-i*o,T=n*u-s*a,v=n*l-i*a,R=s*l-i*u,S=c*y-h*p,M=c*m-f*p,A=c*g-d*p,I=h*m-f*y,x=h*g-d*y,B=f*g-d*m;let w=_*B-E*x+b*I+T*A-v*M+R*S;return w?(w=1/w,e[0]=(a*B-u*x+l*I)*w,e[1]=(s*x-n*B-i*I)*w,e[2]=(y*R-m*v+g*T)*w,e[3]=(f*v-h*R-d*T)*w,e[4]=(u*A-o*B-l*M)*w,e[5]=(r*B-s*A+i*M)*w,e[6]=(m*b-p*R-g*E)*w,e[7]=(c*R-f*b+d*E)*w,e[8]=(o*x-a*A+l*S)*w,e[9]=(n*A-r*x-i*S)*w,e[10]=(p*v-y*b+g*_)*w,e[11]=(h*b-c*v-d*_)*w,e[12]=(a*M-o*I-u*S)*w,e[13]=(r*I-n*M+s*S)*w,e[14]=(y*E-p*T-m*_)*w,e[15]=(c*T-h*E+f*_)*w,e):null}function h(e,t,r){const n=t[0],s=t[1],i=t[2],o=t[3],a=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],y=t[12],m=t[13],g=t[14],_=t[15];let E=r[0],b=r[1],T=r[2],v=r[3];return e[0]=E*n+b*a+T*h+v*y,e[1]=E*s+b*u+T*f+v*m,e[2]=E*i+b*l+T*d+v*g,e[3]=E*o+b*c+T*p+v*_,E=r[4],b=r[5],T=r[6],v=r[7],e[4]=E*n+b*a+T*h+v*y,e[5]=E*s+b*u+T*f+v*m,e[6]=E*i+b*l+T*d+v*g,e[7]=E*o+b*c+T*p+v*_,E=r[8],b=r[9],T=r[10],v=r[11],e[8]=E*n+b*a+T*h+v*y,e[9]=E*s+b*u+T*f+v*m,e[10]=E*i+b*l+T*d+v*g,e[11]=E*o+b*c+T*p+v*_,E=r[12],b=r[13],T=r[14],v=r[15],e[12]=E*n+b*a+T*h+v*y,e[13]=E*s+b*u+T*f+v*m,e[14]=E*i+b*l+T*d+v*g,e[15]=E*o+b*c+T*p+v*_,e}function f(e,t,r){const n=r[0],s=r[1],i=r[2];if(t===e)e[12]=t[0]*n+t[4]*s+t[8]*i+t[12],e[13]=t[1]*n+t[5]*s+t[9]*i+t[13],e[14]=t[2]*n+t[6]*s+t[10]*i+t[14],e[15]=t[3]*n+t[7]*s+t[11]*i+t[15];else{const r=t[0],o=t[1],a=t[2],u=t[3],l=t[4],c=t[5],h=t[6],f=t[7],d=t[8],p=t[9],y=t[10],m=t[11];e[0]=r,e[1]=o,e[2]=a,e[3]=u,e[4]=l,e[5]=c,e[6]=h,e[7]=f,e[8]=d,e[9]=p,e[10]=y,e[11]=m,e[12]=r*n+l*s+d*i+t[12],e[13]=o*n+c*s+p*i+t[13],e[14]=a*n+h*s+y*i+t[14],e[15]=u*n+f*s+m*i+t[15]}return e}function d(e,t,r){const n=r[0],s=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,r,n){let o=n[0],a=n[1],u=n[2],l=Math.sqrt(o*o+a*a+u*u);if(l<=(0,s.FD)())return void i(e,t);l=1/l,o*=l,a*=l,u*=l;const c=Math.sin(r),h=Math.cos(r),f=1-h,d=t[0],p=t[1],y=t[2],m=t[3],g=t[4],_=t[5],E=t[6],b=t[7],T=t[8],v=t[9],R=t[10],S=t[11],M=o*o*f+h,A=a*o*f+u*c,I=u*o*f-a*c,x=o*a*f-u*c,B=a*a*f+h,w=u*a*f+o*c,N=o*u*f+a*c,C=a*u*f-o*c,O=u*u*f+h;e[0]=d*M+g*A+T*I,e[1]=p*M+_*A+v*I,e[2]=y*M+E*A+R*I,e[3]=m*M+b*A+S*I,e[4]=d*x+g*B+T*w,e[5]=p*x+_*B+v*w,e[6]=y*x+E*B+R*w,e[7]=m*x+b*B+S*w,e[8]=d*N+g*C+T*O,e[9]=p*N+_*C+v*O,e[10]=y*N+E*C+R*O,e[11]=m*N+b*C+S*O,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function y(e,t,r){const n=Math.sin(r),s=Math.cos(r),i=t[4],o=t[5],a=t[6],u=t[7],l=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*s+l*n,e[5]=o*s+c*n,e[6]=a*s+h*n,e[7]=u*s+f*n,e[8]=l*s-i*n,e[9]=c*s-o*n,e[10]=h*s-a*n,e[11]=f*s-u*n,e}function m(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function g(e,t,r){if(0===t)return a(e);let n=r[0],i=r[1],o=r[2],u=Math.sqrt(n*n+i*i+o*o);if(u<=(0,s.FD)())return null;u=1/u,n*=u,i*=u,o*=u;const l=Math.sin(t),c=Math.cos(t),h=1-c;return e[0]=n*n*h+c,e[1]=i*n*h+o*l,e[2]=o*n*h-i*l,e[3]=0,e[4]=n*i*h-o*l,e[5]=i*i*h+c,e[6]=o*i*h+n*l,e[7]=0,e[8]=n*o*h+i*l,e[9]=i*o*h-n*l,e[10]=o*o*h+c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function _(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function E(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t,r){const n=t[0],s=t[1],i=t[2],o=t[3],a=n+n,u=s+s,l=i+i,c=n*a,h=n*u,f=n*l,d=s*u,p=s*l,y=i*l,m=o*a,g=o*u,_=o*l;return e[0]=1-(d+y),e[1]=h+_,e[2]=f-g,e[3]=0,e[4]=h-_,e[5]=1-(c+y),e[6]=p+m,e[7]=0,e[8]=f+g,e[9]=p-m,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const T=(0,n.vt)();function v(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function R(e,t){const r=t[0],n=t[1],s=t[2],i=t[4],o=t[5],a=t[6],u=t[8],l=t[9],c=t[10];return e[0]=Math.sqrt(r*r+n*n+s*s),e[1]=Math.sqrt(i*i+o*o+a*a),e[2]=Math.sqrt(u*u+l*l+c*c),e}function S(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e}function M(e,t,r,n){const s=t[0],i=t[1],o=t[2],a=t[3],u=s+s,l=i+i,c=o+o,h=s*u,f=s*l,d=s*c,p=i*l,y=i*c,m=o*c,g=a*u,_=a*l,E=a*c,b=n[0],T=n[1],v=n[2];return e[0]=(1-(p+m))*b,e[1]=(f+E)*b,e[2]=(d-_)*b,e[3]=0,e[4]=(f-E)*T,e[5]=(1-(h+m))*T,e[6]=(y+g)*T,e[7]=0,e[8]=(d+_)*v,e[9]=(y-g)*v,e[10]=(1-(h+p))*v,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function A(e,t,r,n,s){const i=t[0],o=t[1],a=t[2],u=t[3],l=i+i,c=o+o,h=a+a,f=i*l,d=i*c,p=i*h,y=o*c,m=o*h,g=a*h,_=u*l,E=u*c,b=u*h,T=n[0],v=n[1],R=n[2],S=s[0],M=s[1],A=s[2],I=(1-(y+g))*T,x=(d+b)*T,B=(p-E)*T,w=(d-b)*v,N=(1-(f+g))*v,C=(m+_)*v,O=(p+E)*R,L=(m-_)*R,P=(1-(f+y))*R;return e[0]=I,e[1]=x,e[2]=B,e[3]=0,e[4]=w,e[5]=N,e[6]=C,e[7]=0,e[8]=O,e[9]=L,e[10]=P,e[11]=0,e[12]=r[0]+S-(I*S+w*M+O*A),e[13]=r[1]+M-(x*S+N*M+L*A),e[14]=r[2]+A-(B*S+C*M+P*A),e[15]=1,e}function I(e,t,r,n,s,i,o){const a=1/(r-t),u=1/(s-n),l=1/(i-o);return e[0]=2*i*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*u,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(s+n)*u,e[10]=(o+i)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*l,e[15]=0,e}function x(e,t,r,n){const i=t[0],o=t[1],u=t[2];let l=i-r[0],c=o-r[1],h=u-r[2];const f=(0,s.FD)();if(Math.abs(l)<f&&Math.abs(c)<f&&Math.abs(h)<f)return void a(e);let d=1/Math.sqrt(l*l+c*c+h*h);l*=d,c*=d,h*=d;const p=n[0],y=n[1],m=n[2];let g=y*h-m*c,_=m*l-p*h,E=p*c-y*l;d=Math.sqrt(g*g+_*_+E*E),d?(d=1/d,g*=d,_*=d,E*=d):(g=0,_=0,E=0);let b=c*E-h*_,T=h*g-l*E,v=l*_-c*g;d=Math.sqrt(b*b+T*T+v*v),d?(d=1/d,b*=d,T*=d,v*=d):(b=0,T=0,v=0),e[0]=g,e[1]=b,e[2]=l,e[3]=0,e[4]=_,e[5]=T,e[6]=c,e[7]=0,e[8]=E,e[9]=v,e[10]=h,e[11]=0,e[12]=-(g*i+_*o+E*u),e[13]=-(b*i+T*o+v*u),e[14]=-(l*i+c*o+h*u),e[15]=1}function B(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function N(e){const t=(0,s.FD)(),r=e[0],n=e[1],i=e[2],o=e[4],a=e[5],u=e[6],l=e[8],c=e[9],h=e[10];return Math.abs(1-(r*r+o*o+l*l))<=t&&Math.abs(1-(n*n+a*a+c*c))<=t&&Math.abs(1-(i*i+u*u+h*h))<=t}function C(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const O=h,L=B;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],n=t[1],s=t[2],i=t[3],o=t[4],a=t[5],u=t[6],l=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],y=t[13],m=t[14],g=t[15];return e[0]=a*(f*g-d*m)-h*(u*g-l*m)+y*(u*d-l*f),e[1]=-(n*(f*g-d*m)-h*(s*g-i*m)+y*(s*d-i*f)),e[2]=n*(u*g-l*m)-a*(s*g-i*m)+y*(s*l-i*u),e[3]=-(n*(u*d-l*f)-a*(s*d-i*f)+h*(s*l-i*u)),e[4]=-(o*(f*g-d*m)-c*(u*g-l*m)+p*(u*d-l*f)),e[5]=r*(f*g-d*m)-c*(s*g-i*m)+p*(s*d-i*f),e[6]=-(r*(u*g-l*m)-o*(s*g-i*m)+p*(s*l-i*u)),e[7]=r*(u*d-l*f)-o*(s*d-i*f)+c*(s*l-i*u),e[8]=o*(h*g-d*y)-c*(a*g-l*y)+p*(a*d-l*h),e[9]=-(r*(h*g-d*y)-c*(n*g-i*y)+p*(n*d-i*h)),e[10]=r*(a*g-l*y)-o*(n*g-i*y)+p*(n*l-i*a),e[11]=-(r*(a*d-l*h)-o*(n*d-i*h)+c*(n*l-i*a)),e[12]=-(o*(h*m-f*y)-c*(a*m-u*y)+p*(a*f-u*h)),e[13]=r*(h*m-f*y)-c*(n*m-s*y)+p*(n*f-s*h),e[14]=-(r*(a*m-u*y)-o*(n*m-s*y)+p*(n*u-s*a)),e[15]=r*(a*f-u*h)-o*(n*f-s*h)+c*(n*u-s*a),e},copy:i,determinant:function(e){const t=e[0],r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],a=e[6],u=e[7],l=e[8],c=e[9],h=e[10],f=e[11],d=e[12],p=e[13],y=e[14],m=e[15];return(t*o-r*i)*(h*m-f*y)-(t*a-n*i)*(c*m-f*p)+(t*u-s*i)*(c*y-h*p)+(r*a-n*o)*(l*m-f*d)-(r*u-s*o)*(l*y-h*d)+(n*u-s*a)*(l*p-c*d)},equals:function(e,t){if(e===t)return!0;const r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],y=e[12],m=e[13],g=e[14],_=e[15],E=t[0],b=t[1],T=t[2],v=t[3],R=t[4],S=t[5],M=t[6],A=t[7],I=t[8],x=t[9],B=t[10],w=t[11],N=t[12],C=t[13],O=t[14],L=t[15],P=(0,s.FD)();return Math.abs(r-E)<=P*Math.max(1,Math.abs(r),Math.abs(E))&&Math.abs(n-b)<=P*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-T)<=P*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(o-v)<=P*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(a-R)<=P*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(u-S)<=P*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(l-M)<=P*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-A)<=P*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(h-I)<=P*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(f-x)<=P*Math.max(1,Math.abs(f),Math.abs(x))&&Math.abs(d-B)<=P*Math.max(1,Math.abs(d),Math.abs(B))&&Math.abs(p-w)<=P*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(y-N)<=P*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(m-C)<=P*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(g-O)<=P*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(_-L)<=P*Math.max(1,Math.abs(_),Math.abs(L))},exactEquals:w,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],n=t[1],s=t[2],i=t[3],o=r+r,a=n+n,u=s+s,l=r*o,c=n*o,h=n*a,f=s*o,d=s*a,p=s*u,y=i*o,m=i*a,g=i*u;return e[0]=1-h-p,e[1]=c+g,e[2]=f-m,e[3]=0,e[4]=c-g,e[5]=1-l-p,e[6]=d+y,e[7]=0,e[8]=f+m,e[9]=d-y,e[10]=1-l-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=T,n=-t[0],s=-t[1],i=-t[2],o=t[3],a=t[4],u=t[5],l=t[6],c=t[7],h=n*n+s*s+i*i+o*o;return h>0?(r[0]=2*(a*o+c*n+u*i-l*s)/h,r[1]=2*(u*o+c*s+l*n-a*i)/h,r[2]=2*(l*o+c*i+a*s-u*n)/h):(r[0]=2*(a*o+c*n+u*i-l*s),r[1]=2*(u*o+c*s+l*n-a*i),r[2]=2*(l*o+c*i+a*s-u*n)),b(e,t,r),e},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:M,fromRotationTranslationScaleOrigin:A,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:m,fromXRotation:_,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:E,frustum:I,getRotation:S,getScale:R,getTranslation:v,hasIdentityRotation:C,identity:a,invert:c,invertOrIdentity:l,isOrthoNormal:N,lookAt:x,mul:O,multiply:h,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,s,i,o){const a=1/(t-r),u=1/(n-s),l=1/(i-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+r)*a,e[13]=(s+n)*u,e[14]=(o+i)*l,e[15]=1,e},perspective:function(e,t,r,n,s){const i=1/Math.tan(t/2);let o;return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(o=1/(n-s),e[10]=(s+n)*o,e[14]=2*s*n*o):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const s=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+a),l=2/(s+i);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=-(o-a)*u*.5,e[9]=(s-i)*l*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:p,rotateX:y,rotateY:function(e,t,r){const n=Math.sin(r),s=Math.cos(r),i=t[0],o=t[1],a=t[2],u=t[3],l=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s-l*n,e[1]=o*s-c*n,e[2]=a*s-h*n,e[3]=u*s-f*n,e[8]=i*n+l*s,e[9]=o*n+c*s,e[10]=a*n+h*s,e[11]=u*n+f*s,e},rotateZ:function(e,t,r){const n=Math.sin(r),s=Math.cos(r),i=t[0],o=t[1],a=t[2],u=t[3],l=t[4],c=t[5],h=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s+l*n,e[1]=o*s+c*n,e[2]=a*s+h*n,e[3]=u*s+f*n,e[4]=l*s-i*n,e[5]=c*s-o*n,e[6]=h*s-a*n,e[7]=f*s-u*n,e},scale:d,set:o,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:L,subtract:B,targetTo:function(e,t,r,n){const s=t[0],i=t[1],o=t[2],a=n[0],u=n[1],l=n[2];let c=s-r[0],h=i-r[1],f=o-r[2],d=c*c+h*h+f*f;d>0&&(d=1/Math.sqrt(d),c*=d,h*=d,f*=d);let p=u*f-l*h,y=l*c-a*f,m=a*h-u*c;return d=p*p+y*y+m*m,d>0&&(d=1/Math.sqrt(d),p*=d,y*=d,m*=d),e[0]=p,e[1]=y,e[2]=m,e[3]=0,e[4]=h*m-f*y,e[5]=f*p-c*m,e[6]=c*y-h*p,e[7]=0,e[8]=c,e[9]=h,e[10]=f,e[11]=0,e[12]=s,e[13]=i,e[14]=o,e[15]=1,e},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},90629(e,t,r){r.d(t,{Lz:()=>s,PN:()=>i,cr:()=>o,gs:()=>u,r_:()=>l,tc:()=>a}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function s(e){return e?e/72*96:0}function i(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(n);if(t){const r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),s=e.startsWith("-"),o="px"===n?i(r):r;return s?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function a(e=0,t=0){return{x:e,y:t}}function u(e=0,t=0){return[e,t]}function l(e=0,t=0,r=0){return[e,t,r]}},44794(e,t,r){r.d(t,{v:()=>a});var n=r(4718),s=r(62788),i=r(95488);class o{constructor(e,t){this._observable=new i.I,this._value=e,this._equalityFunction=t}get value(){return(0,s.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=n.gh){return new o(e,t)}},4197(e,t,r){r.d(t,{Vj:()=>c,cj:()=>l,jh:()=>i,l5:()=>a,yH:()=>u});var n=r(34275),s=r(9093);function i(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function u(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const r=i(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}function l(e){return[...e]}function c(e){const t=(0,s.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>I,C:()=>o,DC:()=>f,Ej:()=>E,Ie:()=>M,Jt:()=>A,Lu:()=>T,Ne:()=>v,RF:()=>h,TF:()=>g,VL:()=>p,aI:()=>B,fA:()=>a,gE:()=>l,gX:()=>_,hZ:()=>S,iT:()=>d,is:()=>x,pg:()=>b,uJ:()=>m,vI:()=>R,vY:()=>u,vt:()=>i,w1:()=>c,yr:()=>y}),r(35522);var n=r(5443),s=(r(19419),r(4197));function i(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function a(e,t,r,n,s,o,a=i()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=s,a[5]=o,a}function u(e,t=i()){return function(e,t,r,n=i()){return S(n,w),function(e,t,r=0,n=t.length/3){let s=e[0],i=e[1],o=e[2],a=e[3],u=e[4],l=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),i=Math.min(i,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),u=Math.max(u,t[r+3*e+1]),l=Math.max(l,t[r+3*e+2]);e[0]=s,e[1]=i,e[2]=o,e[3]=a,e[4]=u,e[5]=l}(n,e,t,r),n}(e,0,e.length/3,t)}function l(e,t=(0,s.jh)(24)){const[r,n,i,o,a,u]=e;return t[0]=r,t[1]=n,t[2]=i,t[3]=r,t[4]=n,t[5]=u,t[6]=r,t[7]=a,t[8]=i,t[9]=r,t[10]=a,t[11]=u,t[12]=o,t[13]=n,t[14]=i,t[15]=o,t[16]=n,t[17]=u,t[18]=o,t[19]=a,t[20]=i,t[21]=o,t[22]=a,t[23]=u,t}function c(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function p(e){return e[0]>=e[3]?0:e[3]-e[0]}function y(e){return e[1]>=e[4]?0:e[4]-e[1]}function m(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){const t=p(e),r=m(e),n=y(e);return t*t+r*r+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+p(e)/2,t[1]=e[1]+y(e)/2,t[2]=e[2]+m(e)/2,t}function E(e,t=[0,0,0]){return t[0]=p(e),t[1]=y(e),t[2]=m(e),t}function b(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function T(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function v(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function R(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function M(e){return e?S(e,w):i(w)}function A(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function I(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function x(e){return 6===e.length}function B(e,t,r){if(null==e||null==t)return e===t;if(!x(e)||!x(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];i(),r.d(t,["qv",0,w,"v_",0,N])},13030(e,t,r){r.d(t,{Y$:()=>m,XW:()=>y,qB:()=>I,Qt:()=>W,My:()=>X,bf:()=>Q,jZ:()=>R,j0:()=>S,Sx:()=>M,E$:()=>A,Qy:()=>ne,h:()=>P,P:()=>U,SL:()=>N,dy:()=>te,ES:()=>se,gH:()=>_,ZD:()=>g,si:()=>x,mJ:()=>z,UL:()=>J,D6:()=>j,Yi:()=>F,An:()=>V,LC:()=>C,xs:()=>b,EC:()=>E,Xm:()=>B,Vp:()=>$,zD:()=>K,m8:()=>Y,nS:()=>q,H$:()=>k,eI:()=>O,td:()=>re,Eq:()=>v,jz:()=>T,Aj:()=>w,E7:()=>H,Y4:()=>ee,TX:()=>Z,Uz:()=>D,ml:()=>G,XP:()=>L});var n=r(34727),s=r(37585),i=r(48163),o=r(78955),a=r(91829);class u{static{this.ElementCount=9}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;for(let e=0;e<9;++e)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=16}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){this.copyFromTypedBuffer(e,t.typedBuffer,r*t.typedBufferStride)}copyFromTypedBuffer(e,t,r){const n=this.typedBuffer;let s=e*this.typedBufferStride;for(let e=0;e<16;++e)n[s++]=t[r++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=1}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}get(e){return this.typedBuffer[e*this.typedBufferStride]}set(e,t){this.typedBuffer[e*this.typedBufferStride]=t}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=2}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,s.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e]=t[1]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e]=r}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var f=r(35522);class d{static{this.ElementCount=3}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,f.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1],this.typedBuffer[e+2])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e]=t[2]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,n){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e]=n}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(e,t,r=0,n,s){this.TypedArrayConstructor=e,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const o=0===t.byteLength?0:r;this.typedBuffer=null==s?new i(t,o):new i(t,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){const n=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,n,this.stride,n+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,o.hZ)(t,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e++]=t[2],this.typedBuffer[e]=t[3]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,n,s){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e++]=n,this.typedBuffer[e]=s}copyFrom(e,t,r){const n=this.typedBuffer,s=t.typedBuffer;let i=e*this.typedBufferStride,o=r*t.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class y extends c{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class m extends c{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class g extends h{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="f16"}}class _ extends h{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="f32"}}class E extends d{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(E,e,t)}static{this.ElementType="f16"}}class b extends d{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(b,e,t)}static fromTypedArray(e,t){return new b(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class T extends p{constructor(e,t=0,r,n){super(Float16Array,e,t,r,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(T,e,t)}static{this.ElementType="f16"}}class v extends p{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(v,e,t)}static{this.ElementType="f32"}}class R extends u{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(R,e,t)}static{this.ElementType="f32"}}class S extends u{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(S,e,t)}static{this.ElementType="f64"}}class M extends l{constructor(e,t=0,r,n){super(Float32Array,e,t,r,n),this.elementType="f32"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="f32"}}class A extends l{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(A,e,t)}static{this.ElementType="f64"}}class I extends c{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="f64"}}class x extends h{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(x,e,t)}static{this.ElementType="f64"}}class B extends d{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(B,e,t)}static fromTypedArray(e,t){return new B(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class w extends p{constructor(e,t=0,r,n){super(Float64Array,e,t,r,n),this.elementType="f64"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="f64"}}class N extends c{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="u8"}}class C extends h{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="u8"}}class O extends d{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(O,e,t)}static fromTypedArray(e,t){return new O(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class L extends p{constructor(e,t=0,r,n){super(Uint8Array,e,t,r,n),this.elementType="u8"}slice(e,t){return this.sliceBuffer(L,e,t)}static{this.ElementType="u8"}}class P extends c{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="u16"}}class F extends h{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(F,e,t)}static{this.ElementType="u16"}}class q extends d{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(q,e,t)}static{this.ElementType="u16"}}class D extends p{constructor(e,t=0,r,n){super(Uint16Array,e,t,r,n),this.elementType="u16"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="u16"}}class U extends c{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(U,e,t)}static{this.ElementType="u32"}}class V extends h{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="u32"}}class k extends d{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="u32"}}class G extends p{constructor(e,t=0,r,n){super(Uint32Array,e,t,r,n),this.elementType="u32"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="u32"}}class Q extends c{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="i8"}}class j extends h{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="i8"}}class Y extends d{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Y,e,t)}static{this.ElementType="i8"}}class Z extends p{constructor(e,t=0,r,n){super(Int8Array,e,t,r,n),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Z,e,t)}static{this.ElementType="i8"}}class W extends c{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i16"}}class z extends h{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="i16"}}class $ extends d{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer($,e,t)}static{this.ElementType="i16"}}class H extends p{constructor(e,t=0,r,n){super(Int16Array,e,t,r,n),this.elementType="i16"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="i16"}}class X extends c{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(X,e,t)}static{this.ElementType="i32"}}class J extends h{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="i32"}}class K extends d{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="i32"}}class ee extends p{constructor(e,t=0,r,n){super(Int32Array,e,t,r,n),this.elementType="i32"}slice(e,t){return this.sliceBuffer(ee,e,t)}static{this.ElementType="i32"}}class te extends N{constructor(e,t=0,r,n){super(e,t,r,n)}get(e){return this.typedBuffer[e*this.typedBufferStride]/255}set(e,t){this.typedBuffer[e*this.typedBufferStride]=Math.round(255*(0,n.qE)(t,0,1))}slice(e,t){return this.sliceBuffer(te,e,t)}}class re extends L{constructor(e,t=0,r,n){super(e,t,r,n)}getVec(e,t){return(0,o.hs)(t,super.getVec(e,t),1/255)}setVec(e,t){(0,o.jk)(oe,(0,o.T9)(oe,t,a.uY),a.Un),(0,o.hs)(oe,oe,255),(0,o.LI)(oe,oe),super.setVec(e,oe)}get(e,t){return super.get(e,t)/255}set(e,t,r){super.set(e,t,Math.round(255*(0,n.qE)(r,0,1)))}setValues(e,t,r,n,s){(0,o.hZ)(oe,t,r,n,s),this.setVec(e,oe)}slice(e,t){return this.sliceBuffer(re,e,t)}}class ne extends W{constructor(e,t=0,r,n){super(e,t,r,n)}get(e){return Math.max(super.get(e)/32767,-1)}set(e,t){super.set(e,Math.round(32767*(0,n.qE)(t,-1,1)))}slice(e,t){return this.sliceBuffer(ne,e,t)}}class se extends z{constructor(e,t=0,r,n){super(e,t,r,n)}getVec(e,t){return(0,s.hZ)(ie,-1,-1),(0,s.T9)(t,(0,s.hs)(t,super.getVec(e,t),1/32767),ie)}setVec(e,t){(0,s.qE)(ie,t,i.IA,i.Un),(0,s.hs)(ie,ie,32767),(0,s.LI)(ie,ie),super.setVec(e,ie)}get(e,t){return Math.max(super.get(e,t)/32767,-1)}set(e,t,r){super.set(e,t,Math.round(32767*(0,n.qE)(r,-1,1)))}setValues(e,t,r){(0,s.hZ)(ie,t,r),this.setVec(e,ie)}slice(e,t){return this.sliceBuffer(se,e,t)}}const ie=(0,i.vt)(),oe=(0,a.vt)()},65864(e,t,r){r.d(t,{rS:()=>c,xD:()=>f});var n=r(5443),s=r(91075),i=r(48526),o=r(86738),a=r(39829),u=r(82799),l=r(60408);function c(e){return null==e?null:e instanceof s.A?e:(0,l.fT)(e)?o.A.fromJSON(e):(0,l.Rg)(e)?u.A.fromJSON(e):(0,l.Bi)(e)?a.A.fromJSON(e):(0,l.U9)(e)?i.A.fromJSON(e):(0,l.ZC)(e)?n.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:u.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:i.A,esriGeometryMultiPatch:a.A};function f(e){return e&&h[e]||null}},50498(e,t,r){var n=r(66552),s=r(5443),i=r(91075),o=r(48526),a=r(86738),u=r(39829),l=r(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:i.A,key:"type",typeMap:{extent:s.A,multipoint:o.A,point:a.A,polyline:l.A,polygon:u.A}},d=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,h,"gy",0,c,"iI",0,d,"yR",0,f])},49013(e,t,r){r.r(t),r.d(t,{default:()=>mt});var n=r(32198),s=r(4576),i=r(69540),o=r(49186),a=r(36563),u=r(44208),l=r(53966),c=r(25728),h=r(17676),f=r(36708),d=r(91429),p=r(87024),y=r(4146),m=r(52136),g=r(18768),_=r(69208),E=r(34287),b=r(8303),T=r(25036),v=r(58947),R=r(10873),S=r(10292),M=r(58083),A=r(9093),I=r(35522),x=r(51850),B=r(34727),w=r(49208),N=r(79258);function C(e,t,r,n){const s=n+t;if(s<n/2||r>s)return Number.MAX_VALUE;const i=Math.abs(L*e)+Math.asin(r/s);return i>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(i)}const O=(0,x.vt)(),L=(0,B.kU)(1);var P=r(27993),F=(r(73941),r(16930)),q=r(98764),D=r(4341),U=r(19419),V=r(11964),k=r(27921),G=r(71351),Q=r(44280),j=r(32114);const Y=()=>l.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function Z(e=ce){return{plane:(0,k.vt)(e.plane),origin:(0,x.o8)(e.origin),basis1:(0,x.o8)(e.basis1),basis2:(0,x.o8)(e.basis2)}}function W(e,t=Z()){return z(e.origin,e.basis1,e.basis2,t)}function z(e,t,r,n=Z()){return(0,I.C)(n.origin,e),(0,I.C)(n.basis1,t),(0,I.C)(n.basis2,r),$(n),function(e,t){Math.abs((0,I.Om)(e.basis1,e.basis2)/((0,I.Bw)(e.basis1)*(0,I.Bw)(e.basis2)))>1e-6&&Y().warn(t,"Provided basis vectors are not perpendicular"),Math.abs((0,I.Om)(e.basis1,ie(e)))>1e-6&&Y().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,I.Om)(ie(e),e.origin)-e.plane[3])>1e-6&&Y().warn(t,"Plane offset is not consistent with plane origin")}(n,"fromValues()"),n}function $(e){(0,k.mR)(e.basis2,e.basis1,e.origin,e.plane)}function H(e,t,r){e!==r&&W(e,r);const n=(0,I.hs)(j.rq.get(),ie(e),t);return(0,I.WQ)(r.origin,r.origin,n),r.plane[3]-=t,r}function X(e,t=Z()){const r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return(0,I.hZ)(t.origin,e[0]+r,e[1]+n,0),(0,I.hZ)(t.basis1,r,0,0),(0,I.hZ)(t.basis2,0,n,0),(0,k.fA)(0,0,1,0,t.plane),t}function J(e,t,r){return!!(0,k.Ui)(e.plane,t,r)&&oe(e,r)}function K(e,t,r){const n=he.get();le(e,t,n,he.get());let s=Number.POSITIVE_INFINITY;for(const i of ye){const o=ue(e,i,fe.get()),a=j.rq.get();if((0,k.T7)(n,o,a)){const e=(0,I.oW)(j.rq.get(),t.origin,a),n=Math.abs((0,B.XM)((0,I.Om)(t.direction,e)));n<s&&(s=n,(0,I.C)(r,a))}}return s===Number.POSITIVE_INFINITY?ee(e,t,r):r}function ee(e,t,r){if(J(e,t,r))return r;const n=he.get(),s=he.get();le(e,t,n,s);let i=Number.POSITIVE_INFINITY;for(const o of ye){const a=ue(e,o,fe.get()),u=j.rq.get();if((0,k.gv)(n,a,u)){const e=(0,G.kb)(t,u);if(!(0,k.BX)(s,u))continue;e<i&&(i=e,(0,I.C)(r,u))}}return ne(e,t.origin)<i&&te(e,t.origin,r),r}function te(e,t,r){const n=(0,k._I)(e.plane,t,j.rq.get()),s=(0,V.H6)(ae(e,e.basis1),n,-1,1,j.rq.get()),i=(0,V.H6)(ae(e,e.basis2),n,-1,1,j.rq.get());return(0,I.Re)(r,(0,I.WQ)(j.rq.get(),s,i),e.origin),r}function re(e,t,r){const{origin:n,basis1:s,basis2:i}=e,o=(0,I.Re)(j.rq.get(),t,n),a=(0,Q.gr)(s,o),u=(0,Q.gr)(i,o),l=(0,Q.gr)(ie(e),o);return(0,I.hZ)(r,a,u,l)}function ne(e,t){const r=re(e,t,j.rq.get()),{basis1:n,basis2:s}=e,i=(0,I.Bw)(n),o=(0,I.Bw)(s),a=Math.max(Math.abs(r[0])-i,0),u=Math.max(Math.abs(r[1])-o,0),l=r[2];return a*a+u*u+l*l}function se(e,t){const r=-e.plane[3];return(0,Q.gr)(ie(e),t)-r}function ie(e){return(0,k.Qj)(e.plane)}function oe(e,t){const r=(0,I.Re)(j.rq.get(),t,e.origin),n=(0,I.m3)(e.basis1),s=(0,I.m3)(e.basis2),i=(0,I.Om)(e.basis1,r),o=(0,I.Om)(e.basis2,r);return-i-n<0&&i-n<0&&-o-s<0&&o-s<0}function ae(e,t){const r=fe.get();return(0,I.C)(r.origin,e.origin),(0,I.C)(r.vector,t),r}function ue(e,t,r){const{basis1:n,basis2:s,origin:i}=e,o=(0,I.hs)(j.rq.get(),n,t.origin[0]),a=(0,I.hs)(j.rq.get(),s,t.origin[1]);(0,I.WQ)(r.origin,o,a),(0,I.WQ)(r.origin,r.origin,i);const u=(0,I.hs)(j.rq.get(),n,t.direction[0]),l=(0,I.hs)(j.rq.get(),s,t.direction[1]);return(0,I.hs)(r.vector,(0,I.WQ)(u,u,l),2),r}function le(e,t,r,n){const s=ie(e);(0,k.mR)(s,t.direction,t.origin,r),(0,k.mR)((0,k.Qj)(r),s,t.origin,n)}const ce={plane:(0,k.vt)(),origin:(0,x.fA)(0,0,0),basis1:(0,x.fA)(1,0,0),basis2:(0,x.fA)(0,1,0)},he=new D.I(k.vt),fe=new D.I(V.vt),de=(0,x.vt)(),pe=new D.I(()=>Z()),ye=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],me=(0,A.vt)(),ge=(0,A.vt)();Object.freeze(Object.defineProperty({__proto__:null,altitudeAt:se,axisAt:function(e,t,r,n){return function(e,t,r){switch(t){case 0:(0,I.C)(r,e.basis1),(0,I.S8)(r,r);break;case 1:(0,I.C)(r,e.basis2),(0,I.S8)(r,r);break;case 2:(0,I.C)(r,ie(e))}return r}(e,r,n)},cameraFrustumCoverage:function(e,t){return(t-e)/t},closestPoint:ee,closestPointOnSilhouette:K,copy:W,copyWithoutVerify:function(e,t){(0,I.C)(t.origin,e.origin),(0,I.C)(t.basis1,e.basis1),(0,I.C)(t.basis2,e.basis2),(0,k.C)(t.plane,e.plane)},create:Z,distance:function(e,t){return Math.sqrt(ne(e,t))},distance2:ne,distanceToSilhouette:function(e,t){let r=Number.NEGATIVE_INFINITY;for(const n of ye){const s=ue(e,n,fe.get()),i=(0,V.kb)(s,t);i>r&&(r=i)}return Math.sqrt(r)},elevate:H,equals:function(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&(0,I.t2)(e.basis1,t.basis1)&&(0,I.t2)(e.basis2,t.basis2)&&(0,I.t2)(e.origin,t.origin)},extrusionContainsPoint:function(e,t){return(0,k.mN)(e.plane,t)>0&&oe(e,t)},fromAABoundingRect:X,fromValues:z,getExtent:function(e,t){const r=e.basis1[0],n=e.basis2[1],[s,i]=e.origin;return(0,U.fA)(s-r,i-n,s+r,i+n,t)},intersectRay:J,intersectRayClosestSilhouette:function(e,t,r){if(J(e,t,r))return r;const n=K(e,t,j.rq.get());return(0,I.WQ)(r,t.origin,(0,I.hs)(j.rq.get(),t.direction,(0,I.Io)(t.origin,n)/(0,I.Bw)(t.direction))),r},normal:ie,projectPoint:te,projectPointLocal:re,rotate:function(e,t,r,n){return e!==n&&W(e,n),(0,M.$0)(ge,t,r),(0,I.Z0)(n.basis1,e.basis1,ge),(0,I.Z0)(n.basis2,e.basis2,ge),$(n),n},setAltitudeAt:function(e,t,r,n){const s=se(e,t),i=(0,I.hs)(de,ie(e),r-s);return(0,I.WQ)(n,t,i),n},setExtent:function(e,t,r){return X(t,r),H(r,se(e,e.origin),r),r},transform:function(e,t,r){return e!==r&&W(e,r),(0,M.B8)(me,t),(0,M.mg)(me,me),(0,I.Z0)(r.basis1,e.basis1,me),(0,I.Z0)(r.basis2,e.basis2,me),(0,I.Z0)((0,k.Qj)(r.plane),(0,k.Qj)(e.plane),me),(0,I.Z0)(r.origin,e.origin,t),(0,k.mP)(r.plane,r.plane,r.origin),r},up:ce,updateUnboundedPlane:$,wrap:function(e,t,r){const n=pe.get();return n.origin=e,n.basis1=t,n.basis2=r,n.plane=(0,k.LV)(0,0,0,0),$(n),n}},Symbol.toStringTag,{value:"Module"}));var _e=r(94008);(0,x.vt)(),(0,x.vt)();var Ee=r(89707);class be extends Ee.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new _e.iy(0,0,0,-1),this._serviceMbsInRenderSR=new _e.iy(0,0,0,-1),this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),this._serviceMbsInRenderSR}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class Te extends be{constructor(e,t,r,n,s,i,o,a,u,l,c){super(e,r),this.index=t,this.childCount=n,this.level=s,this.resources=i,this.version=o,this.lodMetric=a,this.maxError=u,this.numFeatures=l,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new ve,this.serviceObbInIndexSR=c}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class ve{constructor(){this._data=[0,0,0,ve.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=ve.invalidRadius}get valid(){return this._data[3]!==ve.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;const n=this.getAxis(Re),{center:s,radius:i}=e.boundingSphere,o=i+r;return 1===t?this.radius>Se||function(e,t,r,n){const s=(0,I.Bw)(r);if(s<=n)return!0;const i=(0,I.Om)(e,r);if(i<=0)return-i<=n;const o=(0,B.qE)(i/s,-1,1),a=Math.sqrt(1-o*o),u=(0,B.qE)(n/s,0,1);return a*Math.sqrt(1-u*u)-u*o<=t}(n,this.radius,s,o):function(e,t,r,n){const s=r[0]-e[0],i=r[1]-e[1],o=t+n;return s*s+i*i<=o*o}(n,this.radius,s,o)&&function(e,t,r,n,s){for(const i of s){const s=i[0],o=i[1],a=i[2],u=a>0?r:n;if(s*e[0]+o*e[1]+a*u+i[3]-Math.hypot(s,o)*t>0)return!1}return!0}(n,this.radius,s[2]-o,s[2]+o,e.planes)}}const Re=(0,x.vt)(),Se=.9;var Me=r(25992),Ae=r(66480),Ie=r(57005),xe=r(4431),Be=r(62747),we=r(58682),Ne=r(92359);class Ce{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Ae.Rm)(e),this._vertexSpatialReference=(0,Ae.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,q.lO)(t):t.isGeographic?F.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,w.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,w.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(Ne.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){const e={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(e,this.frameTask,!1);try{const e=this._descriptor;if("point"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");const t=await e.project(this._indexSpatialReference,this._signal);(0,h.Te)(this._signal),null==t&&this._throwSpatialReferenceMismatchError();const r=t.coordinates[0],n=function(e,t,r,n,s){const i=(0,x.fA)(e,t,r),o=(0,x.fA)(e,t,r-1e3),a=(0,x.vt)(),u=(0,x.vt)();return(0,P.F)(i,n,a,s)&&(0,P.F)(o,n,u,s)?(0,G.Cr)(a,u):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return null==n&&this._throwSpatialReferenceMismatchError(),this._queryRay=n,await this.visitRoot(),(0,h.Te)(this._signal),r.z=this._highest===-1/0?Pe:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){const t=this._queryRay,r=new Ie.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;const t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Ie.ab.fromJSON(e.obb));const r=new _e.iy;return!function(e,t,r,n){if(null==e||null==t||null==n)return!1;const s=(0,w.Tp)(t,n);if(null==s?.projector)return!1;if(s.projector===w.pO)return r.copyFrom(e),!0;const{source:i,dest:o,projector:a}=s;if(3===o.spatialReferenceId){const t=w.w5[i.spatialReferenceId][2];return null!=t&&(t(e.center,0,O,0),(0,w.s7)(O,0,r.center,0),r.radius=C(O[1],e.center[2],e.radius,N.$O.radius),!0)}if(2!==i.spatialReferenceId&&5!==i.spatialReferenceId||11!==o.spatialReferenceId){a(e.center,0,r.center,0);const t=i.metersPerUnit??1,n=o.metersPerUnit??1;r.radius=e.radius*t/n}else{const t=w.w5[i.spatialReferenceId][1],n=w.w5[1][11];let s=e.radius;null!=t&&null!=n&&(s=C(e.center[1],e.center[2],e.radius,N.$O.radius)),a(e.center,0,r.center,0),r.radius=s}return!0}(new _e.iy(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){const t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,h.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;const r=await this.transformNode(e,t);(0,h.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){const r=e.serviceMbsInIndexSR;if(null==r)return null;const n=(0,Me.C)(r,0,Fe,this._indexSpatialReference,this._intersectionSpaceSpatialReference),s={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[qe],globalTrafo:n,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:Fe,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},i=await this._layer.processElevationQueryGeometry(s,this._signal);return(0,h.Te)(this._signal),i}intersectTransformedGeometry(e,t,r){const n=e.globalTrafo;if(null==(0,M.B8)(De,n))return t;const s=this._queryRay,i=(0,I.Z0)(Ue,s.origin,De),o=(0,I.WQ)(Ve,s.origin,s.direction),a=(0,I.Z0)(ke,o,De),u=(0,I.jb)(Ge,a,i),{data:l,indices:c}=e.transformedGeometry.positionData,h=c.length/3;let f=t;return(0,we.h7)(i,u,0,h,c,l,3,!1,e=>{const t=(0,I.hs)(Qe,u,e);(0,I.WQ)(t,t,i);const s=(0,I.Z0)(je,t,n),o=Ye;if((0,P.F)(s,this._intersectionSpaceSpatialReference,o,this._layer.spatialReference)){const e=o[2]+r;f=Math.max(f,e)}}),f}async requestJSON(e){const t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,h.Te)(this._signal),t}}class Oe extends Ce{constructor(e,t,r,n){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=n.pageSize,this._rootIndex=n.rootIndex,this._urlPrefix=n.urlPrefix;const s=this._pageId(this._rootIndex),i=this._rootIndex-s*this._pageSize,o=Ie.ab.fromJSON(n.rootPage.nodes[i].obb);this._rootRayOriginZ=o.centerZ+o.radius+1,this._loadedPages.set(s,n.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){const t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);const r=this._pendingPages.get(e);if(null!=r)return r;const n=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,n),n.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),n}async _visitNode(e){const t=this._pageId(e),r=await this.getPage(t);(0,h.Te)(this._signal);const n=r.nodes[e-t*this._pageSize],s=Ie.ab.fromJSON(n.obb);if(!this._intersectsQueryObb(s))return;const{children:i}=n;if(null!=i&&i.length>0)return await Promise.all(i.map(e=>this._visitNode(e))),void(0,h.Te)(this._signal);const o=this._createNode(e,n,s);null!=o&&(await this._processLeafNode(o),(0,h.Te)(this._signal))}_createNode(e,t,r){const{mesh:n}=t;if(null==n?.geometry)return null;const s=new _e.iy(r.getCenter((0,x.vt)()),r.radius),{geometry:i,material:o}=n;return new Te(`${e}`,e,s,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${i.resource}`,geometryDefinition:i.definition,materialDefinition:o?.definition??-1},"",0,0,i.featureCount??null,r)}}class Le extends Ce{constructor(e,t,r,n){super(e,t,r),this._rootNode=n.rootNode,this._urlPrefix=n.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){const t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,h.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,h.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Ie.ab.fromJSON(e.obb)))return;const{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,h.Te)(this._signal);const n=this._createNode(e);null!=n&&(await this._processLeafNode(n),(0,h.Te)(this._signal))}_createNode(e){const{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;const n=null==e.obb?null:Ie.ab.fromJSON(e.obb),s=new _e.iy(e.mbs);return new Te(r,0,s,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,n)}}const Pe=Number.MAX_VALUE,Fe="none",qe=(0,xe.U)((0,Be.hH)(new Be.W7(!1,!1,0))),De=(0,A.vt)(),Ue=(0,x.vt)(),Ve=(0,x.vt)(),ke=(0,x.vt)(),Ge=(0,x.vt)(),Qe=(0,x.vt)(),je=(0,x.vt)(),Ye=(0,x.vt)();var Ze=r(50805),We=r(58325),ze=r(24212),$e=r(80215),He=r(97159),Xe=r(16215),Je=r(98697),Ke=r(56507),et=r(97768),tt=r(50075);class rt{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,tt._i)(e)}request(e,t,r){const n=new AbortController,s=(0,h.NY)(r,()=>n.abort()),i={...tt.Fz,signal:n.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},o=(0,Ke.A)(e,i),a={abortController:n,abortHandle:s};return this._activeRequests.add(a),o.then(({data:e})=>e).finally(()=>{a.abortController=null,a.abortHandle=(0,et.xt)(a.abortHandle),this._activeRequests.delete(a)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,et.DC)(e.abortController),e.abortHandle=(0,et.xt)(e.abortHandle)}),this._activeRequests.clear()}}var nt=r(60999),st=r(4718),it=r(84952),ot=r(59418),at=r(85334);r(91829),r(46859);var ut=r(74810),lt=r(49788);function ct(e){return e.sort((e,t)=>e.encoding-t.encoding)}const ht={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},ft={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};class dt{constructor(e,t,r,n,s,i){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=n,this._requiredAttributes=s,this._options=i,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){const t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){const n=new Map,s=(e,t)=>{if(null==e)return-1;const r=n.get(e.id);if(r)return r.usage|=t,r.id;const s=n.size;return n.set(e.id,{id:s,usage:t}),s},i=t.pbrMetallicRoughness,o=i?.baseColorFactor?(0,at.sn)(i.baseColorFactor):null,a=t.emissiveFactor,u=r&&0===i?.metallicFactor||(0,ut.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:i?.metallicRoughnessTexture,metallicFactor:i?.metallicFactor,roughnessFactor:i?.roughnessFactor}),l=u?ut.Bt[0]:i?.metallicFactor??ut.mb[0],c=u?ut.Bt[1]:i?.roughnessFactor??ut.mb[1],h="mask"===t.alphaMode?33:1,f={baseColorFactor:o?[o[0],o[1],o[2],o[3]]:[1,1,1,1],baseColorTextureId:s(i?.baseColorTexture,h),metallicRoughnessTextureId:s(i?.metallicRoughnessTexture,2),metallicFactor:l,roughnessFactor:c},d={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:"front"===t.cullFace?1:0,normalTextureId:s(t.normalTexture,4),emissiveTextureId:s(t.emissiveTexture,16),occlusionTextureId:s(t.occlusionTexture,8),emissiveFactor:a?[a[0],a[1],a[2]]:[0,0,0],metallicRoughness:f,wrapTextures:!1,hasParametersFromSource:u},p=[];return n.forEach(({usage:t},r)=>{const n=null!=e&&e[r]&&e[r].formats,s=n?ct(n.map(({name:e,format:t})=>({name:e,encoding:ht[t]}))):[];p.push({id:r,usage:t,encodings:s})}),{material:d,textures:p}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){const n=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(n,"array-buffer",r).then(e=>(0,ot.m0)(t,e))}async loadAttributes(e,t,r){const n=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),s={};for(let r=0;r<t.length;++r){const i=n[r],o=t[r];if("fulfilled"===i.status){const e=i.value;s[o.name]=e}else{const t=i.reason;(0,h.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${o.name}' on node '${e.id}'`,t)}}return s}async loadNodeData(e,t){const r=null!=this._requiredAttributes&&e.resources.attributes?(0,nt.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:n,bufferIndex:s}=function(e,t){const r={bufferDefinition:null,bufferIndex:0},n=t.resources.geometryDefinition;if(null==e||null==n||n<0)return r;const s=n>=0?e[n].geometryBuffers:null;if(null==s)return r;for(let e=0;e<s.length;e++){const t=s[e];if(null==t.compressedAttributes)r.bufferIndex=e,r.bufferDefinition=s[e];else if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}return r}(this._geometryDefinitions,e),i=!!e.resources.geometry,o=i?(0,nt.Ke)(this._loadGeometry(e.resources.geometry,s,t)):null,a=e.resources.hasSharedResource?await this._loadShared(e,t):null,l=e.resources.materialDefinition,c=this._materialAndTextures&&null!=l&&l>=0?this._materialAndTextures[l]:null!=a?function(e){const t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,n=t?e.materialDefinitions?.[t]:null,s=r?e.textureDefinitions?.[r]:null,i={alphaMode:"opaque",alphaCutoff:lt.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0};if(null!=n){const e=n.params;e.diffuse&&((0,at.KV)(e.diffuse),i.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(i.doubleSided=e.doubleSided,i.cullFace=e.doubleSided?0:2),"none"!==e.cullFace&&"front"!==e.cullFace&&"back"!==e.cullFace||(i.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(i.metallicRoughness.baseColorFactor[3]=(0,B.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||i.metallicRoughness.baseColorFactor[3]<1)&&(i.alphaMode="blend")}const o=[];if(null!=s){const e=0;!s.wrap||"repeat"!==s.wrap[0]&&"repeat"!==s.wrap[1]||(i.wrapTextures=!0);let t=1;"rgba"===s.channels&&(i.alphaMode="blend",t|=32);const r=s.images.length-1,n=s.images[r],a=e=>e?.split("/").pop(),u=Array.isArray(s.encoding)?ct(s.encoding.map((e,t)=>({name:a(n.href[t]),encoding:ft[e]||0}))):[{name:a(n.href),encoding:ft[s.encoding]||0}];o.push({id:e,usage:t,encodings:u}),i.metallicRoughness.baseColorTextureId=e}return{material:i,textures:o}}(a):null,h=c?.material,f=c?.textures??[],d=`${e.id}`,p=!i&&this._options.loadFeatureData,y=p?await this._loadFeatureData(d,t):null,m=p?function(e){if(!e)return null;for(const t of e.featureData){const e=t.geometries;if(null!=e)for(const r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(y):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:h}}],featureDataPosition:[0,0,0]},g=null==m?function(e){if(!e)return null;const t=new Array;for(const r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(y):null,_=f.length>0?(0,nt.Ke)(this.loadTextures(e,f,t)):null;let E=null,b=null;if(o){E=(0,nt.QA)(await o);const e=function(e,t){if(!e||!t?.materialDefinitions)return e;const r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,st.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,a);b=(0,ot.qs)(n,e)}const T=_?(0,nt.QA)(await _):null,v=r?(0,nt.QA)(await r):{},R=v?{attributeData:v,loadedAttributes:this._requiredAttributes}:null;if(null!=m)return{geometryData:m,attributeDataInfo:R,geometryBuffer:E,geometryDescriptor:b,requiredTextures:f,textureData:T};if(null!=g)return{pointData:g,attributeDataInfo:R,geometryBuffer:E,geometryDescriptor:b,requiredTextures:f,textureData:T};throw new Error}static _addAbsoluteHrefTexture(e,t){const r=e.textureDefinitions;if(null!=r)for(const e of Object.keys(r))for(const n of r[e].images)Array.isArray(n.href)?n.hrefConcat=n.href.map(e=>(0,it.s2)(e,t)):n.hrefConcat=(0,it.s2)(n.href,t)}static _fixTextureEncodings(e){const t=e.textureDefinitions;if(null!=t)for(const e in t){const r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){const t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{const e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};const r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,n=await this._requester.request(r,"json",t);return dt._fixTextureEncodings(n),dt._addAbsoluteHrefTexture(n,r),n}_loadTexture(e,t,r,n,s){return 4===n||1===n||2===n?this._requester.request(e,"array-buffer",s).then(e=>({id:t,usage:r,data:e,encoding:n})):this._requester.request(e,"image",s).then(e=>({id:t,usage:r,data:e,encoding:n}))}loadTextures(e,t,r){const n=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&n))return null;const s=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==s)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();const i=e.resources.texture||e.id,o=`${this._layerUrl}/nodes/${i}/textures/${s.name}`;return this._loadTexture(o,t.id,t.usage,s.encoding,r)}))}_loadFeatureData(e,t){const r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){const n=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(n,"array-buffer",r)}}var pt=r(36005);let yt=class extends((0,v.w6)((0,g.b)((0,E.q)((0,b.A)((0,T.j)((0,c.M)((0,_.d)((0,m.p)((0,i.OU)(y.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();const e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,null!=e&&e.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,f.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},f.OH),(0,f.wB)(()=>this.modifications,()=>this._modificationsGeneration++,f.OH),(0,f.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,He.f)(e,r),context:r}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new Je.Cm((e,t)=>Ne.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){const i={stack:[],error:void 0,hasError:!1};try{const u=r?.noDataValue??Number.MAX_VALUE,l=this._elevationQueryWorker,c=new AbortController;e.addHandles((0,a.rE)(c),c),(0,n.mS)(i,(0,a.Bf)((0,a.hA)(()=>e.removeHandles(c))),!1);const f=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,c.signal].filter(s.Ru));await this.load({signal:f}),(0,h.Te)(f);const d=S.q.fromGeometry(t),p={signal:f,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){const e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=l.setLegacySchema(this._elevationQueryWorkerContext,e))}const y=await async function(e,t,r){const n=await e.indexInfo;if((0,h.Te)(r.signal),null==n)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===n.type?new Oe(e,t,r,n).promise:new Le(e,t,r,n).promise}(this,d,p);(0,h.Te)(f);const m=y.coordinates[0].z===Pe;m&&(y.coordinates[0].z=u);const g=await y.project(t.spatialReference,f);(0,h.Te)(f);const _=g??d.clone(),E={geometry:_.export(),noDataValue:u};return r?.returnSampleInfo&&(E.sampleInfo=_.coordinates.map(()=>({demResolution:m?-1:1}))),E}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}_abortElevationQueriesAfterDependencyChange(){const e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){return await this._elevationQueryWorkerSetup,(0,h.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,h.QP)(e)}if((0,h.Te)(t),await this._fetchService(t),(0,h.Te)(t),null!=this._modificationsSource){const r=await We.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,h.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,h.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,Xe.S)(this.parent)||(0,$e.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new rt(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new dt(this,this.elevationQueryDataRequester,l.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){const t="Integrated mesh layers";(0,ze.XF)(l.A.getLogger(this),(0,ze.B)(t,"absolute-height",e)),(0,ze.XF)(l.A.getLogger(this),(0,ze.tW)(t,e))}};(0,n.Cg)([(0,d.MZ)({type:String,readOnly:!0})],yt.prototype,"geometryType",void 0),(0,n.Cg)([(0,d.MZ)({type:["show","hide"]})],yt.prototype,"listMode",void 0),(0,n.Cg)([(0,d.MZ)({type:["IntegratedMeshLayer"]})],yt.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,d.MZ)({json:{read:!1},readOnly:!0})],yt.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)({type:Ze.W4,readOnly:!0,clonable:!1})],yt.prototype,"nodePages",void 0),(0,n.Cg)([(0,d.MZ)({type:[Ze.uV],readOnly:!0,clonable:!1})],yt.prototype,"materialDefinitions",void 0),(0,n.Cg)([(0,d.MZ)({type:[Ze.Ot],readOnly:!0,clonable:!1})],yt.prototype,"textureSetDefinitions",void 0),(0,n.Cg)([(0,d.MZ)({type:[Ze.L0],readOnly:!0,clonable:!1})],yt.prototype,"geometryDefinitions",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],yt.prototype,"serviceUpdateTimeStamp",void 0),(0,n.Cg)([(0,d.MZ)({type:We.A,clonable:e=>e?.clone()??e}),(0,p.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],yt.prototype,"modifications",void 0),(0,n.Cg)([(0,d.MZ)({clonable:e=>e?{...e}:null})],yt.prototype,"_modificationsSource",void 0),(0,n.Cg)([(0,pt.w)(["web-scene","portal-item"],"modifications")],yt.prototype,"readModifications",null),(0,n.Cg)([(0,d.MZ)(R.Yj)],yt.prototype,"elevationInfo",null),(0,n.Cg)([(0,d.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],yt.prototype,"path",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],yt.prototype,"_elevationQueryWorker",null),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"_modificationsGeneration",void 0),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"isUsedAsGroundLayer",null),(0,n.Cg)([(0,d.MZ)()],yt.prototype,"replacesTerrain",null),(0,n.Cg)([(0,d.MZ)({clonable:!1})],yt.prototype,"elevationQueryDataRequester",null),(0,n.Cg)([(0,d.MZ)({clonable:!1})],yt.prototype,"elevationQueryNodeLoader",null),yt=(0,n.Cg)([(0,d.$K)("esri.layers.IntegratedMeshLayer")],yt);const mt=yt},10292(e,t,r){r.d(t,{q:()=>a});var n=r(48526),s=r(86738),i=r(82799),o=r(99917);class a{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new a(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,o.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const r=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),s=(0,o.project)(r,e);if(!s)return null;const i=this.coordinates.map((e,t)=>{const r=e.clone(),n=s.points[t];return r.x=n[0],r.y=n[1],r}),a=this.clone(i);return a.spatialReference=e,a}projectSync(e){if(this.spatialReference.equals(e))return this.clone();const t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,o.project)(t,e);if(!r)return null;const s=this.coordinates.map((e,t)=>{const n=e.clone(),s=r.points[t];return n.x=s[0],n.y=s[1],n}),i=this.clone(s);return i.spatialReference=e,i}static fromGeometry(e){const t=new a(e);if(e instanceof a)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{const n=e.clone(t);return n.spatialReference=r,n},t;switch(e.type){case"point":{const r=e,{hasZ:n,hasM:i}=r;return t.coordinates=n&&i?[new u(r.x,r.y,r.z,r.m)]:n?[new u(r.x,r.y,r.z)]:i?[new u(r.x,r.y,null,r.m)]:[new u(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new s.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new s.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{const r=e,{hasZ:s,hasM:i}=r;return t.coordinates=s&&i?r.points.map(e=>new u(e[0],e[1],e[2],e[3])):s?r.points.map(e=>new u(e[0],e[1],e[2])):i?r.points.map(e=>new u(e[0],e[1],null,e[2])):r.points.map(e=>new u(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{const r=e,n=[],s=[],{hasZ:o,hasM:a}=e;let l=0;for(const e of r.paths)if(s.push([l,l+e.length]),l+=e.length,o&&a)for(const t of e)n.push(new u(t[0],t[1],t[2],t[3]));else if(o)for(const t of e)n.push(new u(t[0],t[1],t[2]));else if(a)for(const t of e)n.push(new u(t[0],t[1],null,t[2]));else for(const t of e)n.push(new u(t[0],t[1]));return t.coordinates=n,t._exporter=(t,r)=>{const n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=s.map(e=>n.slice(e[0],e[1]));return new i.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class u{constructor(e,t,r=null,n=null,s=null,i=null){this.x=e,this.y=t,this.z=r,this.m=n,this.tile=s,this.elevationTile=i}clone(){return new u(this.x,this.y,this.z,this.m)}}},73179(e,t,r){r.d(t,{b:()=>u,h:()=>l});var n=r(4718),s=r(53966),i=r(84952),o=r(60694),a=r(10873);function u(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},i=(0,n.o8)(a.OZ),u=i.json?.write;return"object"==typeof u&&u&&(u.writer=function(e,t,n,s){(0,o.LS)(this,e,r,t,s)}),{...i,set:function(e){if(null==e)return void this._set("url",e);const r=(0,o.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function l(e,t){const{separator:r}=t??{},n=(0,i.An)(e.url);return null!=n&&(null!=e.dynamicDataSource?n.path=(0,i.fj)(n.path,"dynamicLayer"):null!=e.layerId&&(n.path=(0,i.fj)(n.path,r??"",e.layerId.toString()))),n}},89707(e,t,r){r.d(t,{H:()=>n});class n{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){const t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),n=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,n}expandElevationRangeValues(e,t){const r=Math.min(this.minElevation,e),n=Math.max(this.maxElevation,t),s=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,s}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>i,hH:()=>o});var n=r(1843),s=r(65786);s.Y;class i extends s.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function o(e){const t=(0,n.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>f,W6:()=>l}),r(4576),r(71511),r(44208),r(53966);var n=r(17676),s=(r(36708),r(44794),r(78659)),i=r(32198),o=r(69622),a=r(91429);let u=class extends o.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,i.Cg)([(0,a.MZ)()],u.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,i.Cg)([(0,a.MZ)()],u.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),u=(0,i.Cg)([(0,a.$K)("esri.views.support.debugFlags")],u),new u,r(49186),Symbol("Yield");const l={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[l.RESOURCE_CONTROLLER_IMMEDIATE,0],[l.RESOURCE_CONTROLLER,4],[l.SLIDE,0],[l.STREAM_DATA_LOADER,0],[l.ELEVATION_QUERY,0],[l.TERRAIN_SURFACE,1],[l.SURFACE_GEOMETRY_UPDATES,1],[l.LOD_RENDERER,2],[l.GRAPHICS_CORE,2],[l.I3S,2],[l.LYR3D,2],[l.TILES3D,3],[l.POINT_CLOUD_LAYER,2],[l.FEATURE_TILE_FETCHER,2],[l.STREAM_CONTROLLER,2],[l.SCREEN_POLYGON_INTERSECTION,0],[l.CLOUDS_GENERATOR,2],[l.OCCLUSION_QUERY,2],[l.OVERLAY,4],[l.OVERLAY_RENDERER,4],[l.STAGE,4],[l.GRAPHICS_DECONFLICTOR,4],[l.FILTER_VISIBILITY,4],[l.SCALE_VISIBILITY,4],[l.FRUSTUM_VISIBILITY,4],[l.POINT_OF_INTEREST_FREQUENT,6],[l.POINT_OF_INTEREST_INFREQUENT,30],[l.LABELER,8],[l.FEATURE_QUERY_ENGINE,8],[l.FEATURE_TILE_TREE,16],[l.FEATURE_TILE_TREE_ACTIVE,0],[l.ELEVATION_ALIGNMENT,12],[l.ELEVATION_ALIGNMENT_SCENE,14],[l.TEXT_TEXTURE_ATLAS,12],[l.TEXTURE_UNLOAD,12],[l.LINE_OF_SIGHT_TOOL,16],[l.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[l.VOLUME_MEASUREMENT,4],[l.SNAPPING,0],[l.SHADOW_ACCUMULATOR,30],[l.FLOW_GENERATOR,12],[l.GAUSSIAN_SPLAT_SORTING,2],[l.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[l.MAPVIEW_FETCH_QUEUE,0],[l.MAPVIEW_LAYERVIEW_UPDATE,2],[l.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,s.l5)(6.5),(0,s.l5)(1),(0,s.l5)(30),(0,s.l5)(1e3/30),(0,s.l5)(100),Symbol.dispose;const c=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};c.enabled=!1;class h{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,n.G4)(t)){const e=(0,n.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,n.z7)(e(c))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,n.G4)(t)){const e=(0,n.NK)();if(r)return r(e);throw e}const s=e(c);for(;;){const e=s.next(c),i=(0,n.$X)(e)?await e:e;if((0,n.G4)(t)){const e=(0,n.NK)();if(r){const t=r(e),i=s.return(null);return(0,n.$X)(i)&&await(0,n.QZ)(i),t}const t=s.throw(e);throw(0,n.$X)(t)&&await(0,n.QZ)(t),e}if(i.done)return i.value}}}const f=new h}}]);