@arcgis/core 5.1.0-next.87 → 5.1.0-next.89

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 (255) hide show
  1. package/Graphic.js +1 -1
  2. package/analysis/LineOfSightAnalysisObserver.d.ts +2 -2
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +2 -2
  4. package/applications/Components/arcadeUtils.d.ts +23 -0
  5. package/applications/Components/arcadeUtils.js +2 -0
  6. package/arcade/validation/arcadeValidator.js +1 -1
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/00e9e25269d5776f8645.js +1 -0
  9. package/assets/esri/core/workers/chunks/015fc0a17b17d69cc3bb.js +1 -0
  10. package/assets/esri/core/workers/chunks/0840e7dd62643c56ae9e.js +1 -0
  11. package/assets/esri/core/workers/chunks/0a6df243b18acae471be.js +1 -0
  12. package/assets/esri/core/workers/chunks/0cc4b3100a7a453bd058.js +1 -0
  13. package/assets/esri/core/workers/chunks/{b14c4c3f295970f731ab.js → 0e3dcf99382478181366.js} +1 -1
  14. package/assets/esri/core/workers/chunks/10cf6a70bf79f04a7208.js +1 -0
  15. package/assets/esri/core/workers/chunks/169ca3724053fc046d1b.js +1 -0
  16. package/assets/esri/core/workers/chunks/{aae40d70eb01249c1bab.js → 1e4e7111d43f01c149b3.js} +1 -1
  17. package/assets/esri/core/workers/chunks/206bdfd868a9ef88f3a8.js +1 -0
  18. package/assets/esri/core/workers/chunks/2343b1105bc4c1b4a086.js +1 -0
  19. package/assets/esri/core/workers/chunks/{2549a07f403447482f4e.js → 2dcfc4d7e76c922bcbf9.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{f89b7b0ccfbd1e5f9a0f.js → 3092184350d66c79f610.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{1ab66600579fa4232d7b.js → 3397eae416622c64e628.js} +1 -1
  22. package/assets/esri/core/workers/chunks/3469df5c4846b0cee012.js +1 -0
  23. package/assets/esri/core/workers/chunks/{26f804c92077c11c626d.js → 394812e19b6915d560b0.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{b9e163f4a898e50cc854.js → 39d6032d79720935910d.js} +1 -1
  25. package/assets/esri/core/workers/chunks/3feec3d08424b94e1bcf.js +1 -0
  26. package/assets/esri/core/workers/chunks/{d05a7ce6c1d4b883ed4c.js → 41cbde4738ae4adf973d.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{ce4dfc3a470230ddc9e4.js → 43f58604ba4a94a9167c.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{ff57a071156d8a7e47be.js → 456d269e3982c437010a.js} +1 -1
  29. package/assets/esri/core/workers/chunks/46b16501db6681dc467b.js +1 -0
  30. package/assets/esri/core/workers/chunks/48549d3d7bf0154c0afa.js +1 -0
  31. package/assets/esri/core/workers/chunks/{a401d44a5b45c05072c2.js → 4b9b9e6136c11d5d7901.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{fc6ca7ffb9f1b875059c.js → 51716e411fad624ac21c.js} +1 -1
  33. package/assets/esri/core/workers/chunks/5409369d0d637cb30257.js +1 -0
  34. package/assets/esri/core/workers/chunks/54c035cdc171998d0776.js +1 -0
  35. package/assets/esri/core/workers/chunks/{b23e677c33db6f9bac8a.js → 566f6319ded0634769e0.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{defac06f9e2b43090677.js → 73af4c947e8151d411c1.js} +2 -2
  37. package/assets/esri/core/workers/chunks/752f4e0e2961fc315dca.js +1 -0
  38. package/assets/esri/core/workers/chunks/{01bd1b86ba899c6aa4c0.js → 75c09a2fa4c34b4844c5.js} +1 -1
  39. package/assets/esri/core/workers/chunks/7ba67f1d7831a5576a5a.js +1 -0
  40. package/assets/esri/core/workers/chunks/{b2983f521d8c96becd8a.js → 7ed5b669010db58845f8.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{186bfde8c552e3b42302.js → 7ef51b0ebd560113ae7e.js} +1 -1
  42. package/assets/esri/core/workers/chunks/7f0f10946f05a09b5654.js +1 -0
  43. package/assets/esri/core/workers/chunks/81d761c837b7456ec99f.js +1 -0
  44. package/assets/esri/core/workers/chunks/83f1871d04c979fa23b7.js +1 -0
  45. package/assets/esri/core/workers/chunks/85da2987e17b6755a94e.js +1 -0
  46. package/assets/esri/core/workers/chunks/8a5a827ee557d9f9a66e.js +1 -0
  47. package/assets/esri/core/workers/chunks/{7185486c6dc28fc367a1.js → 90a8dfb03a437fe8a6e7.js} +1 -1
  48. package/assets/esri/core/workers/chunks/9c09097e390985bbac58.js +1 -0
  49. package/assets/esri/core/workers/chunks/{c9065cee85eb8dde6a42.js → a2159df718a7f2f59271.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{fce2306a1b31c6680f90.js → a232d05c0a055f398c6e.js} +1 -1
  51. package/assets/esri/core/workers/chunks/a432219de6a873f88776.js +1 -0
  52. package/assets/esri/core/workers/chunks/a508104179e08f0f268c.js +2 -0
  53. package/assets/esri/core/workers/chunks/{455d08294e0f5c5509ff.js → a6b75576d598ec161cc4.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{713ab619060bd5087479.js → adfa5c136c72c1e65770.js} +182 -157
  55. package/assets/esri/core/workers/chunks/{004af103a94d21cb4889.js → aefeb5a17bb481c95da3.js} +1 -1
  56. package/assets/esri/core/workers/chunks/b2662bfdbd1e3623ceb9.js +1 -0
  57. package/assets/esri/core/workers/chunks/b4bac22467e96be7a974.js +1 -0
  58. package/assets/esri/core/workers/chunks/{5166f204fd078dced5db.js → baea6f86b2dbe067940e.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{164ee62f2211987ad850.js → bb8d596f15fd3a0d783a.js} +1 -1
  60. package/assets/esri/core/workers/chunks/bea2fd831d7a864e5995.js +596 -0
  61. package/assets/esri/core/workers/chunks/c3e89c7c7b677bd18557.js +1 -0
  62. package/assets/esri/core/workers/chunks/cb81d524f12edcadb9bb.js +1 -0
  63. package/assets/esri/core/workers/chunks/cc0f3b9b153a0c232afe.js +1 -0
  64. package/assets/esri/core/workers/chunks/cd0c232f4e3868d91a05.js +1 -0
  65. package/assets/esri/core/workers/chunks/{3cf77b7a61f78f9bcd62.js → ceff78c9e31e3572a082.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{5cc38ac051d3d0557920.js → cfaa6e205bfc0c94a1b1.js} +1 -1
  67. package/assets/esri/core/workers/chunks/d5ad036d282df54b9ddc.js +1 -0
  68. package/assets/esri/core/workers/chunks/{475394218caaa4cd3e86.js → d7e7f3efd1d28617b808.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → d8ccc713c5ad93e7a0c3.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{e66b9d00d02fc08cbb2d.js → da008d6a3afb30d18392.js} +1 -1
  71. package/assets/esri/core/workers/chunks/dde94664110ff231a52d.js +1 -0
  72. package/assets/esri/core/workers/chunks/de3e5d82502ee15b7eae.js +1 -0
  73. package/assets/esri/core/workers/chunks/e6fe8b5fbe95de01453b.js +1 -0
  74. package/assets/esri/core/workers/chunks/ee7e9bca57160694b3c4.js +1 -0
  75. package/assets/esri/core/workers/chunks/{f37e4ae0e9be80210db0.js → f2c11f54255fd506655e.js} +1 -1
  76. package/assets/esri/core/workers/chunks/f36345ebb9851ab92453.js +1 -0
  77. package/assets/esri/core/workers/chunks/{c503c79ba5761f7abbeb.js → fa869bfe4366f7f49cca.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{d8de7fe49dba9ed589df.js → fade7b878a9498382bb2.js} +1 -1
  79. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  80. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  81. package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
  82. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ar.json +1 -1
  83. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bg.json +1 -1
  84. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bs.json +1 -1
  85. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ca.json +1 -1
  86. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_cs.json +1 -1
  87. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_da.json +1 -1
  88. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_de.json +1 -1
  89. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_el.json +1 -1
  90. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_es.json +1 -1
  91. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_et.json +1 -1
  92. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fi.json +1 -1
  93. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fr.json +1 -1
  94. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_he.json +1 -1
  95. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hr.json +1 -1
  96. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hu.json +1 -1
  97. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_id.json +1 -1
  98. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_it.json +1 -1
  99. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ja.json +1 -1
  100. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ko.json +1 -1
  101. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lt.json +1 -1
  102. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lv.json +1 -1
  103. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_nl.json +1 -1
  104. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_no.json +1 -1
  105. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pl.json +1 -1
  106. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-BR.json +1 -1
  107. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-PT.json +1 -1
  108. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ro.json +1 -1
  109. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ru.json +1 -1
  110. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sk.json +1 -1
  111. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sl.json +1 -1
  112. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sr.json +1 -1
  113. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sv.json +1 -1
  114. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_th.json +1 -1
  115. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_tr.json +1 -1
  116. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_uk.json +1 -1
  117. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_vi.json +1 -1
  118. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-CN.json +1 -1
  119. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-HK.json +1 -1
  120. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-TW.json +1 -1
  121. package/chunks/ComponentShader.glsl.js +3 -3
  122. package/chunks/GlobalIllumination.glsl.js +25 -17
  123. package/chunks/GlowBlur.glsl.js +11 -8
  124. package/chunks/OITBlend.glsl.js +1 -1
  125. package/chunks/bundle2.js +1 -1
  126. package/chunks/index.js +1 -1
  127. package/config.js +1 -1
  128. package/core/has.js +1 -1
  129. package/interfaces.d.ts +7 -3
  130. package/kernel.js +1 -1
  131. package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
  132. package/layers/graphics/data/QueryEngineResult.js +1 -1
  133. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  134. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  135. package/layers/mixins/ArcGISImageService.js +1 -1
  136. package/layers/support/SubtypeSublayer.js +1 -1
  137. package/layers/support/capabilities.js +1 -1
  138. package/layers/support/layerUtils.js +1 -1
  139. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  140. package/networks/CircuitManager.d.ts +33 -25
  141. package/networks/CircuitManager.js +1 -1
  142. package/networks/support/typeUtils.d.ts +4 -1
  143. package/networks/support/typeUtils.js +1 -1
  144. package/package.json +2 -2
  145. package/renderers/ClassBreaksRenderer.js +1 -1
  146. package/renderers/UniqueValueRenderer.js +1 -1
  147. package/renderers/support/scaleDependentSymbolUtils.js +2 -0
  148. package/rest/networks/circuits/queryCircuits.js +1 -1
  149. package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +21 -15
  150. package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
  151. package/rest/query/operations/query.js +1 -1
  152. package/rest/support/Query.js +1 -1
  153. package/support/revision.js +1 -1
  154. package/third-party-notices.txt +19 -12
  155. package/views/2d/engine/webgl/GlyphSDFCreator.js +1 -1
  156. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  157. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +2 -0
  158. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +2 -0
  159. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  160. package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +2 -0
  161. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +2 -0
  162. package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +2 -0
  163. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +2 -0
  164. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +2 -0
  165. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
  166. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  167. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  168. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  169. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  170. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
  171. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  172. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +3 -3
  173. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +22 -16
  174. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +149 -0
  175. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +2 -2
  176. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizer.js +1 -1
  177. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  178. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  179. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  180. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  181. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  182. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
  183. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
  184. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  185. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  186. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  187. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  188. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  189. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  190. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  191. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  192. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  193. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  194. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  195. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  196. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  197. package/views/3d/webgl-engine/materials/renderers/TextureBufferCache.js +1 -1
  198. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  199. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  200. package/views/3d/webgl-engine/shaders/RibbonLineLayouts.js +2 -0
  201. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  202. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  203. package/webmap/utils.js +1 -1
  204. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  205. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  206. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +64 -0
  207. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +2 -0
  208. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +3 -0
  209. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
  210. package/widgets/BatchAttributeForm/inputs/GroupInput.d.ts +2 -1
  211. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  212. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  213. package/widgets/BatchAttributeForm/inputs/types.d.ts +4 -2
  214. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  215. package/assets/esri/core/workers/chunks/0c074c46d106ca4d3bad.js +0 -1
  216. package/assets/esri/core/workers/chunks/1f16bc8c02d8c4b2f693.js +0 -1
  217. package/assets/esri/core/workers/chunks/29878b52aa12b3815230.js +0 -1
  218. package/assets/esri/core/workers/chunks/2c916b93d8a6e6b9c0d7.js +0 -1
  219. package/assets/esri/core/workers/chunks/3e72bd6dbfc52d956c06.js +0 -1
  220. package/assets/esri/core/workers/chunks/3ea5a18b264628dc37f0.js +0 -1
  221. package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +0 -1
  222. package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +0 -1
  223. package/assets/esri/core/workers/chunks/49e8144effc299dfcd66.js +0 -1
  224. package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +0 -1
  225. package/assets/esri/core/workers/chunks/65ac73de5bb133c6bf89.js +0 -1
  226. package/assets/esri/core/workers/chunks/67ec1694d6e18b7c234c.js +0 -1
  227. package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +0 -1
  228. package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +0 -1
  229. package/assets/esri/core/workers/chunks/7acf82763aeba44049d0.js +0 -1
  230. package/assets/esri/core/workers/chunks/88eb1e4320c4ada01711.js +0 -1
  231. package/assets/esri/core/workers/chunks/8af9a78cf316581ea482.js +0 -1
  232. package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +0 -1
  233. package/assets/esri/core/workers/chunks/97719271a3e4c9f2b2c9.js +0 -1
  234. package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +0 -1
  235. package/assets/esri/core/workers/chunks/a1a12552d34ea9eea130.js +0 -1
  236. package/assets/esri/core/workers/chunks/a429355534bf6cbd8304.js +0 -1
  237. package/assets/esri/core/workers/chunks/ac5999c88c27b49cd760.js +0 -1
  238. package/assets/esri/core/workers/chunks/b575292013bceef9b015.js +0 -1
  239. package/assets/esri/core/workers/chunks/bbc27d9285162696d089.js +0 -1
  240. package/assets/esri/core/workers/chunks/bc8a74da48b08309875f.js +0 -1
  241. package/assets/esri/core/workers/chunks/cd7159600ce132e32d04.js +0 -1
  242. package/assets/esri/core/workers/chunks/ce66c551b7083913eee5.js +0 -1
  243. package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
  244. package/assets/esri/core/workers/chunks/d00dddc3881fa29446e1.js +0 -1
  245. package/assets/esri/core/workers/chunks/d9c3f14eee4db7a7137b.js +0 -1
  246. package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +0 -1
  247. package/assets/esri/core/workers/chunks/dcc719e15b2e0cce1f3b.js +0 -1
  248. package/assets/esri/core/workers/chunks/f43d628d47eec7d530c7.js +0 -1
  249. package/assets/esri/core/workers/chunks/f9fe3c9867b0bdb2aec6.js +0 -596
  250. package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +0 -1
  251. package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +0 -1
  252. package/assets/esri/core/workers/chunks/fe30e61652716fcccf16.js +0 -2
  253. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +0 -132
  254. /package/assets/esri/core/workers/chunks/{defac06f9e2b43090677.js.LICENSE.txt → 73af4c947e8151d411c1.js.LICENSE.txt} +0 -0
  255. /package/assets/esri/core/workers/chunks/{fe30e61652716fcccf16.js.LICENSE.txt → a508104179e08f0f268c.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6661],{48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function a(){return i(1,1)}function u(){return i(1,0)}function s(){return i(0,1)}e.d(n,{Un:()=>c,fA:()=>i,o8:()=>o,vt:()=>r});const c=a(),f=u(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:a,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function u(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function s(){return[0,0,0]}function c(){return i(1,1,1)}function f(){return i(1,0,0)}function l(){return i(0,1,0)}function h(){return i(0,0,1)}e.d(n,{CN:()=>a,Cb:()=>b,Cw:()=>d,JP:()=>g,S:()=>c,Ul:()=>s,Un:()=>m,ci:()=>u,fA:()=>i,o8:()=>o,uY:()=>M,vt:()=>r});const M=[0,0,0],m=c(),d=f(),g=l(),b=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:g,UNIT_Z:b,ZEROS:M,clone:o,create:r,freeze:a,fromArray:u,fromValues:i,ones:c,unitX:f,unitY:l,unitZ:h,zeros:s},Symbol.toStringTag,{value:"Module"}))},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(t,n,e,r){return[t,n,e,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}e.d(n,{CN:()=>i,Un:()=>h,fA:()=>o,uY:()=>l,vt:()=>r});const l=[0,0,0,0],h=a(),M=u(),m=s(),d=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:g,UNIT_X:M,UNIT_Y:m,UNIT_Z:d,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:i,fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitW:f,unitX:u,unitY:s,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(t,n,e){e.d(n,{DF:()=>s,FD:()=>o,Ov:()=>i,ct:()=>c});let r=1e-6;function o(){return r}const i=Math.random,a=Math.PI/180,u=180/Math.PI;function s(t){return t*a}function c(t){return t*u}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:s},Symbol.toStringTag,{value:"Module"}))},37585(t,n,e){e.d(n,{C:()=>o,Cc:()=>y,Io:()=>l,Om:()=>b,Re:()=>u,S8:()=>g,WQ:()=>a,aI:()=>A,e$:()=>w,hG:()=>h,hZ:()=>i,hs:()=>f,jb:()=>x,l0:()=>p,t2:()=>v,ze:()=>d});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t}function i(t,n,e){return t[0]=n,t[1]=e,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function s(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function f(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function M(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function m(t){const n=t[0],e=t[1];return n*n+e*e}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t}function g(t,n){const e=n[0],r=n[1];let o=e*e+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]}function y(t,n,e,r){const o=n[0],i=n[1];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t}function p(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o+e[4],t[1]=e[1]*r+e[3]*o+e[5],t}function w(t,n,e,r){const o=n[0]-e[0],i=n[1]-e[1],a=Math.sin(r),u=Math.cos(r);return t[0]=o*u-i*a+e[0],t[1]=o*a+i*u+e[1],t}function v(t,n){return t[0]===n[0]&&t[1]===n[1]}function A(t,n){const e=t[0],o=t[1],i=n[0],a=n[1],u=(0,r.FD)();return Math.abs(e-i)<=u*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))}const _=M,x=u,S=s,I=c,N=l,U=h,O=m;Object.freeze(Object.defineProperty({__proto__:null,add:a,angle:function(t,n){const e=t[0],r=t[1],o=n[0],i=n[1];let a=e*e+r*r;a>0&&(a=1/Math.sqrt(a));let u=o*o+i*i;u>0&&(u=1/Math.sqrt(u));const s=(e*o+r*i)*a*u;return s>1?0:s<-1?Math.PI:Math.acos(s)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},copy:o,cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:N,distance:l,div:I,divide:c,dot:b,equals:A,exactEquals:v,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:_,length:M,lerp:y,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:S,multiply:s,negate:d,normalize:g,projectAndScale:function(t,n,e,r,o){let i=n[0]-e[0],a=n[1]-e[1];const u=(r[0]*i+r[1]*a)*(o-1);return i=r[0]*u,a=r[1]*u,t[0]=n[0]+i,t[1]=n[1]+a,t},random:function(t,n=1){const e=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:w,round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},scale:f,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},set:i,sqrDist:U,sqrLen:O,squaredDistance:h,squaredLength:m,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:x,subtract:u,transformMat2:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o,t[1]=e[1]*r+e[3]*o,t},transformMat2d:p,transformMat3:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[3]*o+e[6],t[1]=e[1]*r+e[4]*o+e[7],t},transformMat4:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[4]*o+e[12],t[1]=e[1]*r+e[5]*o+e[13],t}},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>i,C:()=>a,Cc:()=>I,DI:()=>A,Il:()=>W,Io:()=>y,Ln:()=>b,Om:()=>x,Qr:()=>l,Re:()=>c,S8:()=>_,T9:()=>d,WQ:()=>s,Z0:()=>N,_S:()=>M,aI:()=>B,ei:()=>U,fw:()=>T,g7:()=>E,gL:()=>O,hG:()=>p,hZ:()=>u,hs:()=>g,jb:()=>V,jk:()=>m,lo:()=>D,lw:()=>f,m3:()=>w,oW:()=>P,t2:()=>z,tn:()=>h,uE:()=>Z,xg:()=>j,ze:()=>v});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function f(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function d(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function b(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}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function _(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function x(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],u=e[1],s=e[2];return t[0]=o*s-i*u,t[1]=i*a-r*s,t[2]=r*u-o*a,t}function I(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function N(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function U(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function O(t,n,e){return T(t,n,e[0],e[1],e[2],e[3])}function T(t,n,e,r,o,i){const a=n[0],u=n[1],s=n[2],c=r*s-o*u,f=o*a-e*s,l=e*u-r*a,h=r*l-o*f,M=o*c-e*l,m=e*f-r*c,d=2*i;return t[0]=a+c*d+2*h,t[1]=u+f*d+2*M,t[2]=s+l*d+2*m,t}function E(t,n){_(q,t),_(C,n);const e=x(q,C);return e>1?0:e<-1?Math.PI:Math.acos(e)}const q=(0,r.vt)(),C=(0,r.vt)();function z(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function B(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],u=n[1],s=n[2],c=(0,o.FD)();return Math.abs(e-a)<=c*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-s)<=c*Math.max(1,Math.abs(i),Math.abs(s))}function P(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const V=c,F=f,L=l,j=y,D=p,W=i,Z=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:E,bezier:function(t,n,e,r,o,i){const a=1-i,u=a*a,s=i*i,c=u*a,f=3*i*u,l=3*s*a,h=s*i;return t[0]=n[0]*c+e[0]*f+r[0]*l+o[0]*h,t[1]=n[1]*c+e[1]*f+r[1]*l+o[1]*h,t[2]=n[2]*c+e[2]*f+r[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],u=e[1],s=e[2],c=o*s-i*u,f=i*a-r*s,l=r*u-o*a,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:P,dist:j,distance:y,div:L,divide:l,dot:x,equals:B,exactEquals:z,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,u=a*(2*i-3)+1,s=a*(i-2)+i,c=a*(i-1),f=a*(3-2*i);return t[0]=n[0]*u+e[0]*s+r[0]*c+o[0]*f,t[1]=n[1]*u+e[1]*s+r[1]*c+o[1]*f,t[2]=n[2]*u+e[2]*s+r[2]*c+o[2]*f,t},inverse:A,len:W,length:i,lerp:I,max:d,min:m,mul:F,multiply:f,negate:v,normalize:_,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:b,set:u,sign:M,sqrDist:D,sqrLen:Z,squaredDistance:p,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:V,subtract:c,transformMat3:U,transformMat4:N,transformQuat:O,transformQuatValues:T},Symbol.toStringTag,{value:"Module"}))},78955(t,n,e){e.d(n,{Bw:()=>g,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>p,S8:()=>y,T9:()=>l,WQ:()=>a,Z0:()=>v,aI:()=>_,hG:()=>d,hZ:()=>i,hs:()=>M,jk:()=>f,m3:()=>b,t2:()=>A});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function a(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}function u(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}function s(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}function c(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}function f(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function l(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function h(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function M(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}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+i*i)}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+o*o+i*i}function g(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function b(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function y(t,n){const e=n[0],r=n[1],o=n[2],i=n[3];let a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function w(t,n,e,r){const o=n[0],i=n[1],a=n[2],u=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=u+r*(e[3]-u),t}function v(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*o+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*o+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*o+e[11]*i+e[15]*a,t}function A(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function _(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],u=n[0],s=n[1],c=n[2],f=n[3],l=(0,r.FD)();return Math.abs(e-u)<=l*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(o-s)<=l*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-f)<=l*Math.max(1,Math.abs(a),Math.abs(f))}const x=u,S=s,I=c,N=m,U=d,O=g,T=b;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:N,distance:m,div:I,divide:c,dot:p,equals:_,exactEquals:A,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:O,length:g,lerp:w,max:l,min:f,mul:S,multiply:s,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:y,random:function(t,n=1){const e=r.Ov;let o,i,a,u,s,c;do{o=2*e()-1,i=2*e()-1,s=o*o+i*i}while(s>=1);do{a=2*e()-1,u=2*e()-1,c=a*a+u*u}while(c>=1);const f=Math.sqrt((1-s)/c);return t[0]=n*o,t[1]=n*i,t[2]=n*a*f,t[3]=n*u*f,t},round:h,scale:M,scaleAndAdd: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},set:i,sqrDist:U,sqrLen:T,squaredDistance:d,squaredLength:b,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:x,subtract:u,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],u=e[1],s=e[2],c=e[3],f=c*r+u*i-s*o,l=c*o+s*r-a*i,h=c*i+a*o-u*r,M=-a*r-u*o-s*i;return t[0]=f*c+M*-a+l*-s-h*-u,t[1]=l*c+M*-u+h*-a-f*-s,t[2]=h*c+M*-s+f*-u-l*-a,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,n,e){e.d(n,{$8:()=>x,Cc:()=>u,Hx:()=>g,Io:()=>A,KJ:()=>f,OS:()=>N,Sp:()=>M,XM:()=>l,YN:()=>h,ZH:()=>d,b6:()=>_,cU:()=>o,gg:()=>m,hs:()=>s,kU:()=>c,mP:()=>a,or:()=>I,pF:()=>O,pq:()=>U,qE:()=>i});const r=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function i(t,n,e){return Math.min(Math.max(t,n),e)}function a(t,n){return 0===n?0:Math.ceil(t/n)*n}function u(t,n,e){return t+(n-t)*e}function s(t,n,e,r,o){return u(r,o,(t-n)/(e-n))}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function M(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}function m(t,n,e=1e-6){return!M(t,n,e)&&t>n}function d(t,n,e=1e-6){return!M(t,n,e)&&t<n}function g(t,n,e=1e-6){return M(t,n,e)||t>n}const b=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function y(t){return b.setFloat64(0,t),b.getBigInt64(0)}const p=1000000n,w=v(1);function v(t){const n=y(t=Math.abs(t)),e=function(t){return b.setBigInt64(0,t),b.getFloat64(0)}(n<=p?p:n-p);return Math.abs(t-e)}function A(t,n,e=w){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;if(null!=e&&v(Math.min(Math.abs(t),Math.abs(n)))<e)return Math.abs(t-n)<=e;const r=y(t),o=y(n);return r<0==o<0&&!((r<o?o-r:r-o)>p)}function _(t,n,e=1e-6){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;const r=Math.abs(t-n),o=Math.abs(t),i=Math.abs(n);if(0===t||0===n||o<1e-12&&i<1e-12){if(r>.01*e)return!1}else if(r/(o+i)>e)return!1;return!0}function x(t){return S(Math.max(-U,Math.min(t,U)))}function S(t){return r[0]=t,r[0]}function I(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(M(n,1)&&M(e,1)&&M(r,1))}function N(t,n){return(t%n+n)%n}const U=S(34028234663852886e22);function O(t,n,e){if(void 0===e||0===+e)return Math[t](n);if(n=+n,e=+e,isNaN(n)||"number"!=typeof e||e%1!=0)return NaN;let r=n.toString().split("e");return r=(n=Math[t](+(r[0]+"e"+(r[1]?+r[1]-e:-e)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+e:e))}},97146(t,n,e){e.d(n,{Dg:()=>i,my:()=>a,tM:()=>f,uW:()=>o});var r=e(34275);function o(t){return i(t,!0)}function i(t,n){if(Array.isArray(t)){if(t.length<r.y9)return t}else if(t.length<r.y9)return Array.from(t);let e=!0,o=!0;return t.some((t,n)=>(e=e&&0===t,o=o&&t===n,!e&&!o)),e?function(t){if(1===t)return s;if(t<r.y9)return new Array(t).fill(0);if(t>h.length){const n=Math.max(2*h.length,t);h=new Uint8Array(n)}return new Uint8Array(h.buffer,0,t)}(t.length):o?f(t.length):(0,r.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,n){for(const e of t){if(e>=65536)return(0,r.iu)(t)?t:new Uint32Array(t);e>=256&&(n=!1)}return n?new Uint8Array(t):new Uint16Array(t)}(t,!n)}function a(t){return t<=r.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let u=l(131072);const s=[0],c=(()=>{const t=new Uint16Array(65536);for(let n=0;n<t.length;++n)t[n]=n;return t})();function f(t){return 1===t?s:t<r.y9?Array.from(new Uint16Array(c.buffer,0,t)):t<c.length?new Uint16Array(c.buffer,0,t):(t>u.length&&(u=l(Math.max(2*u.length,t))),new Uint32Array(u.buffer,0,t))}function l(t){const n=new Uint32Array(t);for(let t=0;t<n.length;t++)n[t]=t;return n}let h=new Uint8Array(65536)},10614(t,n,e){e.d(n,{Tz:()=>a,aT:()=>i});var r=e(34727),o=e(35522);function i(t,n,e,r,o,i=2,a=0){const s=1/(Math.abs(e)+Math.abs(r)+Math.abs(o)),c=e*s,f=r*s,l=o<=0?(c>=0?1:-1)*(1-Math.abs(f)):c,h=o<=0?(f>=0?1:-1)*(1-Math.abs(c)):f,M=n*i+a;t[M]=u(l),t[M+1]=u(h)}function a(t,n,e,r=2,i=0){const a=e*r+i,u=s(n[a]),c=s(n[a+1]),f=1-Math.abs(u)-Math.abs(c);return t[2]=f,f<0?(t[0]=(u>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(u))):(t[0]=u,t[1]=c),(0,o.S8)(t,t)}function u(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function s(t){return(0,r.qE)(t/32767,-1,1)}e(51850)},76216(t,n,e){e.d(n,{I$:()=>h,gr:()=>d,In:()=>g});var r=e(4431),o=e(1843),i=e(20498),a=e(13030),u=e(90239);class s{constructor(t,n,e){this.elementCount=t,this.elementType=n,this.bufferViewConstructor=e,this.byteSize=function(t){return(0,u.GJ)(t.ElementType)*t.ElementCount}(e)}}const c={u8:new s(1,"uint",a.SL),vec4u8:new s(4,"uint",a.XP),unorm8:new s(1,"float",a.dy),vec4unorm8:new s(4,"float",a.td),f16:new s(1,"float",i.SX?a.XW:a.Y$),f32:new s(1,"float",a.Y$),mat3f32:new s(9,"float",a.jZ)};class f{constructor(t,n,e,r){this._declaration=t,this._byteOffset=n,this._creationInfo=r,this._startTexel=Math.floor(n/e);const o=r.byteSize;this._numTexels=Math.ceil((n+o)/e)-this._startTexel,this._texelByteStride=e}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}class l{constructor(t,n,e,r=0){this.layout=t,this.byteOffset=r,this._bufferViews=new Map,this.buffer="number"==typeof n?new ArrayBuffer(n*t.byteStride):n,this.texelElementBuffer=new e(this.buffer,r);const o=this._bufferViews;for(const[t,n]of this.layout.fields)o.set(t,new n.bufferViewConstructor(this.buffer,r+n.byteOffset,this.layout.byteStride))}get stride(){return this.layout.byteStride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,n){const e=this._bufferViews.get(t);return null!=e&&e.elementCount===n.ElementCount&&e.elementType===n.ElementType?e:null}get usedMemory(){return this.byteLength}}const h=(0,o.BP)().vec3f("position").u16("componentIndex",{integer:!0}).freeze(),M=(0,o.BP)().vec2u8("sideness").freeze(),m=(0,r.U)(M),d=(0,o.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),g=(0,o.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),b=(0,r.U)(d,1),y=(0,r.U)(g,1);m.concat(b),m.concat(y),new class{constructor(t){this._fields=new Map,this.texelByteStride=4,this.texelElementArrayConstructor=Uint8Array;let n=0;const e=[];for(let r=0;r<t.length;++r){const o=t[r],{type:i}=o,a=c[i];e.push({declaration:o,byteOffset:n,creationInfo:a}),n+=a.byteSize}n=n+3&-4;const r=n,o=this._fields,{texelByteStride:i}=this;for(const{declaration:t,byteOffset:n,creationInfo:r}of e)o.set(t.name,new f(t,n,i,r));this.byteStride=r,this.texelStride=Math.ceil(r/i)}get stride(){return this.byteStride}get fields(){return this._fields}createBuffer(t){return new l(this,t,this.texelElementArrayConstructor)}createView(t,n){return new l(this,t,this.texelElementArrayConstructor,n)}}([{name:"color",type:"vec4unorm8"},{name:"lineWidth",type:"u8"},{name:"extensionLength",type:"u8"},{name:"materialType",type:"u8"},{name:"opacity",type:"unorm8"},{name:"elevationOffset",type:"f32"}])},93406(t,n,e){e.d(n,{K:()=>u});var r=e(34727),o=e(15142),i=e(35522),a=e(51850);function u(t,n,e){const r=t.vertices.position,o=t.vertices.componentIndex,a=m.position0,u=m.position1,f=m.faceNormal0,h=m.faceNormal1,{edges:M,normals:d}=c(t),g=M.length/4,b=n.allocate(g);let y=0;const p=g,A=e?.allocate(p);let x=0,S=0,I=0;l.length=0;for(let t=0;t<g;++t){const n=4*t;r.getVec(M.data[n],a),r.getVec(M.data[n+1],u);const e=l.pushNew();e.index=4*t,e.length=(0,i.Io)(a,u)}l.sort((t,n)=>n.length-t.length);const N=new Array,U=new Array;l.forAll(({length:t,index:c})=>{const l=M.data[c],g=M.data[c+1],p=M.data[c+2],O=M.data[c+3],T=-1===O;if(r.getVec(l,a),r.getVec(g,u),T){const t=3*p;(0,i.hZ)(f,d.data[t],d.data[t+1],d.data[t+2]),(0,i.C)(h,f),m.componentIndex=o.get(l),m.cosAngle=(0,i.Om)(f,h)}else{let t=3*p;if((0,i.hZ)(f,d.data[t],d.data[t+1],d.data[t+2]),t=3*O,(0,i.hZ)(h,d.data[t],d.data[t+1],d.data[t+2]),m.componentIndex=o.get(l),m.cosAngle=(0,i.Om)(f,h),function(t,n){return t.cosAngle>n}(m,v))return;m.cosAngle<-.9999&&(0,i.C)(h,f)}S+=t,I++,T||function(t,n){return t.cosAngle<n}(m,_)?(n.write(b,y++,m),N.push(t)):s(m,w)&&(A&&e&&e.write(A,x++,m),U.push(t))});const O=new Float32Array(N.reverse()),T=new Float32Array(U.reverse()),E=A&&e?{instancesData:A.slice(0,x),lodInfo:{lengths:T}}:void 0;return{regular:{instancesData:b.slice(0,y),lodInfo:{lengths:O}},silhouette:E,averageEdgeLength:S/I}}function s(t,n){const e=(0,r.XM)(t.cosAngle);return(0,i.oW)(g,t.position1,t.position0),e*((0,i.Om)((0,i.$A)(d,t.faceNormal0,t.faceNormal1),g)>0?-1:1)>n}function c(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors,o=t.vertices.position;h.length=M.length=0;for(let t=0;t<n;t++){const n=3*t,a=r[n],u=r[n+1],s=r[n+2],c=e[n],f=e[n+1],l=e[n+2];o.getVec(c,b),o.getVec(f,y),o.getVec(l,p),(0,i.Re)(y,y,b),(0,i.Re)(p,p,b),(0,i.$A)(b,y,p),(0,i.S8)(b,b),M.pushArray(b),(-1===a||c<f)&&(h.push(c),h.push(f),h.push(t),h.push(a)),(-1===u||f<l)&&(h.push(f),h.push(l),h.push(t),h.push(u)),(-1===s||l<c)&&(h.push(l),h.push(c),h.push(t),h.push(s))}return{edges:h,normals:M}}class f{constructor(){this.index=0,this.length=0}}const l=new o.A({allocator:t=>t||new f,deallocator:null}),h=new o.A({deallocator:null}),M=new o.A({deallocator:null}),m=new class{constructor(){this.position0=(0,a.vt)(),this.position1=(0,a.vt)(),this.faceNormal0=(0,a.vt)(),this.faceNormal1=(0,a.vt)(),this.componentIndex=0,this.cosAngle=0}},d=(0,a.vt)(),g=(0,a.vt)(),b=(0,a.vt)(),y=(0,a.vt)(),p=(0,a.vt)(),w=(0,r.kU)(4),v=Math.cos(w),A=(0,r.kU)(35),_=Math.cos(A)},44801(t,n,e){e.d(n,{o6:()=>N,HY:()=>C,hx:()=>U,Jb:()=>q});var r=e(34727),o=e(97146);function i(t,n,e){const i=Array.isArray(t),f=i?t.length/n:t.byteLength/(4*n),l=i?t:new Uint32Array(t,0,f*n),h=e?.minReduction??0,M=e?.originalIndices||null,m=M?M.length:0,d=e?.componentOffsets||null;let g=0;if(d)for(let t=0;t<d.length-1;t++){const n=d[t+1]-d[t];n>g&&(g=n)}else g=f;const b=Math.floor(1.1*g)+1;(null==c||c.length<2*b)&&(c=new Uint32Array((0,r.cU)(2*b)));for(let t=0;t<2*b;t++)c[t]=0;let y=0;const p=!!d&&!!M,w=p?m:f;let v=(0,o.my)(f);const A=new Uint32Array(m),_=1.96;let x=0!==h?Math.ceil(4*_*_/(h*h)*h*(1-h)):w,S=1,I=d?d[1]:w;for(let t=0;t<w;t++){if(t===x){const n=1-y/t;if(n+_*Math.sqrt(n*(1-n)/t)<h)return null;x*=2}if(t===I){for(let t=0;t<2*b;t++)c[t]=0;if(M)for(let t=d[S-1];t<d[S];t++)A[t]=v[M[t]];I=d[++S]}const e=p?M[t]:t,r=e*n,o=s(l,r,n);let i=o%b,u=y;for(;0!==c[2*i+1];){if(c[2*i]===o){const t=c[2*i+1]-1;if(a(l,r,t*n,n)){u=v[t];break}}i++,i>=b&&(i-=b)}u===y&&(c[2*i]=o,c[2*i+1]=e+1,y++),v[e]=u}if(0!==h&&1-y/f<h)return null;if(p){for(let t=d[S-1];t<A.length;t++)A[t]=v[M[t]];v=(0,o.uW)(A)}const N=i?new Array(y):new Uint32Array(y*n);y=0;for(let t=0;t<w;t++)v[t]===y&&(u(l,(p?M[t]:t)*n,N,y*n,n),y++);if(M&&!p){const t=new Uint32Array(m);for(let n=0;n<t.length;n++)t[n]=v[M[n]];v=(0,o.uW)(t)}return{buffer:Array.isArray(N)?N:N.buffer,indices:v,uniqueCount:y}}function a(t,n,e,r){for(let o=0;o<r;o++)if(t[n+o]!==t[e+o])return!1;return!0}function u(t,n,e,r,o){for(let i=0;i<o;i++)e[r+i]=t[n+i]}function s(t,n,e){let r=0;for(let o=0;o<e;o++)r=t[n+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let c=null;function f(t,n,e){const r=n/3,o=new Uint32Array(e+1),i=new Uint32Array(e+1),a=(t,n)=>{t<n?o[t+1]++:i[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];a(e,r),a(r,o),a(o,e)}let u=0,s=0;for(let t=0;t<e;t++){const n=o[t+1],e=i[t+1];o[t+1]=u,i[t+1]=s,u+=n,s+=e}const c=new Uint32Array(6*r),f=o[e],l=(t,n,e)=>{if(t<n){const r=o[t+1]++;c[2*r]=n,c[2*r+1]=e}else{const r=i[n+1]++;c[2*f+2*r]=t,c[2*f+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];l(e,r,n),l(r,o,n),l(o,e,n)}const h=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=c[e+2*t],r=c[e+2*t+1];let o=t-1;for(;o>=0&&c[e+2*o]>n;o--)c[e+2*o+2]=c[e+2*o],c[e+2*o+3]=c[e+2*o+1];c[e+2*o+2]=n,c[e+2*o+3]=r}};for(let t=0;t<e;t++)h(o[t],o[t+1]),h(f+i[t],f+i[t+1]);const M=new Int32Array(3*r),m=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,d=(t,n)=>{const e=m(t,n);M[3*n+e]=-1},g=(t,n,e,r)=>{const o=m(t,n);M[3*n+o]=r;const i=m(e,r);M[3*r+i]=n};for(let t=0;t<e;t++){let n=o[t];const e=o[t+1];let r=i[t];const a=i[t+1];for(;n<e&&r<a;){const e=c[2*n],o=c[2*f+2*r];e===o?(g(t,c[2*n+1],o,c[2*f+2*r+1]),n++,r++):e<o?(d(t,c[2*n+1]),n++):(d(o,c[2*f+2*r+1]),r++)}for(;n<e;)d(t,c[2*n+1]),n++;for(;r<a;)d(c[2*f+2*r],c[2*f+2*r+1]),r++}return M}var l=e(1843),h=e(76216),M=e(87811),m=e(35522),d=e(51850),g=e(10614);class b{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?A:v}write(t,n,e){S.seed=this._edgeHashFunction(e);const r=S.getIntRange(0,255),o=S.getIntRange(0,this.settings.variants-1),i=S.getFloat(),a=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,r),t.variantStroke.set(n,o),t.variantExtension.set(n,a)}}const y=new Float32Array(6),p=new Uint32Array(y.buffer),w=new Uint32Array(1);function v(t){return y[0]=t.position0[0],y[1]=t.position0[1],y[2]=t.position0[2],y[3]=t.position1[0],y[4]=t.position1[1],y[5]=t.position1[2],w[0]=31*(31*(31*(31*(31*(166811+p[0])+p[1])+p[2])+p[3])+p[4])+p[5],w[0]}function A(t){const n=y;n[0]=_(t.position0[0]),n[1]=_(t.position0[1]),n[2]=_(t.position0[2]),n[3]=_(t.position1[0]),n[4]=_(t.position1[1]),n[5]=_(t.position1[2]),w[0]=5381;for(let t=0;t<p.length;t++)w[0]=31*w[0]+p[t];return w[0]}function _(t){return Math.round(1e4*t)/1e4}const x=(0,d.vt)(),S=new M.A;var I=e(93406);function N(t){const n=U(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return T.updateSettings(t.writerSettings),E.updateSettings(t.writerSettings),(0,I.K)(n,T,E)}function U(t,n,e,r){if(n){const n=f(e,r,t.count);return new O(e,r,n,t)}const o=i(t.buffer,t.stride/4,{originalIndices:e}),a=f(o.indices,r,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:a,vertices:h.I$.createView(o.buffer)}}class O{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const T=new class{constructor(){this._commonWriter=new b}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.gr.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,m.WQ)(x,e.faceNormal0,e.faceNormal1),(0,m.S8)(x,x);const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;(0,g.aT)(r,n,x[0],x[1],x[2],o)}},E=new class{constructor(){this._commonWriter=new b}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.In.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;(0,g.aT)(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],o)}{const{typedBuffer:r,typedBufferStride:o}=t.normal2Compressed;(0,g.aT)(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],o)}}},q=(0,l.BP)().vec3f("position0").vec3f("position1"),C=(0,l.BP)().vec3f("position0").vec3f("position1").u16("componentIndex",{integer:!0})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6661],{48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function a(){return i(1,1)}function u(){return i(1,0)}function s(){return i(0,1)}e.d(n,{Un:()=>c,fA:()=>i,o8:()=>o,vt:()=>r});const c=a(),f=u(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:a,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function u(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function s(){return[0,0,0]}function c(){return i(1,1,1)}function f(){return i(1,0,0)}function l(){return i(0,1,0)}function h(){return i(0,0,1)}e.d(n,{CN:()=>a,Cb:()=>b,Cw:()=>d,JP:()=>g,S:()=>c,Ul:()=>s,Un:()=>m,ci:()=>u,fA:()=>i,o8:()=>o,uY:()=>M,vt:()=>r});const M=[0,0,0],m=c(),d=f(),g=l(),b=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:g,UNIT_Z:b,ZEROS:M,clone:o,create:r,freeze:a,fromArray:u,fromValues:i,ones:c,unitX:f,unitY:l,unitZ:h,zeros:s},Symbol.toStringTag,{value:"Module"}))},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(t,n,e,r){return[t,n,e,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}e.d(n,{CN:()=>i,Un:()=>h,fA:()=>o,uY:()=>l,vt:()=>r});const l=[0,0,0,0],h=a(),M=u(),m=s(),d=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:g,UNIT_X:M,UNIT_Y:m,UNIT_Z:d,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:i,fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitW:f,unitX:u,unitY:s,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(t,n,e){e.d(n,{DF:()=>s,FD:()=>o,Ov:()=>i,ct:()=>c});let r=1e-6;function o(){return r}const i=Math.random,a=Math.PI/180,u=180/Math.PI;function s(t){return t*a}function c(t){return t*u}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:s},Symbol.toStringTag,{value:"Module"}))},37585(t,n,e){e.d(n,{C:()=>o,Cc:()=>y,Io:()=>l,Om:()=>b,Re:()=>u,S8:()=>g,WQ:()=>a,aI:()=>A,e$:()=>w,hG:()=>h,hZ:()=>i,hs:()=>f,jb:()=>x,l0:()=>p,t2:()=>v,ze:()=>d});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t}function i(t,n,e){return t[0]=n,t[1]=e,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function s(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function f(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function M(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function m(t){const n=t[0],e=t[1];return n*n+e*e}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t}function g(t,n){const e=n[0],r=n[1];let o=e*e+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]}function y(t,n,e,r){const o=n[0],i=n[1];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t}function p(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o+e[4],t[1]=e[1]*r+e[3]*o+e[5],t}function w(t,n,e,r){const o=n[0]-e[0],i=n[1]-e[1],a=Math.sin(r),u=Math.cos(r);return t[0]=o*u-i*a+e[0],t[1]=o*a+i*u+e[1],t}function v(t,n){return t[0]===n[0]&&t[1]===n[1]}function A(t,n){const e=t[0],o=t[1],i=n[0],a=n[1],u=(0,r.FD)();return Math.abs(e-i)<=u*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))}const _=M,x=u,S=s,I=c,N=l,U=h,O=m;Object.freeze(Object.defineProperty({__proto__:null,add:a,angle:function(t,n){const e=t[0],r=t[1],o=n[0],i=n[1];let a=e*e+r*r;a>0&&(a=1/Math.sqrt(a));let u=o*o+i*i;u>0&&(u=1/Math.sqrt(u));const s=(e*o+r*i)*a*u;return s>1?0:s<-1?Math.PI:Math.acos(s)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},copy:o,cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:N,distance:l,div:I,divide:c,dot:b,equals:A,exactEquals:v,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:_,length:M,lerp:y,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:S,multiply:s,negate:d,normalize:g,projectAndScale:function(t,n,e,r,o){let i=n[0]-e[0],a=n[1]-e[1];const u=(r[0]*i+r[1]*a)*(o-1);return i=r[0]*u,a=r[1]*u,t[0]=n[0]+i,t[1]=n[1]+a,t},random:function(t,n=1){const e=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:w,round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},scale:f,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},set:i,sqrDist:U,sqrLen:O,squaredDistance:h,squaredLength:m,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:x,subtract:u,transformMat2:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o,t[1]=e[1]*r+e[3]*o,t},transformMat2d:p,transformMat3:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[3]*o+e[6],t[1]=e[1]*r+e[4]*o+e[7],t},transformMat4:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[4]*o+e[12],t[1]=e[1]*r+e[5]*o+e[13],t}},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>i,C:()=>a,Cc:()=>I,DI:()=>A,Il:()=>W,Io:()=>y,Ln:()=>b,Om:()=>x,Qr:()=>l,Re:()=>c,S8:()=>_,T9:()=>d,WQ:()=>s,Z0:()=>N,_S:()=>M,aI:()=>B,ei:()=>U,fw:()=>T,g7:()=>E,gL:()=>O,hG:()=>p,hZ:()=>u,hs:()=>g,jb:()=>V,jk:()=>m,lo:()=>D,lw:()=>f,m3:()=>w,oW:()=>P,t2:()=>z,tn:()=>h,uE:()=>Z,xg:()=>j,ze:()=>v});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function f(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function d(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function b(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}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function _(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function x(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],u=e[1],s=e[2];return t[0]=o*s-i*u,t[1]=i*a-r*s,t[2]=r*u-o*a,t}function I(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function N(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function U(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function O(t,n,e){return T(t,n,e[0],e[1],e[2],e[3])}function T(t,n,e,r,o,i){const a=n[0],u=n[1],s=n[2],c=r*s-o*u,f=o*a-e*s,l=e*u-r*a,h=r*l-o*f,M=o*c-e*l,m=e*f-r*c,d=2*i;return t[0]=a+c*d+2*h,t[1]=u+f*d+2*M,t[2]=s+l*d+2*m,t}function E(t,n){_(q,t),_(C,n);const e=x(q,C);return e>1?0:e<-1?Math.PI:Math.acos(e)}const q=(0,r.vt)(),C=(0,r.vt)();function z(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function B(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],u=n[1],s=n[2],c=(0,o.FD)();return Math.abs(e-a)<=c*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-s)<=c*Math.max(1,Math.abs(i),Math.abs(s))}function P(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const V=c,F=f,L=l,j=y,D=p,W=i,Z=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:E,bezier:function(t,n,e,r,o,i){const a=1-i,u=a*a,s=i*i,c=u*a,f=3*i*u,l=3*s*a,h=s*i;return t[0]=n[0]*c+e[0]*f+r[0]*l+o[0]*h,t[1]=n[1]*c+e[1]*f+r[1]*l+o[1]*h,t[2]=n[2]*c+e[2]*f+r[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],u=e[1],s=e[2],c=o*s-i*u,f=i*a-r*s,l=r*u-o*a,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:P,dist:j,distance:y,div:L,divide:l,dot:x,equals:B,exactEquals:z,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,u=a*(2*i-3)+1,s=a*(i-2)+i,c=a*(i-1),f=a*(3-2*i);return t[0]=n[0]*u+e[0]*s+r[0]*c+o[0]*f,t[1]=n[1]*u+e[1]*s+r[1]*c+o[1]*f,t[2]=n[2]*u+e[2]*s+r[2]*c+o[2]*f,t},inverse:A,len:W,length:i,lerp:I,max:d,min:m,mul:F,multiply:f,negate:v,normalize:_,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:b,set:u,sign:M,sqrDist:D,sqrLen:Z,squaredDistance:p,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:V,subtract:c,transformMat3:U,transformMat4:N,transformQuat:O,transformQuatValues:T},Symbol.toStringTag,{value:"Module"}))},78955(t,n,e){e.d(n,{Bw:()=>g,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>p,S8:()=>y,T9:()=>l,WQ:()=>a,Z0:()=>v,aI:()=>_,hG:()=>d,hZ:()=>i,hs:()=>M,jk:()=>f,m3:()=>b,t2:()=>A});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function a(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}function u(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}function s(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}function c(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}function f(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function l(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function h(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function M(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}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+i*i)}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+o*o+i*i}function g(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function b(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function y(t,n){const e=n[0],r=n[1],o=n[2],i=n[3];let a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function w(t,n,e,r){const o=n[0],i=n[1],a=n[2],u=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=u+r*(e[3]-u),t}function v(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*o+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*o+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*o+e[11]*i+e[15]*a,t}function A(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function _(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],u=n[0],s=n[1],c=n[2],f=n[3],l=(0,r.FD)();return Math.abs(e-u)<=l*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(o-s)<=l*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-f)<=l*Math.max(1,Math.abs(a),Math.abs(f))}const x=u,S=s,I=c,N=m,U=d,O=g,T=b;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:N,distance:m,div:I,divide:c,dot:p,equals:_,exactEquals:A,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:O,length:g,lerp:w,max:l,min:f,mul:S,multiply:s,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:y,random:function(t,n=1){const e=r.Ov;let o,i,a,u,s,c;do{o=2*e()-1,i=2*e()-1,s=o*o+i*i}while(s>=1);do{a=2*e()-1,u=2*e()-1,c=a*a+u*u}while(c>=1);const f=Math.sqrt((1-s)/c);return t[0]=n*o,t[1]=n*i,t[2]=n*a*f,t[3]=n*u*f,t},round:h,scale:M,scaleAndAdd: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},set:i,sqrDist:U,sqrLen:T,squaredDistance:d,squaredLength:b,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:x,subtract:u,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],u=e[1],s=e[2],c=e[3],f=c*r+u*i-s*o,l=c*o+s*r-a*i,h=c*i+a*o-u*r,M=-a*r-u*o-s*i;return t[0]=f*c+M*-a+l*-s-h*-u,t[1]=l*c+M*-u+h*-a-f*-s,t[2]=h*c+M*-s+f*-u-l*-a,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,n,e){e.d(n,{$8:()=>x,Cc:()=>u,Hx:()=>g,Io:()=>A,KJ:()=>f,OS:()=>N,Sp:()=>M,XM:()=>l,YN:()=>h,ZH:()=>d,b6:()=>_,cU:()=>o,gg:()=>m,hs:()=>s,kU:()=>c,mP:()=>a,or:()=>I,pF:()=>O,pq:()=>U,qE:()=>i});const r=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function i(t,n,e){return Math.min(Math.max(t,n),e)}function a(t,n){return 0===n?0:Math.ceil(t/n)*n}function u(t,n,e){return t+(n-t)*e}function s(t,n,e,r,o){return u(r,o,(t-n)/(e-n))}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function M(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}function m(t,n,e=1e-6){return!M(t,n,e)&&t>n}function d(t,n,e=1e-6){return!M(t,n,e)&&t<n}function g(t,n,e=1e-6){return M(t,n,e)||t>n}const b=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function y(t){return b.setFloat64(0,t),b.getBigInt64(0)}const p=1000000n,w=v(1);function v(t){const n=y(t=Math.abs(t)),e=function(t){return b.setBigInt64(0,t),b.getFloat64(0)}(n<=p?p:n-p);return Math.abs(t-e)}function A(t,n,e=w){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;if(null!=e&&v(Math.min(Math.abs(t),Math.abs(n)))<e)return Math.abs(t-n)<=e;const r=y(t),o=y(n);return r<0==o<0&&!((r<o?o-r:r-o)>p)}function _(t,n,e=1e-6){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;const r=Math.abs(t-n),o=Math.abs(t),i=Math.abs(n);if(0===t||0===n||o<1e-12&&i<1e-12){if(r>.01*e)return!1}else if(r/(o+i)>e)return!1;return!0}function x(t){return S(Math.max(-U,Math.min(t,U)))}function S(t){return r[0]=t,r[0]}function I(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(M(n,1)&&M(e,1)&&M(r,1))}function N(t,n){return(t%n+n)%n}const U=S(34028234663852886e22);function O(t,n,e){if(void 0===e||0===+e)return Math[t](n);if(n=+n,e=+e,isNaN(n)||"number"!=typeof e||e%1!=0)return NaN;let r=n.toString().split("e");return r=(n=Math[t](+(r[0]+"e"+(r[1]?+r[1]-e:-e)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+e:e))}},97146(t,n,e){e.d(n,{Dg:()=>i,my:()=>a,tM:()=>f,uW:()=>o});var r=e(34275);function o(t){return i(t,!0)}function i(t,n){if(Array.isArray(t)){if(t.length<r.y9)return t}else if(t.length<r.y9)return Array.from(t);let e=!0,o=!0;return t.some((t,n)=>(e=e&&0===t,o=o&&t===n,!e&&!o)),e?function(t){if(1===t)return s;if(t<r.y9)return new Array(t).fill(0);if(t>h.length){const n=Math.max(2*h.length,t);h=new Uint8Array(n)}return new Uint8Array(h.buffer,0,t)}(t.length):o?f(t.length):(0,r.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,n){for(const e of t){if(e>=65536)return(0,r.iu)(t)?t:new Uint32Array(t);e>=256&&(n=!1)}return n?new Uint8Array(t):new Uint16Array(t)}(t,!n)}function a(t){return t<=r.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let u=l(131072);const s=[0],c=(()=>{const t=new Uint16Array(65536);for(let n=0;n<t.length;++n)t[n]=n;return t})();function f(t){return 1===t?s:t<r.y9?Array.from(new Uint16Array(c.buffer,0,t)):t<c.length?new Uint16Array(c.buffer,0,t):(t>u.length&&(u=l(Math.max(2*u.length,t))),new Uint32Array(u.buffer,0,t))}function l(t){const n=new Uint32Array(t);for(let t=0;t<n.length;t++)n[t]=t;return n}let h=new Uint8Array(65536)},10614(t,n,e){e.d(n,{Tz:()=>a,aT:()=>i});var r=e(34727),o=e(35522);function i(t,n,e,r,o,i=2,a=0){const s=1/(Math.abs(e)+Math.abs(r)+Math.abs(o)),c=e*s,f=r*s,l=o<=0?(c>=0?1:-1)*(1-Math.abs(f)):c,h=o<=0?(f>=0?1:-1)*(1-Math.abs(c)):f,M=n*i+a;t[M]=u(l),t[M+1]=u(h)}function a(t,n,e,r=2,i=0){const a=e*r+i,u=s(n[a]),c=s(n[a+1]),f=1-Math.abs(u)-Math.abs(c);return t[2]=f,f<0?(t[0]=(u>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(u))):(t[0]=u,t[1]=c),(0,o.S8)(t,t)}function u(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function s(t){return(0,r.qE)(t/32767,-1,1)}e(51850)},76216(t,n,e){e.d(n,{I$:()=>h,gr:()=>d,In:()=>g});var r=e(4431),o=e(1843),i=e(20498),a=e(13030),u=e(90239);class s{constructor(t,n,e){this.elementCount=t,this.elementType=n,this.bufferViewConstructor=e,this.byteSize=function(t){return(0,u.GJ)(t.ElementType)*t.ElementCount}(e)}}const c={u8:new s(1,"uint",a.SL),vec4u8:new s(4,"uint",a.XP),unorm8:new s(1,"float",a.dy),vec4unorm8:new s(4,"float",a.td),f16:new s(1,"float",i.SX?a.XW:a.Y$),f32:new s(1,"float",a.Y$),vec3f32:new s(3,"float",a.xs),mat3f32:new s(9,"float",a.jZ)};class f{constructor(t,n,e,r){this._declaration=t,this._byteOffset=n,this._creationInfo=r,this._startTexel=Math.floor(n/e);const o=r.byteSize;this._numTexels=Math.ceil((n+o)/e)-this._startTexel,this._texelByteStride=e}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}class l{constructor(t,n,e,r=0){this.layout=t,this.byteOffset=r,this._bufferViews=new Map,this.buffer="number"==typeof n?new ArrayBuffer(n*t.byteStride):n,this.texelElementBuffer=new e(this.buffer,r);const o=this._bufferViews;for(const[t,n]of this.layout.fields)o.set(t,new n.bufferViewConstructor(this.buffer,r+n.byteOffset,this.layout.byteStride))}get stride(){return this.layout.byteStride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,n){const e=this._bufferViews.get(t);return null!=e&&e.elementCount===n.ElementCount&&e.elementType===n.ElementType?e:null}get usedMemory(){return this.byteLength}}const h=(0,o.BP)().vec3f("position").u16("componentIndex",{integer:!0}).freeze(),M=(0,o.BP)().vec2u8("sideness").freeze(),m=(0,r.U)(M),d=(0,o.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),g=(0,o.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),b=(0,r.U)(d,1),y=(0,r.U)(g,1);m.concat(b),m.concat(y),new class{constructor(t){this._fields=new Map,this.texelByteStride=4,this.texelElementArrayConstructor=Uint8Array;let n=0;const e=[];for(let r=0;r<t.length;++r){const o=t[r],{type:i}=o,a=c[i];e.push({declaration:o,byteOffset:n,creationInfo:a}),n+=a.byteSize}n=n+3&-4;const r=n,o=this._fields,{texelByteStride:i}=this;for(const{declaration:t,byteOffset:n,creationInfo:r}of e)o.set(t.name,new f(t,n,i,r));this.byteStride=r,this.texelStride=Math.ceil(r/i)}get stride(){return this.byteStride}get fields(){return this._fields}createBuffer(t){return new l(this,t,this.texelElementArrayConstructor)}createView(t,n){return new l(this,t,this.texelElementArrayConstructor,n)}}([{name:"color",type:"vec4unorm8"},{name:"lineWidth",type:"u8"},{name:"extensionLength",type:"u8"},{name:"materialType",type:"u8"},{name:"opacity",type:"unorm8"},{name:"elevationOffset",type:"f32"}])},93406(t,n,e){e.d(n,{K:()=>u});var r=e(34727),o=e(15142),i=e(35522),a=e(51850);function u(t,n,e){const r=t.vertices.position,o=t.vertices.componentIndex,a=m.position0,u=m.position1,f=m.faceNormal0,h=m.faceNormal1,{edges:M,normals:d}=c(t),g=M.length/4,b=n.allocate(g);let y=0;const p=g,A=e?.allocate(p);let x=0,S=0,I=0;l.length=0;for(let t=0;t<g;++t){const n=4*t;r.getVec(M.data[n],a),r.getVec(M.data[n+1],u);const e=l.pushNew();e.index=4*t,e.length=(0,i.Io)(a,u)}l.sort((t,n)=>n.length-t.length);const N=new Array,U=new Array;l.forAll(({length:t,index:c})=>{const l=M.data[c],g=M.data[c+1],p=M.data[c+2],O=M.data[c+3],T=-1===O;if(r.getVec(l,a),r.getVec(g,u),T){const t=3*p;(0,i.hZ)(f,d.data[t],d.data[t+1],d.data[t+2]),(0,i.C)(h,f),m.componentIndex=o.get(l),m.cosAngle=(0,i.Om)(f,h)}else{let t=3*p;if((0,i.hZ)(f,d.data[t],d.data[t+1],d.data[t+2]),t=3*O,(0,i.hZ)(h,d.data[t],d.data[t+1],d.data[t+2]),m.componentIndex=o.get(l),m.cosAngle=(0,i.Om)(f,h),function(t,n){return t.cosAngle>n}(m,v))return;m.cosAngle<-.9999&&(0,i.C)(h,f)}S+=t,I++,T||function(t,n){return t.cosAngle<n}(m,_)?(n.write(b,y++,m),N.push(t)):s(m,w)&&(A&&e&&e.write(A,x++,m),U.push(t))});const O=new Float32Array(N.reverse()),T=new Float32Array(U.reverse()),E=A&&e?{instancesData:A.slice(0,x),lodInfo:{lengths:T}}:void 0;return{regular:{instancesData:b.slice(0,y),lodInfo:{lengths:O}},silhouette:E,averageEdgeLength:S/I}}function s(t,n){const e=(0,r.XM)(t.cosAngle);return(0,i.oW)(g,t.position1,t.position0),e*((0,i.Om)((0,i.$A)(d,t.faceNormal0,t.faceNormal1),g)>0?-1:1)>n}function c(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors,o=t.vertices.position;h.length=M.length=0;for(let t=0;t<n;t++){const n=3*t,a=r[n],u=r[n+1],s=r[n+2],c=e[n],f=e[n+1],l=e[n+2];o.getVec(c,b),o.getVec(f,y),o.getVec(l,p),(0,i.Re)(y,y,b),(0,i.Re)(p,p,b),(0,i.$A)(b,y,p),(0,i.S8)(b,b),M.pushArray(b),(-1===a||c<f)&&(h.push(c),h.push(f),h.push(t),h.push(a)),(-1===u||f<l)&&(h.push(f),h.push(l),h.push(t),h.push(u)),(-1===s||l<c)&&(h.push(l),h.push(c),h.push(t),h.push(s))}return{edges:h,normals:M}}class f{constructor(){this.index=0,this.length=0}}const l=new o.A({allocator:t=>t||new f,deallocator:null}),h=new o.A({deallocator:null}),M=new o.A({deallocator:null}),m=new class{constructor(){this.position0=(0,a.vt)(),this.position1=(0,a.vt)(),this.faceNormal0=(0,a.vt)(),this.faceNormal1=(0,a.vt)(),this.componentIndex=0,this.cosAngle=0}},d=(0,a.vt)(),g=(0,a.vt)(),b=(0,a.vt)(),y=(0,a.vt)(),p=(0,a.vt)(),w=(0,r.kU)(4),v=Math.cos(w),A=(0,r.kU)(35),_=Math.cos(A)},44801(t,n,e){e.d(n,{o6:()=>N,HY:()=>C,hx:()=>U,Jb:()=>q});var r=e(34727),o=e(97146);function i(t,n,e){const i=Array.isArray(t),f=i?t.length/n:t.byteLength/(4*n),l=i?t:new Uint32Array(t,0,f*n),h=e?.minReduction??0,M=e?.originalIndices||null,m=M?M.length:0,d=e?.componentOffsets||null;let g=0;if(d)for(let t=0;t<d.length-1;t++){const n=d[t+1]-d[t];n>g&&(g=n)}else g=f;const b=Math.floor(1.1*g)+1;(null==c||c.length<2*b)&&(c=new Uint32Array((0,r.cU)(2*b)));for(let t=0;t<2*b;t++)c[t]=0;let y=0;const p=!!d&&!!M,w=p?m:f;let v=(0,o.my)(f);const A=new Uint32Array(m),_=1.96;let x=0!==h?Math.ceil(4*_*_/(h*h)*h*(1-h)):w,S=1,I=d?d[1]:w;for(let t=0;t<w;t++){if(t===x){const n=1-y/t;if(n+_*Math.sqrt(n*(1-n)/t)<h)return null;x*=2}if(t===I){for(let t=0;t<2*b;t++)c[t]=0;if(M)for(let t=d[S-1];t<d[S];t++)A[t]=v[M[t]];I=d[++S]}const e=p?M[t]:t,r=e*n,o=s(l,r,n);let i=o%b,u=y;for(;0!==c[2*i+1];){if(c[2*i]===o){const t=c[2*i+1]-1;if(a(l,r,t*n,n)){u=v[t];break}}i++,i>=b&&(i-=b)}u===y&&(c[2*i]=o,c[2*i+1]=e+1,y++),v[e]=u}if(0!==h&&1-y/f<h)return null;if(p){for(let t=d[S-1];t<A.length;t++)A[t]=v[M[t]];v=(0,o.uW)(A)}const N=i?new Array(y):new Uint32Array(y*n);y=0;for(let t=0;t<w;t++)v[t]===y&&(u(l,(p?M[t]:t)*n,N,y*n,n),y++);if(M&&!p){const t=new Uint32Array(m);for(let n=0;n<t.length;n++)t[n]=v[M[n]];v=(0,o.uW)(t)}return{buffer:Array.isArray(N)?N:N.buffer,indices:v,uniqueCount:y}}function a(t,n,e,r){for(let o=0;o<r;o++)if(t[n+o]!==t[e+o])return!1;return!0}function u(t,n,e,r,o){for(let i=0;i<o;i++)e[r+i]=t[n+i]}function s(t,n,e){let r=0;for(let o=0;o<e;o++)r=t[n+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let c=null;function f(t,n,e){const r=n/3,o=new Uint32Array(e+1),i=new Uint32Array(e+1),a=(t,n)=>{t<n?o[t+1]++:i[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];a(e,r),a(r,o),a(o,e)}let u=0,s=0;for(let t=0;t<e;t++){const n=o[t+1],e=i[t+1];o[t+1]=u,i[t+1]=s,u+=n,s+=e}const c=new Uint32Array(6*r),f=o[e],l=(t,n,e)=>{if(t<n){const r=o[t+1]++;c[2*r]=n,c[2*r+1]=e}else{const r=i[n+1]++;c[2*f+2*r]=t,c[2*f+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],o=t[3*n+2];l(e,r,n),l(r,o,n),l(o,e,n)}const h=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=c[e+2*t],r=c[e+2*t+1];let o=t-1;for(;o>=0&&c[e+2*o]>n;o--)c[e+2*o+2]=c[e+2*o],c[e+2*o+3]=c[e+2*o+1];c[e+2*o+2]=n,c[e+2*o+3]=r}};for(let t=0;t<e;t++)h(o[t],o[t+1]),h(f+i[t],f+i[t+1]);const M=new Int32Array(3*r),m=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,d=(t,n)=>{const e=m(t,n);M[3*n+e]=-1},g=(t,n,e,r)=>{const o=m(t,n);M[3*n+o]=r;const i=m(e,r);M[3*r+i]=n};for(let t=0;t<e;t++){let n=o[t];const e=o[t+1];let r=i[t];const a=i[t+1];for(;n<e&&r<a;){const e=c[2*n],o=c[2*f+2*r];e===o?(g(t,c[2*n+1],o,c[2*f+2*r+1]),n++,r++):e<o?(d(t,c[2*n+1]),n++):(d(o,c[2*f+2*r+1]),r++)}for(;n<e;)d(t,c[2*n+1]),n++;for(;r<a;)d(c[2*f+2*r],c[2*f+2*r+1]),r++}return M}var l=e(1843),h=e(76216),M=e(87811),m=e(35522),d=e(51850),g=e(10614);class b{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?A:v}write(t,n,e){S.seed=this._edgeHashFunction(e);const r=S.getIntRange(0,255),o=S.getIntRange(0,this.settings.variants-1),i=S.getFloat(),a=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,r),t.variantStroke.set(n,o),t.variantExtension.set(n,a)}}const y=new Float32Array(6),p=new Uint32Array(y.buffer),w=new Uint32Array(1);function v(t){return y[0]=t.position0[0],y[1]=t.position0[1],y[2]=t.position0[2],y[3]=t.position1[0],y[4]=t.position1[1],y[5]=t.position1[2],w[0]=31*(31*(31*(31*(31*(166811+p[0])+p[1])+p[2])+p[3])+p[4])+p[5],w[0]}function A(t){const n=y;n[0]=_(t.position0[0]),n[1]=_(t.position0[1]),n[2]=_(t.position0[2]),n[3]=_(t.position1[0]),n[4]=_(t.position1[1]),n[5]=_(t.position1[2]),w[0]=5381;for(let t=0;t<p.length;t++)w[0]=31*w[0]+p[t];return w[0]}function _(t){return Math.round(1e4*t)/1e4}const x=(0,d.vt)(),S=new M.A;var I=e(93406);function N(t){const n=U(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return T.updateSettings(t.writerSettings),E.updateSettings(t.writerSettings),(0,I.K)(n,T,E)}function U(t,n,e,r){if(n){const n=f(e,r,t.count);return new O(e,r,n,t)}const o=i(t.buffer,t.stride/4,{originalIndices:e}),a=f(o.indices,r,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:a,vertices:h.I$.createView(o.buffer)}}class O{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const T=new class{constructor(){this._commonWriter=new b}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.gr.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,m.WQ)(x,e.faceNormal0,e.faceNormal1),(0,m.S8)(x,x);const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;(0,g.aT)(r,n,x[0],x[1],x[2],o)}},E=new class{constructor(){this._commonWriter=new b}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.In.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:o}=t.normalCompressed;(0,g.aT)(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],o)}{const{typedBuffer:r,typedBufferStride:o}=t.normal2Compressed;(0,g.aT)(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],o)}}},q=(0,l.BP)().vec3f("position0").vec3f("position1"),C=(0,l.BP)().vec3f("position0").vec3f("position1").u16("componentIndex",{integer:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[668],{46140(e,t,n){n.d(t,{A:()=>i});var r=n(49186);class i{constructor(e,t,n=""){this.major=e,this.minor=t,this._context=n}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",n=this._context&&this._context+" ";throw new r.A(t+"unsupported-version",`Required major ${n}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[n,o]=e.split("."),s=/^\s*\d+\s*$/;if(!n?.match||!s.test(n))throw new r.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new r.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(n,10),l=parseInt(o,10);return new i(a,l,t)}}},6797(e,t,n){n.d(t,{Ui:()=>p});var r=n(69622),i=n(7762),o=n(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof r.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function c(e,t){return e instanceof i.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const r=l(e),i=l(t);if(0===r.length&&0===i.length)return;if(!r.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=i.filter(e=>!r.includes(e)),p=r.filter(e=>!i.includes(e)),f=r.filter(n=>i.includes(n)&&c(e,n)!==c(t,n)).concat(o,p).sort(),h=u(e);if(h&&s.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=a(e)&&a(t);for(const r of f){const i=c(e,r),o=c(t,r);let s;if((y||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(n&&n[r]&&"function"==typeof n[r])s=n[r]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&u(i)===u(o)?d(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=m?m.diff[r]=s:m={type:"partial",diff:{[r]:s}})}}return m}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},13069(e,t,n){n.d(t,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},94194(e,t,n){n.d(t,{A:()=>g});var r=n(5482),i=n(91429),o=n(7762),s=n(62885),a=(n(44208),n(53966),n(10107));let l=class extends o.A{constructor(e){super(e),this.addHandles([this.on("before-add",e=>{null==e.item&&e.preventDefault()}),this.on("after-add",e=>this._own(e.item)),this.on("after-remove",e=>this._release(e.item))])}get owner(){return this._get("owner")}set owner(e){this.destroyed||e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(o.A.ofType(this.itemType.Type))(e):new o.A(e)}};(0,r.Cg)([(0,a.MZ)()],l.prototype,"owner",null),l=(0,r.Cg)([(0,i.$K)("esri.core.support.OwningCollection")],l);var c=n(4146),u=n(63074),d=n(25036),p=n(52106),f=n(56507),h=n(7695);let m=class extends l{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,r.Cg)([(0,h.u)({Type:p.A,ensureType:(0,f.dp)(p.A)})],m.prototype,"itemType",void 0),m=(0,r.Cg)([(0,i.$K)("esri.support.GraphicsCollection")],m);var y=n(88625);let g=class extends((0,u.dM)((0,d.j)(c.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new m,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}get loaded(){return super.loaded}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}graphicChanged(e){this.emit("graphic-update",e)}};var w,v;(0,r.Cg)([(0,i.MZ)({type:y.A})],g.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,i.MZ)((w=m,v="graphics",{type:w,cast:s.H,set(e){const t=(0,s.V)(e,this._get(v),w);t&&!t.destroyed&&(t.owner=this),this._set(v,t)}}))],g.prototype,"graphics",void 0),(0,r.Cg)([(0,i.MZ)({type:["show","hide"]})],g.prototype,"listMode",void 0),(0,r.Cg)([(0,i.MZ)()],g.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],g.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({constructOnly:!0})],g.prototype,"internal",void 0),g=(0,r.Cg)([(0,i.$K)("esri.layers.GraphicsLayer")],g)},32756(e,t,n){n.d(t,{Rr:()=>a,fY:()=>c,ne:()=>l});var r=n(5482),i=n(93637),o=n(91429),s=n(91880);function a(e,t,n){if(!e)return null;const r=e.find(e=>!!e.field);if(!r)return null;const i=new s.A;return i.read(r,n),[i]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,n,r){const o=e.find(e=>!!e.field);o&&(0,i.sM)(n,[o.toJSON()],t)}}}},c=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,r.Cg)([(0,o.MZ)(l)],n.prototype,"orderBy",void 0),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],n),n}},29005(e,t,n){n.d(t,{A:()=>c});var r=n(5482),i=n(69540),o=n(66552),s=n(25482),a=n(91429);const l=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let c=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"description",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],c.prototype,"drawingTool",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"prototype",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"thumbnail",void 0),c=(0,r.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],c)},30279(e,t,n){n.d(t,{A:()=>c});var r=n(5482),i=n(69540),o=n(25482),s=n(10107),a=n(64108),l=n(62044);let c=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"alias",void 0),(0,r.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],c.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({types:l.fg,json:{write:!0}})],c.prototype,"fieldFormat",void 0),c=(0,r.Cg)([(0,a.$)("esri.layers.support.FieldConfiguration")],c)},91880(e,t,n){n.d(t,{A:()=>c});var r,i=n(5482),o=n(66552),s=n(25482),a=n(91429);const l=new o.J({asc:"ascending",desc:"descending"});let c=class extends s.o{static{r=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],c.prototype,"order",void 0),c=r=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],c)},41560(e,t,n){n.d(t,{Ch:()=>s,mW:()=>o});var r=n(34727),i=n(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,n){const o=function(e){if("manual"===c(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],u(n)),t[1]=Math.min(t[1],d(r));return t}(e);if(o&&((0,r.gg)(t,o[0])||(0,r.ZH)(n,o[1])))return"";const s=Array.from(a(e,t,n)),l=function(e,t,n){if(0===e.length)return!0;const i=u(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,r.ZH)(i,t)||(0,r.gg)(o,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],i=e[t+1];if((0,r.ZH)(u(i.minScale),d(n.maxScale)))return!0}return!1}(s,t,n)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,n){if("manual"===c(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)l(r.minScale,r.maxScale,t,n)&&(yield r)}}function l(e,t,n,i){return e=u(e),n=u(n),t=d(t),!(!(0,r.Sp)(n,e)&&(i??n)>e||(0,r.Hx)(t,n)||void 0!==i&&(0,r.Sp)(i,e))}function c(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},16194(e,t,n){n.d(t,{QX:()=>l,sS:()=>u,xY:()=>c});var r=n(4718),i=n(30279),o=n(62044),s=n(30524),a=n(41227);function l(e){const{popupTemplate:t,fieldsIndex:n}=e,r=t?.fieldInfos;if(!r?.length||!n)return;const s=[];for(const e of r){const{fieldName:t,label:r}=e,a=n.get(t);if(!a)continue;const l=r&&r!==a.alias?r:null,c=(0,o.iu)(e,a);(l||c)&&s.push(new i.A({name:a.name,alias:l,fieldFormat:c}))}return s.length?s:null}function c(e){const{fields:t}=e;if(!t?.length)return;const n=[];for(const e of t){const t=(0,o.qH)(e)?(0,o.$P)(e):null;t&&n.push(new i.A({name:e.name,fieldFormat:t}))}return n.length?n:null}function u(e,t){const{popupTemplate:n,fieldsIndex:i}=e;if(!n||!i)return;const s=function(e,t,n){t??=[],n=(0,r.o8)(n)??[];let i=!1;const s=new Map;for(const n of t){const t=e.fieldsIndex.get(n.name);t&&s.set(t.name,n)}for(const t of n){const n=e.fieldsIndex.get(t.fieldName);if(!n)continue;const r=s.get(n.name);t.label=r?.alias||n.alias,t.format=(0,o.qH)(n)&&r?.fieldFormat?(0,o.PK)(r.fieldFormat,n):null,i=!0,s.delete(n.name)}for(const t of s.values()){const r=d(e,t);r&&(n.push(r),i=!0)}return i?n:null}(e,t,n.fieldInfos);if(!s)return;const a=n.clone();return a.fieldInfos=s,a}function d(e,t){const{name:n,alias:r,fieldFormat:i}=t,l=e.fieldsIndex.get(n);if(!l||!r&&!i)return;const c=r||l.alias,u=(0,o.qH)(l)&&i?(0,o.PK)(i,l):null;return new a.A({fieldName:l.name,label:c,format:u,visible:!1,isEditable:(0,s.R$)(l,e)})}},32730(e,t,n){n.d(t,{BI:()=>f,D3:()=>d,XJ:()=>p,lc:()=>u,mX:()=>m,rU:()=>h,tH:()=>_,vK:()=>b,zA:()=>x});var r=n(799);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+i,"i"),c=new RegExp(o+"$","i");function u(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function d(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function p(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=u(e.labelExpression),t.type="conventional"),t}function f(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return m(t.expression);case"arcade":return t.expression}return null}function h(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(y);return t?.[1].trim()||null}(t.expression);case"arcade":return _(t.expression)}return null}function m(e){let t;return e?(t=(0,r.HC)(e,e=>i+'$feature["'+e+'"]'+o),t=l.test(t)?t.replace(l,""):'"'+t,t=c.test(t)?t.replace(c,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(a,' + "')):t='""',t}const y=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function _(e){if(!e)return null;let t=g.exec(e)||w.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}const b=Symbol("LabelClassInstance");function x(e){return null!=e&&"object"==typeof e&&b in e}},5757(e,t,n){n.d(t,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}},73681(e,t,n){n.d(t,{n:()=>l});var r=n(49186),i=n(53966),o=n(46140),s=n(95466),a=n(55674);class l{static async from(e,t,n){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(n))p.delete(e);p.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const f=await(0,a.xR)(e.expression,null,d);if(!f)throw new r.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!s||!s.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const m=new c(n,h);return new l(h,u,f,m)}constructor(e,t,n,r){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=n,this._reader=r}get itemNames(){return this._itemNames}evaluate(e,t,n,r){try{return this._reader.bind(e,n,r),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class c extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},98205(e,t,n){n.d(t,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>i,uY:()=>r});const r=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const n=t||s(e),r=e.valueUnit||"unknown";return"unknown"===n?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},55674(e,t,n){n.d(t,{Ad:()=>f,Gj:()=>y,QY:()=>p,lL:()=>g,xR:()=>h});var r=n(66131),i=n(49186),o=(n(44208),n(44729)),s=n(15032),a=n(65864),l=n(95466),c=n(43668),u=n(98623);const d=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const n of d)t.hasArcadeDependency(n)&&e.add(n);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,n){return m.create(e,t,n,["$feature","$view","$config"])}class m{static async create(e,t,n,r){const{arcade:o,Dictionary:s}=await(0,c.l)();let a;try{a=o.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const u={vars:r.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=o.compileScript(a,u);let p=null;null!=n&&(p=new s(n),p.immutable=!0);const f=new s;return f.immutable=!1,f.setField("scale",0),new m(e,o,a,d,t,f,p,s)}constructor(e,t,n,r,i,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=n,this._compiled=r,this._spatialReference=i,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const n=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=n?r.lY.epochToArcadeDate(i,n):r.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=o?null!=n?r.lY.epochToArcadeDate(o,n):r.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:n})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,n){const r=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=r.fields,this._boundSchema.fieldsIndex=r,this._boundSchema.spatialReference=n}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const n=this._getField(e);if(n){const t=this._boundTarget.attributes[n.name];if(null==t)return null;switch(n.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?r.lY.unknownEpochToArcadeDate(t):r.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const n in e)t.push({name:n,alias:n,type:"string"==typeof e[n]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8883],{73354(t,e,n){n.d(e,{a:()=>d,b:()=>u,c:()=>a,d:()=>i,e:()=>m,f:()=>f,l:()=>l,n:()=>v,t:()=>s});var r=n(40876),o=(n(44208),n(72727));function i(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,r=3,i=r){const s=(0,o.k)(t.length,r,3),a=(0,o.k)(e.length,i,3),u=Math.min(s,a),c=n[0],l=n[1],f=n[2],d=n[4],m=n[5],v=n[6],p=n[8],h=n[9],g=n[10],y=n[12],x=n[13],M=n[14];let S=0,b=0;for(let n=0;n<u;n++){const n=e[S],o=e[S+1],s=e[S+2];t[b]=c*n+d*o+p*s+y,t[b+1]=l*n+m*o+h*s+x,t[b+2]=f*n+v*o+g*s+M,S+=i,b+=r}return t}function a(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r=3,i=r){const s=(0,o.k)(t.length,r,3),a=(0,o.k)(e.length,i,3),u=Math.min(s,a),c=n[0],l=n[1],f=n[2],d=n[3],m=n[4],v=n[5],p=n[6],h=n[7],g=n[8];let y=0,x=0;for(let n=0;n<u;n++){const n=e[y],o=e[y+1],s=e[y+2];t[x]=c*n+d*o+p*s,t[x+1]=l*n+m*o+h*s,t[x+2]=f*n+v*o+g*s,y+=i,x+=r}}function c(t,e,n,r=3,o=r){const i=Math.min(t.length/r,e.length/o);let s=0,a=0;for(let u=0;u<i;u++)t[a]=n*e[s],t[a+1]=n*e[s+1],t[a+2]=n*e[s+2],s+=o,a+=r;return t}function l(t,e,n,r){f(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n,o,i=3,s=i){const a=Math.min(t.length/i,e.length/s);let u=0,c=0;const l=1/r.Tf;for(let r=0;r<a;r++)t[c]=o*(n*e[u])**l,t[c+1]=o*(n*e[u+1])**l,t[c+2]=o*(n*e[u+2])**l,u+=s,c+=i}function d(t,e,n,r=3,i=r){const s=(0,o.k)(t.length,r,3),a=(0,o.k)(e.length,i,3),u=Math.min(s,a);let c=0,l=0;for(let o=0;o<u;o++)t[l]=e[c]+n[0],t[l+1]=e[c+1]+n[1],t[l+2]=e[c+2]+n[2],c+=i,l+=r;return t}function m(t,e){v(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function v(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let i=0,s=0;for(let a=0;a<o;a++){const o=e[i],a=e[i+1],u=e[i+2],c=o*o+a*a+u*u;if(c>0){const e=1/Math.sqrt(c);t[s]=e*o,t[s+1]=e*a,t[s+2]=e*u}i+=r,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:l,normalize:v,normalizeView:m,scale:c,scaleView:function(t,e,n){c(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,s=e.typedBuffer,a=e.typedBufferStride;let u=0,c=0;for(let t=0;t<r;t++)o[c]=s[u]>>n,o[c+1]=s[u+1]>>n,o[c+2]=s[u+2]>>n,u+=a,c+=i},transformMat3:u,transformMat3View:a,transformMat4:s,transformMat4View:i,translate:d},Symbol.toStringTag,{value:"Module"}))},82534(t,e,n){function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function s(){return i(1,1)}function a(){return i(1,0)}function u(){return i(0,1)}n.d(e,{Un:()=>c,fA:()=>i,o8:()=>o,vt:()=>r});const c=s(),l=a(),f=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:s,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},65806(t,e,n){n.d(e,{g:()=>s});var r=n(51850),o=n(91218),i=n(9762);function s(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,i.projectBuffer)(a,t.spatialReference,0,e,n,0);const s=(0,o.tryProject)(t,n,r);return!!s&&(e[0]=s.x,e[1]=s.y,e[2]=s.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(91218),o=n(16930),i=n(9762),s=n(65806);function a(t,e,n,o){return!(null==e||null==o||t.length<2)&&((0,r.canProjectWithoutEngine)(e,o)?(0,i.projectBuffer)(t,e,0,n,o,0,1):(u.x=t[0],u.y=t[1],u.z=t[2],u.spatialReference=e,(0,s.g)(u,n,o)))}const u={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},73836(t,e,n){n.d(e,{A:()=>m});var r=n(5482),o=n(69540),i=n(25482),s=n(91429),a=n(58083),u=n(9093),c=n(67026),l=n(82534),f=n(51850),d=n(24770);let m=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.translation=(0,f.vt)(),this.rotationAxis=(0,f.ci)(d.up),this.rotationAngle=0,this.scale=(0,f.fA)(1,1,1)}get rotation(){return(0,d.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,f.o8)((0,d.yo)(t)),this.rotationAngle=(0,d.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(v,(0,d.yo)(this.rotation),(0,d.$I)(this.rotation)),(0,a.o1)(t,v,this.translation,this.scale),t}get localMatrixInverse(){return(0,a.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,a.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"translation",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"scale",void 0),(0,r.Cg)([(0,s.MZ)()],m.prototype,"rotation",null),(0,r.Cg)([(0,s.MZ)()],m.prototype,"localMatrix",null),(0,r.Cg)([(0,s.MZ)()],m.prototype,"localMatrixInverse",null),m=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshTransform")],m);const v=(0,l.vt)()},24770(t,e,n){n.d(e,{$I:()=>g,AU:()=>v,Cr:()=>f,g7:()=>h,i4:()=>l,ui:()=>d,up:()=>x,vt:()=>c,yo:()=>p});var r=n(34727),o=n(58083),i=n(67026),s=n(82534),a=n(35522),u=n(51850);function c(t=x){return[t[0],t[1],t[2],t[3]]}function l(t,e,n=c()){return(0,a.C)(n,t),n[3]=e,n}function f(t,e,n){return(0,a.$A)(n,t,e),(0,a.S8)(n,n),n[3]=-(0,a.g7)(t,e),n}function d(t,e=c()){const n=(0,o.l)(M,t);return y(e,(0,r.KJ)((0,i.Xd)(e,n))),e}function m(t,e,n=c()){return(0,i.x8)(M,t,g(t)),(0,i.x8)(S,e,g(e)),(0,i.lw)(M,S,M),y(n,(0,r.KJ)((0,i.Xd)(n,M)))}function v(t,e,n,r=c()){return l(u.Cw,t,b),l(u.JP,e,w),l(u.Cb,n,B),m(b,w,b),m(b,B,r),r}function p(t){return t}function h(t){return t[3]}function g(t){return(0,r.kU)(t[3])}function y(t,e){return t[3]=e,t}const x=[0,0,1,0],M=(0,s.vt)(),S=(0,s.vt)(),b=(c(),c()),w=c(),B=c()},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},27921(t,e,n){n.d(e,{$Q:()=>M,C:()=>a,Cr:()=>l,O_:()=>c,Qj:()=>u,T7:()=>y,Tj:()=>x,lU:()=>f,mN:()=>S,vE:()=>b,vt:()=>s});var r=n(34727),o=n(35522),i=n(51850);function s(t=w){return[t[0],t[1],t[2],t[3]]}function a(t,e){return function(t,e,n,r,o=s()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}(e[0],e[1],e[2],e[3],t)}function u(t){return t}function c(t,e,n){const r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function l(t,e,n,r=s()){const o=n[0]-e[0],i=n[1]-e[1],a=n[2]-e[2],u=t[0]-e[0],c=t[1]-e[1],l=t[2]-e[2],f=i*l-a*c,d=a*u-o*l,m=o*c-i*u,v=f*f+d*d+m*m,p=Math.abs(v-1)>1e-5&&v>1e-12?1/Math.sqrt(v):1;return r[0]=f*p,r[1]=d*p,r[2]=m*p,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function f(t,e,n,r=0,i=Math.floor(n*(1/3)),s=Math.floor(n*(2/3))){if(n<3)return!1;e(m,r);let a=i,u=!1;for(;a<n-1&&!u;)e(v,a),a++,u=!(0,o.t2)(m,v);if(!u)return!1;for(a=Math.max(a,s),u=!1;a<n&&!u;)e(p,a),a++,(0,o.Re)(h,m,v),(0,o.S8)(h,h),(0,o.Re)(g,v,p),(0,o.S8)(g,g),u=!(0,o.t2)(m,p)&&!(0,o.t2)(v,p)&&Math.abs((0,o.Om)(h,g))<d;return u?(l(m,v,p,t),!0):(0!==r||1!==i||2!==s)&&f(t,e,n,0,1,2)}n(78955),n(44280),n(32114),n(32728);const d=.99619469809,m=(0,i.vt)(),v=(0,i.vt)(),p=(0,i.vt)(),h=(0,i.vt)(),g=(0,i.vt)();function y(t,e,n){return function(t){return 0===t||1===t}(b(t,e.origin,e.vector,0,n))}function x(t,e){return S(t,e)>=0}function M(t,e){const n=(0,o.Om)(t,e.ray.direction),r=-S(t,e.ray.origin);if(r<0&&n>=0)return!1;if(n>-1e-6&&n<1e-6)return r>0;if((r<0||n<0)&&!(r<0&&n<0))return!0;const i=r/n;return n>0?i<e.c1&&(e.c1=i):i>e.c0&&(e.c0=i),e.c0<=e.c1}function S(t,e){return(0,o.Om)(t,e)+t[3]}function b(t,e,n,i,s){const a=(0,o.Om)(t,n),u=S(t,e);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,e,(0,o.hs)(s,n,c)),u>=0?0:1)}const w=[0,0,1,0]},44280(t,e,n){n.d(e,{g7:()=>a,gr:()=>s});var r=n(34727),o=n(35522),i=n(51850);function s(t,e){return(0,o.Om)(t,e)/(0,o.Bw)(t)}function a(t,e){const n=(0,o.Om)(t,e)/((0,o.Bw)(t)*(0,o.Bw)(e));return-(0,r.XM)(n)}(0,i.vt)(),(0,i.vt)()},32114(t,e,n){n.d(e,{Rc:()=>m,J8:()=>v,rq:()=>f,Km:()=>d}),n(44208);var r=n(26390),o=n(29242),i=n(9093),s=n(82534),a=n(48163),u=n(51850),c=n(91829);class l{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 l(a.vt)}static createVec3f64(){return new l(u.vt)}static createVec4f64(){return new l(c.vt)}static createMat3f64(){return new l(o.vt)}static createMat4f64(){return new l(i.vt)}static createQuatf64(){return new l(s.vt)}get test(){}}l.createVec2f64();const f=l.createVec3f64(),d=l.createVec4f64(),m=(l.createMat3f64(),l.createMat4f64()),v=l.createQuatf64()},38969(t,e,n){n.d(e,{i:()=>o});var r=n(37955);function o(t,e){return new Promise((n,o)=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(e((0,r.Oo)(t,"canplay",n)),e((0,r.Oo)(t,"error",o)))})}},77793(t,e,n){n.d(e,{V:()=>i,f:()=>s});var r=n(86738),o=n(73836);function i(t,e,n=a){return new r.A({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}function s(t,e=a){return new o.A({translation:[t[e.translationX],-t[e.translationZ],t[e.translationY]],rotationAxis:[t[e.rotationX],-t[e.rotationZ],t[e.rotationY]],rotationAngle:t[e.rotationDeg],scale:[t[e.scaleX],t[e.scaleZ],t[e.scaleY]]})}const a={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},40050(t,e,n){n.r(e),n.d(e,{assetMapFromAssetMapsJSON:()=>h,extractMesh:()=>p,meshFeatureSetFromJSON:()=>v});var r=n(52106),o=n(53966),i=n(91869),s=n(5443),a=n(57634),u=n(16930),c=n(63579),l=n(20557),f=n(22671),d=n(77793);const m=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function v(t,e,n){const o=n.features;n.features=[],delete n.geometryType;const i=f.A.fromJSON(n);if(i.geometryType="mesh",!n.assetMaps)return i;const s=h(e,n.assetMaps),a=t.sourceSpatialReference??u.A.WGS84,c=n.globalIdFieldName,{outFields:l}=t,d=null!=l&&l.length>0?(m=l.includes("*")?null:new Set(l),({attributes:t})=>{if(!t)return{};if(!m)return t;for(const e in t)m.has(e)||delete t[e];return t}):()=>({});var m;for(const t of o){const n=p(t,c,a,e,s);i.features.push(new r.A({geometry:n,attributes:d(t)}))}return i}function p(t,e,n,r,o){const i=t.attributes[e],u=o.get(i);if(null==u||!t.geometry)return null;const l=(0,d.V)(t.attributes,n,r.transformFieldRoles),f=s.A.fromJSON(t.geometry);f.spatialReference=n;const m=(0,d.f)(t.attributes,r.transformFieldRoles),v=n.isGeographic?"local":"georeferenced",p=function(t){const e=Array.from(t.files.values()),n=new Array;for(const t of e){if(2!==t.status)return null;const e=new Array;for(const n of t.parts){if(!n)return null;e.push(new c.Bq(n.url,n.hash))}n.push(new c.Qp(t.name,t.mimeType,e))}return{type:"service",assets:n}}(u);return p?a.default.createWithExternalSource(l,p,{extent:f,transform:m,vertexSpace:v,unitConversionDisabled:!0}):a.default.createIncomplete(l,{extent:f,transform:m,vertexSpace:v})}function h(t,e){const n=new Map;for(const r of e){const e=r.parentGlobalId;if(null==e)continue;const o=r.assetName,s=r.assetType,a=r.assetHash,u=r.assetURL,c=r.conversionStatus,f=r.seqNo,d=(0,l.Fm)(s,t.supportedFormats);if(!d){m().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const v=(0,i.tE)(n,e,()=>({files:new Map}));(0,i.tE)(v.files,o,()=>({name:o,type:s,mimeType:d,status:g(c),parts:[]})).parts[f]={hash:a,url:u}}return n}function g(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},32728(t,e,n){n.d(e,{YH:()=>a,hG:()=>i,nu:()=>u,wp:()=>s}),n(34727);var r=n(35522),o=n(51850);function i(t){const e=t[0]*t[0]+t[4]*t[4]+t[8]*t[8],n=t[1]*t[1]+t[5]*t[5]+t[9]*t[9],r=t[2]*t[2]+t[6]*t[6]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))}function s(t,e){const n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),o=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,o,i),t}function a(t,e,n){n=n||t;const o=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-o*e[0],t[1]-o*e[1],t[2]-o*e[2]),(0,r.S8)(n,n)}function u(t,e,n,i=(0,o.vt)()){const s=(0,r.Bw)(t),a=(0,r.Bw)(e),u=(0,r.Om)(t,e)/(s*a);if(u<.9999999999999999){const o=Math.acos(u),f=((1-n)*s+n*a)/Math.sin(o),d=f/s*Math.sin((1-n)*o),m=f/a*Math.sin(n*o);return(0,r.hs)(c,t,d),(0,r.hs)(l,e,m),(0,r.WQ)(i,c,l)}return(0,r.Cc)(i,t,e,n)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const c=(0,o.vt)(),l=(0,o.vt)()},49255(t,e,n){function r(t){return function(t){return c(t)||4===t}(t)||function(t){return 5===(e=t)||6===e||7===e||8===t||9===t;var e}(t)}function o(t){return 10===t||11===t}function i(t){return u(t)||o(t)}function s(t){return 1===t}function a(t){return 2===t}function u(t){return 0===t||function(t){return s(t)||a(t)}(t)}function c(t){return function(t){return u(t)||o(t)}(t)||l(t)}function l(t){return 3===t}n.d(e,{Ex:()=>o,Rb:()=>a,Sp:()=>s,_o:()=>u,eh:()=>l,gr:()=>c,i3:()=>i,uw:()=>r})},53466(t,e,n){n.d(e,{U:()=>o});var r=n(31821);function o(t,e){switch(e.textureCoordinateType){case 1:return t.attributes.add("uv0","vec2"),t.varyings.add("vuv0","vec2"),void t.vertex.code.add(r.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return t.attributes.add("uv0","vec2"),t.attributes.add("uvRegion","vec4"),t.varyings.add("vuv0","vec2"),t.varyings.add("vuvRegion","vec4"),void t.vertex.code.add(r.H`void forwardTextureCoordinates() {
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8883],{73354(t,e,n){n.d(e,{a:()=>d,b:()=>u,c:()=>a,d:()=>i,e:()=>m,f:()=>f,l:()=>l,n:()=>v,t:()=>s});var r=n(40876),o=(n(44208),n(72727));function i(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,r=3,i=r){const s=(0,o.k)(t.length,r,3),a=(0,o.k)(e.length,i,3),u=Math.min(s,a),c=n[0],l=n[1],f=n[2],d=n[4],m=n[5],v=n[6],p=n[8],h=n[9],g=n[10],y=n[12],x=n[13],M=n[14];let S=0,b=0;for(let n=0;n<u;n++){const n=e[S],o=e[S+1],s=e[S+2];t[b]=c*n+d*o+p*s+y,t[b+1]=l*n+m*o+h*s+x,t[b+2]=f*n+v*o+g*s+M,S+=i,b+=r}return t}function a(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r=3,i=r){const s=(0,o.k)(t.length,r,3),a=(0,o.k)(e.length,i,3),u=Math.min(s,a),c=n[0],l=n[1],f=n[2],d=n[3],m=n[4],v=n[5],p=n[6],h=n[7],g=n[8];let y=0,x=0;for(let n=0;n<u;n++){const n=e[y],o=e[y+1],s=e[y+2];t[x]=c*n+d*o+p*s,t[x+1]=l*n+m*o+h*s,t[x+2]=f*n+v*o+g*s,y+=i,x+=r}}function c(t,e,n,r=3,o=r){const i=Math.min(t.length/r,e.length/o);let s=0,a=0;for(let u=0;u<i;u++)t[a]=n*e[s],t[a+1]=n*e[s+1],t[a+2]=n*e[s+2],s+=o,a+=r;return t}function l(t,e,n,r){f(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n,o,i=3,s=i){const a=Math.min(t.length/i,e.length/s);let u=0,c=0;const l=1/r.Tf;for(let r=0;r<a;r++)t[c]=o*(n*e[u])**l,t[c+1]=o*(n*e[u+1])**l,t[c+2]=o*(n*e[u+2])**l,u+=s,c+=i}function d(t,e,n,r=3,i=r){const s=(0,o.k)(t.length,r,3),a=(0,o.k)(e.length,i,3),u=Math.min(s,a);let c=0,l=0;for(let o=0;o<u;o++)t[l]=e[c]+n[0],t[l+1]=e[c+1]+n[1],t[l+2]=e[c+2]+n[2],c+=i,l+=r;return t}function m(t,e){v(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function v(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let i=0,s=0;for(let a=0;a<o;a++){const o=e[i],a=e[i+1],u=e[i+2],c=o*o+a*a+u*u;if(c>0){const e=1/Math.sqrt(c);t[s]=e*o,t[s+1]=e*a,t[s+2]=e*u}i+=r,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:l,normalize:v,normalizeView:m,scale:c,scaleView:function(t,e,n){c(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,s=e.typedBuffer,a=e.typedBufferStride;let u=0,c=0;for(let t=0;t<r;t++)o[c]=s[u]>>n,o[c+1]=s[u+1]>>n,o[c+2]=s[u+2]>>n,u+=a,c+=i},transformMat3:u,transformMat3View:a,transformMat4:s,transformMat4View:i,translate:d},Symbol.toStringTag,{value:"Module"}))},82534(t,e,n){function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function s(){return i(1,1)}function a(){return i(1,0)}function u(){return i(0,1)}n.d(e,{Un:()=>c,fA:()=>i,o8:()=>o,vt:()=>r});const c=s(),l=a(),f=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:s,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},65806(t,e,n){n.d(e,{g:()=>s});var r=n(51850),o=n(91218),i=n(9762);function s(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,i.projectBuffer)(a,t.spatialReference,0,e,n,0);const s=(0,o.tryProject)(t,n,r);return!!s&&(e[0]=s.x,e[1]=s.y,e[2]=s.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(91218),o=n(16930),i=n(9762),s=n(65806);function a(t,e,n,o){return!(null==e||null==o||t.length<2)&&((0,r.canProjectWithoutEngine)(e,o)?(0,i.projectBuffer)(t,e,0,n,o,0,1):(u.x=t[0],u.y=t[1],u.z=t[2],u.spatialReference=e,(0,s.g)(u,n,o)))}const u={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},73836(t,e,n){n.d(e,{A:()=>m});var r=n(5482),o=n(69540),i=n(25482),s=n(91429),a=n(58083),u=n(9093),c=n(67026),l=n(82534),f=n(51850),d=n(24770);let m=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.translation=(0,f.vt)(),this.rotationAxis=(0,f.ci)(d.up),this.rotationAngle=0,this.scale=(0,f.fA)(1,1,1)}get rotation(){return(0,d.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,f.o8)((0,d.yo)(t)),this.rotationAngle=(0,d.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(v,(0,d.yo)(this.rotation),(0,d.$I)(this.rotation)),(0,a.o1)(t,v,this.translation,this.scale),t}get localMatrixInverse(){return(0,a.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,a.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"translation",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"scale",void 0),(0,r.Cg)([(0,s.MZ)()],m.prototype,"rotation",null),(0,r.Cg)([(0,s.MZ)()],m.prototype,"localMatrix",null),(0,r.Cg)([(0,s.MZ)()],m.prototype,"localMatrixInverse",null),m=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshTransform")],m);const v=(0,l.vt)()},24770(t,e,n){n.d(e,{$I:()=>g,AU:()=>v,Cr:()=>f,g7:()=>h,i4:()=>l,ui:()=>d,up:()=>x,vt:()=>c,yo:()=>p});var r=n(34727),o=n(58083),i=n(67026),s=n(82534),a=n(35522),u=n(51850);function c(t=x){return[t[0],t[1],t[2],t[3]]}function l(t,e,n=c()){return(0,a.C)(n,t),n[3]=e,n}function f(t,e,n){return(0,a.$A)(n,t,e),(0,a.S8)(n,n),n[3]=-(0,a.g7)(t,e),n}function d(t,e=c()){const n=(0,o.l)(M,t);return y(e,(0,r.KJ)((0,i.Xd)(e,n))),e}function m(t,e,n=c()){return(0,i.x8)(M,t,g(t)),(0,i.x8)(S,e,g(e)),(0,i.lw)(M,S,M),y(n,(0,r.KJ)((0,i.Xd)(n,M)))}function v(t,e,n,r=c()){return l(u.Cw,t,b),l(u.JP,e,w),l(u.Cb,n,B),m(b,w,b),m(b,B,r),r}function p(t){return t}function h(t){return t[3]}function g(t){return(0,r.kU)(t[3])}function y(t,e){return t[3]=e,t}const x=[0,0,1,0],M=(0,s.vt)(),S=(0,s.vt)(),b=(c(),c()),w=c(),B=c()},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},27921(t,e,n){n.d(e,{$Q:()=>M,C:()=>a,Cr:()=>l,O_:()=>c,Qj:()=>u,T7:()=>y,Tj:()=>x,lU:()=>f,mN:()=>S,vE:()=>b,vt:()=>s});var r=n(34727),o=n(35522),i=n(51850);function s(t=w){return[t[0],t[1],t[2],t[3]]}function a(t,e){return function(t,e,n,r,o=s()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}(e[0],e[1],e[2],e[3],t)}function u(t){return t}function c(t,e,n){const r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function l(t,e,n,r=s()){const o=n[0]-e[0],i=n[1]-e[1],a=n[2]-e[2],u=t[0]-e[0],c=t[1]-e[1],l=t[2]-e[2],f=i*l-a*c,d=a*u-o*l,m=o*c-i*u,v=f*f+d*d+m*m,p=Math.abs(v-1)>1e-5&&v>1e-12?1/Math.sqrt(v):1;return r[0]=f*p,r[1]=d*p,r[2]=m*p,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function f(t,e,n,r=0,i=Math.floor(n*(1/3)),s=Math.floor(n*(2/3))){if(n<3)return!1;e(m,r);let a=i,u=!1;for(;a<n-1&&!u;)e(v,a),a++,u=!(0,o.t2)(m,v);if(!u)return!1;for(a=Math.max(a,s),u=!1;a<n&&!u;)e(p,a),a++,(0,o.Re)(h,m,v),(0,o.S8)(h,h),(0,o.Re)(g,v,p),(0,o.S8)(g,g),u=!(0,o.t2)(m,p)&&!(0,o.t2)(v,p)&&Math.abs((0,o.Om)(h,g))<d;return u?(l(m,v,p,t),!0):(0!==r||1!==i||2!==s)&&f(t,e,n,0,1,2)}n(78955),n(44280),n(32114),n(32728);const d=.99619469809,m=(0,i.vt)(),v=(0,i.vt)(),p=(0,i.vt)(),h=(0,i.vt)(),g=(0,i.vt)();function y(t,e,n){return function(t){return 0===t||1===t}(b(t,e.origin,e.vector,0,n))}function x(t,e){return S(t,e)>=0}function M(t,e){const n=(0,o.Om)(t,e.ray.direction),r=-S(t,e.ray.origin);if(r<0&&n>=0)return!1;if(n>-1e-6&&n<1e-6)return r>0;if((r<0||n<0)&&!(r<0&&n<0))return!0;const i=r/n;return n>0?i<e.c1&&(e.c1=i):i>e.c0&&(e.c0=i),e.c0<=e.c1}function S(t,e){return(0,o.Om)(t,e)+t[3]}function b(t,e,n,i,s){const a=(0,o.Om)(t,n),u=S(t,e);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,e,(0,o.hs)(s,n,c)),u>=0?0:1)}const w=[0,0,1,0]},44280(t,e,n){n.d(e,{g7:()=>a,gr:()=>s});var r=n(34727),o=n(35522),i=n(51850);function s(t,e){return(0,o.Om)(t,e)/(0,o.Bw)(t)}function a(t,e){const n=(0,o.Om)(t,e)/((0,o.Bw)(t)*(0,o.Bw)(e));return-(0,r.XM)(n)}(0,i.vt)(),(0,i.vt)()},32114(t,e,n){n.d(e,{Rc:()=>m,J8:()=>v,rq:()=>f,Km:()=>d}),n(44208);var r=n(26390),o=n(29242),i=n(9093),s=n(82534),a=n(48163),u=n(51850),c=n(91829);class l{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 l(a.vt)}static createVec3f64(){return new l(u.vt)}static createVec4f64(){return new l(c.vt)}static createMat3f64(){return new l(o.vt)}static createMat4f64(){return new l(i.vt)}static createQuatf64(){return new l(s.vt)}get test(){}}l.createVec2f64();const f=l.createVec3f64(),d=l.createVec4f64(),m=(l.createMat3f64(),l.createMat4f64()),v=l.createQuatf64()},38969(t,e,n){n.d(e,{i:()=>o});var r=n(37955);function o(t,e){return new Promise((n,o)=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(e((0,r.Oo)(t,"canplay",n)),e((0,r.Oo)(t,"error",o)))})}},77793(t,e,n){n.d(e,{V:()=>i,f:()=>s});var r=n(86738),o=n(73836);function i(t,e,n=a){return new r.A({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}function s(t,e=a){return new o.A({translation:[t[e.translationX],-t[e.translationZ],t[e.translationY]],rotationAxis:[t[e.rotationX],-t[e.rotationZ],t[e.rotationY]],rotationAngle:t[e.rotationDeg],scale:[t[e.scaleX],t[e.scaleZ],t[e.scaleY]]})}const a={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},40050(t,e,n){n.r(e),n.d(e,{assetMapFromAssetMapsJSON:()=>h,extractMesh:()=>p,meshFeatureSetFromJSON:()=>v});var r=n(52106),o=n(53966),i=n(91869),s=n(5443),a=n(27925),u=n(16930),c=n(63579),l=n(20557),f=n(22671),d=n(77793);const m=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function v(t,e,n){const o=n.features;n.features=[],delete n.geometryType;const i=f.A.fromJSON(n);if(i.geometryType="mesh",!n.assetMaps)return i;const s=h(e,n.assetMaps),a=t.sourceSpatialReference??u.A.WGS84,c=n.globalIdFieldName,{outFields:l}=t,d=null!=l&&l.length>0?(m=l.includes("*")?null:new Set(l),({attributes:t})=>{if(!t)return{};if(!m)return t;for(const e in t)m.has(e)||delete t[e];return t}):()=>({});var m;for(const t of o){const n=p(t,c,a,e,s);i.features.push(new r.A({geometry:n,attributes:d(t)}))}return i}function p(t,e,n,r,o){const i=t.attributes[e],u=o.get(i);if(null==u||!t.geometry)return null;const l=(0,d.V)(t.attributes,n,r.transformFieldRoles),f=s.A.fromJSON(t.geometry);f.spatialReference=n;const m=(0,d.f)(t.attributes,r.transformFieldRoles),v=n.isGeographic?"local":"georeferenced",p=function(t){const e=Array.from(t.files.values()),n=new Array;for(const t of e){if(2!==t.status)return null;const e=new Array;for(const n of t.parts){if(!n)return null;e.push(new c.Bq(n.url,n.hash))}n.push(new c.Qp(t.name,t.mimeType,e))}return{type:"service",assets:n}}(u);return p?a.default.createWithExternalSource(l,p,{extent:f,transform:m,vertexSpace:v,unitConversionDisabled:!0}):a.default.createIncomplete(l,{extent:f,transform:m,vertexSpace:v})}function h(t,e){const n=new Map;for(const r of e){const e=r.parentGlobalId;if(null==e)continue;const o=r.assetName,s=r.assetType,a=r.assetHash,u=r.assetURL,c=r.conversionStatus,f=r.seqNo,d=(0,l.Fm)(s,t.supportedFormats);if(!d){m().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const v=(0,i.tE)(n,e,()=>({files:new Map}));(0,i.tE)(v.files,o,()=>({name:o,type:s,mimeType:d,status:g(c),parts:[]})).parts[f]={hash:a,url:u}}return n}function g(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},32728(t,e,n){n.d(e,{YH:()=>a,hG:()=>i,nu:()=>u,wp:()=>s}),n(34727);var r=n(35522),o=n(51850);function i(t){const e=t[0]*t[0]+t[4]*t[4]+t[8]*t[8],n=t[1]*t[1]+t[5]*t[5]+t[9]*t[9],r=t[2]*t[2]+t[6]*t[6]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))}function s(t,e){const n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),o=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,o,i),t}function a(t,e,n){n=n||t;const o=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-o*e[0],t[1]-o*e[1],t[2]-o*e[2]),(0,r.S8)(n,n)}function u(t,e,n,i=(0,o.vt)()){const s=(0,r.Bw)(t),a=(0,r.Bw)(e),u=(0,r.Om)(t,e)/(s*a);if(u<.9999999999999999){const o=Math.acos(u),f=((1-n)*s+n*a)/Math.sin(o),d=f/s*Math.sin((1-n)*o),m=f/a*Math.sin(n*o);return(0,r.hs)(c,t,d),(0,r.hs)(l,e,m),(0,r.WQ)(i,c,l)}return(0,r.Cc)(i,t,e,n)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const c=(0,o.vt)(),l=(0,o.vt)()},49255(t,e,n){function r(t){return function(t){return c(t)||4===t}(t)||function(t){return 5===(e=t)||6===e||7===e||8===t||9===t;var e}(t)}function o(t){return 10===t||11===t}function i(t){return u(t)||o(t)}function s(t){return 1===t}function a(t){return 2===t}function u(t){return 0===t||function(t){return s(t)||a(t)}(t)}function c(t){return function(t){return u(t)||o(t)}(t)||l(t)}function l(t){return 3===t}n.d(e,{Ex:()=>o,Rb:()=>a,Sp:()=>s,_o:()=>u,eh:()=>l,gr:()=>c,i3:()=>i,uw:()=>r})},53466(t,e,n){n.d(e,{U:()=>o});var r=n(31821);function o(t,e){switch(e.textureCoordinateType){case 1:return t.attributes.add("uv0","vec2"),t.varyings.add("vuv0","vec2"),void t.vertex.code.add(r.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return t.attributes.add("uv0","vec2"),t.attributes.add("uvRegion","vec4"),t.varyings.add("vuv0","vec2"),t.varyings.add("vuvRegion","vec4"),void t.vertex.code.add(r.H`void forwardTextureCoordinates() {
2
2
  vuv0 = uv0;
3
3
  vuvRegion = uvRegion;
4
4
  }`);default:e.textureCoordinateType;case 0:return void t.vertex.code.add(r.H`void forwardTextureCoordinates() {}`);case 3:return}}},99208(t,e,n){n.d(e,{r:()=>s});var r=n(53466),o=n(31821);function i(t){t.fragment.code.add(o.H`vec4 textureAtlasLookup(sampler2D tex, vec2 textureCoordinates, vec4 atlasRegion) {
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{83960(e,t,r){r.d(t,{X_:()=>s,oW:()=>o,zx:()=>a});var i=r(34727),n=r(86211);function s(e,t){const r=t||e.extent,i=e.width,s=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*s*n.dy*96:0}function a(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}function o(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},4146(e,t,r){r.d(t,{A:()=>v});var i=r(5482),n=r(11254),s=r(49186),a=r(65529),o=r(4902),l=r(92474),u=r(53966),p=r(17676),d=r(84952),y=r(91429),c=r(5443),m=r(16930),h=r(92602),f=r(79677);let g=0,v=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new c.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||h.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,y.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,i.Cg)([(0,y.MZ)({type:c.A})],v.prototype,"fullExtent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i.Cg)([(0,y.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i.Cg)([(0,y.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,y.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.MZ)({type:String})],v.prototype,"title",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i.Cg)([(0,y.MZ)()],v.prototype,"url",void 0),(0,i.Cg)([(0,y.MZ)({type:f.A})],v.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,y.$K)("esri.layers.Layer")],v)},7656(e,t,r){r.r(t),r.d(t,{default:()=>q});var i=r(5482),n=r(11254),s=r(7762),a=r(49186),o=r(81583),l=r(25728),u=r(17676),p=r(86211),d=r(91429),y=r(56507),c=r(35666),m=r(5443),h=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),w=r(18768),C=r(63074),S=r(69208),I=r(34287),M=r(8303),x=r(54310),T=r(25036),A=r(91921),Z=r(82935),E=r(10873),O=r(69622),L=r(39516);function j(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var N=r(63389);const D={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends O.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=j(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,N.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(D[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=j(this.floors,t),i=(0,L.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,h.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);const n=this._get("visibleSublayers");return!n||n.length!==e.length||n.some((t,r)=>e[r]!==t)?e:n}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,i.Cg)([(0,d.MZ)()],P.prototype,"floors",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,d.MZ)()],P.prototype,"layer",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"layers",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"layerDefs",null),(0,i.Cg)([(0,d.MZ)({type:Number})],P.prototype,"scale",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"version",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,i.Cg)([(0,d.$K)("esri.layers.support.ExportImageParameters")],P);var F=r(33446),U=r(15775),_=r(91908),k=r(88625),R=r(79677),V=r(56400),B=r(36005),$=r(43937);let J=class extends((0,C.dM)((0,Z.e)((0,T.j)((0,A.I)((0,b.V)((0,w.b)((0,I.q)((0,M.A)((0,l.M)((0,x.J)((0,v.p)((0,S.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new P({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new k.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,u.sg)(async(e,t,i)=>{const{save:n,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return n(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const a=(0,c.aB)(i.origin);let o;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;s=(0,N.Zx)(n,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");s=(0,N.Zx)(n,e.sublayers,(0,c.aB)(e.origin)),o=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...i,minimumWritableOrigin:o};let p=s||this.hasVisibleLayersForOrigin(a);n.forEach(e=>{const t=e.write({},u);l.push(t),p=p||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),p&&(t.visibleLayers=n.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale||(0,h.X_)({extent:e,width:t})*n;const s=this._exportImageParameters.toJSON(),a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},o=e?.spatialReference,l=(0,f.YX)(o);if(i?.scale&&e){const r=e.width/t*((0,p.GA)(e?.spatialReference)*p.dy);s.dpi=i.scale/r}s.dpi*=n;const u={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();u.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:l,imageSR:l,size:t+","+r,...s,...a,...u}}async fetchImage(e,t,r,i){const{data:n}=await this._fetchImage("image",e,t,r,i);return n}async fetchImageBitmap(e,t,r,i){const{data:n,url:s}=await this._fetchImage("blob",e,t,r,i);return(0,F.mn)(n,s,i)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,n.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:a}=r,o=i||s;return{fullExtent:o&&m.A.fromJSON(o),timeExtent:a&&R.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,_.D)(this,e)}async _fetchImage(e,t,r,i,s){const o={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=o.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:e}=await(0,n.A)(l,o);return{data:e,url:l}}catch(e){if((0,u.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,d.MZ)((0,V.P6)("dateFieldsTimeReference"))],J.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],J.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"dpi",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"imageFormat",void 0),(0,i.Cg)([(0,B.w)("imageFormat",["supportedImageFormatTypes"])],J.prototype,"readImageFormat",null),(0,i.Cg)([(0,d.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],J.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,d.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],J.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],J.prototype,"isReference",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1,write:!1}})],J.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:["ArcGISMapServiceLayer"]})],J.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1,write:!1}})],J.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)((0,V.P6)("preferredTimeReference"))],J.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,d.MZ)({type:s.A.ofType(U.A),json:{write:{ignoreOrigin:!0}}})],J.prototype,"sublayers",void 0),(0,i.Cg)([(0,$.K)("sublayers",{layers:{type:[U.A]},visibleLayers:{type:[y.jz]}})],J.prototype,"writeSublayers",null),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],J.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],J.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)(E.OZ)],J.prototype,"url",void 0),J=(0,i.Cg)([(0,d.$K)("esri.layers.MapImageLayer")],J);const q=J},82935(e,t,r){r.d(t,{B:()=>y,e:()=>c});var i=r(5482),n=r(91429),s=r(89317),a=r(30524),o=r(96184),l=r(73133),u=r(79677),p=r(10184),d=r(36005);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(y)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}},96184(e,t,r){r.d(t,{A:()=>c});var i=r(5482),n=r(69540),s=r(25482),a=r(91429),o=r(79677),l=r(10184),u=r(56400),p=r(36005),d=r(43937);function y(e,t){return l.A.fromJSON({value:e,unit:t})}let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?o.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],c.prototype,"cumulative",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"endField",void 0),(0,i.Cg)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,p.w)("fullTimeExtent",["timeExtent"])],c.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,d.K)("fullTimeExtent")],c.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,a.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"interval",void 0),(0,i.Cg)([(0,p.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],c.prototype,"readInterval",null),(0,i.Cg)([(0,d.K)("interval")],c.prototype,"writeInterval",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"startField",void 0),(0,i.Cg)([(0,a.MZ)((0,u.P6)("timeReference",!0))],c.prototype,"timeZone",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"trackIdField",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],c.prototype,"useTime",void 0),(0,i.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],c.prototype,"stops",void 0),c=(0,i.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],c)},77548(e,t,r){r.d(t,{Gh:()=>L,tk:()=>T,BR:()=>x,p2:()=>I,qd:()=>A,wI:()=>M,G$:()=>E,$x:()=>Z,Ov:()=>b,cM:()=>y,UC:()=>c,W_:()=>w,Qz:()=>m,OP:()=>O,TU:()=>v,F2:()=>h,XX:()=>g,jy:()=>C});var i=r(70333),n=r(11254),s=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const u=new WeakMap;function p(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||p(t))},t=>u.set(e,t),o.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function d(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function y(e){return d(e,"knowledge-graph")&&"layers"in e}function c(e){return d(e,"knowledge-graph-sublayer")}function m(e){return d(e,"link-chart")&&"layers"in e}function h(e){return d(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function b(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function C(e){return function(e){return null!=e&&"object"==typeof e&&"type"in e&&"oriented-imagery"===e.type}(e)||function(e){return d(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}function S(e){const t=e?.type;return"binning"===t||"cluster"===t}function I(e,t){if(!C(e))return;const r=t?.graphic,i=e.featureReduction;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&i?S(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?S(i)?i:null:e}async function M(e,t){const r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const a=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,n.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function x(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function T(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function A(e){const t=new s.A;for(const r of e.allLayers.concat(e.allTables))p(r)||f(r)||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function E(e){return null}function O(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function L(e,t){if(!t||!O(e))return;const r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var i=r(60694);const n=[];function s(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of n){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}n.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),n.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),n.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),n.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),n.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>n,Y:()=>i});const i=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},79677(e,t,r){r.d(t,{A:()=>y});var i,n=r(5482),s=r(25482),a=r(88930),o=r(91429),l=r(98623),u=r(10184),p=r(36005),d=r(43937);let y=class extends s.o{static{i=this}static get allTime(){return c}static get empty(){return m}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,a.lL)(r,new u.A({value:1,unit:e}),t));let n=this.end;if(n){const r=(0,a.lL)(n,new u.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return n>=t&&n<=r?a=n:t>=n&&t<=s&&(a=t),r>=n&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?i.empty:new i({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const n=new i,{start:s,end:o}=this;return null!=s&&(n.start=(0,a.S1)(s,e,t,r)),null!=o&&(n.end=(0,a.S1)(o,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return c.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"end",void 0),(0,n.Cg)([(0,p.w)("end")],y.prototype,"readEnd",null),(0,n.Cg)([(0,d.K)("end")],y.prototype,"writeEnd",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isAllTime",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isEmpty",null),(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"start",void 0),(0,n.Cg)([(0,p.w)("start")],y.prototype,"readStart",null),(0,n.Cg)([(0,d.K)("start")],y.prototype,"writeStart",null),y=i=(0,n.Cg)([(0,o.$K)("esri.time.TimeExtent")],y);const c=new y,m=new y({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>p});var i=r(5482),n=r(69540),s=r(25482),a=r(88930),o=r(91429),l=r(73133),u=r(93223);let p=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(l.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i.Cg)([(0,o.$K)("esri.time.TimeInterval")],p)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{83960(e,t,r){r.d(t,{X_:()=>s,oW:()=>o,zx:()=>a});var i=r(34727),n=r(86211);function s(e,t){const r=t||e.extent,i=e.width,s=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*s*n.dy*96:0}function a(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}function o(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},4146(e,t,r){r.d(t,{A:()=>v});var i=r(5482),n=r(11254),s=r(49186),a=r(65529),o=r(4902),l=r(92474),u=r(53966),p=r(17676),d=r(84952),y=r(91429),c=r(5443),m=r(16930),h=r(92602),f=r(79677);let g=0,v=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new c.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||h.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,y.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,i.Cg)([(0,y.MZ)({type:c.A})],v.prototype,"fullExtent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i.Cg)([(0,y.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i.Cg)([(0,y.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,y.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.MZ)({type:String})],v.prototype,"title",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i.Cg)([(0,y.MZ)()],v.prototype,"url",void 0),(0,i.Cg)([(0,y.MZ)({type:f.A})],v.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,y.$K)("esri.layers.Layer")],v)},7656(e,t,r){r.r(t),r.d(t,{default:()=>q});var i=r(5482),n=r(11254),s=r(7762),a=r(49186),o=r(81583),l=r(25728),u=r(17676),p=r(86211),d=r(91429),y=r(56507),c=r(35666),m=r(5443),h=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),w=r(18768),C=r(63074),S=r(69208),I=r(34287),M=r(8303),x=r(54310),T=r(25036),A=r(91921),Z=r(82935),E=r(10873),O=r(69622),L=r(39516);function j(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var N=r(63389);const D={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends O.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=j(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,N.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(D[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=j(this.floors,t),i=(0,L.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,h.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);const n=this._get("visibleSublayers");return!n||n.length!==e.length||n.some((t,r)=>e[r]!==t)?e:n}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,i.Cg)([(0,d.MZ)()],P.prototype,"floors",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,d.MZ)()],P.prototype,"layer",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"layers",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"layerDefs",null),(0,i.Cg)([(0,d.MZ)({type:Number})],P.prototype,"scale",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"version",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,i.Cg)([(0,d.$K)("esri.layers.support.ExportImageParameters")],P);var F=r(33446),U=r(15775),_=r(91908),k=r(88625),R=r(79677),V=r(56400),B=r(36005),$=r(43937);let J=class extends((0,C.dM)((0,Z.e)((0,T.j)((0,A.I)((0,b.V)((0,w.b)((0,I.q)((0,M.A)((0,l.M)((0,x.J)((0,v.p)((0,S.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new P({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new k.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,u.sg)(async(e,t,i)=>{const{save:n,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return n(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const a=(0,c.aB)(i.origin);let o;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;s=(0,N.Zx)(n,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");s=(0,N.Zx)(n,e.sublayers,(0,c.aB)(e.origin)),o=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...i,minimumWritableOrigin:o};let p=s||this.hasVisibleLayersForOrigin(a);n.forEach(e=>{const t=e.write({},u);l.push(t),p=p||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),p&&(t.visibleLayers=n.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale||(0,h.X_)({extent:e,width:t})*n;const s=this._exportImageParameters.toJSON(),a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},o=e?.spatialReference,l=(0,f.YX)(o);if(i?.scale&&e){const r=e.width/t*((0,p.GA)(e?.spatialReference)*p.dy);s.dpi=i.scale/r}s.dpi*=n;const u={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();u.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:l,imageSR:l,size:t+","+r,...s,...a,...u}}async fetchImage(e,t,r,i){const{data:n}=await this._fetchImage("image",e,t,r,i);return n}async fetchImageBitmap(e,t,r,i){const{data:n,url:s}=await this._fetchImage("blob",e,t,r,i);return(0,F.mn)(n,s,i)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,n.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:a}=r,o=i||s;return{fullExtent:o&&m.A.fromJSON(o),timeExtent:a&&R.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,_.D)(this,e)}async _fetchImage(e,t,r,i,s){const o={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=o.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:e}=await(0,n.A)(l,o);return{data:e,url:l}}catch(e){if((0,u.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,d.MZ)((0,V.P6)("dateFieldsTimeReference"))],J.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],J.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"dpi",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"imageFormat",void 0),(0,i.Cg)([(0,B.w)("imageFormat",["supportedImageFormatTypes"])],J.prototype,"readImageFormat",null),(0,i.Cg)([(0,d.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],J.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,d.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],J.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],J.prototype,"isReference",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1,write:!1}})],J.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:["ArcGISMapServiceLayer"]})],J.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1,write:!1}})],J.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)((0,V.P6)("preferredTimeReference"))],J.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,d.MZ)({type:s.A.ofType(U.A),json:{write:{ignoreOrigin:!0}}})],J.prototype,"sublayers",void 0),(0,i.Cg)([(0,$.K)("sublayers",{layers:{type:[U.A]},visibleLayers:{type:[y.jz]}})],J.prototype,"writeSublayers",null),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],J.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],J.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)(E.OZ)],J.prototype,"url",void 0),J=(0,i.Cg)([(0,d.$K)("esri.layers.MapImageLayer")],J);const q=J},82935(e,t,r){r.d(t,{B:()=>y,e:()=>c});var i=r(5482),n=r(91429),s=r(89317),a=r(30524),o=r(96184),l=r(73133),u=r(79677),p=r(10184),d=r(36005);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(y)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}},96184(e,t,r){r.d(t,{A:()=>c});var i=r(5482),n=r(69540),s=r(25482),a=r(91429),o=r(79677),l=r(10184),u=r(56400),p=r(36005),d=r(43937);function y(e,t){return l.A.fromJSON({value:e,unit:t})}let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?o.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],c.prototype,"cumulative",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"endField",void 0),(0,i.Cg)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,p.w)("fullTimeExtent",["timeExtent"])],c.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,d.K)("fullTimeExtent")],c.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,a.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"interval",void 0),(0,i.Cg)([(0,p.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],c.prototype,"readInterval",null),(0,i.Cg)([(0,d.K)("interval")],c.prototype,"writeInterval",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"startField",void 0),(0,i.Cg)([(0,a.MZ)((0,u.P6)("timeReference",!0))],c.prototype,"timeZone",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"trackIdField",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],c.prototype,"useTime",void 0),(0,i.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],c.prototype,"stops",void 0),c=(0,i.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],c)},77548(e,t,r){r.d(t,{Gh:()=>L,tk:()=>T,BR:()=>x,p2:()=>I,qd:()=>A,wI:()=>M,G$:()=>E,$x:()=>Z,Ov:()=>b,cM:()=>y,UC:()=>c,W_:()=>w,Qz:()=>m,OP:()=>O,TU:()=>v,F2:()=>h,XX:()=>g,jy:()=>C});var i=r(70333),n=r(11254),s=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const u=new WeakMap;function p(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||p(t))},t=>u.set(e,t),o.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function d(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function y(e){return d(e,"knowledge-graph")&&"layers"in e}function c(e){return d(e,"knowledge-graph-sublayer")}function m(e){return d(e,"link-chart")&&"layers"in e}function h(e){return d(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function b(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function C(e){return function(e){return"subtype-sublayer"===e?.type}(e)||function(e){return null!=e&&"object"==typeof e&&"type"in e&&"oriented-imagery"===e.type}(e)||function(e){return d(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}function S(e){const t=e?.type;return"binning"===t||"cluster"===t}function I(e,t){if(!C(e))return;const r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&i?S(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?S(i)?i:null:e}async function M(e,t){const r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const a=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,n.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function x(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function T(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function A(e){const t=new s.A;for(const r of e.allLayers.concat(e.allTables))p(r)||f(r)||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function E(e){return null}function O(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function L(e,t){if(!t||!O(e))return;const r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var i=r(60694);const n=[];function s(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of n){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}n.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),n.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),n.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),n.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),n.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>n,Y:()=>i});const i=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},79677(e,t,r){r.d(t,{A:()=>y});var i,n=r(5482),s=r(25482),a=r(88930),o=r(91429),l=r(98623),u=r(10184),p=r(36005),d=r(43937);let y=class extends s.o{static{i=this}static get allTime(){return c}static get empty(){return m}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,a.lL)(r,new u.A({value:1,unit:e}),t));let n=this.end;if(n){const r=(0,a.lL)(n,new u.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return n>=t&&n<=r?a=n:t>=n&&t<=s&&(a=t),r>=n&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?i.empty:new i({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const n=new i,{start:s,end:o}=this;return null!=s&&(n.start=(0,a.S1)(s,e,t,r)),null!=o&&(n.end=(0,a.S1)(o,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return c.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"end",void 0),(0,n.Cg)([(0,p.w)("end")],y.prototype,"readEnd",null),(0,n.Cg)([(0,d.K)("end")],y.prototype,"writeEnd",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isAllTime",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isEmpty",null),(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"start",void 0),(0,n.Cg)([(0,p.w)("start")],y.prototype,"readStart",null),(0,n.Cg)([(0,d.K)("start")],y.prototype,"writeStart",null),y=i=(0,n.Cg)([(0,o.$K)("esri.time.TimeExtent")],y);const c=new y,m=new y({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>p});var i=r(5482),n=r(69540),s=r(25482),a=r(88930),o=r(91429),l=r(73133),u=r(93223);let p=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(l.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i.Cg)([(0,o.$K)("esri.time.TimeInterval")],p)}}]);